sys_time: port to Solaris 2.6
[gnulib.git] / ChangeLog
1 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
2
3         sys_time: port to Solaris 2.6
4         There is a circularity problem on Solaris 2.6, where <time.h> includes
5         <sys/time.h> for struct timespec.  The include nesting is gnulib
6         <time.h>, system <time.h>, gnulib <sys/time.h>, system
7         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
8         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
9         <sys/siginfo.h>; the last, innermost file needs struct
10         timestruc_t, which is defined in <sys/time.h>, which has not been
11         fully parsed.  Problem reported by Tom G. Christensen in
12         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
13         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
14         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
15         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
16         uses split double-inclusion guards.
17
18 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19
20         regex: test for buffer overrun
21         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
22         for the just-fixed regex bug.
23
24 2013-01-29  Andreas Schwab  <schwab@suse.de>
25
26         regex: fix buffer overrun in regexp matcher
27         * lib/regexec.c (extend_buffers): Add parameter min_len.
28         (check_matching): Pass minimum needed length.
29         (clean_state_log_if_needed): Likewise.
30         (get_subexp): Likewise.
31
32 2013-01-28  Pádraig Brady  <P@draigBrady.com>
33
34         mountlist: don't consider "devtmpfs" as dummy
35         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
36         as there is storage associcated with it.
37
38 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
39
40         futimens-tests, utimens-tests: Depend on gettext.
41         This works around a problem introduced in my 2013-01-12 patch,
42         which added @LIBINTL@ to these modules.
43         * modules/futimens-tests (Depends-on):
44         * modules/utimens-tests (Depends-on): Add gettext.
45
46 2013-01-26  Eric Blake  <eblake@redhat.com>
47
48         test-getpeername: fix typo
49         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
50
51 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
52
53         bootstrap: remove the need for a sorted .gitignore file
54         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
55         rename to insert_if_absent(), so that we don't need or generate
56         a sorted .gitignore file.  We do require a .gitignore with no
57         existing duplicate entries and enforce that.
58         (sort_patterns): Remove this function as we now use the simpler
59         technigue of inserting blacklist entries at the top of the file,
60         assuming gnulib won't be inserting !whitelist entries.
61
62 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63
64         readlinkat: don't depend on gl_FUNC_OPENAT
65         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
66         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
67         renameat.m4, symlinkat.m4; but one thing at a time.
68
69         statat: new module, split out from fstatat
70         GNU Emacs needs the POSIX-specified fstatat, but not the
71         gnulib-specified statat and lstat.  Split the latter two into a
72         new module 'statat'.
73         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
74         * lib/openat.h, lib/statat.c (STATAT_INLINE):
75         Rename from FSTATAT_INLINE. All uses changed.
76         * modules/fstatat (Files): Remove lib/statat.c.
77         (gl_MODULE_INDICATOR([fstatat])): Remove.
78         (lib_SOURCES): Remove.
79         (Maintainer): Add self.
80         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
81         * tests/test-fstatat.c (BASE): Don't define if already defined.
82         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
83
84 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
85
86         tests: don't assume fd 99 is closed
87         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
88         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
89         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
90         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
91         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
92         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
93         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
94         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
95         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
96         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
97         * tests/test-fwrite.c, tests/test-getpeername.c:
98         * tests/test-getsockname.c, tests/test-getsockopt.c:
99         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
100         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
101         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
102         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
103         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
104         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
105         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
106         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
107         * tests/test-unlinkat.c, tests/test-unlockpt.c:
108         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
109         Close file descriptor 99, instead of assuming it's already closed.
110
111 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
112
113         stpncpy: port to OS X 10.8
114         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
115         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
116
117 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
118
119         unistd: port to recent mingw
120         * lib/unistd.in.h: Remove special invocation convention for mingw,
121         which breaks for the latest mingw version.  See John W. Eaton in
122         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
123
124         largefile: port better to Mac OS X 10.5
125         This patch is backported from Autoconf git.
126         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
127         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
128         with ino_t size being different for configuration time versus
129         build/run time.  Problem reported by PHO in
130         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
131
132 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
133
134         doc: clarify -Werror
135         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
136         clarify that it's intended for developers, not for ordinary builds,
137         and mention --enable-gcc-warnings as one possible use.
138
139 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
140
141         stdint: fix build with Android's Bionic fox x86
142         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
143         was already included as _SSIZE_T_DEFINED_ might also be defined
144         in include/machine/_types.h, which is included by stdio.h
145
146 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
147
148         net_if-tests: port to Solaris 7 + GCC 3.4.6
149         Problem reported by Tom G. Christensen in
150         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
151         * tests/test-net_if.c (ni): Move to next the code that uses it,
152         so that it's declared only if needed.
153
154 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
155
156         net_if-tests: port to older Solaris
157         Problem reported by Tom G. Christensen in
158         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
159         * modules/net_if-tests (NET_IF_LIB): New substitution.
160         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
161         (HAVE_IF_NAMEINDEX): New C macro.
162         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
163
164         system-quote-tests: port to older Solaris
165         Problem reported by Tom G. Christensen in
166         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
167         * tests/test-system-quote-child.c (fopen, fread): Undef.
168
169         c-xvasprintf etc.: fix link errors on older Solaris
170         These need to link with @LIBINTL@ to get libintl_gettext.
171         Problem reported by Tom G. Christensen in
172         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
173         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
174         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
175         * modules/futimens-tests (test_futimens_LDADD):
176         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
177
178 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
179
180         locale: port to Solaris 2.6 and 7 + GNU gettext
181         * lib/locale.in.h: Just include_next <locale.h> when
182         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
183         when combining the localename module with GNU gettext 0.18.2.
184         Problem reported by Tom G. Christensen in
185         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
186
187 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
188
189         stdlib: port to Solaris 2.6
190         Also, the code worked on Solaris 7 through 9 only by accident.
191         Problem reported by Tom G. Christensen in
192         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
193         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
194         simply include the system stdlib.h.
195         * lib/getopt.in.h (__need_system_stdlib_h):
196         * lib/pthread.in.h (__need_system_stdlib_h):
197         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
198         Define when including <stdlib.h>, to avoid problems at least for
199         the pthread case on Solaris 2.6 and 7.  These .h files can get by
200         with the system stdlib.h.
201
202 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
203
204         doc: update main copyright year
205         * doc/gnulib.texi: Update copyright date.
206
207         doc: improve ISO 8601 discussion
208         * doc/parse-datetime.texi (Combined date and time of day items):
209         Specify more carefully what formats are supported and what is
210         done with excess precision.
211
212 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
213
214         doc: avoid small caps
215         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
216         they're more trouble than they're worth.  Suggested by Karl Berry
217         in <http://bugs.gnu.org/13360>.
218
219         regex: conform to strict C
220         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
221         From Aharon Robbins.
222
223         gnulib-tool: fix incompatibility with autopoint 0.18.2
224         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
225         Problem reported by Tom G. Christensen in
226         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
227
228 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
229
230         fprintftime: bring back and reword fwrite comment
231         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
232
233         stdio: remove now-unnecessary stdio.c
234         Since stdio.in.h no longer uses inline functions, we no longer
235         need to compile the extern versions.
236         * lib/stdio.c: Remove.
237         * modules/stdio (Files): Remove lib/stdio.c.
238         (lib_SOURCES): Remove.
239
240         unicodeio: depend on stdio, not ignore-value
241         * lib/unicodeio.c: Do not include ignore-value.h.
242         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
243         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
244
245         fprintftime: depend on stdio, not ignore-value
246         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
247         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
248         since the stdio module arranges to silence that warning now.
249         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
250
251 2012-10-04  Simon Josefsson  <simon@josefsson.org>
252
253         stdint-tests: Fix expanded-before-required-warning.
254         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
255
256 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
257
258         fwrite: silence __wur only for older glibc versions
259         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
260         This will help us remove this workaround some time in the far future.
261
262 2013-01-03  Eric Blake  <eblake@redhat.com>
263
264         fwrite: silence __wur without using inline
265         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
266         just gcc, and in a way that avoids inline issues.
267         * modules/stdio (Depends-on): Drop extern-inline.
268
269 2013-01-03  Jim Meyering  <jim@meyering.net>
270
271         update-copyright: avoid copyright notice date corruption
272         Given a sequence of copyright year numbers in which the final
273         one was a two-digit number that happened to be a substring of
274         a preceding four-digit year number, we would mistakenly update
275         the substring (from two- to four-digit) rather than the two-digit
276         number at the end, which, combined with the addition of the current
277         4-digit year number would yield two 5-digit year numbers, e.g.,
278         here, it would convert the first "99" to "1999, 2013" rather than
279         the final one:
280           1991, 99
281           11999, 20131, 1999
282         * build-aux/update-copyright: Tighten a regexp.
283         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
284         Reported by Joseph Myers in
285         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
286
287 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
288
289         regex: omit needless signed-pointer casts
290         * lib/regcomp.c (build_charclass, build_charclass_op):
291         Use char *, not unsigned char *, for class name and extra.
292         The char values are always nonnegative so there's no need to
293         insist on unsigned char * here, and using char * removes the need
294         for casts.  Reported by Aharon Robbins in
295         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
296
297         regex: support Gawk, which never uses alloca
298         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
299         Do not include in this case.  Gawk doesn't supply a substitute
300         alloca.h and doesn't need one.
301
302         regex: port __libc_lock_define usage to C89
303         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
304         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
305         does not conform to C89, as it has an empty macro argument.
306         Reported by Aharon Robbins in
307         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
308
309 2013-01-01  Eric Blake  <eblake@redhat.com>
310
311         maint: update all copyright year number ranges
312         Run "make update-copyright".
313
314         version-etc: bump copyright year reported in --version
315         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
316
317 2012-12-31  Eric Blake  <eblake@redhat.com>
318
319         sigprocmask-tests: skip test if pid is unexpectedly large
320         * tests/test-sigprocmask.c (main): Add range check.
321
322         git-version-gen: avoid test -z portability glitch
323         * build-aux/git-version-gen: Prefer portable test spelling, since
324         git-version-gen is run on more than just developer machines.
325
326 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
327
328         git-version-gen: add --fallback option to use if git is not present
329         * build-aux/git-version-gen: Add support for the new option --fallback,
330         which comes into play when there is no $tarball_version_file and
331         git is not working.
332         (scriptversion): Update.
333
334         maint.mk: handle missing git with more grace
335         * top/maint.mk (no-submodule-changes, public-submodule-commit):
336         Quietly proceed if git is not present.
337
338 2012-12-31  Eric Blake  <eblake@redhat.com>
339
340         dup2: work around cygwin bug
341         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
342         * lib/dup2.c (rpl_dup2): Work around it.
343         * doc/posix-functions/dup2.texi (dup2): Document it.
344
345 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
346
347         regex: remove unnecessary dependency on localcharset.h
348         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
349         hasn't been needed for years.
350         * modules/regex (Depends-on): Remove localcharset.
351
352         regex: revert single-byte change
353         * lib/regexec.c (check_node_accept_bytes): Revert previous change
354         to this function.  This was alredy fixed in a different way, at
355         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
356         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
357         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
358
359         regex: simplify based on Gawk version
360         * lib/regex_internal.c (re_dfa_add_node): Simplify.
361         Reported by Aharon Robbins in
362         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
363
364 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
365
366         regex: check that pattern char is single-byte
367         Reported by Aharon Robbins in
368         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
369         * lib/regexec.c (check_node_accept_bytes):
370         Return 0 if the pattern string has a multibyte character here.
371
372         regex: implement rational ranges
373         Reported by Aharon Robbins in
374         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
375         * lib/regcomp.c (build_range_exp) [!_LIBC]:
376         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
377         Implement rational ranges.
378
379         regex: avoid redefining __wctype
380         Reported by Aharon Robbins in
381         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
382         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
383         #undef before defining.
384
385         regex: port to hosts where malloc (0) == NULL
386         Reported by Aharon Robbins in
387         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
388         * lib/regex_internal.c (re_node_set_alloc):
389         Don't assume that malloc (0) yields nonnull.
390         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
391         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
392         * modules/regex (Files): Add m4/eealloc.m4.
393
394         regex: port to C89
395         Reported by Aharon Robbins in
396         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
397         * lib/regcomp.c (init_word_char): Declaration before statement.
398
399         regex: merge glibc changes
400         Also, copy the license wording from glibc.  This simplifies
401         merging changes.  gnulib-tool will change the wording to GPL as
402         appropriate, when importing it to other packages.  The only
403         glibc change made since the last merge, which needs merging, is:
404         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
405         * lib/regex_internal.h (gettext): Remove use of INTUSE.
406
407         * users.txt: Add Emacs.
408
409         doc: omit mention of version when not needed
410         * doc/gnulib-intro.texi (Portability and Application Code):
411         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
412         Don't mention particular dates or versions when not necessary, so
413         that the documentation won't go out of date so quickly.
414
415         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
416
417 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
418
419         bootstrap: pass --force to autoreconf.
420         * build-aux/bootstrap (AUTORECONFFLAGS): New.
421         Add "--force" so that Automake's ylwrap and other such tools
422         be updated at each bootstrap invocation.
423         Use it.
424
425 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
426
427         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
428         The earlier patch forgot to update one of the #if conditions, causing
429         a problem on Debian testing i386 reported by Mats Erik Andersson
430         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
431         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
432         (__argp_fmtstream_puts, argp_fmtstream_puts)
433         (__argp_fmtstream_write, argp_fmtstream_write)
434         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
435
436         * doc/gnulib-readme.texi: Minor fixups.
437         (Portability guidelines): Modernize URLs.  Remove some repetition.
438         (Indent with spaces not TABs): Reword to avoid too-long lines.
439         Remove some '@ifset standalone' stuff that isn't used.
440
441         * doc/gnulib-readme.texi (Portability guidelines):
442         ctype.h, not ctime.h.
443
444         Correct name of POSIX.1-2001.
445         * doc/posix-functions/fgetc.texi (fgetc):
446         * doc/posix-functions/fgets.texi (fgets):
447         * doc/posix-functions/fread.texi (fread):
448         * doc/posix-functions/fscanf.texi (fscanf):
449         * doc/posix-functions/getc.texi (getc):
450         * doc/posix-functions/getchar.texi (getchar):
451         * doc/posix-functions/scanf.texi (scanf):
452         POSIX.1-2001, not POSIX-2001.
453
454         doc: move README into manual
455         * README: Move contents to new file doc/gnulib-readme.texi.
456         Replace with a one-line summary.
457         * doc/gnulib.texi (Brief Overview): New section,
458         with old intro preface.  Include gnulib-readme.texi for contents.
459         (Philosophy): Rename from "Introduction", since this
460         section no longer introduces the rest.  Write a new preface.
461         * doc/gnulib-readme.texi: New file, with the old contents of
462         README texinfo-ized.  This way, the README info appears
463         in the online and printed manual.
464
465 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
466
467         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
468         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
469         c_vasprintf() prototype.
470
471 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
472
473         c-vasprintf: Fix "empty declaration" warning reported by GCC.
474         * lib/c-vasprintf.h: Remove stray semicolon.
475
476 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
477
478         gettext: avoid obsolete macro AM_PROG_MKDIR_P
479         It is obsolete and is planned to be removed from Automake 1.14; see
480         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
481         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
482         (installdirs-data, installdirs-data-yes):
483         Use $(MKDIR_P), not $(mkdir_p).
484         * m4/intl.m4 (AM_INTL_SUBDIR):
485         * m4/po.m4 (AM_PO_SUBDIRS):
486         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
487
488 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
489
490         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
491         On this platform, we are not optimizing but we are using
492         the substitute for extern inlines, so compile as if
493         C99-style extern inline, or a substitute, is available.
494         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
495         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
496         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
497         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
498         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
499         Declare as ARGP_FS_EI, not as extern.
500         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
501         (__option_is_short, _option_is_end, __option_is_end)
502         [!_LIBC && __USE_EXTERN_INLINES]:
503         Declare as ARGP_EI, not as extern.
504
505 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
506
507         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
508         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
509         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
510         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
511         ...), as the latter is fatal with older Autoconfs.
512         Problem reported and fix suggested by Eric Blake in thread starting at
513         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
514
515 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
516
517         AC_PROG_MKDIR_P: don't workaround if not buggy
518         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
519         Define only for Autoconf versions before 2.62.
520         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
521         undocumented m4_PACKAGE_VERSION, for consistency with the
522         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
523         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
524         was introduced in 2.62.
525
526 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
527
528         New 'c-*printf' modules for formatted output in C locale.
529
530         New module 'c-vasnprintf'.
531         * modules/c-vasnprintf: New file.
532         * lib/c-vasnprintf.c: New file.
533         * lib/c-vasnprintf.h: New file.
534
535         New module 'c-snprintf'.
536         * modules/c-snprintf: New file.
537         * modules/c-snprintf-tests: New file.
538         * lib/c-snprintf.c: New file.
539         * lib/c-snprintf.h: New file.
540         * tests/test-c-snprintf.c: New file.
541         * tests/test-c-snprintf.sh: New file.
542
543         New module 'c-vsnprintf'.
544         * modules/c-vsnprintf: New file.
545         * modules/c-vsnprintf-tests: New file.
546         * lib/c-vsnprintf.c: New file.
547         * lib/c-vsnprintf.h: New file.
548         * tests/test-c-vsnprintf.c: New file.
549         * tests/test-c-vsnprintf.sh: New file.
550
551         New module 'c-vasprintf'.
552         * modules/c-vasprintf: New file.
553         * modules/c-vasprintf-tests: New file.
554         * lib/c-asprintf.c: New file.
555         * lib/c-vasprintf.c: New file.
556         * lib/c-vasprintf.h: New file.
557         * tests/test-c-vasprintf.c  +: New file.
558         * tests/test-c-vasprintf.sh: New file.
559
560         New module 'c-xvasprintf'.
561         * modules/c-xvasprintf: New file.
562         * modules/c-xvasprintf-tests: New file.
563         * lib/c-xasprintf.c: New file.
564         * lib/c-xvasprintf.c: New file.
565         * lib/c-xvasprintf.h: New file.
566         * tests/test-c-xvasprintf.c: New file.
567         * tests/test-c-xvasprintf.sh: New file.
568
569 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
570
571         argp: better 'inline'
572         Use extern-inline module to declare extern inline functions.
573         This avoids some bogus warning diagnostics.  Problem discovered
574         when modifying GNU tar to use the manywarnings module.
575         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
576         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
577         Define based on extern-inline.
578         * modules/argp (Depends-on): Add extern-inline.
579
580 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
581
582         filemode, sys_stat: Handle MPX files a la AIX.
583         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
584         * lib/sys_stat.in.h (S_ISMPX): New macro.
585         * tests/test-sys_stat.c: Add tests for MPX files.
586
587 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
588
589         x-to-1: honor $PERL
590         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
591         a chance to use his preferred version of Perl.  This is typically
592         required by Darwin users whose default /usr/bin/perl does not have all
593         the libraries required by help2man, and who need to use their MacPorts
594         installation of Perl instead.
595
596 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
597
598         gnu-web-doc-update: add all the new files, even in new directories
599         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
600         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
601         Use it.
602         (main): Don't use cvsutils to get the list of unknown files,
603         just add all the existing files and directories.
604
605 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
606
607         gnu-web-doc-update: improve --help
608         * build-aux/gnu-web-doc-update: Move comments into --help.
609
610 2012-12-07  Eric Wong  <normalperson@yhbt.net>
611
612         mountlist: recognize more "dummy" file systems
613         * lib/mountlist.c (ME_DUMMY_0):
614         Add these dummy FS names to the list:
615         - "debugfs" virtual filesystem for kernel debugging
616         - "devpts" PTY slave filesystem
617         - "devtmpfs" device filesystem on top of tmpfs/ramfs
618         - "fusectl" control filesystem for FUSE
619         - "mqueue" enumerates POSIX message queues
620         - "rpc_pipefs" kernel <-> userspace bridge for NFS
621         - "sysfs" is for exporting kernel objects
622         - "devfs" device filesystem for Linux 2.4 and FreeBSD
623
624 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
625
626         extern-inline: avoid incompatibility with Darwin Libc
627         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
628         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
629         Problem reported by Akim Demaille in
630         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
631
632 2012-12-11  Simon Josefsson  <simon@josefsson.org>
633
634         gnupload: Work with GnuPG using gpg-agent (for smartcards).
635         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
636         let it handle password prompting.
637
638 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
639
640         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
641         * lib/canonicalize.c (canonicalize_filename_mode):
642         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
643         fetching the current directory.  Don't overrun the beginning of
644         rpath if there's no slashes after the MS-Windows drive letter.
645
646 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
647
648         maint.mk: avoid extra forks
649         * top/maint.mk (_cfg_mk): The GNU make manual documents that
650         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
651         So use that instead of "$(shell test -f FILE && echo FILE)".
652
653 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
654
655         vasnprintf: fix ASCII_ONLY typo
656         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
657         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
658         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
659         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
660         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
661
662 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
663
664         list, oset, xlist, xoset: fix extern inline issue with C99
665         This was introduced by my recent changes for 'inline'.
666         Problem reported for gettext by Daiki Ueno in
667         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
668         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
669         (gl_list_nx_create, gl_list_size, gl_list_node_value)
670         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
671         (gl_list_previous_node, gl_list_get_at)
672         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
673         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
674         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
675         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
676         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
677         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
678         (gl_list_iterator_free, gl_sortedlist_search)
679         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
680         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
681         (gl_sortedlist_remove):
682         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
683         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
684         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
685         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
686         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
687         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
688         (gl_list_add_at, gl_sortedlist_add):
689         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
690         Wrap these extern decls inside "#if 0", because they are implemented
691         as inline functions, and extern inline is not what's wanted here.
692         It would simplify these .h files to remove the extern decls entirely,
693         although a downside would be less-clear separation between
694         specification and implementation.
695
696 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
697
698         sys_stat: no 'static inline'
699         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
700         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
701
702         extern-inline: no 'static inline'
703         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
704         Do not require AC_C_INLINE.
705         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
706         'static inline', for older compilers.
707
708         snippet/warn-on-use: no 'static inline'
709         * build-aux/snippet/warn-on-use.h:
710         Remove unnecessary 'inline' in comment.
711
712         rbtree-list, rbtreehash-list: no 'static inline'
713         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
714         * lib/gl_anytree_list2.h (node_at):
715         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
716         (gl_oset_first, add_nodes_to_buckets):
717         Now static, not static inline.
718
719         regex: no 'static inline'
720         * lib/regex_internal.c (calc_state_hash):
721         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
722         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
723         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
724         Now static, not static inline.
725         (inline) [__GNUC__ < 3 && _LIBC]:
726         Remove macro; no longer needed.
727
728         xvasprintf: no 'static inline'
729         * lib/xvasprintf.c (xstrcat):
730         Now static, not static inline.
731         * m4/xvasprintf.m4 (gl_XVASPRINTF):
732         Do not require AC_C_INLINE.
733
734         parse-datetime, parse-duration: no 'static inline'
735         * lib/parse-datetime.y (to_uchar):
736         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
737         (scale_n_add):
738         Now static, not static inline.
739         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
740         * modules/parse-duration (configure.ac):
741         Do not require AC_C_INLINE.
742
743         getaddrinfo: no 'static inline'
744         * lib/getaddrinfo.c (validate_family):
745         Now static, not static inline.
746         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
747         Do not require AC_C_INLINE.
748
749         ftruncate, fts, lstat, openat, raise: no 'static inline'
750         * lib/ftruncate.c (chsize_nothrow):
751         * lib/fts.c (opendirat, diropen):
752         * lib/lstat.c (orig_lstat):
753         * lib/openat.c (orig_openat):
754         * lib/raise.c (raise_nothrow):
755         Now static, not static inline.
756         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
757         * m4/fts.m4 (gl_FUNC_FTS_CORE):
758         * m4/lstat.m4 (gl_PREREQ_LSTAT):
759         * m4/openat.m4 (gl_PREREQ_OPENAT):
760         * m4/raise.m4 (gl_PREREQ_RAISE):
761         Do not require AC_C_INLINE.
762
763         fflush, stat: no 'static inline'
764         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
765         (clear_ungetc_buffer, disable_seek_optimization)
766         (restore_seek_optimization, update_fpos_cache):
767         * lib/stat.c (orig_stat):
768         Now static, not static inline.
769         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
770         (update_fpos_cache):
771         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
772         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
773         * m4/stat.m4 (gl_PREREQ_STAT):
774         Do not require AC_C_INLINE.
775
776         error, filevercmp: no 'static inline'
777         * lib/error.c (is_open, flush_stdout):
778         * lib/filevercmp.c (order):
779         Now static, not static inline.
780         * m4/error.m4 (gl_PREREQ_ERROR):
781         * modules/filevercmp (configure.ac):
782         Do not require AC_C_INLINE.
783
784         dup, execute, fatal-signal, etc.: no 'static inline'
785         * lib/dup.c (dup_nothrow):
786         * lib/execute.c (nonintr_close, nonintr_open):
787         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
788         * lib/fopen.c (orig_fopen):
789         * lib/freadseek.c (freadptrinc):
790         * lib/freopen.c (orig_freopen):
791         * lib/fstat.c (orig_fstat, fstat_nothrow):
792         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
793         (get_rusage_as_via_iterator):
794         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
795         * lib/getdtablesize.c (_setmaxstdio_nothrow):
796         * lib/isatty.c (_isatty_nothrow):
797         * lib/open.c (orig_open):
798         * lib/read.c (read_nothrow):
799         * lib/sigprocmask.c (signal_nothrow):
800         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
801         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
802         * lib/wait-process.c (unregister_slave_subprocess):
803         * lib/write.c (write_nothrow):
804         Now static, not static inline.
805         * lib/spawn-pipe.c (nonintr_open): Define only if
806         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
807         * m4/dup.m4 (gl_PREREQ_DUP):
808         * m4/execute.m4 (gl_EXECUTE):
809         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
810         * m4/fopen.m4 (gl_PREREQ_FOPEN):
811         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
812         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
813         * m4/fstat.m4 (gl_PREREQ_FSTAT):
814         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
815         * m4/isatty.m4 (gl_PREREQ_ISATTY):
816         * m4/open.m4 (gl_PREREQ_OPEN):
817         * m4/read.m4 (gl_PREREQ_READ):
818         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
819         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
820         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
821         * m4/wait-process.m4 (gl_WAIT_PROCESS):
822         * m4/write.m4 (gl_PREREQ_WRITE):
823         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
824         Do not require AC_C_INLINE.
825
826         c-strtod, memcoll, readutmp: no 'static inline'
827         * lib/c-strtod.c (c_locale):
828         * lib/memcoll.c (strcoll_loop):
829         * lib/readutmp.c (desirable_utmp_entry):
830         Now static, not static inline.
831         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
832         * m4/memcoll.m4 (gl_MEMCOLL):
833         * m4/readutmp.m4 (gl_READUTMP):
834         Do not require AC_C_INLINE.
835
836         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
837         * lib/arctwo.c (to_uchar):
838         * lib/md4.c (set_uint32):
839         * lib/md5.c (set_uint32):
840         * lib/sha1.c (set_uint32):
841         * lib/sha256.c (set_uint32):
842         * lib/sha512.c (set_uint64):
843         Now static, not static inline.  This is a bit simpler, and doesn't
844         affect performance with GCC and default optimization.
845         * m4/arctwo.m4 (gl_ARCTWO):
846         * m4/md4.m4 (gl_MD4):
847         * m4/md5.m4 (gl_MD5):
848         * m4/sha1.m4 (gl_SHA1):
849         * m4/sha256.m4 (gl_SHA256):
850         * m4/sha512.m4 (gl_SHA512):
851         Do not require AC_C_INLINE.
852
853         cond, lock, thread: better 'inline'
854         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
855         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
856         New macros.  Use them instead of static inline, for header functions.
857         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
858         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
859         * lib/glthread/lock.c (gl_waitqueue_init)
860         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
861         * lib/glthread/thread.c (get_current_thread_handle):
862         Change 'static inline' to 'inline'.
863         * lib/glthread/cond.h, lib/glthread/thread.h:
864         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
865         * m4/cond.m4 (gl_COND):
866         * m4/lock.m4 (gl_PREREQ_LOCK):
867         * m4/thread.m4 (gl_THREAD):
868         Do not require AC_C_INLINE.
869         * modules/cond, modules/thread (Depends-on): Add extern-inline.
870
871         chdir-long, cycle-check, savewd: better 'inline'
872         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
873         (find_non_slash):
874         * lib/cycle-check.c (is_zero_or_power_of_two):
875         * lib/savewd.c (savewd_delegating):
876         Change 'static inline' to 'inline'.
877         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
878         Replace all remaining uses of 'static inline' with it.
879         * lib/savewd.h:
880         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
881         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
882         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
883         * m4/savewd.m4 (gl_SAVEWD):
884         Do not require AC_C_INLINE.
885         * modules/savewd (Depends-on): Add extern-inline.
886
887         base32, base64: no need for 'inline'
888         * lib/base32.c (to_uchar, get_8, decode_8):
889         * lib/base64.c (to_uchar, get_4, decode_4):
890         Change 'static inline' to 'inline'.
891         * m4/base32.m4 (gl_PREREQ_BASE32):
892         * m4/base64.m4 (gl_PREREQ_BASE64):
893         Do not require AC_C_INLINE.
894
895         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
896         * lib/gl_array_oset.c (gl_array_nx_add_at):
897         (gl_array_remove_at):
898         * lib/gl_linkedhash_list.c (hash_resize_after_add)
899         (add_to_bucket, remove_from_bucket):
900         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
901         Change 'static inline' to 'static', as it's simpler to omit
902         'inline' unless there's a significant performance advantage.
903
904         list, oset, xlist, xoset, xsublist: simplify via extern inline
905         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
906         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
907         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
908         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
909         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
910         New macro.  Replace all uses of 'static inline' with it.
911         [HAVE_INLINE]: Implement functions as *_INLINE functions,
912         instead of as macros FOO that are defined to static inline
913         functions FOO_inline.
914         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
915         * lib/gl_xsublist.c:
916         Reimplement from scratch, by defining the corresponding *_INLINE
917         macro and including the corresponding .h file.  This is simpler.
918         * modules/list, modules/oset, modules/xlist, modules/xoset:
919         (Files): Remove m4/gl_list.m4.
920         (configure.ac): Remove gl_LIST.
921         * m4/gl_list.m4: Remove.
922         * modules/list, modules/oset, modules/xlist, modules/xoset:
923         * modules/xsublist:
924         (Depends-on): Depend on extern-inline, not inline.
925
926         xalloc: better 'inline'
927         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
928         New macro.  Replace all uses of 'static inline' with it.
929         (static_inline): Remove.
930         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
931         Let 'extern inline' do the work automatically, instead of doing
932         it by hand.
933         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
934         Remove.  All uses removed.
935         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
936
937         gethrxtime: better 'inline'
938         * lib/xtime.c: New file.
939         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
940         * lib/xtime.h (XTIME_INCLUDE):
941         New macros.  Replace all uses of 'static inline' with them.
942         * lib/gethrxtime.c (gethrxtime): Define only if
943         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
944         this source file is now always compiled, because of the extern inline.
945         * lib/gethrxtime.h, lib/xtime.h:
946         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
947         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
948         if gethrtime works, as they're not needed in that case.
949         (gl_XTIME): Do not require AC_C_INLINE.
950         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
951         compiled now.  Move the check into gl_GETHRXTIME.
952         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
953         (Depends-on): Add extern-inline.
954         (configure.ac): gethrxtime is always compiled now.
955         (lib_SOURCES): Add gethrxtime.c.
956
957         wctype-h: better 'inline'
958         * lib/wctype-h.c: New file.
959         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
960         New macro.  Replace all uses of 'static inline' with it.
961         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
962         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
963         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
964         (Depends-on): Add extern-inline.
965
966         unistd: better 'inline'
967         * lib/unistd.c: New file.
968         * lib/unistd.in.h (_GL_UNISTD_INLINE):
969         New macro.  Replace all uses of 'static inline' with it.
970         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
971         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
972         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
973         (Depends-on): Add extern-inline.
974
975         sys_socket: better 'inline'
976         * lib/sys_socket.c: New file.
977         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
978         New macro.  Replace all uses of 'static inline' with it.
979         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
980         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
981         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
982         (Depends-on): Add extern-inline.
983
984         stdio: better 'inline'
985         * lib/stdio.c: New file.
986         * lib/stdio.in.h (_GL_STDIO_INLINE):
987         New macro.  Replace all uses of 'static inline' with it.
988         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
989         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
990         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
991         (Depends-on): Add extern-inline.
992
993         sigaction: better 'inline'
994         * lib/sig-handler.c: New file.
995         * lib/sig-handler.h (SIG_HANDLER_INLINE):
996         New macro.  Replace all uses of 'static inline' with it.
997         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
998         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
999         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
1000         (Depends-on): Add extern-inline.
1001
1002         selinux-h: better 'inline'
1003         * lib/se-context.c, lib/se-selinux.c: New files.
1004         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
1005         * lib/se-context.in.h (SE_CONTEXT_INLINE):
1006         New macro.  Replace all uses of 'static inline' with it.
1007         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1008         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
1009         New macro.  Replace all uses of 'static inline' with it.
1010         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1011         * modules/selinux-h (Files, lib_SOURCES):
1012         Add lib/se-context.c, lib/se-selinux.c.
1013         (Depends-on): Add extern-inline.
1014         (configure.ac): Do not require AC_C_INLINE.
1015
1016         pthread: better 'inline'
1017         * lib/pthread.c: New file.
1018         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
1019         New macro.  Replace all uses of 'static inline' with it.
1020         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1021         * m4/pthread.m4 (gl_PTHREAD_CHECK):
1022         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
1023         * modules/pthread (Files): Add lib/pthread.c.
1024         (Depends-on): Add extern-inline.
1025
1026         math: better 'inline'
1027         * lib/math.c: New file.
1028         * lib/math.in.h (_GL_MATH_INLINE):
1029         New macro.  Replace all uses of 'static inline' with it.
1030         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1031         * m4/math_h.m4 (gl_MATH_H):
1032         Do not require AC_C_INLINE.
1033         * modules/math (Files, lib_SOURCES):
1034         Add lib/math.c.
1035         (Depends-on): Add extern-inline.
1036
1037         count-one-bits: better 'inline'
1038         * lib/count-one-bits.c: New file.
1039         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
1040         New macro.  Replace all uses of 'static inline' with it.
1041         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1042         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
1043         Do not require AC_C_INLINE.
1044         * modules/count-one-bits (Files, lib_SOURCES):
1045         Add lib/count-one-bits.c.
1046         (Depends-on): Add extern-inline.
1047
1048         count-leading-zeros: better 'inline'
1049         * lib/count-leading-zeros.c: New file.
1050         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
1051         New macro.  Replace all uses of 'static inline' with it.
1052         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1053         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
1054         Do not require AC_C_INLINE.
1055         * modules/count-leading-zeros (Files, lib_SOURCES):
1056         Add lib/count-leading-zeros.c.
1057         (Depends-on): Add extern-inline.
1058
1059         bitrotate: better 'inline'
1060         * lib/bitrotate.c: New file.
1061         * lib/bitrotate.h (BITROTATE_INLINE):
1062         New macros.
1063         Replace all uses of 'static inline' with them.
1064         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1065         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
1066         (Depends-on): Add extern-inline.
1067         (configure.ac): Do not require AC_C_INLINE.
1068
1069 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
1070
1071         maint.mk: avoid gratuitous failure
1072         Reported by Stefano Lattarini in
1073         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
1074         * top/maint.mk (public-submodule-commit): Quote more safely.
1075
1076 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
1077
1078         canonicalize, canonicalize-lgpl: support MS-Windows file names
1079         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
1080         for test cases, which it'd be nice to add at some point.
1081         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
1082         * lib/canonicalize.c (canonicalize_filename_mode):
1083         * lib/canonicalize-lgpl.c (__realpath):
1084         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
1085         slash is at the beginning of the file name.  Use ISSLASH, instead
1086         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
1087         the first character with '/'.  Test for
1088         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
1089         with a drive letter.
1090         * lib/canonicalize.c (SLASHES): New macro.
1091         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
1092
1093 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
1094
1095         fts: introduce FTS_VERBATIM
1096         * lib/fts_.h (FTS_VERBATIM): New bit flag.
1097         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
1098         * lib/fts.c (fts_open): Honor it.
1099
1100 2012-11-09  Pádraig Brady  <P@draigBrady.com>
1101
1102         getlogin-tests: allow errno == ENXIO
1103         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1104         with errno == ENXIO (No controlling tty).
1105         getlogin_r-tests: Likewise. Also allow errno == ENOENT
1106         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
1107         with errno == ENOENT.  This was reported to happen in various
1108         situations on GNU/Linux.
1109
1110 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1111
1112         getlogin-tests: allow errno == ENOENT
1113         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1114         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
1115         when running a test in an Emacs shell buffer.
1116
1117 2012-11-08  Jim Meyering  <jim@meyering.net>
1118
1119         tests/nap.h: avoid warning about unused variable
1120         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
1121
1122         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
1123         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
1124         white space before each of the special-cased file names, to avoid
1125         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
1126         in http://bugs.gnu.org/12830.
1127
1128 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
1129
1130         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
1131         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
1132         fails with errno == EBADF when fd is opened with O_PATH.
1133         Reported by Jim Meyering in
1134         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
1135         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1136         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
1137
1138 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1139
1140         test-utimens: speed up by taking shorter naps
1141         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
1142         New functions.
1143         (nap): Use them, to do a better job of guessing the delay.
1144         On Fedora 17 with ext4 atop md atop hard disks, this made
1145         test-utimens run 10x faster, because the test napped for
1146         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
1147         <http://bugs.gnu.org/12820#11>.
1148
1149 2012-11-07  Jim Meyering  <jim@meyering.net>
1150
1151         mountlist.c: fix a compilation failure
1152         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
1153         I introduced while transforming commit v0.0-7683-g613bcb6
1154
1155 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1156
1157         errno: port to LynxOS 178 2.2.2
1158         Problem reported by Joel Brobecker in
1159         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
1160         * doc/posix-headers/errno.texi (errno.h): Document this.
1161         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
1162         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
1163         Supply a string for EILSEQ.
1164         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
1165
1166 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1167
1168         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
1169         Linux kernel 2.6.39 introduced O_PATH (see
1170         <http://lwn.net/Articles/433854/>) and this is a better fallback
1171         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
1172         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1173         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
1174         * lib/fcntl.in.h (O_ACCMODE):
1175         * tests/test-fcntl-h.c (main):
1176         Do not reject O_ACCMODE merely because it has more than the
1177         minimal number of bits, as POSIX allows extensions here.
1178
1179 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
1180
1181         mountlist: do not classify a bind-mounted dir entry as "dummy"
1182         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
1183         the "none"-testing clause.
1184         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
1185         exception for bind-mounted directories.
1186
1187 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
1188
1189         quote: provide a means to escape strings with nul characters
1190         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
1191         (quote, quote_n): Rename formal arguments for consistency with
1192         quotearg.
1193
1194 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
1195
1196         test-raise: don't assume 199 is an invalid signal
1197         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
1198
1199         sh-quote-tests: port to Solaris 9
1200         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
1201         Problem reported by Dagobert Michelsen in
1202         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
1203
1204 2012-10-28  Jim Meyering  <jim@meyering.net>
1205
1206         maint.mk: rename a new configurable variable
1207         * top/maint.mk (_gl_translatable_string_re): Rename from
1208         translation-markers: _gl_ prefix to insulate from user Makefile code,
1209         and the _re suffix to inform that it's a regular expression.
1210
1211 2012-10-26  Eric Blake  <eblake@redhat.com>
1212
1213         maint.mk: let packages tweak sc_po_check pattern
1214         * top/maint.mk (sc_po_check): Add translation-markers, to allow
1215         finding files with other translation markers.
1216
1217 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1218
1219         euidaccess: speed up 'configure' on GNU hosts
1220         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
1221         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
1222         it's needed only in this case.  Use AC_CHECK_DECLS, not
1223         AC_CHECK_DECLS_ONCE.
1224         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
1225         or AC_REQUIRE for AC_FUNC_GETGROUPS.
1226
1227         * lib/regexec.c (re_search_internal): Fix grammar in comment.
1228
1229 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1230
1231         fchmodat, fchownat, fstatat: port to non-inlining compilers
1232         Problem reported for FreeBSD 9 by Jim Meyering in
1233         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
1234         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
1235         New files, which define FCHMODAT_INLINE etc.
1236         * lib/fchmodat.c (FCHMODAT_INLINE):
1237         * lib/fchownat.c (FCHOWNAT_INLINE):
1238         * lib/fstatat.c (FSTATAT_INLINE):
1239         Remove, as chmodat.c etc. now do this.
1240         * modules/fchmodat (Files): Add lib/chmodat.c.
1241         * modules/fchownat (Files): Add lib/chownat.c.
1242         * modules/fstatat (Files): Add lib/statat.c.
1243
1244 2012-10-15  Jim Meyering  <jim@meyering.net>
1245
1246         fchmodat.c, fchownat.c: compile-impeding typos
1247         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
1248         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
1249         Introduced in commit v0.0-7636-gd202279.
1250
1251 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1252
1253         fcntl-h: support GNU flags like O_IGNORE_CTTY
1254         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
1255         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
1256         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
1257         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
1258         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
1259         Define to 0 if not already defined.
1260         * tests/test-fcntl-h.c: Test these new flags.
1261
1262 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1263
1264         faccessat, etc.: support AT_FDCWD-only use
1265         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
1266         this function only if its first argument is AT_FDCWD.
1267         Emacs wants faccessat for AT_EACCESS but not for any first-arg
1268         values other than AT_FDCWD, so it doesn't want all the openat
1269         machinery with fchdir etc.
1270         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
1271         * modules/fstatat, modules/mkdirat, modules/openat (Files):
1272         * modules/unlinkat (Files):
1273         Remove lib/openat-priv.h, as at-internal supplies this file.
1274         Removing this file here allows us to support programs like Emacs
1275         that avoid at-internal.
1276
1277         faccessat: speed up 'configure' on mainstream hosts
1278         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
1279         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
1280         since it's only on unusual platforms that we need to check for
1281         'access', and it's better not to slow 'configure' down on all
1282         platforms.
1283
1284         faccessat: port to Solaris 10
1285         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
1286         Needed on Solaris 10, which doesn't have AT_EACCESS,
1287         so we need the Gnulib fcntl.h, which defines it.
1288
1289 2012-10-14  Pádraig Brady  <P@draigBrady.com>
1290         canonicalize: fix C89 compilation
1291         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
1292         declarations so C89 is supported.  Also remove the comment
1293         referencing memorty allocation as the suggested feature could
1294         not be implemented as suggested.
1295         Reported by Michael Goffioul.
1296
1297 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1298
1299         group-member: omit unnecessary dependencies
1300         This is for Emacs, which has its own allocator and where we
1301         don't want to use xalloc.
1302         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
1303         since we no longer use xmalloc.  Do not include stdbool.h, since
1304         the changes below happen to remove the only use of bool.
1305         (GROUPBUF_SIZE): New constant.
1306         (struct group_info): Remove n_groups member.  Add groupbuf member.
1307         This lets us get the groups without using malloc, usually.
1308         (free_group_info, get_group_info): Adjust to this.
1309         (get_group_info): Return the number of groups found, or -1 on error.
1310         Use plain malloc not xmalloc, and treat its failure as if there
1311         are no groups, as the user already loses in case of error.
1312         (group_member): Simplify, based on changes to get_group_info.
1313         * modules/group-member (Depends-on): Remove dependencies on
1314         xalloc and stdbool.  Add dependency on xalloc-oversized.
1315
1316 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
1317
1318         gethrxtime: port to C++
1319         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
1320
1321 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1322
1323         ptsname: fix macro-name typo
1324         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
1325
1326 2012-10-03  Simon Josefsson  <simon@josefsson.org>
1327
1328         inttostr: Relax license.
1329         * modules/inttostr (License): Change from LGPL to LGPLv2+.
1330
1331 2012-10-03  Eric Blake  <eblake@redhat.com>
1332
1333         ptsname_r: support ptys returned by FreeBSD posix_openpt
1334         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
1335         lives in /dev/pts/.
1336
1337 2012-10-02  Eric Blake  <eblake@redhat.com>
1338
1339         pselect: reject invalid file descriptors
1340         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
1341         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
1342         * modules/pselect (Depends-on): Add dup2.
1343         * doc/posix-functions/pselect.texi (pselect): Document this.
1344
1345         select: reject invalid file descriptors
1346         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
1347         * lib/select.c (rpl_select) [!win32]: Work around it.
1348         * modules/select (Depends-on): Add dup2.
1349         * doc/posix-functions/select.texi (select): Document this.
1350
1351         select: enhance test
1352         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
1353         New functions.
1354         (test_function): Enhance test.
1355         (do_select_bad_fd): Avoid any stale errno values.
1356
1357         ptsname: reject invalid file descriptors
1358         http://www.austingroupbugs.net/view.php?id=503
1359         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
1360         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
1361         * modules/stdlib (Makefile.am): Replace witness.
1362         * lib/stdlib.in.h (ptsname): Allow for replacement.
1363         * modules/ptsname (configure.ac): Trigger replacement.
1364         * doc/posix-functions/ptsname.texi (ptsname): Document this.
1365
1366 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
1367
1368         hash-pjw-bare: new module
1369         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
1370         * lib/hash-pjw-bare.h: Likewise.
1371         * modules/hash-pjw-bare: New file.
1372         * MODULES.html.sh (Misc): Add it.
1373
1374 2012-10-02  Eric Blake  <eblake@redhat.com>
1375
1376         manywarnings: cater to more gcc infelicities
1377         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
1378         -Wuninitialized without -O.
1379
1380 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
1381
1382         select, poll tests: Make setsockopt invocation effective.
1383         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
1384         the bind() call.
1385         * tests/test-select.h (open_server_socket): Likewise.
1386
1387 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
1388
1389         sockets, sys_stat: restore AC_C_INLINE
1390         This undoes the 2012-09-22 patch.
1391         * m4/sockets.m4 (gl_SOCKETS):
1392         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1393         Restore AC_C_INLINE, since MSVC requires __inline or _inline
1394         and does not support plain 'inline'.  Reported by Bruno Haible in
1395         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
1396
1397 2012-09-30  Bruno Haible  <bruno@clisp.org>
1398
1399         localeconv tests: Avoid test failure on OpenIndiana.
1400         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
1401         skip the 'grouping' and 'mon_grouping' tests.
1402         Reported by Jim Meyering.
1403
1404 2012-09-30  Bruno Haible  <bruno@clisp.org>
1405
1406         havelib: Follow libtool developments.
1407         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
1408         Suggested by Simon Josefsson.
1409
1410 2012-09-29  Jim Meyering  <meyering@redhat.com>
1411
1412         fstatat.c: fix a compile-impeding typo
1413         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
1414         Introduced in commit v0.0-7636-gd202279.
1415         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
1416
1417 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
1418
1419         extern-inline: provide a -Wundef safe config.h
1420         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
1421         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
1422         to produce a -Wundef warning free config.h.
1423
1424 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1425
1426         hash-pjw: relax license to LGPLv2+
1427         * modules/hash-pjw (License): Relax, with consent of author.
1428
1429 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1430
1431         maint.mk: fix strict vs. lazy variable issues with RELEASE
1432         * top/maint.mk (_equal): New function.
1433         (member_check): Strip the result to avoid spurious spaces.
1434         (url_dir_list): Do not use ifeq, which is strict, as it will
1435         require RELEASE_TYPE to be defined.
1436         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
1437         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
1438         (announcement_Cc_alpha,announcement_mail_headers_alpha)
1439         (announcement_Cc_beta,announcement_mail_headers_beta)
1440         (announcement_Cc_stable,announcement_mail_headers_stable): these.
1441         (release): Do not depend on $(release-type), as it forces its
1442         evaluation.  Bounce to it.
1443
1444 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1445
1446         maint.mk: formatting changes
1447         * top/maint.mk: Indent bodies of if's.
1448
1449 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
1450
1451         maint.mk: factor the validation of RELEASE_TYPE
1452         With help from Jim Meyering.
1453         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
1454         * top/maint.mk (_empty, _sp): Move their definition earlier.
1455         (member-check, release-type): New.
1456         Use the latter instead of $(RELEASE_TYPE).
1457         Remove now useless local checks.
1458
1459 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1460
1461         maint.mk: provide "make upload" to ease uploading
1462         See
1463         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
1464         Do not depend simply on the current $(VERSION), as there may have been
1465         new commits since the tarball generation.  Rather, rely on $(RELEASE),
1466         as "make release-commit" already does.
1467
1468         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
1469         "make TYPE".
1470
1471         * top/maint.mk (upload_command, upload, release): New.
1472         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
1473         (VERSION): first word of $(RELEASE) is always right.
1474         (emit_upload_commands): Adjust.
1475         * top/README-release: Update.
1476
1477 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1478
1479         maint.mk: silent rules
1480         With help from Stefano Lattarini.
1481         * top/maint.mk (writable-files): Use $(AM_V_GEN).
1482         (announcement): Use $(AM_V_at).
1483
1484 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1485
1486         localename: port gl_locale_name_thread_unsafe to FreeBSD
1487         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
1488         and use the simpler FreeBSD implementation on Mac OS X as well.
1489         Original idea suggested by Ed Maste in
1490         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
1491
1492 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1493
1494         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
1495         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
1496         * lib/mbuiter.c, lib/xsize.c: New files.
1497         * lib/binary-io.h (BINARY_IO_INLINE):
1498         * lib/eealloc.h (EEALLOC_INLINE):
1499         * lib/mbfile.h (MBFILE_INLINE):
1500         * lib/mbiter.h (MBITER_INLINE):
1501         * lib/mbuiter.h (MBUITER_INLINE):
1502         * lib/xsize.h (XSIZE_INLINE):
1503         New macros.
1504         Replace all uses of 'static inline' with them.
1505         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1506         * m4/eealloc.m4 (gl_EEALLOC):
1507         * m4/mbfile.m4 (gl_MBFILE):
1508         * m4/mbiter.m4 (gl_MBITER):
1509         * m4/xsize.m4 (gl_XSIZE):
1510         Do not require AC_C_INLINE.
1511         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
1512         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
1513         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
1514         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
1515         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
1516         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
1517         * modules/binary-io, modules/eealloc, modules/mbfile:
1518         * modules/mbiter, modules/mbuiter:
1519         (Depends-on): Add extern-inline.
1520
1521         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
1522         * lib/pipe-filter-aux.c: New file.
1523         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
1524         Replace all uses of 'static inline' with it.
1525         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1526         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
1527         (filter_retcode): No real need for inline here.
1528         * modules/pipe-filter-gi, modules/pipe-filter-ii:
1529         (Files): Add lib/pipe-filter-aux.c.
1530         (Depends-on): Add extern-inline.
1531         (configure.ac): Do not require AC_C_INLINE.
1532         (lib_SOURCES): Add pipe-filter-aux.c.
1533
1534         fdutimensat: omit unnecessary AC_C_INLINE
1535         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
1536
1537         fchmodat, fchownat, fstatat: use extern-inline
1538         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
1539         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
1540         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
1541         New macros.
1542         * lib/openat.h:
1543         Replace all uses of 'static inline' with them.
1544         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1545         * modules/fchmodat, modules/fchownat, modules/fstatat:
1546         * modules/openat-h:
1547         (Depends-on):
1548         Add extern-inline.
1549         (configure.ac): Remove AC_C_INLINE.
1550
1551         acl, mbchar, priv-set: use extern-inline
1552         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
1553         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
1554         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
1555         New macros.
1556         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
1557         Replace all uses of 'static inline' with it.
1558         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1559         * m4/acl.m4 (gl_FUNC_ACL):
1560         * m4/mbchar.m4 (gl_MBCHAR):
1561         * m4/priv-set.m4 (gl_PRIV_SET):
1562         Remove AC_C_INLINE, since 'inline' is no longer used directly.
1563         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
1564         Add extern-inline.
1565
1566         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
1567         * m4/sockets.m4 (gl_SOCKETS):
1568         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1569         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
1570         environments where it's already guaranteed to work, so we needn't
1571         check for it at 'configure'-time.
1572
1573         tls-tests: omit unnecessary 'inline'
1574         * tests/test-tls.c (perhaps_yield): No longer inline.
1575         Simplicity and portability trump efficiency in test cases.
1576
1577         utimens-tests: avoid unnecessary 'inline'
1578         * modules/fdutimensat-tests (configure.ac):
1579         * modules/futimens-tests (configure.ac):
1580         * modules/utimens-tests (configure.ac):
1581         * modules/utimensat-tests (configure.ac):
1582         Remove AC_C_INLINE.
1583         * tests/test-utimens-common.h (ctime_compare):
1584         No longer inline.  Simplicity and portability trump efficiency here.
1585
1586         misc: don't limit commentary to inline functions
1587         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
1588         * lib/xalloc-oversized.h, lib/xsize.h:
1589         Contrast macros to functions in general, not just to inline functions,
1590         when the commentary does not apply only to inline functions.
1591
1592 2012-09-20  Jim Meyering  <meyering@redhat.com>
1593
1594         non-recursive-gnulib-prefix-hack: new module
1595         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
1596         the file that originated in Bison.
1597         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
1598         largely copied from a snippet that resided in bison's configure.ac.
1599         * modules/non-recursive-gnulib-prefix-hack: New file.
1600         * MODULES.html.sh (Support for maintaining and releasing projects):
1601         Add it.
1602
1603 2012-09-18  Jim Meyering  <meyering@redhat.com>
1604
1605         maint.mk: generalize _gl_tight_scope for non-recursive make
1606         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
1607         that *.h would describe additional .h files in the directory
1608         specified by $(_gl_TS_dir).  I.e., add this...
1609         (_gl_TS_other_headers): New variable.
1610
1611         maint.mk: exempt trailing blanks found in "binary" files
1612         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
1613         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
1614         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1615
1616 2012-09-17  Jim Meyering  <meyering@redhat.com>
1617
1618         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
1619         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
1620         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
1621         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1622
1623 2012-09-17  Jim Meyering  <meyering@redhat.com>
1624
1625         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
1626         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
1627         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
1628         It is not in the same category as "exit (0)" or "exit (1)", and
1629         besides, I know of no symbolic name for that 77.  Reported by
1630         Richard W.M. Jones in
1631         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1632
1633 2012-09-17  Jim Meyering  <meyering@redhat.com>
1634
1635         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
1636         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
1637         all uses of #define, not just those that start in column 1.
1638         Richard W.M. Jones reported a false positive in
1639         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1640
1641 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1642
1643         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
1644         * lib/localcharset.c (locale_charset) [DARWIN7]:
1645         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
1646         as these two values are incompatible.  Problem reported by Max Horn.
1647         For more discussion, please see
1648         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
1649
1650         doc: document sticky-EOF issue
1651         * doc/posix-functions/fgetc.texi (fgetc):
1652         * doc/posix-functions/fgets.texi (fgets):
1653         * doc/posix-functions/fread.texi (fread):
1654         * doc/posix-functions/fscanf.texi (fscanf):
1655         * doc/posix-functions/getc.texi (getc):
1656         * doc/posix-functions/getchar.texi (getchar):
1657         * doc/posix-functions/scanf.texi (scanf):
1658         Mention that glibc and default Solaris do not conform to
1659         C99 and POSIX-2001 or later, with respect to how getchar
1660         etc. behave when feof reports nonzero.
1661
1662 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1663
1664         poll: fix poll(0, NULL, msec)
1665         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
1666         but nfd is 0.  In that case poll should behave like select.
1667
1668 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1669             Paolo Bonzini <bonzini@gnu.org>
1670
1671         poll: fix for systems that can't recv() on a non-socket
1672         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
1673         is readable.  In this case POLLHUP will not be supported.
1674         * doc/posix-functions/poll.texi: Document this.
1675
1676 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
1677
1678         poll/select: document portability problems not fixed by Gnulib.
1679         * doc/posix-functions/poll.texi: poll does not work well on
1680         pipes under Windows.  It has the same limitations as select on
1681         BeOS.
1682         * doc/posix-functions/select.texi: select does not work well
1683         on pipes under Windows.
1684
1685 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1686
1687         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
1688         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
1689         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
1690         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
1691
1692 2012-09-06  Eric Blake  <eblake@redhat.com>
1693
1694         net_if: give more details about the bug being fixed
1695         * doc/posix-headers/net_if.texi: Add clarification.
1696
1697 2012-09-05  Eric Blake  <eblake@redhat.com>
1698
1699         net_if: new module
1700         * modules/net_if: New module, borrowing ideas from netinet_in.
1701         * m4/net_if_h.m4: New file.
1702         * lib/net_if.in.h: Likewise.
1703         * doc/posix-headers/net_if.texi (net/if.h): Document it.
1704         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1705         * tests/test-net_if.c: Make function checks conditional.
1706         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
1707
1708 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
1709
1710         readutmp: fix non-portable UT_PID use
1711         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
1712         Use `UT_PID (u) > 0' as absolute condition.
1713
1714 2012-09-04  Jim Meyering  <meyering@redhat.com>
1715
1716         fts: reduce two or more trailing spaces to just one, usually
1717         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
1718         or more slashes, trim all but the final one.  But if a name consists
1719         solely of two slashes, don't modify it.  If it consists solely of
1720         three or more slashes, strip all but one.
1721
1722         This is part of the solution to a minor problem with rm:
1723         it would print a bogus ELOOP diagnostic when failing to remove
1724         the slash-decorated name of a symlink-to-directory:
1725
1726             $ mkdir d && ln -s d s && env rm -r s/
1727             rm: cannot remove 's': Too many levels of symbolic links
1728
1729         With the change below and a trivial don't-trim-trailing-slashes
1730         adjustment to remove.c, it does this:
1731
1732             $ env rm -r s/
1733             rm: cannot remove 's/': Not a directory
1734
1735         Improved by: Eric Blake
1736
1737         fts: when there is no risk of overlap, use memcpy, not memmove
1738         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
1739
1740 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
1741
1742         stdbool: be more compatible with mixed C/C++ compiles
1743         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
1744         Define to bool, true, false, respectively, as GCC's builtin
1745         stdbool.h does.  Problem reported by Michael Goffioul in
1746         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
1747
1748 2012-08-28  Jim Meyering  <meyering@redhat.com>
1749
1750         revert last change: it was not needed
1751         * tests/test-vc-list-files-git.sh: There's already a test for
1752         a working git, just below.
1753
1754 2012-08-28  Jim Meyering  <meyering@redhat.com>
1755
1756         tests: test-vc-list-files-git.sh: skip if git is not available
1757         * tests/test-vc-list-files-git.sh: Skip this test when git is
1758         not available.
1759
1760 2012-08-26  Bruno Haible  <bruno@clisp.org>
1761
1762         gnulib-tool: Remove no-op option --no-changelog.
1763         * gnulib-tool (func_usage): Don't mention --no-changelog.
1764         (do_changelog): Remove variable.
1765         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1766
1767 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1768
1769         doc: remove fdl-1.2.texi
1770         It is no longer used or maintained, and its use of @acronym
1771         is problematic.  See the thread containing
1772         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
1773         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
1774         * doc/old-licenses/fdl-1.2.texi: Remove.
1775
1776         execinfo: port to FreeBSD
1777         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
1778         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
1779         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
1780         * modules/execinfo (Link): Add $(LIB_EXECINFO).
1781
1782 2012-08-23  Jim Meyering  <meyering@redhat.com>
1783
1784         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
1785         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
1786         to placate gcc's -Wold-style-declaration.
1787
1788 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1789
1790         doc: do not use @acronym
1791         * doc/inet_ntoa.texi (inet_ntoa):
1792         * doc/parse-datetime.texi (Seconds since the Epoch)
1793         (Specifying time zone rules):
1794         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
1795         Don't use @acronym.  Problem reported by John Darlington in
1796         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
1797
1798 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1799
1800         stdnoreturn: port to newer GCCs
1801         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
1802         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
1803         Problem reported by Jim Meyering in
1804         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
1805         Also, rename the 'test' function to a void a clash with the
1806         already-supplied 'main' function; this fixes a bug that incorrectly
1807         rejected GCC 4.7.1's <stdnoreturn.h>.
1808         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
1809         Document GCC problem.
1810
1811 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
1812
1813         pipe-filter: fix comment typo
1814         * lib/pipe-filter.h: Mention correct function.
1815
1816 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
1817
1818         execinfo: new module
1819         This is for Emacs.  Currently, it provides a no-effect stub
1820         on all platforms where it does not already work.
1821         It already works on glibc-based systems, and on Solaris 11.
1822         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
1823         New files.
1824         * doc/glibc-headers/execinfo.texi (execinfo.h):
1825         * MODULES.html.sh (Misc): Document it.
1826
1827 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1828
1829         extern-inline: support old GCC 'inline'
1830         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
1831         if available.  This applies to GCC versions 2.7 through 4.2, or
1832         when newer GCC is using -fgnu89-inline.  The goal is to address
1833         some of the performance issues mentioned by Bruno Haible in
1834         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
1835
1836 2012-08-20  Eric Blake  <eblake@redhat.com>
1837
1838         maint.mk: avoid redundant file name in message
1839         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1840         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
1841         (sc_makefile_path_separator_check): Remove bogus $(ME).
1842
1843 2012-08-20  Mike Frysinger <vapier@gentoo.org>
1844
1845         timer-time: fix link order when static linking on glibc
1846         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1847         _after_ -lrt so that it's significant.
1848
1849 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
1850
1851         timespec: omit unnecessary AC_C_INLINE
1852         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
1853
1854         stat-time: omit unnecessary AC_C_INLINE
1855         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
1856         Do not require AC_C_INLINE.
1857
1858         ignore-value: omit unnecessary AC_C_INLINE
1859         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
1860
1861         sys_select: avoid 'static inline'
1862         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
1863
1864         mktime: avoid 'static inline'
1865         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
1866         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
1867
1868 2012-08-19  Bruno Haible  <bruno@clisp.org>
1869
1870         gnulib-tool: Improve coding style.
1871         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
1872         func_emit_lib_Makefile_am.
1873         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1874
1875 2012-08-19  Bruno Haible  <bruno@clisp.org>
1876
1877         gnulib-tool: Fix indentation.
1878         * gnulib-tool (func_import): Fix indentation.
1879
1880 2012-08-19  Bruno Haible  <bruno@clisp.org>
1881
1882         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
1883         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
1884         on the list of removed files.
1885
1886 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
1887
1888         test-parse-datetime: avoid glibc leap-second glitch
1889         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
1890         with the 2012 rules.  Problem reported by Bruce Dubbs in
1891         <http://bugs.gnu.org/12206>.
1892
1893 2012-08-14  Bruno Haible  <bruno@clisp.org>
1894
1895         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
1896         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
1897         from argument.
1898         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1899
1900 2012-08-14  Eric Blake  <eblake@redhat.com>
1901
1902         ldexp: relax license
1903         * modules/ldexp (License): Trivial relax, since the module only
1904         provides a permissively licensed m4 file.
1905
1906 2012-08-13  Bruno Haible  <bruno@clisp.org>
1907
1908         gnulib-tool: Fix persistence of --witness-c-macro option.
1909         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
1910         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1911
1912 2012-08-11  Eric Blake  <eblake@redhat.com>
1913
1914         count-leading-zeros: use a lookup table on non-gcc compilers
1915         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
1916         alternate implementation, suggested by Jim Meyering.
1917
1918 2012-08-10  Eric Blake  <eblake@redhat.com>
1919
1920         count-leading-zeros: new module
1921         * modules/count-leading-zeros: New module.
1922         * m4/count-leading-zeros.m4: New file.
1923         * lib/count-leading-zeros.h: Likewise.
1924         * modules/count-leading-zeros-tests: New test.
1925         * tests/test-count-leading-zeros.c: New file.
1926         * MODULES.html.sh (Integer arithmetic functions): Document it.
1927
1928 2012-08-07  Simon Josefsson  <simon@josefsson.org>
1929             Jim Meyering  <meyering@redhat.com>
1930
1931         maintainer-makefile: Fix syntax error with dash.
1932         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
1933         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
1934
1935 2012-08-05  Jim Meyering  <meyering@redhat.com>
1936
1937         extern-inline: also ignore -Wmissing-declarations
1938         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
1939         required with gcc-4.8.0-to-be.
1940
1941         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
1942         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
1943         for /error ?([^,]*)/.  This avoids false-positives for strings like
1944         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
1945
1946 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
1947
1948         gnumakefile: better interaction with Automake-NG
1949         * modules/gnumakefile [Makefile.am]: The makefiles generated by
1950         Automake-NG always contain a definition of VPATH, even in non-VPATH
1951         builds (its value being simply '.' in that case).  So, in the
1952         'clean-GNUmakefile' rule, to determine whether running under a
1953         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
1954         '$(VPATH)' expands to the empty string.
1955
1956 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
1957
1958         base64: Use extern C scope in header file, for C++.
1959         * lib/base64.h: Add C++ namespace protection.
1960
1961 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1962
1963         stat-time, timespec, u64: support naive out-of-dir builds
1964         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
1965         Use '#include "foo.h"', not '#include <foo.h>', when including
1966         one's own interface.  This works better when configuring with
1967         out-of-directory builds, since packages need not add an
1968         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
1969
1970 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1971
1972         utimens: use extern-inline
1973         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
1974         * lib/utimens.h: Add copyright notice, since this is now large enough
1975         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1976         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
1977         * modules/utimens (Depends-on): Add extern-inline.
1978
1979         u64: use extern-inline
1980         * lib/u64.c: New file.
1981         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1982         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
1983         * modules/u64 (Files): Add lib/u64.c.
1984         (Depends-on): Add extern-inline.
1985         (configure.ac): No need to require AC_C_INLINE, since extern-inline
1986         does that now.
1987         (lib_SOURCES): Add u64.c.
1988
1989         timespec: use extern-inline
1990         * lib/timespec.c: New file.
1991         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1992         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
1993         * modules/timespec (Files): Add lib/timespec.c.
1994         (Depends-on): Add extern-inline.
1995         (lib_SOURCES): Add timespec.c.
1996
1997         stat-time: use extern-inline
1998         * lib/stat-time.c: New file.
1999         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2000         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
2001         * modules/stat-time (Files): Add lib/stat-time.c.
2002         (Depends-on): Add extern-inline.
2003         (lib_SOURCES): Add stat-time.c.
2004
2005         extern-inline: new module
2006         * modules/extern-inline, m4/extern-inline.m4: New files.
2007         This is for better support of 'extern inline' a la ISO C99,
2008         with a portable alternative on compilers that do not support
2009         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
2010         of the Emacs executable, when compiled with debugging disabled,
2011         which is a typical way that Emacs is built while developing.
2012
2013 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
2014
2015         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
2016         * build-aux/do-release-commit-and-tag: Move variable definitions
2017         together.
2018         ($branch): Instead of defaulting to "master", default to the current
2019         branch (as gnu-web-doc-update does).
2020         (help): Display the current values of the option arguments.
2021         * top/maint.mk (release-commit): New.
2022         * top/README-release: Simplify the corresponding step.
2023
2024 2012-07-30  Eric Blake  <eblake@redhat.com>
2025
2026         passfd: fix comment on recvfd
2027         * lib/passfd.c (recvfd): Fix comment.
2028         Reported by Jann Horn <jannhorn@googlemail.com>.
2029
2030 2012-07-30  Jim Meyering  <meyering@redhat.com>
2031
2032         maint.mk: avoid a sub-shell
2033         * top/maint.mk (release-prep): Remove unneeded sub-shell.
2034
2035 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2036
2037         maint.mk: use silent-rules support from Automake
2038         * top/maint.mk (news-check, vc-diff-check, announcement)
2039         (no-submodule-changes, alpha beta stable, release-prep)
2040         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
2041
2042 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2043
2044         maint.mk: provide a web-manual-update target
2045         * top/maint.mk: here.
2046         * top/README-release: Use it to simplify the web manual update step.
2047
2048 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2049
2050         README-release: shorten the circuit to post a news
2051         * top/README-release: Point directly to the news submission form.
2052
2053 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2054
2055         gnu-web-doc-update: fix --help
2056         * build-aux/gnu-web-doc-update: The information "top level" was written
2057         twice.
2058
2059 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2060
2061         maint.mk: absolute VPATH issue
2062         * top/maint.mk (release-prep): Help Git find .git/.
2063         From Jim Meyering.
2064
2065 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2066
2067         gitlog-to-changelog: fix previous change
2068         * build-aux/gitlog-to-changelog: Fix condition.
2069         Add missing ";".
2070
2071 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2072
2073         gitlog-to-changelog: don't expect .git to be in $srcdir
2074         Reported by Bruno Haible.
2075         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
2076         * build-aux/gitlog-to-changelog (&git_dir_option): New.
2077         Use it.
2078
2079 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2080
2081         maint.mk: absolute VPATH build fix
2082         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
2083         $(srcdir) is not a parent of $(builddir).
2084
2085 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
2086
2087         clean-temp: Fix memory leak.
2088         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
2089         'files' members of tmpdir.
2090
2091 2012-07-27  Jim Meyering  <meyering@redhat.com>
2092
2093         maint.mk: new rule: refresh-gnulib-patches
2094         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
2095         Use this rule to refresh them.
2096         * top/maint.mk (refresh-gnulib-patches): New rule.
2097
2098 2012-07-24  Bruno Haible  <bruno@clisp.org>
2099
2100         gnulib-tool: Fix handling of inctests variable.
2101         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
2102         Reported by Nick Bowler <nbowler@elliptictech.com>.
2103
2104 2012-07-22  Bruno Haible  <bruno@clisp.org>
2105
2106         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
2107         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
2108         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2109         Remove exemption for getpass.h.
2110         Suggested by Eric Blake.
2111
2112 2012-07-20  Eric Blake  <eblake@redhat.com>
2113
2114         verify: document conflict with -Wnested-externs
2115         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
2116
2117         maint.mk: forbid exit(-1)
2118         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
2119
2120 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
2121
2122         fsusage: port back to Solaris
2123         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
2124         error (fsd not declared) on Solaris 10.  Reported privately by
2125         Andrew Borodin.
2126
2127 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
2128
2129         gnu-web-doc-update: fix error messages
2130         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
2131
2132         gnu-web-doc-update: check the requirements.
2133         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
2134         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
2135         * build-aux/bootstrap (find_tool): Comment change.
2136
2137 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
2138
2139         maint.mk: minor simplication.
2140         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
2141         for default values.
2142
2143 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
2144
2145         gitlog-to-changelog: VPATH build issues
2146         If builddir is not a subdirectory of srcdir, running git from it will
2147         fail.
2148         * build-aux/gitlog-to-changelog (--srcdir): New option.
2149
2150 2012-07-15  Bruno Haible  <bruno@clisp.org>
2151
2152         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
2153         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
2154         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
2155         Remove exemption for fpending.h.
2156         Suggested by Eric Blake.
2157
2158 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2159
2160         pthread_sigmask: fix bug on FreeBSD 9
2161         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
2162         Include string.h.
2163         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
2164         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
2165         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
2166         but pthread_sigmask (1729, NULL, NULL) returns zero.
2167         See <http://bugs.gnu.org/11884>.
2168         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
2169         by inspecting whether the main call changed the old mask.
2170
2171 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
2172
2173         README-release: make it more legible
2174         * top/README-release: Improve typography slightly.
2175
2176 2012-07-15  Jim Meyering  <meyering@redhat.com>
2177
2178         maint: require that each sc_... command start with "@"
2179         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
2180         "make sc_maint" helps us avoid this nit.
2181
2182 2012-07-15  Jim Meyering  <meyering@redhat.com>
2183
2184         maint.mk: add leading "@" to quiet new "make syntax-check" rule
2185         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
2186
2187 2012-07-13  Eric Blake  <eblake@redhat.com>
2188
2189         maint.mk: new syntax check for HAVE_DECL checks
2190         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
2191         * cfg.mk
2192         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2193         Exempt some false positives.
2194         Based on a report by Karel Zak.
2195
2196         argp: make HAVE_DECL usage consistent
2197         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
2198         macros, not whether they are defined.
2199         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
2200         convention with other declaration checks.
2201         Reported by Karel Zak, with suggestions from Paul Eggert.
2202
2203         stat-time: relax license to LGPLv2+
2204         * modules/stat-time (License): Relax, with consent of all authors.
2205
2206         strndup: fix m4 usage error
2207         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
2208         defined, to either 0 or 1.
2209         Reported by Karel Zak.
2210
2211 2012-07-11  Jim Meyering  <meyering@redhat.com>
2212
2213         maint: enable the sc_avoid_if_before_free syntax-check rule
2214         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
2215         (if_before_free_offenders_): Define.
2216         (if_before_free_basename_re_): Define.
2217         Exempt current files with useless if-before-free.
2218
2219 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
2220
2221         gettext: do not assume '#define ... defined ...' behavior
2222         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
2223         Do not use '#define FOO ... defined BAR ...', as the C standard says
2224         it's not portable to expect that this works after macro expansion.
2225         Problem reported for gzip by Steven M. Schweda in
2226         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
2227
2228 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
2229
2230         getloadavg: clean out old Emacs and Autoconf cruft
2231         See Glenn Morris in <http://bugs.gnu.org/11905>.
2232         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
2233         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
2234         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
2235         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
2236
2237 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
2238
2239         bootstrap: let warn be like tests/init.sh's warn_
2240         Reported by Jim Meyering.
2241         * build-aux/bootstrap (warn): Remove, replaced by...
2242         (warnf_, warn_): these.
2243         Adjust callers.
2244         Shorten messages that no longer fit in 80 columns.
2245
2246 2012-07-09  Bruno Haible  <bruno@clisp.org>
2247
2248         getopt: Simplify after Emacs changed.
2249         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
2250         (gl_GETOPT_IFELSE): Remove macro.
2251
2252 2012-07-09  Jim Meyering  <meyering@redhat.com>
2253
2254         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
2255         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
2256
2257         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
2258         Bugs in both of those conspired to make the
2259         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
2260         _sc_search_regexp's handling of non-empty $in_files would filter
2261         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
2262         choice of in_files value meant there would be no match in most
2263         projects, due to the presence of two or more Makefile.in files.
2264         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
2265         Fix a bug in how a non-empty $$in_files was processed:
2266         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
2267         in spite of the name, it's a regexp, not a list of file names.
2268
2269 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2270
2271         getloadavg, getopt: fix commentary re configure.in
2272         Autoconf is deprecating the name 'configure.in', so change it to
2273         to the new name 'configure.ac' in a couple of places.
2274         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
2275         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
2276         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
2277         Emacs has renamed it to configure.ac, and it no longer refers
2278         to these macros anyway.
2279
2280         timespec: mark functions with const attributes
2281         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
2282         Mark with _GL_ATTRIBUTE_CONST.
2283
2284 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2285
2286         canonicalize[-lgpl]: handle "guessing" values when cross-building
2287         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
2288         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
2289         matches "*yes" instead of just "yes".  Regression introduced in commit
2290         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
2291
2292 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2293             Bruno Haible  <bruno@clisp.org>
2294
2295         canonicalize: make the right guess when cross-compiling to GNU
2296         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
2297         determine whether cross-compiling to glibc systems, so as to
2298         include GNU/Hurd.
2299
2300 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2301
2302         timespec-sub: avoid duplicate include
2303         * lib/timespec-sub.c: Do not include <config.h> twice.
2304         Reported by Juanma Barranquero.
2305
2306 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
2307
2308         bootstrap: use a more consistent error reporting scheme
2309         * build-aux/bootstrap (warn, die): New.
2310         Use them.
2311
2312 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2313
2314         sys_time: allow too-wide tv_sec
2315         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
2316         timeval even if tv_sec is wider than time_t.  This allows
2317         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
2318         as without this patch gnulib replaces struct timeval
2319         and OpenBSD futimes therefore has a type mismatch.
2320         * doc/posix-headers/sys_time.texi: Mention this.
2321
2322         pthread: check for both pthread_create and pthread_join
2323         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
2324         alter the check so that it tests for both pthread_create and
2325         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
2326         Suggested by Bruno Haible and Richard Yao in
2327         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
2328
2329         parse-datetime: doc tuneup
2330         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
2331         spacing issues.
2332
2333 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
2334
2335         do-release-commit-and-tag: fix the previous commit
2336         * build-aux/do-release-commit-and-tag: Actually the test was right,
2337         but the comment and the error message were misleading.
2338         Fix comment, and improve error message.
2339         Perform check first, so that NEWS is not modified uselessly.
2340
2341         do-release-commit-and-tag: fix typo
2342         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
2343         _not_ start with a stub.
2344
2345 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2346
2347         pthread: check for pthread_create, not pthread_join
2348         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
2349         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
2350         pthread_join in libc.  I hope this removes the need for all the
2351         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
2352         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
2353
2354 2012-07-04  Jim Meyering  <meyering@redhat.com>
2355
2356         parse-datetime: fix failure to diagnose invalid input
2357         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
2358         rather than diagnosing the invalid input.  Now it reports this:
2359         date: invalid date '\260'
2360         * lib/parse-datetime.y (to_uchar): Define.
2361         (yylex): Don't sign-extend "other" bytes.
2362         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
2363         Thanks to Bruno Haible for the patch to this file.
2364         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
2365         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
2366
2367 2012-07-03  Jim Meyering  <meyering@redhat.com>
2368
2369         bootstrap: do not require now-removed build-aux/missing
2370         Now that build-aux/missing is, er, missing, bootstrap would
2371         silently fail.
2372         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
2373         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
2374         no longer part of gnulib.
2375         Diagnose the failure.
2376
2377 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2378
2379         alloca: add support for HP NonStop TNS/E native
2380         * lib/alloca.in.h (alloca): Support the new host.
2381         From a suggestion by Joachim Schmitz in
2382         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
2383
2384 2012-07-02  Pádraig Brady  <P@draigBrady.com>
2385
2386         fsusage: remove code not needed on non GNU/Linux systems.
2387
2388         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2389         Don't include headers no longer needed in this case.
2390         * lib/fsusage.c [STAT_STATVFS &&
2391         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
2392         STAT_STATFS2_FRSIZE to exclude code not used in this case.
2393
2394 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2395
2396         fsusage: include files needed for glibc 2.6 fallback
2397         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2398         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
2399         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
2400         Problem reported by Ludovic Courtès in
2401         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
2402
2403         fsusage: avoid needless check on GNU/Linux
2404         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
2405         on GNU/Linux systems, since it can't possibly work.
2406
2407 2012-07-01  Bruno Haible  <bruno@clisp.org>
2408
2409         log: Fix an autoconf >= 2.64 warning.
2410         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
2411         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2412
2413 2012-06-28  Bruno Haible  <bruno@clisp.org>
2414
2415         log10f: Fix possible configuration problem.
2416         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
2417         $LOGF_LIBM.
2418         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2419
2420 2012-06-28  Bruno Haible  <bruno@clisp.org>
2421
2422         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
2423         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
2424         not gl_cv_func_unlink_works.
2425         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2426
2427 2012-06-27  Eric Blake  <eblake@redhat.com>
2428
2429         config: drop scripts that automake says are not independent
2430         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
2431         * build-aux/elisp-comp: Delete.
2432         * build-aux/missing: Likewise.
2433         * build-aux/ylwrap: Likewise.
2434         * modules/elisp-comp: Likewise.
2435         * MODULES.html.sh: Drop mention of elisp-comp.
2436         * NEWS: Mention this.
2437
2438 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
2439
2440         root-uid: new module
2441         This is for portability to Tandem's NonStop Kernel.
2442         * lib/root-uid.h, modules/root-uid: New files.
2443         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
2444         * lib/write-any-file.c, tests/test-sethostname2.c:
2445         Include "root-uid.h".
2446         * lib/euidaccess.c (euidaccess):
2447         * lib/pt_chown.c (main):
2448         * lib/unlinkdir.c (cannot_unlink_dir):
2449         * lib/write-any-file.c (can_write_any_file):
2450         * m4/mknod.m4 (gl_FUNC_MKNOD):
2451         * tests/test-sethostname2.c (geteuid, main):
2452         Don't assume ROOT_UID == 0.
2453         * modules/euidaccess (Depends-on):
2454         * modules/pt_chown (Depends-on):
2455         * modules/sethostname-tests (Depends-on):
2456         * modules/unlinkdir (Depends-on):
2457         * modules/write-any-file (Depends-on):
2458         Add root-uid.
2459
2460         regex: use locale-independent comparison for codeset name
2461         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
2462         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
2463         for codeset name.
2464         * lib/regex_internal.h: Do not include <strings.h>, since we
2465         no longer use strcasecmp.
2466         * modules/regex (Depends-on): Remove strcase.
2467
2468 2012-06-23  Bruno Haible  <bruno@clisp.org>
2469
2470         getopt-posix: No longer guarantee that option processing is resettable.
2471         * doc/posix-functions/getopt.texi: Drop description of problem with
2472         internal state. Fix info about mingw and msvc9.
2473         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
2474         option processing by getopt(). Run three test programs instead of one.
2475         Simplify cross-compilation guess.
2476         * NEWS: Mention the change.
2477         Reported by Rich Felker <dalias@aerifal.cx>.
2478
2479 2012-06-26  Bruno Haible  <bruno@clisp.org>
2480
2481         argp, regex: Ensure strcasecmp gets declared.
2482         * lib/argp-help.c: Include <strings.h>.
2483         * lib/regex_internal.h: Likewise.
2484         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
2485
2486 2012-06-24  Bruno Haible  <bruno@clisp.org>
2487
2488         ptsname_r: Make it consistent with ptsname on AIX.
2489         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
2490         implementation as for OSF/1.
2491         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
2492         a pty master.
2493
2494         ptsname_r: Make it consistent with ptsname on OSF/1.
2495         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2496         OSF/1.
2497
2498 2012-06-24  Bruno Haible  <bruno@clisp.org>
2499
2500         ttyname_r: Fix result on OSF/1, Solaris.
2501         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
2502
2503 2012-06-24  Bruno Haible  <bruno@clisp.org>
2504
2505         ptsname_r: Add support for Solaris.
2506         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2507         Solaris.
2508
2509         ptsname_r: Fix test failure on native Windows.
2510         * modules/ptsname_r (Depends-on): Add isatty.
2511
2512         ptsname_r: Fix test failures on IRIX, Solaris.
2513         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
2514         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
2515         accordingly.
2516         * lib/ptsname_r.c: Include <fcntl.h>.
2517         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
2518         set errno if fd is invalid.
2519         * tests/test-isatty.c (main): Update comments.
2520
2521 2012-06-24  Bruno Haible  <bruno@clisp.org>
2522
2523         ptsname test: Extend test.
2524         * tests/test-ptsname.c: Include <errno.h>.
2525         (main): Test behaviour with invalid file descriptor.
2526
2527 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2528
2529         time: fix obsolete comment
2530         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
2531         reference to HAVE_STRUCT_TIMESPEC in comment.
2532
2533 2012-06-23  Bruno Haible  <bruno@clisp.org>
2534
2535         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
2536         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
2537         does not handle abbreviated long options with equivalent
2538         disambiguations, set gl_replace_getopt to yes.
2539         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
2540
2541 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
2542
2543         time_r: fix typo that always overrode localtime_r decl
2544         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
2545         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
2546         not in a standard include.
2547
2548 2012-06-22  Bruno Haible  <bruno@clisp.org>
2549
2550         Write "Mac OS X" instead of "MacOS X".
2551         * README: Write "Mac OS X" instead of "MacOS X".
2552         * build-aux/bootstrap: Likewise.
2553         * build-aux/install-reloc: Likewise.
2554         * lib/acl-internal.h: Likewise.
2555         * lib/acl_entries.c: Likewise.
2556         * lib/argp-ba.c: Likewise.
2557         * lib/argp-pv.c: Likewise.
2558         * lib/config.charset: Likewise.
2559         * lib/copy-acl.c: Likewise.
2560         * lib/csharpexec.c: Likewise.
2561         * lib/euidaccess.c: Likewise.
2562         * lib/fbufmode.c: Likewise.
2563         * lib/fflush.c: Likewise.
2564         * lib/file-has-acl.c: Likewise.
2565         * lib/filemode.h: Likewise.
2566         * lib/fpurge.c: Likewise.
2567         * lib/freadable.c: Likewise.
2568         * lib/freadahead.c: Likewise.
2569         * lib/freading.c: Likewise.
2570         * lib/freadptr.c: Likewise.
2571         * lib/freadseek.c: Likewise.
2572         * lib/fseeko.c: Likewise.
2573         * lib/fseterr.c: Likewise.
2574         * lib/fsusage.c: Likewise.
2575         * lib/fwritable.c: Likewise.
2576         * lib/fwriting.c: Likewise.
2577         * lib/get-rusage-as.c: Likewise.
2578         * lib/get-rusage-data.c: Likewise.
2579         * lib/getdomainname.c: Likewise.
2580         * lib/idpriv-drop.c: Likewise.
2581         * lib/idpriv-droptemp.c: Likewise.
2582         * lib/localcharset.c: Likewise.
2583         * lib/locale.in.h: Likewise.
2584         * lib/localename.c: Likewise.
2585         * lib/mbsrtowcs-state.c: Likewise.
2586         * lib/nproc.c: Likewise.
2587         * lib/passfd.c: Likewise.
2588         * lib/posix_openpt.c: Likewise.
2589         * lib/printf-parse.c: Likewise.
2590         * lib/progreloc.c: Likewise.
2591         * lib/safe-read.h: Likewise.
2592         * lib/safe-write.h: Likewise.
2593         * lib/sched.in.h: Likewise.
2594         * lib/set-mode-acl.c: Likewise.
2595         * lib/signal.in.h: Likewise.
2596         * lib/stdint.in.h: Likewise.
2597         * lib/stdio-impl.h: Likewise.
2598         * lib/stdlib.in.h: Likewise.
2599         * lib/strtod.c: Likewise.
2600         * lib/sys_select.in.h: Likewise.
2601         * lib/tcgetsid.c: Likewise.
2602         * lib/unistd.in.h: Likewise.
2603         * lib/unlockpt.c: Likewise.
2604         * lib/vasnprintf.c: Likewise.
2605         * lib/vma-iter.c: Likewise.
2606         * lib/wcsrtombs-state.c: Likewise.
2607         * m4/acl.m4: Likewise.
2608         * m4/acosl.m4: Likewise.
2609         * m4/asinl.m4: Likewise.
2610         * m4/atanl.m4: Likewise.
2611         * m4/c-stack.m4: Likewise.
2612         * m4/cosl.m4: Likewise.
2613         * m4/expl.m4: Likewise.
2614         * m4/extensions.m4: Likewise.
2615         * m4/fdatasync.m4: Likewise.
2616         * m4/fmal.m4: Likewise.
2617         * m4/frexp.m4: Likewise.
2618         * m4/frexpf.m4: Likewise.
2619         * m4/frexpl.m4: Likewise.
2620         * m4/fsusage.m4: Likewise.
2621         * m4/getdomainname.m4: Likewise.
2622         * m4/getloadavg.m4: Likewise.
2623         * m4/getopt.m4: Likewise.
2624         * m4/gettext.m4: Likewise.
2625         * m4/gnulib-common.m4: Likewise.
2626         * m4/intdiv0.m4: Likewise.
2627         * m4/intlmacosx.m4: Likewise.
2628         * m4/largefile.m4: Likewise.
2629         * m4/ldexpl.m4: Likewise.
2630         * m4/link-follow.m4: Likewise.
2631         * m4/locale-ar.m4: Likewise.
2632         * m4/locale-fr.m4: Likewise.
2633         * m4/locale-ja.m4: Likewise.
2634         * m4/locale-tr.m4: Likewise.
2635         * m4/locale-zh.m4: Likewise.
2636         * m4/locale_h.m4: Likewise.
2637         * m4/lock.m4: Likewise.
2638         * m4/logl.m4: Likewise.
2639         * m4/mathfunc.m4: Likewise.
2640         * m4/minus-zero.m4: Likewise.
2641         * m4/mktime.m4: Likewise.
2642         * m4/mmap-anon.m4: Likewise.
2643         * m4/multiarch.m4: Likewise.
2644         * m4/nanosleep.m4: Likewise.
2645         * m4/nocrash.m4: Likewise.
2646         * m4/poll.m4: Likewise.
2647         * m4/printf-frexpl.m4: Likewise.
2648         * m4/printf.m4: Likewise.
2649         * m4/signbit.m4: Likewise.
2650         * m4/sinl.m4: Likewise.
2651         * m4/sqrtl.m4: Likewise.
2652         * m4/strerror_r.m4: Likewise.
2653         * m4/tanl.m4: Likewise.
2654         * m4/threadlib.m4: Likewise.
2655         * m4/ttyname_r.m4: Likewise.
2656         * m4/unlink.m4: Likewise.
2657         * m4/visibility.m4: Likewise.
2658         * m4/wcwidth.m4: Likewise.
2659         * tests/minus-zero.h: Likewise.
2660         * tests/test-alloca-opt.c: Likewise.
2661         * tests/test-copy-acl.sh: Likewise.
2662         * tests/test-copy-file.sh: Likewise.
2663         * tests/test-fdatasync.c: Likewise.
2664         * tests/test-file-has-acl.sh: Likewise.
2665         * tests/test-flock.c: Likewise.
2666         * tests/test-fsync.c: Likewise.
2667         * tests/test-localename.c: Likewise.
2668         * tests/test-malloca.c: Likewise.
2669         * tests/test-nonblocking-pipe.h: Likewise.
2670         * tests/test-nonblocking-socket.h: Likewise.
2671         * tests/test-openpty.c: Likewise.
2672         * tests/test-posix_openpt.c: Likewise.
2673         * tests/test-ptsname.c: Likewise.
2674         * tests/test-ptsname_r.c: Likewise.
2675         * tests/test-sameacls.c: Likewise.
2676         * tests/test-select.h: Likewise.
2677         * tests/test-set-mode-acl.sh: Likewise.
2678         * tests/test-snprintf-posix.h: Likewise.
2679         * tests/test-sprintf-posix.h: Likewise.
2680         * tests/test-strtod.c: Likewise.
2681         * tests/test-time.c: Likewise.
2682         * tests/test-vasnprintf-posix.c: Likewise.
2683         * tests/test-vasprintf-posix.c: Likewise.
2684         * doc/acl-resources.txt: Likewise.
2685         * doc/**/*.texi: Likewise.
2686         Reported by Max Horn <max@quendi.de>.
2687
2688 2012-06-22  Bruno Haible  <bruno@clisp.org>
2689
2690         grantpt: Relax requirement regarding invalid file descriptors.
2691         * lib/grantpt.c: Don't include <fcntl.h>.
2692         (grantpt): Don't verify the validity of the file descriptor.
2693         * modules/grantpt (Depends-on): Remove fcntl-h.
2694         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
2695         file descriptors.
2696         * doc/posix-functions/grantpt.texi: Document more platforms on which
2697         grantpt succeeds for invalid file descriptors.
2698         Reported by Rich Felker <dalias@aerifal.cx>.
2699
2700 2012-06-22  Bruno Haible  <bruno@clisp.org>
2701
2702         fbufmode test: Don't test unportable behaviour.
2703         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
2704         (main): Invoke it three times.
2705         Reported by Szabolcs Nagy <nsz@port70.net>
2706         and Rich Felker <dalias@aerifal.cx>.
2707
2708 2012-06-21  Bruno Haible  <bruno@clisp.org>
2709
2710         gnulib-tool: Refactor inctests variable.
2711         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
2712         (func_modules_transitive_closure,
2713         func_modules_transitive_closure_separately,
2714         func_import, func_create_testdir): Update.
2715
2716         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
2717         * gnulib-tool: Accept option --without-tests.
2718         (func_usage): Document --without-tests option. Rearrange.
2719         (inctests): Normalize according to the mode.
2720         * NEWS: Mention the change.
2721         Suggested by Simon Josefsson.
2722
2723 2012-06-21  Bruce Korb  <bkorb@gnu.org>
2724
2725         parse-duration test: Avoid spurious output.
2726         * tests/test-parse-duration.sh: Reindent with leading tabs.
2727
2728 2012-06-21  Jim Meyering  <meyering@redhat.com>
2729
2730         maint: disable the strncpy prohibition
2731         * cfg.mk: Do not prohibit strncpy here.
2732
2733 2012-06-21  Bruno Haible  <bruno@clisp.org>
2734
2735         nonblocking: Avoid compilation error on mingw64.
2736         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
2737         fscanf.
2738         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
2739         * modules/vfscanf (configure.ac): Likewise.
2740         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
2741         definition only if stdio.h has prepared it.
2742         Reported by Daniel P. Berrange <berrange@redhat.com>.
2743
2744 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
2745
2746         gnulib-tool: Use readlink if it is available.
2747         * gnulib-tool (func_readlink): Choose function more appropriately.
2748
2749 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2750
2751         posixtm-tests: port to buggy compiler
2752         Problem reported by Simon Josefsson in
2753         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
2754         * modules/posixtm-tests (Depends-on): Add stdint.
2755         * tests/test-posixtm.c (struct posixtm_test.t_expected):
2756         Now of type int_least64_t, not int64_t, both because that's
2757         what INT64_C returns and because int_least64_t works even
2758         on 72-bit hosts.
2759         (T): Use INT64_C on constants outside the traditional int range,
2760         to work around compiler bug noted by Simon.
2761
2762         mktime: fix integer overflow in 'configure'-time test
2763         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
2764         after integer overflow.  Problem reported by Rich Felker in
2765         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
2766         Also, don't look for further instances of a bug if we've already
2767         found one instance; this helps 'configure' run faster.
2768
2769 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
2770
2771         tmpfile, clean-temp: Fix invocation of GetVersionEx.
2772         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
2773         GetVersionEx correctly.
2774         * lib/clean-temp.c (supports_delete_on_close): Likewise.
2775
2776 2012-06-20  Bruno Haible  <bruno@clisp.org>
2777
2778         fdopen: Allow implementations that don't reject invalid fd arguments.
2779         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
2780         succeeds.
2781         Reported by Rich Felker <dalias@aerifal.cx>.
2782
2783 2012-06-20  Simon Josefsson  <simon@josefsson.org>
2784
2785         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
2786         bring in LIBINTL.
2787
2788 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2789
2790         init.sh: do not rely on autoupated PWD
2791         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
2792         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
2793         Although Nelson's bug was not necessarily fixed by this patch,
2794         it seems wise to make the change for safety.
2795         * tests/init.sh (path_prepend_): Do not rely on PWD updating
2796         automagically after 'cd'; this is not reliable on older shells.
2797         (setup_): Fail if we cannot cd to temporary directory.
2798
2799 2012-06-19  Bruno Haible  <bruno@clisp.org>
2800
2801         stat, fstat: Avoid warnings on mingw64.
2802         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
2803         redefining.
2804         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
2805         Reported by Daniel P. Berrange <berrange@redhat.com>.
2806
2807 2012-06-19  Bruno Haible  <bruno@clisp.org>
2808
2809         stdioext: Add support for musl libc.
2810
2811         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
2812         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
2813
2814         * m4/fseterr.m4: New file.
2815         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
2816         function exists.
2817         * modules/fseterr (Files): Add m4/fseterr.m4.
2818         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
2819         __fseterr does not exist.
2820         (Makefile.am): Remove fseterr.c from lib_SOURCES.
2821
2822         * lib/freadable.h: Update comment.
2823
2824         * lib/fwritable.h: Update comment.
2825
2826         * lib/freading.h: Update comment.
2827
2828         * lib/fwriting.h: Update comment.
2829
2830         * m4/freadahead.m4: New file.
2831         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
2832         that function exists.
2833         * modules/freadahead (Files): Add m4/freadahead.m4.
2834         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
2835         __freadahead does not exist.
2836         (Makefile.am): Remove freadahead.c from lib_SOURCES.
2837
2838         * m4/freadptr.m4: New file.
2839         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
2840         function exists.
2841         * modules/freadptr (Files): Add m4/freadptr.m4.
2842         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
2843         __freadptr does not exist.
2844         (Makefile.am): Remove freadptr.c from lib_SOURCES.
2845
2846         * m4/freadseek.m4: New file.
2847         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
2848         exists.
2849         * modules/freadseek (Files): Add m4/freadseek.m4.
2850         (configure.ac): Invoke gl_FUNC_FREADSEEK.
2851
2852         * lib/fpurge.c (fpurge): Update comment.
2853
2854         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
2855
2856 2012-06-19  Bruno Haible  <bruno@clisp.org>
2857
2858         *printf-posix: Put more info into config.log.
2859         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
2860         exit code into config.log.
2861
2862 2012-06-19  Bruno Haible  <bruno@clisp.org>
2863
2864         getopt-gnu: Fix exit code overflow in autoconf test.
2865         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
2866         to keep them below < 128.
2867
2868 2012-06-17  Jim Meyering  <meyering@redhat.com>
2869
2870         maint.mk: fix typo in code to derive GPG key at release time
2871         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
2872
2873 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2874
2875         regex: avoid warning when pointers are not long
2876         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
2877         and uintptr_t, not long, for portability to hosts where pointers and
2878         long have different sizes.  Issue noted by Daniel P. Berrange in
2879         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
2880         and fix suggested by Bruno Haible in
2881         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
2882
2883 2012-06-17  Bruno Haible  <bruno@clisp.org>
2884
2885         dummy: Relicense into the public domain.
2886         * modules/dummy (License): Set to "public domain".
2887         Suggested by Reuben Thomas.
2888
2889 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2890
2891         announce-gen: VPATH issues
2892         * build-aux/announce-gen (--srcdir): New option, used to trim the
2893         $srcdir part of the path from $builddir to NEWS.
2894         * top/maint.mk (announcement): Adjust.
2895
2896 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2897
2898         gnu-web-doc-update: VPATH builds
2899         * build-aux/gnu-web-doc-update (--builddir): New option.
2900         Revamp the handling of options.
2901         Prefer $(...) to `...`.
2902         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
2903         the template, and it is GNU mktemp specific.
2904         Prefer set -e to long series of &&.
2905         Restore the initial git branch, not "master".
2906         Properly initialize submodules (don't rely only on bootstrap).
2907         Do not reconfigure blindly, use config.status.
2908         * top/README-release: Update instructions for gnu-web-doc-update.
2909
2910 2012-06-11  Jim Meyering  <meyering@redhat.com>
2911
2912         maint.mk: revert most of the previous change re "all these"
2913         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
2914         For rationale, see the discussion at
2915         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
2916
2917 2012-06-10  Karl Berry  <karl@gnu.org>
2918
2919         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
2920
2921         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
2922
2923 2012-06-10  Bruce Korb  <bkorb@gnu.org>
2924
2925         parse-duration: Relicense under LGPLv2+.
2926         * modules/parse-duration (License): Change to LGPLv2+.
2927
2928 2012-06-10  Jim Meyering  <meyering@redhat.com>
2929
2930         maint.mk: prohibit common grammar error: "all these"
2931         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
2932         the list of prohibited word sequences.  It should be "all of these".
2933         * lib/tempname.c (__gen_tempname): Fix one of them.
2934
2935 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2936
2937         do-release-commit-and-tag: support VPATH builds
2938         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
2939         (noteworthy): Defined earlier to factor its value.
2940         (noteworthy_stub): New.
2941         Use it to factor.
2942         (help_version): Split into...
2943         (help, version): these.
2944         Adjust the option processing part.
2945         Support "--option=value" in addition to "--option value".
2946         (builddir): New.
2947         (--builddir): New option.
2948         * top/README-release: Document this.
2949         Reword slightly so that the reader cannot understand that he
2950         has to do these steps before calling do-release-commit-and-tag.
2951
2952 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2953
2954         readme-release: also require announce-gen and maintainer-makefile
2955         * modules/readme-release (Depends-on): here.
2956         * modules/announce-gen, modules/do-release-commit-and-tag,
2957         modules/gnu-web-doc-update, modules/maintainer-makefile
2958         (Description): Point to readme-release.
2959
2960 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2961
2962         maint.mk: fix VPATH issues.
2963         * top/maint.mk (news-check): GNU Make understand $< very well.
2964         (release-prep): NEWS is in $(srcdir).
2965
2966 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
2967
2968         readme-release: require the promoted modules.
2969         * modules/readme-release (Depends-on): Add
2970         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
2971         in this text.
2972
2973 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2974             Bruno Haible  <bruno@clisp.org>
2975
2976         error, strerror-override: Support mingw64 from Fedora 17.
2977         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
2978         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
2979         EINPROGRESS.
2980         * lib/strerror-override.h (strerror_override): Test it.
2981         * lib/strerror-override.c (strerror_override): Likewise.
2982         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
2983
2984 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2985             Bruno Haible  <bruno@clisp.org>
2986
2987         error, strerror-override: Support mingw64 from Fedora 17.
2988         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
2989         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
2990         * lib/strerror-override.h (strerror_override): Test it.
2991         * lib/strerror-override.c (strerror_override): Likewise.
2992
2993 2012-06-03  Bruno Haible  <bruno@clisp.org>
2994
2995         error, strerror-override: Support new errno values from POSIX:2008.
2996         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
2997         ENOTRECOVERABLE.
2998         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
2999         platforms.
3000         * lib/strerror-override.c (strerror_override): Conditionalize the
3001         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
3002         * lib/strerror-override.h (strerror_override): Declare also if
3003         GNULIB_defined_EOWNERDEAD is defined.
3004         * tests/test-errno.c (e130, e131): New variables.
3005         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
3006         ENOTRECOVERABLE.
3007         Reported by Paolo Bonzini.
3008
3009 2012-05-31  Jim Meyering  <meyering@redhat.com>
3010
3011         savewd: add missing dependency on sys_wait module
3012         * modules/savewd (Depends-on): Add sys_wait, needed at least
3013         for MSVC.  Report and suggested change by Michael Goffioul.
3014
3015 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
3016
3017         system-quote-tests: port to CentOS 5
3018         Problem reported by Tom G. Christensen in
3019         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
3020         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
3021
3022 2012-05-29  Jim Meyering  <meyering@redhat.com>
3023
3024         maint: fix typos in comments and ChangeLog
3025         Culprits identified and fixed mostly automatically using these commands:
3026         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
3027         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
3028         using http://github.com/lyda/misspell-check
3029         * ChangeLog: Fix typos.
3030         * doc/solaris-versions: Likewise.
3031         * lib/regexec.c (re_search_stub): Likewise.
3032         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3033
3034 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
3035
3036         manywarnings: remove duplicate -Wmultichar entry
3037         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
3038         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
3039         so keep the entry marked as documented.
3040
3041 2012-05-27  Karl Berry  <karl@gnu.org>
3042
3043         * config/srclist.txt (mktime.c): remove last libc sync,
3044         perhaps just temporarily.
3045
3046 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
3047
3048         regex: don't assume uint64_t or uint32_t
3049         * lib/regcomp.c (init_word_char): Don't assume that the types
3050         uint64_t and uint32_t exist.  The C standard doesn't guarantee
3051         them, and on some 32-bit compilers there is no uint64_t.
3052         Problem reported by Gianluigi Tiesi in
3053         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
3054
3055 2012-05-25  Jim Meyering  <meyering@redhat.com>
3056
3057         maint.mk: add strncpy-prohibiting syntax-check rule
3058         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
3059
3060 2012-05-24  Jim Meyering  <meyering@redhat.com>
3061
3062         maint.mk: compute $(gpg_key_ID) more portably
3063         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
3064         That use of sed is not portable to some fringe systems.
3065         Reported by Paul Eggert in
3066         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
3067
3068 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3069
3070         mktime: sync from glibc
3071         * config/srclist.txt: Uncomment mktime.c.
3072         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
3073         First, indent with tabs, since glibc uses tabs and doesn't want to
3074         change and we'd rather be identical to glibc.  Also, two small
3075         coding changes:
3076         (isdst_differ): Use &&, not &, as && is the usual style.
3077         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
3078         for clarity.
3079
3080 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3081
3082         announce-gen: du -h is more portable than du --human
3083         * build-aux/announce-gen (sizes): Invoke du with -h instead
3084         of --human.  Accept leading white space in its output.
3085
3086 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3087
3088         announce-gen: Improve diagnostics.
3089         * build-aux/announce-gen: When parsing command line options,
3090         prefer "announce-gen: option --release-type requires an argument"
3091         to "Option release-type requires an argument".
3092
3093 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3094
3095         maint.mk: gpg_key_ID: use sed more portably
3096         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
3097         the closing brace.
3098         (refresh-po): Fuse two sed invocations into one.
3099
3100 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
3101
3102         gitlog-to-changelog: support the log message format used in Bison.
3103         * build-aux/gitlog-to-changelog: Support --strip-tab and
3104         --strip-cherry-picked.
3105
3106 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3107
3108         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
3109         the rest of the current time slice to another thread in the current
3110         process. So if the thread that feeds the file decscriptor we're
3111         polling is not in the current process, we get busy-waiting.
3112         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
3113         Patch from Theodore Leblond.
3114         * lib/select.c: Split polling out of the loop that sets the output
3115         fd_sets.  Check for zero result and loop if the wait timeout is
3116         infinite.
3117
3118 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3119
3120         select: Fix build error on IRIX 6.5.
3121         * lib/select.c: Include stddef.h for NULL.
3122
3123 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3124
3125         gc: fix libgcrypt detection on older machines.
3126         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
3127         copyright years because the file has been distributed every year
3128         since it was created.
3129
3130 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
3131
3132         crypto: fix bug in large buffer handling
3133         Problem reported by Serge Belyshev for glibc in
3134         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
3135         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
3136         * lib/md4.c (md4_process_block):
3137         * lib/md5.c (md5_process_block):
3138         * lib/sha1.c (sha1_process_block):
3139         * lib/sha256.c (sha256_process_block):
3140         Don't assume the buffer length is less than 2**32.
3141         * lib/sha512.c (sha512_process_block): Likewise.
3142         Here, the bug is present only in the rare case where the host does
3143         not support uint64_t or where size_t is wider than 64 bits.
3144         Use u64size to work around the problems.
3145         * lib/u64.h (u64size): New macro.
3146
3147 2012-05-15  Pádraig Brady  <P@draigBrady.com>
3148
3149         fsusage: fix block size returned on older Linux 2.6
3150
3151         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
3152         which is available since Linux 2.6.
3153         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
3154         when the member is available so it can be used as a fallback.
3155         * doc/posix-functions/statvfs.texi: Mention the hang issue
3156         on Linux < 2.6.36.
3157
3158 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3159
3160         bootstrap: suppress stderr chatter
3161         * build-aux/bootstrap (insert_sorted_if_absent, main program):
3162         Omit unnecessary chatter to stderr.  The main program chatter
3163         was there only inadvertantly.
3164
3165         bootstrap: .gitignore files created by autopoint, libtool
3166         I ran into this problem when bootstrapping the latest diffutils.
3167         After './bootstrap', 'git status' reported lots of untracked files
3168         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
3169         autopoint and do not need to be version-controlled.
3170         * build-aux/bootstrap: Put into .gitignore the files that
3171         autopoint and libtool create, by keeping track of files that exist
3172         after but not before these programs are run.
3173         (version_controlled_file): Move up.  2nd arg is now full file
3174         name, not base name; this is more convenient.  Put CVS at the end,
3175         as it's now somewhat deprecated.
3176
3177 2012-05-14  Jim Meyering  <meyering@redhat.com>
3178
3179         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
3180         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
3181         definition.  Reported by Bruno Haible.
3182
3183 2012-05-13  Bruno Haible  <bruno@clisp.org>
3184             Paul Eggert  <eggert@cs.ucla.edu>
3185
3186         binary-io: Define set_binary_mode function.
3187         * lib/binary-io.h (set_binary_mode): New function.
3188         (SET_BINARY): Define in terms of set_binary_mode.
3189         * modules/binary-io (configure.ac): Require AC_C_INLINE.
3190         * tests/test-binary-io.c (main): Accept an argument, and test either
3191         set_binary_mode or SET_BINARY depending on the argument.
3192         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
3193         argument. Clean up also t-bin-out0.tmp.
3194
3195 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
3196
3197         bootstrap: take advantage of POSIX shell features
3198
3199         The 'bootstrap' script offered by Gnulib script already uses POSIX
3200         shell features (like $((...)) arithmetic expansions) that are not
3201         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
3202         means that bootstrap must already be run using a proper POSIX shell,
3203         which will thus provide more features, like ${var#pattern} parameter
3204         expansion or inversion of a command exit status with '!'.  We can
3205         thus use these features to improve the clarity and the performances
3206         of the bootstrap script.
3207
3208         Suggested by Eric Blake.
3209
3210         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
3211         of sed/expr plus command substitutions, to save some forks.  While
3212         we are at it, prefer the POSIX $(...) form of command substitution,
3213         rather than the legacy form `...` (since the former is visually
3214         clearer and interacts better with quoting), and prefer the idiom:
3215           "if ! CMD; then ACTION ..."
3216         over the idiom:
3217           "if CMD; then :; else ACTION ..."
3218         which was required by legacy Bourne shells not supporting '!'.
3219
3220 2012-05-12  Bruno Haible  <bruno@clisp.org>
3221
3222         system-quote: Add more comments.
3223         * lib/system-quote.h: Add more comments about wilcards and limitations.
3224         Suggested by Eli Zaretskii <eliz@gnu.org>.
3225
3226         sh-quote, system-quote: Add comments about wildcards.
3227         * lib/sh-quote.h: Clarify what happens with wildcard characters.
3228         * lib/system-quote.h: Likewise.
3229         Reported by Eli Zaretskii <eliz@gnu.org>.
3230
3231 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3232
3233         fsusage: check for GNU/Linux statvfs problem dynamically
3234         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
3235         Define STAT_STATFS2_BSIZE too, since in this case the code now
3236         checks dynamically whether statvfs is reliable, falling back on
3237         Linux-style statfs otherwise.
3238         (statvfs_works): New function, for dynamically testing statvfs.
3239         (get_fs_usage) [STAT_STATVFS]: Use it.
3240         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
3241         statvfs on GNU/Linux hosts, since it's now done dynamically.
3242
3243 2012-05-10  Bruno Haible  <bruno@clisp.org>
3244
3245         system-quote, execute, spawn-pipe: Escape '?' on Windows.
3246         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
3247         '?' character.
3248         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
3249         * tests/test-system-quote-main.c (check_all): Check also strings like
3250         "??????????".
3251         Reported by Eli Zaretskii <eliz@gnu.org>.
3252
3253 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3254
3255         _Noreturn: port config.h to gcc -Wundef
3256         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
3257         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
3258         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
3259
3260 2012-05-10  Bruno Haible  <bruno@clisp.org>
3261
3262         system-quote: Refactor.
3263         * lib/system-quote.h (system_quote_copy): Fix comment.
3264         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
3265         New functions, extracted from system_quote_copy.
3266         (system_quote_length, system_quote_copy): Use these functions.
3267         Reported by Paul Eggert.
3268
3269 2012-05-08  Bruno Haible  <bruno@clisp.org>
3270
3271         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
3272         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
3273
3274 2012-05-08  Bruno Haible  <bruno@clisp.org>
3275
3276         Tests for module 'system-quote'.
3277         * modules/system-quote-tests: New file.
3278         * tests/test-system-quote.sh: New file.
3279         * tests/test-system-quote-main.c: New file.
3280         * tests/test-system-quote-child.c: New file.
3281
3282         New module 'system-quote'.
3283         * lib/system-quote.h: New file.
3284         * lib/system-quote.c: New file.
3285         * modules/system-quote: New file.
3286
3287 2012-05-08  Bruno Haible  <bruno@clisp.org>
3288
3289         sh-quote: Make C++ safe and allow multiple inclusion.
3290         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
3291         declarations in extern "C".
3292
3293 2012-05-08  Bruno Haible  <bruno@clisp.org>
3294
3295         sh-quote tests: Make tests stricter.
3296         * tests/test-sh-quote.c (check_one): Check the return value of
3297         shell_quote_copy.
3298         (main): Check a string with a CR character. Check a string that
3299         contains UCHAR_MAX.
3300
3301 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
3302
3303         warnings.m4: provide a means to specify the program to compile.
3304         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
3305         (gl_WARN_ADD): here.
3306         Use gl_AS_VAR_APPEND.
3307         Support an argument to specify the program to compile.
3308         (gl_WARN_ADD): Accept an argument to specify the program to compile.
3309         AC_SUBST the WARN_CFLAGS when they are used.
3310         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
3311         leave this to gl_WARN_ADD.
3312
3313 2012-05-08  Eric Blake  <eblake@redhat.com>
3314
3315         doc: recommendations on gettext version
3316         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
3317         choice between versions.
3318         * DEPENDENCIES (gettext): Cover both approaches.
3319
3320 2012-05-08  Jim Meyering  <meyering@redhat.com>
3321
3322         init.sh: explain why EXEEXT support uses aliases rather than functions
3323         * tests/init.sh: Add a comment.
3324
3325         init.sh: don't let bash aliases interfere with tests
3326         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
3327         is bash.  This avoids problems for those who alias standard commands to
3328         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
3329         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
3330
3331 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3332
3333         stdint: be more consistent with glibc, SunOS libc
3334         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
3335         (gl_int_fast16_t, gl_uint_fast16_t)
3336         (gl_int_fast32_t, gl_uint_fast32_t)
3337         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
3338         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
3339         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
3340         Be consistent with glibc by default, and with SunOS 5.10 and later
3341         if __sun is defined.  This lessens the likelihood of clashes if
3342         code compiled for older hosts is combined with code compiled for
3343         newer ones.  Problem reported by Niels Möller in
3344         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
3345
3346 2012-05-07  Eric Blake  <eblake@redhat.com>
3347
3348         isatty: relax license to LGPLv2+
3349         * modules/isatty (License): Relax license.
3350
3351 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3352
3353         stat-size: comment fix
3354         * lib/stat-size.h: Remove obsolete comment about indenting.
3355
3356 2012-05-06  Bruno Haible  <bruno@clisp.org>
3357
3358         Tests for module 'sh-quote'.
3359         * modules/sh-quote-tests: New file.
3360         * tests/test-sh-quote.c: New file.
3361
3362 2012-05-06  Bruno Haible  <bruno@clisp.org>
3363
3364         sh-quote: Improve shell_quote_argv's signature.
3365         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
3366         * lib/sh-quote.c (shell_quote_argv): Likewise.
3367
3368 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3369
3370         stdint: document issues with int_fast8_t etc.
3371         * doc/posix-headers/stdint.texi (stdint.h): Say that other
3372         stdint.h substitutes may define these types differently.  See
3373         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
3374
3375 2012-05-05  Bruno Haible  <bruno@clisp.org>
3376
3377         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
3378         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
3379         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
3380         or 'guessing no (mishandles large arguments)'.
3381
3382 2012-05-05  Bruno Haible  <bruno@clisp.org>
3383
3384         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
3385         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
3386         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3387         set gl_cv_func_link_follows_symlink to "guessing no".
3388
3389 2012-05-05  Bruno Haible  <bruno@clisp.org>
3390
3391         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
3392         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
3393         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
3394         "guessing no".
3395         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
3396
3397 2012-05-05  Bruno Haible  <bruno@clisp.org>
3398
3399         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
3400         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
3401         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3402         set gl_cv_struct_dirent_d_ino to "guessing yes".
3403
3404 2012-05-05  Bruno Haible  <bruno@clisp.org>
3405
3406         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
3407         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
3408         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
3409         "guessing yes".
3410
3411 2012-05-05  Bruno Haible  <bruno@clisp.org>
3412
3413         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
3414         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
3415         compiling to a glibc system, set gl_cv_func_signbit and
3416         gl_cv_func_signbit_gcc to "guessing yes".
3417
3418 2012-05-05  Bruno Haible  <bruno@clisp.org>
3419
3420         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
3421         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
3422         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
3423         to "guessing yes".
3424         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
3425         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
3426
3427 2012-05-05  Bruno Haible  <bruno@clisp.org>
3428
3429         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
3430         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
3431         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
3432         gl_cv_func_realpath_works to "guessing yes".
3433
3434 2012-05-05  Bruno Haible  <bruno@clisp.org>
3435
3436         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
3437         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
3438         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
3439
3440 2012-05-04  Bruno Haible  <bruno@clisp.org>
3441
3442         Tweak last commit.
3443         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
3444         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3445
3446 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
3447
3448         unistd_h: make it easier to avoid sys_types_h
3449         This is useful for Emacs, which has its own method of porting to
3450         Windows, and which therefore does not need the sys_types_h module.
3451         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
3452         code moved here from gl_SYS_TYPES_H.
3453         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
3454         using the code directly.
3455         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
3456         gl_SYS_TYPES_H.
3457         * modules/sys_types (Files):
3458         * modules/unistd (Files): Add m4/off_t.m4.
3459
3460 2012-05-03  Bruno Haible  <bruno@clisp.org>
3461
3462         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
3463         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
3464         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
3465         "guessing yes" or "guessing no".
3466         (gl_FUNC_LSTAT): Update.
3467         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
3468         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3469         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
3470
3471 2012-05-03  Bruno Haible  <bruno@clisp.org>
3472
3473         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
3474         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
3475         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
3476         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
3477         cross-compiling, choose the first alternative on glibc systems.
3478         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
3479
3480 2012-05-03  Bruno Haible  <bruno@clisp.org>
3481
3482         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
3483         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
3484         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
3485
3486 2012-05-03  Bruno Haible  <bruno@clisp.org>
3487
3488         chown: Avoid "guessing no" when cross-compiling to glibc systems.
3489         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
3490
3491 2012-05-03  Bruno Haible  <bruno@clisp.org>
3492
3493         Avoid "guessing no" guesses when cross-compiling to glibc systems.
3494         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
3495         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
3496         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
3497         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
3498         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
3499         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
3500         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
3501         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
3502         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
3503         compiling to glibc systems, set gl_cv_func_chown_slash_works,
3504         gl_cv_func_chown_ctime_works to "guessing yes".
3505         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
3506         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
3507         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
3508         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
3509         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
3510         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
3511         compiling to glibc systems, set gl_cv_func_open_directory_works to
3512         "guessing yes".
3513         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
3514         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
3515         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
3516         "guessing yes".
3517         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
3518         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
3519         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
3520         compiling to glibc systems, set gl_cv_func_floorf_ieee to
3521         "guessing yes".
3522         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
3523         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
3524         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
3525         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
3526         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
3527         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
3528         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
3529         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
3530         "guessing yes".
3531         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
3532         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
3533         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
3534         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
3535         "guessing yes".
3536         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
3537         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
3538         "guessing yes".
3539         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
3540         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
3541         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
3542         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
3543         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
3544         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
3545         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
3546         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
3547         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
3548         compiling to glibc systems, set gl_cv_func_log10f_ieee to
3549         "guessing yes".
3550         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
3551         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
3552         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
3553         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
3554         "guessing yes".
3555         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
3556         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
3557         "guessing yes".
3558         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
3559         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
3560         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
3561         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
3562         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
3563         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
3564         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
3565         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
3566         compiling to glibc systems, set gl_cv_func_mkfifo_works to
3567         "guessing yes".
3568         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
3569         compiling to glibc systems, set gl_cv_func_mknod_works to
3570         "guessing yes".
3571         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
3572         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
3573         "guessing yes".
3574         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
3575         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
3576         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
3577         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
3578         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
3579         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
3580         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
3581         compiling to glibc systems, set gl_cv_func_svid_putenv to
3582         "guessing yes".
3583         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
3584         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
3585         "guessing yes".
3586         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
3587         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
3588         "guessing yes".
3589         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
3590         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
3591         to "guessing yes".
3592         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
3593         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
3594         to "guessing yes".
3595         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
3596         compiling to glibc systems, set gl_cv_func_rmdir_works to
3597         "guessing yes".
3598         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
3599         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
3600         gl_cv_func_unlink_parent_fails to "guessing yes".
3601         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
3602         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
3603         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
3604         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
3605         gl_cv_func_rename_dest_works to "guessing yes".
3606         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
3607         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
3608         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
3609         compiling to glibc systems, set gl_cv_func_roundf_ieee to
3610         "guessing yes".
3611         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
3612         compiling to glibc systems, set gl_cv_func_roundl_ieee to
3613         "guessing yes".
3614         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
3615         compiling to glibc systems, set gl_cv_func_setenv_works to
3616         "guessing yes".
3617         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
3618         compiling to glibc systems, set gl_cv_func_unsetenv_works to
3619         "guessing yes".
3620         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
3621         compiling to glibc systems, set gl_cv_func_sleep_works to
3622         "guessing yes".
3623         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
3624         compiling to glibc systems, set gl_cv_func_stat_file_slash to
3625         "guessing yes".
3626         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
3627         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
3628         "guessing yes".
3629         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
3630         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
3631         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
3632         compiling to glibc systems, set gl_cv_func_truncf_ieee to
3633         "guessing yes".
3634         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
3635         compiling to glibc systems, set gl_cv_func_truncl_ieee to
3636         "guessing yes".
3637         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
3638         compiling to glibc systems, set gl_cv_func_usleep_works to
3639         "guessing yes".
3640         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
3641         compiling to glibc systems, set gl_cv_func_futimesat_works to
3642         "guessing yes".
3643
3644 2012-05-03  Bruno Haible  <bruno@clisp.org>
3645
3646         Say "guessing yes" or "guessing no" when cross-compiling.
3647         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
3648         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
3649         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
3650         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
3651         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
3652         am_cv_func_working_getline to "guessing yes" or "guessing no".
3653         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
3654         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
3655         (gl_FUNC_MEMMEM): When cross-compiling, set
3656         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
3657         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
3658         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
3659         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
3660         set gl_cv_func_strcasestr_works_always to "guessing yes" or
3661         "guessing no".
3662         (gl_FUNC_STRCASESTR): When cross-compiling, set
3663         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
3664         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
3665         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
3666         (gl_FUNC_STRSTR): When cross-compiling, set
3667         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
3668         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
3669         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
3670         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
3671         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
3672
3673 2012-05-01  Bruno Haible  <bruno@clisp.org>
3674
3675         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
3676         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
3677         * build-aux/reloc-ldflags: Likewise.
3678         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
3679
3680 2012-05-01  Bruno Haible  <bruno@clisp.org>
3681
3682         gnulib-tool: Remove transitional code.
3683         * gnulib-tool: Don't warn about --import with 0 arguments any more.
3684         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3685
3686 2012-05-01  Bruno Haible  <bruno@clisp.org>
3687
3688         getcwd: Fix misindentation.
3689         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
3690
3691 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3692
3693         exclude: process exclude and include directives in order
3694         This restores the pre-2009 behavior, and is part of a fix of a
3695         grep bug reported by Quentin Arce in
3696         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
3697         * lib/exclude.c (struct exclude): Remove 'tail' member.
3698         (new_exclude_segment): Prepend the new segment instead of appending.
3699         Return void, since that's now more convenient.
3700         (file_pattern_matches): Renamed from excluded_file_pattern_p.
3701         (file_name_matches): Renamed from excluded_file_name_p.
3702         (file_pattern_matches, file_name_matches):
3703         Return true if the pattern matches, not if it excludes.
3704         All callers changed.
3705         (excluded_file_name): Process the list in reverse order;
3706         since the list is now reversed this restores the pre-2009 behavior.
3707         (add_exclude): Adjust to new reversed-order list.  Use local var
3708         rather than macro, for clarity.
3709         * tests/test-exclude7.sh: Adjust to corrected behavior.
3710
3711         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
3712         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
3713         it's not possible here.  Handle the case of \ at end of pattern
3714         without dumping core.
3715         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
3716
3717         _Noreturn: future-proof non-GNU and non-MSVC compilers
3718         * build-aux/snippet/_Noreturn.h (_Noreturn):
3719         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3720         Do not define _Noreturn if __STDC_VERSION__ indicates this is
3721         C11 or later.  This is more likely to work with random future C
3722         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
3723         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
3724
3725         exclude: handle wildcards with FNM_EXTMATCH
3726         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
3727         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
3728         comment that "has wildcards" really means "has or may have
3729         wildcards".  Simplify by avoiding the need to call strcspn.
3730
3731 2012-04-29  Bruno Haible  <bruno@clisp.org>
3732
3733         gnulib-tool: Fix list of authors.
3734         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
3735
3736 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
3737
3738         bootstrap: support Automake-NG in $buildreq
3739         * bootstrap (check_versions): Handle automake and aclocal from
3740         Automake-NG specially.  They can be specified as respectively
3741         the "automake-ng" and "aclocal-ng" requirements.
3742
3743 2012-04-25  Eric Blake  <eblake@redhat.com>
3744
3745         bootstrap: only force latest Makefile.in.in for gettext module
3746         * build-aux/bootstrap (with_gettext): Only install latest
3747         Makefile.in.in for projects requesting bleeding edge gettext.
3748
3749 2012-04-22  Bruno Haible  <bruno@clisp.org>
3750
3751         doc: Mention reason for replacement on glibc/Linux systems.
3752         * doc/posix-functions/dprintf.texi: Mention the problem with special
3753         'long double' values.
3754         * doc/posix-functions/fprintf.texi: Likewise.
3755         * doc/posix-functions/printf.texi: Likewise.
3756         * doc/posix-functions/snprintf.texi: Likewise.
3757         * doc/posix-functions/sprintf.texi: Likewise.
3758         * doc/posix-functions/vdprintf.texi: Likewise.
3759         * doc/posix-functions/vfprintf.texi: Likewise.
3760         * doc/posix-functions/vprintf.texi: Likewise.
3761         * doc/posix-functions/vsnprintf.texi: Likewise.
3762         * doc/posix-functions/vsprintf.texi: Likewise.
3763         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
3764         platforms with F_DUPFD_CLOEXEC problems.
3765         * doc/posix-functions/glob.texi: Mention which platforms are affected
3766         by the problem with symbolic links.
3767         * doc/posix-functions/linkat.texi: Mention the problem with
3768         AT_SYMLINK_FOLLOW on Linux.
3769
3770 2012-04-22  Bruno Haible  <bruno@clisp.org>
3771
3772         pwrite: Don't replace on all platforms.
3773         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
3774
3775 2012-04-22  Bruno Haible  <bruno@clisp.org>
3776
3777         rint* tests: Avoid gcc warnings.
3778         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
3779         * tests/test-rintf.c (INFINITY, NAN): Likewise.
3780         * tests/test-rintl.c (INFINITY, NAN): Likewise.
3781
3782 2012-04-21  Bruno Haible  <bruno@clisp.org>
3783
3784         users.txt: Update.
3785         * users.txt: Add freedink, wdiff. Update URLs for projects that have
3786         switched from CVS to git, bzr, or svn.
3787
3788 2012-04-21  Bruno Haible  <bruno@clisp.org>
3789
3790         Large File Support for native Windows platforms.
3791
3792         * m4/largefile.m4 (gl_LARGEFILE): New macro.
3793         * modules/largefile (configure.ac): Require gl_LARGEFILE.
3794
3795         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
3796         type.
3797         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
3798         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
3799         * doc/posix-headers/sys_types.texi: Mention the effect of the
3800         'largefile' module.
3801
3802         * lib/fcntl.in.h: Add comments about off_t.
3803         * modules/fcntl-h (Depends-on): Add sys_types.
3804
3805         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
3806         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
3807         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
3808         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
3809         * modules/unistd (Depends-on): Add sys_types.
3810         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
3811
3812         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
3813         instead of lseek.
3814         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
3815         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
3816         * modules/lseek (Depends-on): Add sys_types.
3817
3818         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
3819         msvc-nothrow.h.
3820         (SetFileSize): New function.
3821         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
3822         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
3823         if Large File Support is requested.
3824         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
3825         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
3826
3827         * lib/stdio.in.h: Add comments about off_t.
3828         * modules/stdio (Depends-on): Add sys_types.
3829
3830         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
3831         instead of ftello.
3832         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
3833         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
3834         (gl_PREREQ_FTELLO): New macro.
3835         * modules/ftello (Depends-on): Add sys_types.
3836         (configure.ac): Incoke gl_PREREQ_FTELLO.
3837
3838         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
3839         instead of fseeko.
3840         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
3841         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
3842         (gl_PREREQ_FSEEKO): New macro.
3843         * modules/fseeko (Depends-on): Add sys_types.
3844         (configure.ac): Invoke gl_PREREQ_FSEEKO.
3845
3846         * lib/sys_stat.in.h: Add comments about off_t.
3847         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
3848         64-bit integer for st_size in 'struct stat'.
3849         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
3850         Define _GL_WINDOWS_64_BIT_ST_SIZE.
3851         * modules/sys_stat (Depends-on): Add sys_types.
3852         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
3853
3854         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
3855         instead of stat or _stat.
3856
3857         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
3858         'struct _stati64' instead of fstat and 'struct stat'.
3859         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
3860         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
3861
3862         Reported by Ray Satiro <raysatiro@yahoo.com>.
3863
3864 2012-04-19  Eric Blake  <eblake@redhat.com>
3865
3866         bootstrap: accommodate older libtool
3867         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
3868         Reported by Daniel P. Berrange.
3869
3870 2012-04-19  Jim Meyering  <meyering@redhat.com>
3871
3872         announce-gen: avoid failure due to lack of Digest::SHA1
3873         Even with the preferred Digest::SHA available, this script
3874         would fail when the backup module, Digest::SHA1, was not installed.
3875         * build-aux/announce-gen: Quote the conditional use of "use".
3876         Reported by Reuben Thomas in:
3877         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
3878
3879         bootstrap: don't let a user's CDPATH setting affect this script
3880         When CDPATH is set, cd will sometimes generate output.
3881         When "cd" is run in a subshell whose output matters, that
3882         surprising-to-some output can cause malfunction.
3883         Unsetting CDPATH turns off this shell "feature."
3884         * build-aux/bootstrap (CDPATH): Unset.
3885         Reported by Reuben Thomas in:
3886         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
3887         and inspired by his patch here:
3888         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
3889
3890 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
3891         and Jim Meyering  <meyering@redhat.com>
3892
3893         maint.mk: catch "see @xref{}" and similar
3894         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
3895         prohibit "See also @xref{", "Also see @pxref{", and similar.
3896
3897 2012-04-16  Jim Meyering  <meyering@redhat.com>
3898
3899         bootstrap: really use gnulib's po/Makefile.in.in
3900         * build-aux/bootstrap: Correct the source file name in previous change.
3901         Reported by Akim Demaille.
3902
3903         configmake: correct minor inconsistency in Makefile rule
3904         * modules/configmake (Makefile.am): All other rules like this one
3905         run the final "mv -f ..." in the same backslash-continued command
3906         as the one that does everything else.  This one put the mv -f ...
3907         command on a separate, non-backslash-continued line.
3908         Make it like the others.
3909
3910         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
3911         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
3912         the one from gettext.  Reported by Akim Demaille.
3913
3914 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
3915
3916         Fix recursion of install-* into po directories.
3917         Bison's install-pdf bug reported by Hans Aberg at
3918         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
3919         * build-aux/po/Makefile.in.in (install-dvi, install-html)
3920         (install-info, install-pdf, install-ps): New targets.
3921
3922 2012-04-16  Jim Meyering  <meyering@redhat.com>
3923
3924         maint: avoid spurious "make sc_maint" failure
3925         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
3926         exempt all *.class file names, for lib/javaversion.class.
3927
3928 2012-04-15  Bruno Haible  <bruno@clisp.org>
3929
3930         lseek: Make configure test independent of environment.
3931         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
3932         Windows, we know that lseek() on pipes is broken; skip the runtime
3933         test.
3934
3935 2012-04-14  Bruno Haible  <bruno@clisp.org>
3936
3937         stat: Bypass buggy override in mingw64.
3938         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
3939         * lib/stat.c (stat) [mingw64]: Define to _stat.
3940         * doc/posix-functions/stat.texi: Mention mingw64 bug.
3941
3942 2012-04-14  Bruno Haible  <bruno@clisp.org>
3943
3944         pathmax: Fix compilation error on MSVC 9.
3945         * modules/pathmax (Depends-on): Add unistd.
3946
3947 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
3948
3949         README: document pointer comparison assumption
3950         * README (Portability guidelines): Document assumption about
3951         pointer comparisons, in response to a recent bug-gnulib comment by
3952         Jeffrey Kegler.
3953
3954 2012-04-12  Bruno Haible  <bruno@clisp.org>
3955
3956         Tests for module 'getrusage'.
3957         * modules/getrusage-tests: New file.
3958         * tests/test-getrusage.c: New file.
3959
3960         New module 'getrusage'.
3961         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
3962         warn-on-use.h.
3963         (getrusage): New declaration.
3964         * lib/getrusage.c: New file.
3965         * m4/getrusage.m4: New file.
3966         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
3967         is declared.
3968         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
3969         HAVE_GETRUSAGE.
3970         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
3971         snippet/c++defs, snippet/warn-on-use.
3972         (Makefile.am): Update generation of sys/resource.h. Substitute
3973         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
3974         * modules/getrusage: New file.
3975         * doc/posix-functions/getrusage.texi: Mention the new module.
3976
3977 2012-04-12  Bruno Haible  <bruno@clisp.org>
3978
3979         Tests for module 'sys_resource'.
3980         * modules/sys_resource-tests: New file.
3981         * tests/test-sys_resource.c: New file.
3982
3983         New module 'sys_resource'.
3984         * lib/sys_resource.in.h: New file.
3985         * m4/sys_resource_h.m4: New file.
3986         * modules/sys_resource: New file.
3987         * doc/posix-headers/sys_resource.texi: Mention the new module.
3988
3989 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
3990
3991         ioctl: Fix compilation error on mingw.
3992         * lib/ioctl.c: Include <windows.h>.
3993         Also reported by Ray Satiro <raysatiro@yahoo.com>.
3994
3995 2012-04-04  Jim Meyering  <meyering@redhat.com>
3996
3997         regex: correct #pragma guard expression
3998         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
3999         not 4.3.  Correct its cpp guard expression.
4000
4001 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
4002
4003         regex: remove unnecessary type punning
4004         Problem reported by Vladimir Serbinenko in
4005         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
4006         * lib/regex.h (struct re_pattern_buffer): Change the type of
4007         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
4008         Fix comment to match code.
4009         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
4010         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
4011         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
4012         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
4013         (set_regs):
4014         Omit no-longer-necessary casts.
4015
4016 2012-04-03  Bruno Haible  <bruno@clisp.org>
4017
4018         Tests for module 'ilogbl'.
4019         * modules/ilogbl-tests: New file.
4020         * tests/test-ilogbl.c: New file.
4021
4022         New module 'ilogbl'.
4023         * lib/math.in.h (ilogbl): New declaration.
4024         * lib/ilogbl.c: New file.
4025         * m4/ilogbl.m4: New file.
4026         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
4027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
4028         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
4029         Split sed invocation, to avoid the limit of 100 substitutions of
4030         HP-UX 'sed'.
4031         * modules/ilogbl: New file.
4032         * tests/test-math-c++.cc: Check the declaration of ilogbl.
4033         * doc/posix-functions/ilogbl.texi: Mention the new module.
4034
4035 2012-04-03  Bruno Haible  <bruno@clisp.org>
4036
4037         Tests for module 'ilogbf'.
4038         * modules/ilogbf-tests: New file.
4039         * tests/test-ilogbf.c: New file.
4040
4041         New module 'ilogbf'.
4042         * lib/math.in.h (ilogbf): New declaration.
4043         * lib/ilogbf.c: New file.
4044         * m4/ilogbf.m4: New file.
4045         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
4046         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
4047         REPLACE_ILOGBF.
4048         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
4049         REPLACE_ILOGBF.
4050         * modules/ilogbf: New file.
4051         * tests/test-math-c++.cc: Check the declaration of ilogbf.
4052         * doc/posix-functions/ilogbf.texi: Mention the new module.
4053
4054 2012-04-03  Bruno Haible  <bruno@clisp.org>
4055
4056         Tests for module 'ilogb'.
4057         * modules/ilogb-tests: New file.
4058         * tests/test-ilogb.c: New file.
4059         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
4060         tests/test-logb-ieee.h.
4061
4062         New module 'ilogb'.
4063         * lib/math.in.h (ilogb): New declaration.
4064         * lib/ilogb.c: New file.
4065         * m4/ilogb.m4: New file.
4066         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
4067         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
4068         REPLACE_ILOGB.
4069         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
4070         REPLACE_ILOGB.
4071         * modules/ilogb: New file.
4072         * tests/test-math-c++.cc: Check the declaration of ilogb.
4073         * doc/posix-functions/ilogb.texi: Mention the new module.
4074
4075 2012-04-03  Bruno Haible  <bruno@clisp.org>
4076
4077         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
4078         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
4079         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
4080         (main): Check their values.
4081         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
4082         problem.
4083
4084 2012-04-03  Bruno Haible  <bruno@clisp.org>
4085
4086         Tests for module 'logbl-ieee'.
4087         * modules/logbl-ieee-tests: New file.
4088         * tests/test-logbl-ieee.c: New file.
4089
4090         New module 'logbl-ieee'.
4091         * modules/logbl-ieee: New file.
4092
4093         Tests for module 'logb-ieee'.
4094         * modules/logb-ieee-tests: New file.
4095         * tests/test-logb-ieee.c: New file.
4096
4097         New module 'logb-ieee'.
4098         * modules/logb-ieee: New file.
4099
4100         Tests for module 'logbf-ieee'.
4101         * modules/logbf-ieee-tests: New file.
4102         * tests/test-logbf-ieee.c: New file.
4103         * tests/test-logb-ieee.h: New file.
4104
4105         New module 'logbf-ieee'.
4106         * modules/logbf-ieee: New file.
4107
4108 2012-04-03  Bruno Haible  <bruno@clisp.org>
4109
4110         Tests for module 'logbl'.
4111         * modules/logbl-tests: New file.
4112         * tests/test-logbl.c: New file.
4113
4114         New module 'logbl'.
4115         * lib/math.in.h (logbl): New declaration.
4116         * lib/logbl.c: New file.
4117         * m4/logbl.m4: New file.
4118         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
4119         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
4120         REPLACE_LOGBL.
4121         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
4122         REPLACE_LOGBL.
4123         * modules/logbl: New file.
4124         * tests/test-math-c++.cc: Check the declaration of logbl.
4125         * doc/posix-functions/logbl.texi: Mention the new module.
4126
4127 2012-04-02  Bruno Haible  <bruno@clisp.org>
4128
4129         Tests for module 'logbf'.
4130         * modules/logbf-tests: New file.
4131         * tests/test-logbf.c: New file.
4132
4133         New module 'logbf'.
4134         * lib/math.in.h (logbf): New declaration.
4135         * lib/logbf.c: New file.
4136         * m4/logbf.m4: New file.
4137         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
4138         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
4139         REPLACE_LOGBF.
4140         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
4141         REPLACE_LOGBF.
4142         * modules/logbf: New file.
4143         * tests/test-math-c++.cc: Check the declaration of logbf.
4144         * doc/posix-functions/logbf.texi: Mention the new module.
4145
4146 2012-04-02  Bruno Haible  <bruno@clisp.org>
4147
4148         logb tests: More tests.
4149         * tests/test-logb.h: New file, based on tests/test-logb.c and
4150         tests/test-frexp.h.
4151         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
4152         (main): Just invoke test_function.
4153         * modules/logb-tests (Files): Add tests/test-logb.h,
4154         tests/minus-zero.h, tests/randomd.c.
4155         (Makefile.am): Add randomd.c to test_logb_SOURCES.
4156
4157         logb: Provide replacement and workarounds.
4158         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
4159         is 1.
4160         * lib/logb.c: New file.
4161         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
4162         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
4163         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
4164         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
4165         * modules/logb (Files): Add lib/logb.c.
4166         (Depends-on): Add isfinite, frexp, isnand.
4167         (configure.ac): Compile the replacement code logb.c if needed.
4168         * tests/test-math-c++.cc: Check the declaration of logb.
4169         * doc/posix-functions/logb.texi: Mention the replacement and the bug
4170         with subnormal numbers.
4171
4172 2012-04-02  Bruno Haible  <bruno@clisp.org>
4173
4174         log10* tests: Speed up.
4175         * tests/test-log10.h (test_function): Reduce amount of random numbers
4176         to test.
4177
4178 2012-04-01  Bruno Haible  <bruno@clisp.org>
4179
4180         logf-ieee: Fix test whether logf works.
4181         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
4182
4183 2012-04-01  Bruno Haible  <bruno@clisp.org>
4184
4185         log10l: Work around log10l-ieee test failure on IRIX 6.5.
4186         * lib/log10l.c: Include <float.h>
4187         (log10l): On IRIX, normalize the +Infinity value.
4188         * modules/log10l (Depends-on): Add 'float'.
4189         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
4190         +Infinity.
4191
4192         log10f-ieee: Work around test failure on NetBSD 5.1.
4193         * m4/log10f-ieee.m4: New file.
4194         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
4195         test whether log10f works with a negative argument. Replace it if not.
4196         * lib/log10f.c (log10f): For negative arguments, return NaN.
4197         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
4198         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
4199         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
4200
4201         log10f-ieee: Work around test failure on Solaris 9.
4202         * modules/log10f-ieee (Depends-on): Add log10-ieee.
4203         (configure.ac): Require gl_FUNC_LOG10F.
4204
4205         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4206         * m4/log10-ieee.m4: New file.
4207         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
4208         whether log10 works with a negative argument. Replace it if not.
4209         * lib/log10.c (log10): For negative arguments, return NaN.
4210         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
4211         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
4212         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
4213
4214         Tests for module 'log10l-ieee'.
4215         * modules/log10l-ieee-tests: New file.
4216         * tests/test-log10l-ieee.c: New file.
4217
4218         New module 'log10l-ieee'.
4219         * modules/log10l-ieee: New file.
4220
4221         Tests for module 'log10-ieee'.
4222         * modules/log10-ieee-tests: New file.
4223         * tests/test-log10-ieee.c: New file.
4224
4225         New module 'log10-ieee'.
4226         * modules/log10-ieee: New file.
4227
4228         Tests for module 'log10f-ieee'.
4229         * modules/log10f-ieee-tests: New file.
4230         * tests/test-log10f-ieee.c: New file.
4231         * tests/test-log10-ieee.h: New file.
4232
4233         New module 'log10f-ieee'.
4234         * modules/log10f-ieee: New file.
4235
4236 2012-04-01  Bruno Haible  <bruno@clisp.org>
4237
4238         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
4239         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
4240         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
4241         workaround.
4242         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
4243         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
4244         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
4245         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
4246         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
4247         (Depends-on): Update conditions.
4248         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
4249         IRIX 6.5, OSF/1 5.1 problems.
4250
4251 2012-04-01  Bruno Haible  <bruno@clisp.org>
4252
4253         log10f: Work around OSF/1 5.1 bug.
4254         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
4255         * lib/log10f.c (log10f): If logf exists, use it and provide just the
4256         workaround.
4257         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
4258         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
4259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
4260         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
4261         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
4262         (Depends-on): Update conditions.
4263         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
4264
4265 2012-04-01  Bruno Haible  <bruno@clisp.org>
4266
4267         log10: Work around OSF/1 5.1 bug.
4268         * lib/math.in.h (log10): New declaration.
4269         * lib/log10.c: New file.
4270         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
4271         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
4272         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
4273         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
4274         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
4275         * modules/log10 (Files): Add lib/log10.c.
4276         (Depends-on): Add math.
4277         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
4278         * tests/test-math-c++.cc: Check the declaration of log10.
4279         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
4280
4281 2012-03-31  Bruno Haible  <bruno@clisp.org>
4282
4283         log10l tests: More tests.
4284         * modules/log10l-tests (Files): Add tests/test-log10l.h,
4285         tests/minus-zero.h, tests/randoml.c.
4286         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
4287         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
4288         (main): Invoke test_function.
4289
4290         log10f tests: More tests.
4291         * modules/log10f-tests (Files): Add tests/test-log10.h,
4292         tests/minus-zero.h, tests/randomf.c.
4293         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
4294         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
4295         (main): Invoke test_function.
4296
4297         log10 tests: More tests.
4298         * tests/test-log10.h: New file.
4299         * modules/log10-tests (Files): Add tests/test-log10.h,
4300         tests/minus-zero.h, tests/randomd.c.
4301         (Makefile.am): Add randomd.c to test_log10_SOURCES.
4302         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
4303         (main): Invoke test_function.
4304
4305 2012-03-31  Simon Josefsson  <simon@josefsson.org>
4306
4307         fflush: Fix syntax error.
4308         * lib/fflush.c: Include unused-parameter.h, needed for
4309         _GL_UNUSED_PARAMETER.
4310         * modules/fflush (Depends-on): Add snippet/unused-parameter.
4311
4312 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4313
4314         regex: pacify GCC when compiling GRUB
4315         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
4316         a diagnostic.  Reported by Vladimir Serbinenko in
4317         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
4318
4319 2012-03-29  Eric Blake  <eblake@redhat.com>
4320
4321         stdio: don't assume gets any more
4322         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
4323         support.
4324         * modules/stdio (Makefile.am): Likewise.
4325         * lib/stdio-read.c (gets): Likewise.
4326         * tests/test-stdio-c++.cc: Likewise.
4327         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
4328         * lib/stdio.in.h (gets): Make warning occur in more places.
4329         * doc/posix-functions/gets.texi (gets): Update documentation.
4330         Reported by Christer Solskogen.
4331
4332         maint.mk: fix syntax checks without exclusions
4333         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
4334         Reported by Daniel P. Berrange.
4335
4336         strerror_r: avoid compiler warning
4337         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
4338         level.
4339
4340         fflush: avoid compiler warning
4341         * lib/fflush.c (update_fpos_cache): Mark variables that are
4342         potentially unused.
4343
4344 2012-03-25  Bruno Haible  <bruno@clisp.org>
4345
4346         Tests for module 'localeconv'.
4347         * modules/localeconv-tests: New file.
4348         * tests/test-localeconv.c: New file.
4349
4350         New module 'localeconv'.
4351         * lib/locale.in.h (localeconv): New declaration.
4352         * lib/localeconv.c: New file.
4353         * m4/localeconv.m4: New file.
4354         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
4355         REPLACE_LOCALECONV.
4356         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
4357         REPLACE_LOCALECONV.
4358         * modules/localeconv: New file.
4359         * modules/nl_langinfo (Depends-on): Add localeconv.
4360         * modules/human (Depends-on): Likewise.
4361         * doc/posix-functions/localeconv.texi: Mention the new module.
4362
4363 2012-03-25  Bruno Haible  <bruno@clisp.org>
4364
4365         locale: Provide a complete 'struct lconv'.
4366         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4367         'struct lconv' does not contain int_p_cs_precedes.
4368         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4369         * doc/posix-headers/locale.texi: Update.
4370
4371         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
4372         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
4373         * doc/posix-headers/locale.texi: Update.
4374
4375         locale: Provide a working 'struct lconv'.
4376         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
4377         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4378         'struct lconv' does not even contain decimal_point.
4379         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
4380         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
4381         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4382         * doc/posix-headers/locale.texi: Mention the problems with
4383         'struct lconv'.
4384         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4385
4386 2012-03-24  Bruno Haible  <bruno@clisp.org>
4387
4388         Enable common subexpression optimization in GCC.
4389         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
4390         macros.
4391         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
4392         GCC attribute 'const'.
4393         (uc_locale_language): Declare with GCC attribute 'pure'.
4394         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
4395         with GCC attribute 'const'.
4396         * lib/unictype.in.h (uc_is_general_category_withtable,
4397         uc_combining_class, uc_combining_class_name,
4398         uc_combining_class_long_name, uc_bidi_class_name,
4399         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
4400         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
4401         uc_decimal_value, uc_digit_value, uc_numeric_value,
4402         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
4403         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
4404         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
4405         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
4406         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
4407         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
4408         Declare with GCC attribute 'const'.
4409         (uc_general_category_name, uc_general_category_long_name,
4410         uc_general_category_byname, uc_general_category,
4411         uc_is_general_category, uc_combining_class_byname,
4412         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
4413         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
4414         Declare with GCC attribute 'pure'.
4415         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
4416         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
4417         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
4418         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
4419         with GCC attribute 'pure'.
4420         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
4421         'const'.
4422         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
4423         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
4424         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
4425         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
4426         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
4427         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
4428         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
4429         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
4430         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
4431         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
4432         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
4433         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
4434         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
4435         GCC attribute 'pure'.
4436         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
4437         'const'.
4438         * lib/uniwidth.in.h (uc_width): Simplify declaration.
4439         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
4440         u32_strwidth): Declare with GCC attribute 'pure'.
4441
4442         Enable common subexpression optimization in GCC.
4443         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4444         (alphasort): Declare with GCC attribute 'pure'.
4445         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4446         (atoll): Declare with GCC attribute 'pure'.
4447         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
4448         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
4449         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
4450         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4451         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
4452         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
4453         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
4454
4455 2012-03-24  Bruno Haible  <bruno@clisp.org>
4456
4457         gnulib-tool: Avoid unintended error output from 'cmp'.
4458         * gnulib-tool (func_add_file, func_update_file, func_import): Use
4459         "cmp -s", not "cmp > /dev/null".
4460
4461 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
4462
4463         gnulib-tool: fix imprecise comments w.r.t. an automake bug
4464
4465         It's not just Automake versions < 1.9b that creates an empty
4466         pkgdatadir at installation time if pkgdata_DATA is specified
4467         to empty; modern automake versions do this as well, at least
4468         until automake 1.11.4 (not yet released at the moment of writing,
4469         but soon to appear).  That behaviour was generally considered a
4470         feature rather than a bug, at least until this discussion:
4471         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
4472
4473         See also automake bugs #10997 and #11030.
4474
4475         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
4476         reference to relevant automake bug numbers.
4477         (func_emit_tests_Makefile_am): Likewise.
4478
4479 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4480
4481         announce-gen: use Digest::SHA when possible
4482         * build-aux/announce-gen: Use Digest::SHA when possible, falling
4483         back to Digest::SHA1 if necessary.
4484
4485 2012-03-20  Jim Meyering  <meyering@redhat.com>
4486
4487         tests: avoid gcc warnings about argv vs. const initializers
4488         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
4489         warnings about discarding 'const' qualifier from pointer target type.
4490         * tests/test-posix_spawn2.c (main): Likewise.
4491
4492 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4493
4494         README-release: simplify slightly
4495         * top/README-release: Run "git checkout master" only once.
4496
4497 2012-03-15  Mark Wielaard  <mark@klomp.org>
4498
4499         git-merge-changelog: add specific example on how to use with hg.
4500         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
4501
4502 2012-03-18  Mark Wielaard  <mark@klomp.org>
4503
4504         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
4505
4506 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
4507
4508         git-version-gen: don't let "prefix" envvar cause trouble
4509         * build-aux/git-version-gen (prefix): Initialize properly,
4510         so as not to use a value specified via the environment.
4511         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
4512
4513 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4514
4515         regex: diagnose too-large repeat counts in EREs
4516         Previously, the code did not diagnose the too-large repeat count
4517         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
4518         as if it were 'b\{1000000000}', which is unexpected.
4519         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
4520         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
4521         is a reasonable one for this problem.  Another option would be to
4522         create a new REG_OVERFLOW error for repeat counts that are too large.
4523         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
4524         count is too large, so that the caller can distinguish the two cases.
4525         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
4526         "Too large" return code, and that repeat counts are one example of this.
4527
4528 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4529
4530         doc: some glibc x32 integer width issues
4531         * doc/posix-headers/sys_types.texi (sys/types.h):
4532         * doc/posix-headers/time.texi (time.h):
4533         Mention that glibc x32 does not conform to POSIX in a couple of
4534         areas related to integer widths.
4535
4536 2012-03-15  Bruno Haible  <bruno@clisp.org>
4537
4538         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
4539         * lib/fma.c (VOLATILE): New macro.
4540         (FUNC): Use it to work around a GCC compiler bug.
4541
4542 2012-03-13  Bruno Haible  <bruno@clisp.org>
4543
4544         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4545         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
4546         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
4547         REPLACE_HYPOTL to 1.
4548         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
4549
4550 2012-03-13  Bruno Haible  <bruno@clisp.org>
4551
4552         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4553         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
4554         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
4555         REPLACE_REMAINDERL to 1.
4556         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
4557         bug.
4558
4559 2012-03-13  Bruno Haible  <bruno@clisp.org>
4560
4561         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4562         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
4563         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
4564         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
4565         too big rounding errors.
4566         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
4567         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
4568         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
4569         (Depends-on): Update conditions.
4570         * tests/test-sqrtl.c (my_ldexpl): New function.
4571         (main): Add test of a particular value.
4572         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4573
4574 2012-03-13  Pádraig Brady  <P@draigBrady.com>
4575
4576         doc: Update timer_* platform portability notes.
4577         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
4578         that always return ENOSYS.
4579         * doc/posix-functions/timer_delete.texi: Likewise.
4580         * doc/posix-functions/timer_gettime.texi: Likewise.
4581         * doc/posix-functions/timer_settime.texi: Likewise.
4582
4583 2012-03-13  Bruno Haible  <bruno@clisp.org>
4584
4585         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4586         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
4587         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
4588         REPLACE_CBRTL to 1.
4589         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4590
4591 2012-03-13  Bruno Haible  <bruno@clisp.org>
4592
4593         remainderl: Avoid compilation error on AIX >= 5.2.
4594         * lib/math.in.h (remainderl): Undefine macro from the system header.
4595
4596 2012-03-13  Bruno Haible  <bruno@clisp.org>
4597
4598         Avoid compilation errors with MSVC option -fp:strict.
4599         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
4600         * lib/cbrtf.c: Likewise.
4601         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4602
4603 2012-03-12  Bruno Haible  <bruno@clisp.org>
4604
4605         uninorm: Don't crash in out-of-memory conditions.
4606         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
4607         gracefully.
4608         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
4609         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
4610
4611 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
4612
4613         quote: fix syntax-check
4614         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
4615         also exports quote_quoting_options.
4616
4617 2012-03-12  Simon Josefsson  <simon@josefsson.org>
4618
4619         Collapse list of copyright years to ranges.  See
4620         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
4621         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
4622         build-aux/csharpexec.sh.in, build-aux/gnupload,
4623         build-aux/install-reloc, build-aux/javacomp.sh.in,
4624         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
4625         build-aux/move-if-change, build-aux/reloc-ldflags,
4626         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
4627
4628 2012-03-11  Bruno Haible  <bruno@clisp.org>
4629
4630         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4631         * m4/log2f-ieee.m4: New file.
4632         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
4633         whether log2f works with a minus zero argument. Replace it if not.
4634         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
4635         (Depends-on): Add log2-ieee.
4636         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
4637         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
4638
4639         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4640         * m4/log2-ieee.m4: New file.
4641         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
4642         whether log2 works with a minus zero argument. Replace it if not.
4643         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
4644         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
4645         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
4646
4647         Tests for module 'log2l-ieee'.
4648         * modules/log2l-ieee-tests: New file.
4649         * tests/test-log2l-ieee.c: New file.
4650
4651         New module 'log2l-ieee'.
4652         * modules/log2l-ieee: New file.
4653
4654         Tests for module 'log2-ieee'.
4655         * modules/log2-ieee-tests: New file.
4656         * tests/test-log2-ieee.c: New file.
4657
4658         New module 'log2-ieee'.
4659         * modules/log2-ieee: New file.
4660
4661         Tests for module 'log2f-ieee'.
4662         * modules/log2f-ieee-tests: New file.
4663         * tests/test-log2f-ieee.c: New file.
4664         * tests/test-log2-ieee.h: New file.
4665
4666         New module 'log2f-ieee'.
4667         * modules/log2f-ieee: New file.
4668
4669 2012-03-11  Bruno Haible  <bruno@clisp.org>
4670
4671         Tests for module 'log2l'.
4672         * modules/log2l-tests: New file.
4673         * tests/test-log2l.c: New file.
4674
4675         New module 'log2l'.
4676         * lib/math.in.h (log2l): New declaration.
4677         * lib/log2l.c: New file.
4678         * m4/log2l.m4: New file.
4679         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
4680         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
4681         REPLACE_LOG2L.
4682         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
4683         REPLACE_LOG2L.
4684         * modules/log2l: New file.
4685         * tests/test-math-c++.cc: Check the declaration of log2l.
4686         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
4687         and OSF/1 problems.
4688
4689 2012-03-11  Bruno Haible  <bruno@clisp.org>
4690
4691         Tests for module 'log2f'.
4692         * modules/log2f-tests: New file.
4693         * tests/test-log2f.c: New file.
4694
4695         New module 'log2f'.
4696         * lib/math.in.h (log2f): New declaration.
4697         * lib/log2f.c: New file.
4698         * m4/log2f.m4: New file.
4699         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
4700         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
4701         REPLACE_LOG2F.
4702         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
4703         REPLACE_LOG2F.
4704         * modules/log2f: New file.
4705         * tests/test-math-c++.cc: Check the declaration of log2f.
4706         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
4707         and OSF/1 and Cygwin problems.
4708
4709 2012-03-11  Bruno Haible  <bruno@clisp.org>
4710
4711         Tests for module 'log2'.
4712         * modules/log2-tests: New file.
4713         * tests/test-log2.c: New file.
4714         * tests/test-log2.h: New file.
4715
4716         New module 'log2'.
4717         * lib/math.in.h (log2): New declaration.
4718         * lib/log2.c: New file.
4719         * m4/log2.m4: New file.
4720         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
4721         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
4722         REPLACE_LOG2.
4723         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
4724         REPLACE_LOG2.
4725         * modules/log2: New file.
4726         * tests/test-math-c++.cc: Check the declaration of log2.
4727         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
4728         and OSF/1 and Cygwin problems.
4729
4730 2012-03-11  Bruno Haible  <bruno@clisp.org>
4731
4732         exp2* tests: More tests.
4733         * tests/test-exp2.h (test_function): Test all integral arguments that
4734         don't need to overflow or denormalized numbers.
4735         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
4736         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
4737         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
4738
4739 2012-03-10  Bruno Haible  <bruno@clisp.org>
4740
4741         log1pl-ieee: Work around test failure on AIX 7.1.
4742         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
4743
4744         log1pl-ieee: Work around test failure on IRIX 6.5.
4745         * m4/log1pl-ieee.m4: New file.
4746         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
4747         test whether log1pl works with a minus zero argument. Replace it if
4748         not.
4749         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
4750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
4751         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
4752         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
4753         (Depends-on): Update conditions.
4754         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4755         m4/signbit.m4.
4756         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
4757         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
4758
4759         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
4760         * m4/log1pf-ieee.m4: New file.
4761         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
4762         test whether log1pf works with a minus zero argument. Replace it if
4763         not.
4764         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
4765         m4/signbit.m4.
4766         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
4767         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
4768
4769         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
4770         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
4771         (configure.ac): Require gl_FUNC_LOG1PF.
4772
4773         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
4774         * m4/log1p-ieee.m4: New file.
4775         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
4776         whether log1p works with a minus zero argument. Replace it if not.
4777         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
4778         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
4779         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
4780         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
4781         (Depends-on): Update conditions.
4782         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4783         m4/signbit.m4.
4784         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
4785         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
4786
4787         Tests for module 'log1pl-ieee'.
4788         * modules/log1pl-ieee-tests: New file.
4789         * tests/test-log1pl-ieee.c: New file.
4790
4791         New module 'log1pl-ieee'.
4792         * modules/log1pl-ieee: New file.
4793
4794         Tests for module 'log1p-ieee'.
4795         * modules/log1p-ieee-tests: New file.
4796         * tests/test-log1p-ieee.c: New file.
4797
4798         New module 'log1p-ieee'.
4799         * modules/log1p-ieee: New file.
4800
4801         Tests for module 'log1pf-ieee'.
4802         * modules/log1pf-ieee-tests: New file.
4803         * tests/test-log1pf-ieee.c: New file.
4804         * tests/test-log1p-ieee.h: New file.
4805
4806         New module 'log1pf-ieee'.
4807         * modules/log1pf-ieee: New file.
4808
4809 2012-03-10  Bruno Haible  <bruno@clisp.org>
4810
4811         Tests for module 'log1pl'.
4812         * modules/log1pl-tests: New file.
4813         * tests/test-log1pl.c: New file.
4814
4815         New module 'log1pl'.
4816         * lib/math.in.h (log1pl): New declaration.
4817         * lib/log1pl.c: New file.
4818         * m4/log1pl.m4: New file.
4819         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
4820         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
4821         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
4822         * modules/log1pl: New file.
4823         * tests/test-math-c++.cc: Check the declaration of log1pl.
4824         * doc/posix-functions/log1pl.texi: Mention the new module.
4825
4826 2012-03-10  Bruno Haible  <bruno@clisp.org>
4827
4828         Tests for module 'log1pf'.
4829         * modules/log1pf-tests: New file.
4830         * tests/test-log1pf.c: New file.
4831
4832         New module 'log1pf'.
4833         * lib/math.in.h (log1pf): New declaration.
4834         * lib/log1pf.c: New file.
4835         * m4/log1pf.m4: New file.
4836         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
4837         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
4838         REPLACE_LOG1PF.
4839         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
4840         REPLACE_LOG1PF.
4841         * modules/log1pf: New file.
4842         * tests/test-math-c++.cc: Check the declaration of log1pf.
4843         * doc/posix-functions/log1pf.texi: Mention the new module.
4844
4845 2012-03-10  Bruno Haible  <bruno@clisp.org>
4846
4847         log1p tests: More tests.
4848         * tests/test-log1p.h: New file.
4849         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
4850         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
4851         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
4852         (main): Invoke test_function.
4853
4854         log1p: Provide replacement for Minix and MSVC.
4855         * lib/math.in.h (log1p): New declaration.
4856         * lib/log1p.c: New file.
4857         * m4/log1p.m4: New file.
4858         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
4859         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
4860         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
4861         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
4862         (Depends-on): Add math, isnand, log, round.
4863         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
4864         HAVE_LOG1P is 0.
4865         * tests/test-math-c++.cc: Check the declaration of log1p.
4866         * doc/posix-functions/log1p.texi: Mention the replacement.
4867
4868 2012-03-10  Bruno Haible  <bruno@clisp.org>
4869
4870         math tests: Small simplification.
4871         * tests/test-exp.h (test_function): Use the same err_bound for
4872         'double' on platforms with sizeof (long double) == sizeof (double)
4873         than on platforms with sizeof (long double) > sizeof (double).
4874         * tests/test-exp2.h (test_function): Likewise.
4875         * tests/test-expm1.h (test_function): Likewise.
4876         * tests/test-log.h (test_function): Likewise.
4877
4878 2012-03-10  Bruno Haible  <bruno@clisp.org>
4879
4880         Fix some comments.
4881         * lib/expl.c: Fix an ambiguous comment.
4882         * lib/expm1.c: Likewise.
4883         * lib/expm1l.c: Likewise.
4884         * lib/exp2.c: Likewise.
4885         * lib/exp2l.c: Likewise.
4886
4887 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
4888
4889         regex: allow inclusion of <regex.h> before <limits.h>
4890         Without this patch, portable programs had to include <limits.h> before
4891         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
4892         I ran into this problem with a test version of GNU grep on Solaris 8.
4893         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
4894         This is done conditionally so that this change can be merged
4895         back to glibc.
4896         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
4897         using the included regex.
4898
4899         fts: depend on fdopendir
4900         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
4901         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
4902         problem was introduced when fdopendir was split out.
4903
4904 2012-03-10  Bruno Haible  <bruno@clisp.org>
4905
4906         Remove unused variables.
4907         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
4908         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4909
4910 2012-03-10  Bruno Haible  <bruno@clisp.org>
4911
4912         isnanf-nolibm: Fix last commit.
4913         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
4914
4915         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
4916         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
4917
4918 2012-03-10  Bruno Haible  <bruno@clisp.org>
4919
4920         logf-ieee: Work around test failure on NetBSD 5.1.
4921         * m4/logf-ieee.m4: New file.
4922         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
4923         whether logf works with a negative argument. Replace it if not.
4924         * lib/logf.c (logf): For negative arguments, return NaN.
4925         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
4926         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
4927         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
4928
4929         logf-ieee: Work around test failure on Solaris 9.
4930         * modules/logf-ieee (Depends-on): Add log-ieee.
4931         (configure.ac): Require gl_FUNC_LOGF.
4932
4933         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4934         * m4/log-ieee.m4: New file.
4935         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
4936         log works with a negative argument. Replace it if not.
4937         * lib/log.c (log): For negative arguments, return NaN.
4938         * modules/log-ieee (Files): Add m4/log-ieee.m4.
4939         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
4940         * doc/posix-functions/log.texi: Mention the log-ieee module.
4941
4942         Tests for module 'logl-ieee'.
4943         * modules/logl-ieee-tests: New file.
4944         * tests/test-logl-ieee.c: New file.
4945
4946         New module 'logl-ieee'.
4947         * modules/logl-ieee: New file.
4948
4949         Tests for module 'log-ieee'.
4950         * modules/log-ieee-tests: New file.
4951         * tests/test-log-ieee.c: New file.
4952
4953         New module 'log-ieee'.
4954         * modules/log-ieee: New file.
4955
4956         Tests for module 'logf-ieee'.
4957         * modules/logf-ieee-tests: New file.
4958         * tests/test-logf-ieee.c: New file.
4959         * tests/test-log-ieee.h: New file.
4960
4961         New module 'logf-ieee'.
4962         * modules/logf-ieee: New file.
4963
4964 2012-03-10  Bruno Haible  <bruno@clisp.org>
4965
4966         log: Fix bug introduced on 2012-03-09.
4967         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
4968
4969 2012-03-10  Pádraig Brady  <P@draigBrady.com>
4970
4971         timer-time: link explicitly with pthreads on glibc
4972         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
4973         to support static linking, when newer glibc is
4974         detected, as that contains pthread emulation of
4975         POSIX timer functions where required.
4976         * modules/timer-time: Depend on threadlib to
4977         pull in the appropriate library to link.
4978
4979 2012-03-10  Bruno Haible  <bruno@clisp.org>
4980
4981         log* tests: More tests.
4982         * tests/test-log.h: New file.
4983         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
4984         (main): Invoke test_function.
4985         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
4986         (main): Invoke test_function.
4987         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
4988         (main): Invoke test_function.
4989         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4990         tests/randomd.c.
4991         (Makefile.am): Add randomd.c to test_log_SOURCES.
4992         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4993         tests/randomf.c.
4994         (Makefile.am): Add randomf.c to test_logf_SOURCES.
4995         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4996         tests/randoml.c.
4997         (Depends-on): Add 'float'.
4998         (Makefile.am): Add randoml.c to test_logl_SOURCES.
4999
5000 2012-03-09  Bruno Haible  <bruno@clisp.org>
5001
5002         logl: Work around OSF/1 5.1 bug.
5003         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
5004         * lib/logl.c (logl): If logl exists, use it and provide just the
5005         workaround.
5006         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
5007         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
5008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
5009         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
5010         * modules/logl (configure.ac): Consider REPLACE_LOGL.
5011         (Depends-on): Update conditions.
5012         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
5013
5014 2012-03-09  Bruno Haible  <bruno@clisp.org>
5015
5016         logf: Work around OSF/1 5.1 bug.
5017         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
5018         * lib/logf.c (logf): If logf exists, use it and provide just the
5019         workaround.
5020         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
5021         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
5022         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
5023         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
5024         * modules/logf (configure.ac): Consider REPLACE_LOGF.
5025         (Depends-on): Update conditions.
5026         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
5027
5028 2012-03-09  Bruno Haible  <bruno@clisp.org>
5029
5030         log: Work around OSF/1 5.1 bug.
5031         * lib/math.in.h (log): New declaration.
5032         * lib/log.c: New file.
5033         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
5034         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
5035         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
5036         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
5037         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
5038         * modules/log (Files): Add lib/log.c.
5039         (Depends-on): Add math.
5040         (configure.ac): If REPLACE_LOG is 1, compile an override.
5041         * tests/test-math-c++.cc: Check the declaration of log.
5042         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
5043
5044 2012-03-09  Jim Meyering  <meyering@redhat.com>
5045
5046         readtokens.c: adjust wording in a comment
5047         * lib/readtokens.c: Insert omitted "that" in a comment.
5048
5049 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5050
5051         modechange: add notations +40, 00440, etc.
5052         * lib/modechange.c (mode_compile): Support new notations
5053         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
5054
5055 2012-03-08  Bruno Haible  <bruno@clisp.org>
5056
5057         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
5058         * m4/exp2l-ieee.m4: New file.
5059         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
5060         test whether exp2l works with a NaN argument and with a negative
5061         infinity argument. Replace it if not.
5062         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
5063         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
5064         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
5065         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
5066         (Depends-on): Update conditions.
5067         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
5068         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
5069         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
5070
5071         Tests for module 'exp2l-ieee'.
5072         * modules/exp2l-ieee-tests: New file.
5073         * tests/test-exp2l-ieee.c: New file.
5074
5075         New module 'exp2l-ieee'.
5076         * modules/exp2l-ieee: New file.
5077
5078         Tests for module 'exp2-ieee'.
5079         * modules/exp2-ieee-tests: New file.
5080         * tests/test-exp2-ieee.c: New file.
5081
5082         New module 'exp2-ieee'.
5083         * modules/exp2-ieee: New file.
5084
5085         Tests for module 'exp2f-ieee'.
5086         * modules/exp2f-ieee-tests: New file.
5087         * tests/test-exp2f-ieee.c: New file.
5088         * tests/test-exp2-ieee.h: New file.
5089
5090         New module 'exp2f-ieee'.
5091         * modules/exp2f-ieee: New file.
5092
5093 2012-03-08  Bruno Haible  <bruno@clisp.org>
5094
5095         Tests for module 'exp2l'.
5096         * modules/exp2l-tests: New file.
5097         * tests/test-exp2l.c: New file.
5098
5099         New module 'exp2l'.
5100         * lib/math.in.h (exp2l): New declaration.
5101         * lib/exp2l.c: New file.
5102         * lib/expl-table.c: New file, extracted from lib/expl.c.
5103         * lib/expl.c (gl_expl_table): New declaration.
5104         (expl): Remove expl_table. Update reference.
5105         * m4/exp2l.m4: New file.
5106         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
5107         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
5108         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
5109         * modules/exp2l: New file.
5110         * modules/expl (Files): Add lib/expl-table.c.
5111         (configure.ac): Compile also expl-table.c.
5112         * tests/test-math-c++.cc: Check the declaration of exp2l.
5113         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
5114         problem.
5115
5116 2012-03-08  Bruno Haible  <bruno@clisp.org>
5117
5118         Tests for module 'exp2f'.
5119         * modules/exp2f-tests: New file.
5120         * tests/test-exp2f.c: New file.
5121
5122         New module 'exp2f'.
5123         * lib/math.in.h (exp2f): New declaration.
5124         * lib/exp2f.c: New file.
5125         * m4/exp2f.m4: New file.
5126         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
5127         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
5128         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
5129         * modules/exp2f: New file.
5130         * tests/test-math-c++.cc: Check the declaration of exp2f.
5131         * doc/posix-functions/exp2f.texi: Mention the new module and the
5132         IRIX problem.
5133
5134 2012-03-08  Bruno Haible  <bruno@clisp.org>
5135
5136         Tests for module 'exp2'.
5137         * modules/exp2-tests: New file.
5138         * tests/test-exp2.c: New file.
5139         * tests/test-exp2.h: New file.
5140
5141         New module 'exp2'.
5142         * lib/math.in.h (exp2): New declaration.
5143         * lib/exp2.c: New file.
5144         * m4/exp2.m4: New file.
5145         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
5146         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
5147         REPLACE_EXP2.
5148         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
5149         REPLACE_EXP2.
5150         * modules/exp2: New file.
5151         * tests/test-math-c++.cc: Check the declaration of exp2.
5152         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
5153         and OpenBSD problems.
5154
5155 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5156
5157         savedir: fix comment typo
5158         * lib/savedir.c (savedirstream): Fix typo in comment.
5159
5160 2012-03-08  Bruno Haible  <bruno@clisp.org>
5161
5162         test-readtokens.c: use const; remove unwarranted cast
5163         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
5164
5165 2012-03-08  Bruno Haible  <bruno@clisp.org>
5166
5167         fmal: Avoid compilation error on AIX.
5168         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
5169         AIX 5.2..7.1.
5170
5171 2012-03-08  Bruno Haible  <bruno@clisp.org>
5172
5173         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
5174         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
5175         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
5176         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
5177         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
5178         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
5179         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
5180
5181 2012-03-08  Bruno Haible  <bruno@clisp.org>
5182
5183         remainderf: Override buggy system function on IRIX 6.5.
5184         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
5185         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
5186         when it exists.
5187         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
5188
5189 2012-03-08  Jim Meyering  <meyering@redhat.com>
5190
5191         test-readtokens.c: avoid const-related compilation warnings
5192         * tests/test-readtokens.c: Avoid const-related compilation warnings.
5193
5194 2012-03-07  Jim Meyering  <meyering@redhat.com>
5195             Bruno Haible  <bruno@clisp.org>
5196
5197         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
5198         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
5199         tests/randomd.c.
5200         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
5201         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
5202         tests/randoml.c.
5203         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
5204
5205 2012-03-07  Bruno Haible  <bruno@clisp.org>
5206
5207         expm1l: Avoid compilation error on AIX.
5208         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
5209         AIX 5.2..7.1.
5210
5211 2012-03-07  Bruno Haible  <bruno@clisp.org>
5212
5213         expm1l: Don't override undeclared system function on IRIX 6.5.
5214         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
5215         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
5216         it exists. Set HAVE_DECL_EXPM1L.
5217         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
5218         HAVE_EXPM1L.
5219         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
5220         HAVE_EXPM1L.
5221         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
5222
5223 2012-03-07  Bruno Haible  <bruno@clisp.org>
5224
5225         remainderl: Don't override undeclared system function on IRIX 6.5.
5226         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
5227         HAVE_REMAINDERL.
5228         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
5229         declared when it exists. Set HAVE_DECL_REMAINDERL.
5230         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
5231         not HAVE_REMAINDERL.
5232         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
5233         HAVE_REMAINDERL.
5234         * doc/posix-functions/remainderl.texi: Mention missing declaration
5235         problem.
5236
5237 2012-03-07  Bruno Haible  <bruno@clisp.org>
5238
5239         rintf: Don't override undeclared system function on IRIX 6.5.
5240         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
5241         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
5242         exists. Set HAVE_DECL_RINTF.
5243         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
5244         HAVE_RINTF.
5245         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
5246         HAVE_RINTF.
5247         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
5248
5249 2012-03-07  Bruno Haible  <bruno@clisp.org>
5250
5251         roundl: Avoid compilation error on AIX.
5252         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
5253         AIX 5.2..7.1.
5254
5255 2012-03-07  Bruno Haible  <bruno@clisp.org>
5256
5257         roundl: Don't override undeclared system function on IRIX 6.5.
5258         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
5259         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
5260         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5261         * modules/roundl (configure.ac): For replacement code, test
5262         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5263         (Depends-on): Update conditions.
5264         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
5265
5266 2012-03-07  Bruno Haible  <bruno@clisp.org>
5267
5268         roundf: Don't override undeclared system function on IRIX 6.5.
5269         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
5270         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
5271         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5272         * modules/roundf (configure.ac): For replacement code, test
5273         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5274         (Depends-on): Update conditions.
5275         * modules/roundf-ieee (Depends-on): Update conditions.
5276         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
5277
5278 2012-03-07  Bruno Haible  <bruno@clisp.org>
5279
5280         round: Don't override undeclared system function on IRIX 6.5.
5281         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
5282         argument.
5283         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
5284         also when it is not declared. Set HAVE_ROUND. For replacement code,
5285         test HAVE_ROUND, not HAVE_DECL_ROUND.
5286         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
5287         not HAVE_DECL_ROUND.
5288         (Depends-on): Update conditions.
5289         * modules/round-ieee (Depends-on): Update conditions.
5290         * doc/posix-functions/round.texi: Mention the IRIX problem.
5291
5292 2012-03-07  Bruno Haible  <bruno@clisp.org>
5293
5294         copysignf: Don't override undeclared system function on IRIX 6.5.
5295         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
5296         HAVE_COPYSIGNF.
5297         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
5298         declared when it exists. Set HAVE_DECL_COPYSIGNF.
5299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
5300         not HAVE_COPYSIGNF.
5301         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
5302         HAVE_COPYSIGNF.
5303         * doc/posix-functions/copysignf.texi: Mention missing declaration
5304         problem.
5305
5306 2012-03-07  Jim Meyering  <meyering@redhat.com>
5307
5308         readtokens: add tests
5309         * modules/readtokens-tests: New file.
5310         * tests/test-readtokens.c: New file.
5311
5312 2012-03-07  Jim Meyering  <meyering@redhat.com>
5313
5314         quotearg: the module must now include quote.h
5315         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
5316         So must the module.
5317         * modules/quotearg (Files): Add quote.h.
5318
5319 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
5320
5321         readtokens: avoid core dumps with unusual calling patterns
5322         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
5323         * lib/readtokens.c: Include limits.h.
5324         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
5325         (readtoken): Don't cache the delimiters; the cache code was buggy
5326         if !delim && saved_delim, or if the new n_delim differs from the old.
5327         Also, it wasn't thread-safe.
5328
5329 2012-03-07  Bruno Haible  <bruno@clisp.org>
5330
5331         quote: Adhere to common module description layout.
5332         * modules/quote (Makefile.am): Add back empty section.
5333
5334 2012-03-06  Akim Demaille  <demaille@gostai.com>
5335
5336         quote: fuse into quotearg
5337         This patch is made for the benefit of Bison.
5338         quote does not leave the choice of the quoting style to the user.
5339         quoting_style provides poor customizability, yet quoting_options,
5340         which is very rich, is hidden inside quotearg.c.  So in order to
5341         allow quote customization, move its implementation to quotearg.c.
5342         * lib/quote.c: Remove.
5343         * modules/quote: Adjust.
5344         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
5345         warning: provide all the members of literal structs.
5346         (quote_quoting_options): New.
5347         (quote, quote_n): Import implementation from quote.c.
5348         * lib/quote.h: Import the comments from quote.c.
5349         (quote_quoting_options): New.
5350
5351 2012-03-06  Bruno Haible  <bruno@clisp.org>
5352
5353         Tests for module 'expm1l-ieee'.
5354         * modules/expm1l-ieee-tests: New file.
5355         * tests/test-expm1l-ieee.c: New file.
5356
5357         New module 'expm1l-ieee'.
5358         * modules/expm1l-ieee: New file.
5359
5360         Tests for module 'expm1f-ieee'.
5361         * modules/expm1f-ieee-tests: New file.
5362         * tests/test-expm1f-ieee.c: New file.
5363
5364         New module 'expm1f-ieee'.
5365         * modules/expm1f-ieee: New file.
5366
5367         Tests for module 'expm1-ieee'.
5368         * modules/expm1-ieee-tests: New file.
5369         * tests/test-expm1-ieee.c: New file.
5370         * tests/test-expm1-ieee.h: New file.
5371
5372         New module 'expm1-ieee'.
5373         * modules/expm1-ieee: New file.
5374         * m4/expm1-ieee.m4: New file.
5375         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
5376         whether expm1 works with a minus zero argument. Replace it if not.
5377         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
5378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
5379         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
5380         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
5381         (Depends-on): Update conditions.
5382         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
5383         AIX problem.
5384
5385 2012-03-06  Bruno Haible  <bruno@clisp.org>
5386
5387         Work around expm1f bug on IRIX 6.5.
5388         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
5389         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
5390         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
5391         not work.
5392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
5393         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
5394         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
5395         (Depends-on): Update conditions.
5396         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
5397
5398 2012-03-06  Bruno Haible  <bruno@clisp.org>
5399
5400         Tests for module 'expm1l'.
5401         * modules/expm1l-tests: New file.
5402         * tests/test-expm1l.c: New file.
5403
5404         New module 'expm1l'.
5405         * lib/math.in.h (expm1l): New declaration.
5406         * lib/expm1l.c: New file.
5407         * m4/expm1l.m4: New file.
5408         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
5409         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
5410         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
5411         * modules/expm1l: New file.
5412         * tests/test-math-c++.cc: Check the declaration of expm1l.
5413         * doc/posix-functions/expm1l.texi: Mention the new module.
5414
5415 2012-03-06  Bruno Haible  <bruno@clisp.org>
5416
5417         Tests for module 'expm1f'.
5418         * modules/expm1f-tests: New file.
5419         * tests/test-expm1f.c: New file.
5420
5421         New module 'expm1f'.
5422         * lib/math.in.h (expm1f): New declaration.
5423         * lib/expm1f.c: New file.
5424         * m4/expm1f.m4: New file.
5425         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
5426         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
5427         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
5428         * modules/expm1f: New file.
5429         * tests/test-math-c++.cc: Check the declaration of expm1f.
5430         * doc/posix-functions/expm1f.texi: Mention the new module.
5431
5432 2012-03-06  Bruno Haible  <bruno@clisp.org>
5433
5434         Tests for module 'expm1'.
5435         * modules/expm1-tests: New file.
5436         * tests/test-expm1.c: New file.
5437         * tests/test-expm1.h: New file.
5438
5439         New module 'expm1'.
5440         * lib/math.in.h (expm1): New declaration.
5441         * lib/expm1.c: New file.
5442         * m4/expm1.m4: New file.
5443         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
5444         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
5445         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
5446         * modules/expm1: New file.
5447         * tests/test-math-c++.cc: Check the declaration of expm1.
5448         * doc/posix-functions/expm1.texi: Mention the new module.
5449
5450 2012-03-06  Bruno Haible  <bruno@clisp.org>
5451
5452         math: Ensure declarations of math functions.
5453         * modules/acosf (Depends-on): Add 'extensions'.
5454         * modules/asinf (Depends-on): Likewise.
5455         * modules/atan2f (Depends-on): Likewise.
5456         * modules/atanf (Depends-on): Likewise.
5457         * modules/cbrt (Depends-on): Likewise.
5458         * modules/cbrtf (Depends-on): Likewise.
5459         * modules/cbrtl (Depends-on): Likewise.
5460         * modules/copysignf (Depends-on): Likewise.
5461         * modules/copysignl (Depends-on): Likewise.
5462         * modules/cosf (Depends-on): Likewise.
5463         * modules/coshf (Depends-on): Likewise.
5464         * modules/expf (Depends-on): Likewise.
5465         * modules/fabsf (Depends-on): Likewise.
5466         * modules/fabsl (Depends-on): Likewise.
5467         * modules/fmaf (Depends-on): Likewise.
5468         * modules/fmal (Depends-on): Likewise.
5469         * modules/fmodf (Depends-on): Likewise.
5470         * modules/fmodl (Depends-on): Likewise.
5471         * modules/frexpf (Depends-on): Likewise.
5472         * modules/frexpl (Depends-on): Likewise.
5473         * modules/hypot (Depends-on): Likewise.
5474         * modules/hypotf (Depends-on): Likewise.
5475         * modules/hypotl (Depends-on): Likewise.
5476         * modules/ldexpf (Depends-on): Likewise.
5477         * modules/ldexpl (Depends-on): Likewise.
5478         * modules/log10f (Depends-on): Likewise.
5479         * modules/log10l (Depends-on): Likewise.
5480         * modules/log1p (Depends-on): Likewise.
5481         * modules/logb (Depends-on): Likewise.
5482         * modules/logf (Depends-on): Likewise.
5483         * modules/modff (Depends-on): Likewise.
5484         * modules/modfl (Depends-on): Likewise.
5485         * modules/powf (Depends-on): Likewise.
5486         * modules/remainderf (Depends-on): Likewise.
5487         * modules/remainderl (Depends-on): Likewise.
5488         * modules/rintf (Depends-on): Likewise.
5489         * modules/rintl (Depends-on): Likewise.
5490         * modules/sinf (Depends-on): Likewise.
5491         * modules/sinhf (Depends-on): Likewise.
5492         * modules/sqrtf (Depends-on): Likewise.
5493         * modules/tanf (Depends-on): Likewise.
5494         * modules/tanhf (Depends-on): Likewise.
5495         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
5496         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
5497         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
5498         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
5499         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
5500         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
5501         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
5502         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
5503         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
5504         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
5505         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
5506         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
5507         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
5508         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
5509         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
5510         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
5511         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
5512         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5513         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
5514         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
5515         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
5516         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
5517         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
5518         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
5519         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5520         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
5521         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
5522         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5523         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
5524         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
5525         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5526         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
5527         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5528         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5529         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5530         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5531         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
5532         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
5533         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
5534         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
5535         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
5536
5537 2012-03-06  Bruno Haible  <bruno@clisp.org>
5538
5539         math: Update module names in warnings.
5540         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
5541         tanl): Use specific module name in warn-on-use warning.
5542
5543 2012-03-06  Bruno Haible  <bruno@clisp.org>
5544
5545         expl: Simplify computation.
5546         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
5547
5548 2012-03-05  Bruno Haible  <bruno@clisp.org>
5549
5550         exp* tests: More tests.
5551         * tests/test-exp.h: New file.
5552         * tests/test-exp.c: Include <float.h> and test-exp.h.
5553         (main): Invoke test_function.
5554         * tests/test-expf.c: Include <float.h> and test-exp.h.
5555         (main): Invoke test_function.
5556         * tests/test-expl.c: Include <float.h> and test-exp.h.
5557         (main): Invoke test_function.
5558         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
5559         (Makefile.am): Add randomd.c to test_exp_SOURCES.
5560         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
5561         (Makefile.am): Add randomf.c to test_expf_SOURCES.
5562         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
5563         (Depends-on): Add 'float'.
5564         (Makefile.am): Add randoml.c to test_expl_SOURCES.
5565
5566         expl: Fix precision of computed result.
5567         * lib/expl.c: Completely rewritten.
5568         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
5569         (Maintainer): Add me.
5570         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
5571
5572 2012-03-05  Bruno Haible  <bruno@clisp.org>
5573
5574         cbrt* tests: More tests.
5575         * tests/test-cbrt.h: New file.
5576         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
5577         (main): Invoke test_function.
5578         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
5579         (main): Invoke test_function.
5580         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
5581         (main): Invoke test_function.
5582         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
5583         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
5584         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
5585         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
5586         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
5587         (Depends-on): Add 'float'.
5588         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
5589
5590 2012-03-05  Bruno Haible  <bruno@clisp.org>
5591
5592         hypot* tests: More tests.
5593         * tests/test-hypot.h: New file, partially extracted from
5594         tests/test-hypotl.c.
5595         * tests/test-hypot.c: Include test-hypot.h.
5596         (main): Invoke test_function.
5597         * tests/test-hypotf.c: Include test-hypot.h.
5598         (main): Invoke test_function.
5599         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
5600         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
5601         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
5602         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
5603         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
5604         tests/randomf.c.
5605         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
5606         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
5607         tests/randoml.c.
5608         (Depends-on): Add 'fpucw', 'float'.
5609         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
5610
5611 2012-03-05  Bruno Haible  <bruno@clisp.org>
5612
5613         fpucw: Doc about FreeBSD.
5614         * lib/fpucw.h: Mention FreeBSD in comments.
5615
5616 2012-03-04  Bruno Haible  <bruno@clisp.org>
5617
5618         sqrt* tests: More tests.
5619         * tests/test-sqrt.h: New file.
5620         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
5621         (main): Invoke test_function.
5622         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
5623         (main): Invoke test_function.
5624         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
5625         (main): Invoke test_function.
5626         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
5627         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
5628         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
5629         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
5630         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
5631         (Depends-on): Add 'float'.
5632         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
5633
5634 2012-03-04  Bruno Haible  <bruno@clisp.org>
5635
5636         remainder* tests: More tests.
5637         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
5638         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
5639         (main): Invoke test_function.
5640         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
5641         (main): Invoke test_function.
5642         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
5643         (main): Invoke test_function.
5644         * modules/remainder-tests (Files): Add tests/test-remainder.h,
5645         tests/randomd.c.
5646         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
5647         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
5648         tests/randomf.c.
5649         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
5650         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
5651         tests/randoml.c.
5652         (Depends-on): Add 'float'.
5653         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
5654
5655 2012-03-04  Bruno Haible  <bruno@clisp.org>
5656
5657         remainder, remainderf, remainderl: Fix computation for large quotients.
5658         * lib/remainder.c: Completely rewritten.
5659         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
5660         USE_FLOAT.
5661         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
5662         USE_LONG_DOUBLE.
5663         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
5664         isnand, isinf. Remove round, fma.
5665         * modules/remainderf (Files): Add lib/remainder.c.
5666         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
5667         Remove roundf, fmaf.
5668         * modules/remainderl (Files): Add lib/remainder.c.
5669         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
5670         isinf. Remove roundl, fmal.
5671         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
5672         REMAINDER_LIBM.
5673         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
5674         REMAINDERF_LIBM.
5675         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
5676         REMAINDERL_LIBM.
5677
5678 2012-03-04  Bruno Haible  <bruno@clisp.org>
5679
5680         fmod* tests: More tests.
5681         * tests/test-fmod.h (my_ldexp): New function.
5682         (test_function): Reduce amount of random numbers to test. Add tests
5683         of very large quotients x / y.
5684         * tests/test-fmod.c (MAX_EXP): New macro.
5685         * tests/test-fmodf.c (MAX_EXP): Likewise.
5686         * tests/test-fmodl.c (MAX_EXP): Likewise.
5687
5688 2012-03-04  Bruno Haible  <bruno@clisp.org>
5689
5690         fmod, fmodl: Fix computation for large quotients x / y.
5691         * lib/fmod.c: Completely rewritten.
5692         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
5693         USE_LONG_DOUBLE.
5694         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
5695         isnand. Remove fma.
5696         * modules/fmodl (Files): Add lib/fmod.c.
5697         (Depends-on): Add float, isfinite, signbit, fabsl,
5698         frexpl, ldexpl, isnanl. Remove fma.
5699         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
5700         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
5701
5702 2012-03-03  Bruno Haible  <bruno@clisp.org>
5703
5704         fmod* tests: More tests.
5705         * tests/test-fmod.h: New file.
5706         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
5707         (main): Invoke test_function.
5708         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
5709         (main): Invoke test_function.
5710         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
5711         (main): Invoke test_function.
5712         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
5713         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
5714         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
5715         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
5716         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
5717         (Depends-on): Add 'float'.
5718         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
5719
5720 2012-03-03  Bruno Haible  <bruno@clisp.org>
5721
5722         rint* tests: More tests.
5723         * tests/test-rint.h: New file, partially extracted from
5724         tests/test-rintl.c.
5725         * tests/test-rint.c: Include test-rint.h.
5726         (main): Invoke test_function.
5727         * tests/test-rintf.c: Include test-rint.h.
5728         (main): Invoke test_function.
5729         * tests/test-rintl.c: Include test-rint.h.
5730         (main): Invoke test_function.
5731         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
5732         (Makefile.am): Add randomd.c to test_rint_SOURCES.
5733         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
5734         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
5735         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
5736         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
5737
5738 2012-03-03  Bruno Haible  <bruno@clisp.org>
5739
5740         modf* tests: More tests.
5741         * tests/test-modf.h: New file.
5742         * tests/test-modf.c: Include <float.h> and test-modf.h.
5743         (main): Invoke test_function.
5744         * tests/test-modff.c: Include <float.h> and test-modf.h.
5745         (main): Invoke test_function.
5746         * tests/test-modfl.c: Include <float.h> and test-modf.h.
5747         (main): Invoke test_function.
5748         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
5749         (Makefile.am): Add randomd.c to test_modf_SOURCES.
5750         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
5751         (Makefile.am): Add randomf.c to test_modff_SOURCES.
5752         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
5753         (Depends-on): Add 'float'.
5754         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
5755
5756 2012-03-03  Bruno Haible  <bruno@clisp.org>
5757
5758         fabs* tests: More tests.
5759         * tests/test-fabs.h: New file, partially extracted from
5760         tests/test-fabsl.c.
5761         * tests/test-fabs.c (RANDOM): New macro.
5762         * tests/test-fabsf.c (RANDOM): New macro.
5763         * tests/test-fabsl.c (RANDOM): New macro.
5764         * modules/fabs-tests (Files): Add tests/randomd.c.
5765         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
5766         * modules/fabsf-tests (Files): Add tests/randomf.c.
5767         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
5768         * modules/fabsl-tests (Files): Add tests/randoml.c.
5769         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
5770
5771 2012-03-03  Bruno Haible  <bruno@clisp.org>
5772
5773         ldexp* tests: More tests.
5774         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
5775         * tests/test-ldexp.c (RANDOM): New macro.
5776         * tests/test-ldexpf.c (RANDOM): New macro.
5777         * tests/test-ldexpl.c (RANDOM): New macro.
5778         * modules/ldexp-tests (Files): Add tests/randomd.c.
5779         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
5780         * modules/ldexpf-tests (Files): Add tests/randomf.c.
5781         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
5782         * modules/ldexpl-tests (Files): Add tests/randoml.c.
5783         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
5784
5785 2012-03-03  Bruno Haible  <bruno@clisp.org>
5786
5787         frexp* tests: More tests.
5788         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
5789         * tests/test-frexp.c (RANDOM): New macro.
5790         * tests/test-frexpf.c (RANDOM): New macro.
5791         * tests/test-frexpl.c (RANDOM): New macro.
5792         * modules/frexp-tests (Files): Add tests/randomd.c.
5793         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
5794         * modules/frexpf-tests (Files): Add tests/randomf.c.
5795         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
5796         * modules/frexpl-tests (Files): Add tests/randoml.c.
5797         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
5798
5799 2012-03-03  Bruno Haible  <bruno@clisp.org>
5800
5801         Support for pseudo-random numbers in tests.
5802         * tests/randomf.c: New file.
5803         * tests/randomd.c: New file.
5804         * tests/randoml.c: New file.
5805         * tests/macros.h (randomf, randomd, randoml): New declarations.
5806
5807 2012-03-03  Bruno Haible  <bruno@clisp.org>
5808
5809         frexp* tests: Refactor.
5810         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
5811         * tests/test-frexp.c: Include and use it.
5812         * tests/test-frexpf.c: Likewise.
5813         * tests/test-frexpl.c: Likewise.
5814         * modules/frexp-tests (Files): Add tests/test-frexp.h.
5815         * modules/frexpf-tests (Files): Likewise.
5816         * modules/frexpl-tests (Files): Likewise.
5817
5818 2012-03-02  Jim Meyering  <meyering@redhat.com>
5819
5820         maint: don't specify XZ_OPT=-9ev in dist-related rule
5821         Using xz's -9 option is warranted only if you have a very large
5822         tarball (see xz's documentation for the sizes vs. presets), and
5823         requires 64MiB of memory at decompression time.
5824         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
5825         Automake's default of just "-e" is fine.  Override on a
5826         per-package basis by setting XZ_OPT e.g., in cfg.mk.
5827
5828 2012-03-01  Eric Blake  <eblake@redhat.com>
5829
5830         maint.mk: allow announcement for non-gnulib project
5831         * maint.mk (announcement): Skip gnulib version if not used.
5832
5833 2012-03-01  Jim Meyering  <meyering@redhat.com>
5834
5835         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
5836         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
5837         envvar settings cannot interfere.  Otherwise, setting envvars like
5838         prohibit=foo require=bar, etc. would cause spurious test failures.
5839
5840 2012-03-01  Eric Blake  <eblake@redhat.com>
5841
5842         maint.mk: add per-line exclusions to prohibitions
5843         * maint.mk (_sc_search_regexp): Add $exclude parameter.
5844         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
5845         (sc_const_long_option): Use it.
5846
5847 2012-03-01  Bruno Haible  <bruno@clisp.org>
5848
5849         Tests for module 'expl-ieee'.
5850         * modules/expl-ieee-tests: New file.
5851         * tests/test-expl-ieee.c: New file.
5852
5853         New module 'expl-ieee'.
5854         * modules/expl-ieee: New file.
5855
5856         Tests for module 'exp-ieee'.
5857         * modules/exp-ieee-tests: New file.
5858         * tests/test-exp-ieee.c: New file.
5859
5860         New module 'exp-ieee'.
5861         * modules/exp-ieee: New file.
5862
5863         Tests for module 'expf-ieee'.
5864         * modules/expf-ieee-tests: New file.
5865         * tests/test-expf-ieee.c: New file.
5866         * tests/test-exp-ieee.h: New file.
5867
5868         New module 'expf-ieee'.
5869         * modules/expf-ieee: New file.
5870
5871 2012-02-29  Bruno Haible  <bruno@clisp.org>
5872
5873         cbrtl-ieee: Work around test failure on IRIX 6.5.
5874         * m4/cbrtl-ieee.m4: New file.
5875         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
5876         test whether cbrtl works with a minus zero argument. Replace it if not.
5877         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
5878         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
5879         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
5880         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
5881         (Depends-on): Update conditions.
5882         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
5883         m4/signbit.m4.
5884         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
5885         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
5886         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
5887
5888         Tests for module 'cbrtl-ieee'.
5889         * modules/cbrtl-ieee-tests: New file.
5890         * tests/test-cbrtl-ieee.c: New file.
5891
5892         New module 'cbrtl-ieee'.
5893         * modules/cbrtl-ieee: New file.
5894
5895         Tests for module 'cbrt-ieee'.
5896         * modules/cbrt-ieee-tests: New file.
5897         * tests/test-cbrt-ieee.c: New file.
5898
5899         New module 'cbrt-ieee'.
5900         * modules/cbrt-ieee: New file.
5901
5902         Tests for module 'cbrtf-ieee'.
5903         * modules/cbrtf-ieee-tests: New file.
5904         * tests/test-cbrtf-ieee.c: New file.
5905         * tests/test-cbrt-ieee.h: New file.
5906
5907         New module 'cbrtf-ieee'.
5908         * modules/cbrtf-ieee: New file.
5909
5910 2012-02-29  Bruno Haible  <bruno@clisp.org>
5911
5912         cbrtf: Work around bug in IRIX 6.5 system function.
5913         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
5914         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
5915         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
5916         work.
5917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
5918         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
5919         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
5920         (Depends-on): Update conditions.
5921         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
5922
5923 2012-02-29  Bruno Haible  <bruno@clisp.org>
5924
5925         Tests for module 'cbrtl'.
5926         * modules/cbrtl-tests: New file.
5927         * tests/test-cbrtl.c: New file.
5928
5929         New module 'cbrtl'.
5930         * lib/math.in.h (cbrtl): New declaration.
5931         * lib/cbrtl.c: New file.
5932         * m4/cbrtl.m4: New file.
5933         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
5934         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
5935         HAVE_DECL_CBRTL.
5936         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
5937         HAVE_DECL_CBRTL.
5938         * modules/cbrtl: New file.
5939         * tests/test-math-c++.cc: Check the declaration of cbrtl.
5940         * doc/posix-functions/cbrtl.texi: Mention the new module.
5941
5942 2012-02-29  Bruno Haible  <bruno@clisp.org>
5943
5944         Tests for module 'cbrtf'.
5945         * modules/cbrtf-tests: New file.
5946         * tests/test-cbrtf.c: New file.
5947
5948         New module 'cbrtf'.
5949         * lib/math.in.h (cbrtf): New declaration.
5950         * lib/cbrtf.c: New file.
5951         * m4/cbrtf.m4: New file.
5952         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
5953         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
5954         HAVE_DECL_CBRTF.
5955         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
5956         HAVE_DECL_CBRTF.
5957         * modules/cbrtf: New file.
5958         * tests/test-math-c++.cc: Check the declaration of cbrtf.
5959         * doc/posix-functions/cbrtf.texi: Mention the new module.
5960
5961 2012-02-29  Bruno Haible  <bruno@clisp.org>
5962
5963         cbrt: Provide replacement on MSVC and Minix.
5964         * lib/math.in.h (cbrt): New declaration.
5965         * lib/cbrt.c: New file.
5966         * m4/cbrt.m4: New file.
5967         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
5968         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
5969         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
5970         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
5971         (Depends-on): Add dependencies.
5972         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
5973         * tests/test-math-c++.cc: Check the declaration of cbrt.
5974         * doc/posix-functions/cbrt.texi: Mention that the module provides a
5975         replacement.
5976
5977 2012-02-29  Bruno Haible  <bruno@clisp.org>
5978
5979         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
5980         * m4/hypotl-ieee.m4: New file.
5981         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
5982         test whether hypotl works with mixed NaN and Infinity arguments.
5983         Replace it if not.
5984         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
5985         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
5986         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
5987         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
5988         (Depends-on): Update conditions.
5989         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
5990         (Depends-on): Add hypot-ieee.
5991         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
5992         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
5993
5994         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
5995         * m4/hypotf-ieee.m4: New file.
5996         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
5997         test whether hypotf works with mixed NaN and Infinity arguments.
5998         Replace it if not.
5999         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
6000         (Depends-on): Add hypot-ieee.
6001         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
6002         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
6003
6004         hypot-ieee: Work around test failure on OSF/1 and native Windows.
6005         * lib/math.in.h (hypot): New declaration.
6006         * lib/hypot.c: New file.
6007         * m4/hypot-ieee.m4: New file.
6008         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
6009         whether hypot works with mixed NaN and Infinity arguments. Replace it
6010         if not.
6011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
6012         REPLACE_HYPOT.
6013         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
6014         * modules/hypot (Files): Add lib/hypot.c.
6015         (Depends-on): Add dependencies.
6016         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
6017         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
6018         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
6019         * tests/test-math-c++.cc: Check the declaration of hypot.
6020         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
6021
6022         Tests for module 'hypotl-ieee'.
6023         * modules/hypotl-ieee-tests: New file.
6024         * tests/test-hypotl-ieee.c: New file.
6025
6026         New module 'hypotl-ieee'.
6027         * modules/hypotl-ieee: New file.
6028
6029         Tests for module 'hypot-ieee'.
6030         * modules/hypot-ieee-tests: New file.
6031         * tests/test-hypot-ieee.c: New file.
6032
6033         New module 'hypot-ieee'.
6034         * modules/hypot-ieee: New file.
6035
6036         Tests for module 'hypotf-ieee'.
6037         * modules/hypotf-ieee-tests: New file.
6038         * tests/test-hypotf-ieee.c: New file.
6039         * tests/test-hypot-ieee.h: New file.
6040
6041         New module 'hypotf-ieee'.
6042         * modules/hypotf-ieee: New file.
6043
6044 2012-02-29  Bruno Haible  <bruno@clisp.org>
6045
6046         Remove unused variables.
6047         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
6048         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6049         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6050         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6051
6052 2012-02-29  Eric Blake  <eblake@redhat.com>
6053
6054         termios: fix pid_t always, not just for tcgetsid
6055         * doc/posix-headers/termios.texi (termios.h): Mention problem.
6056         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
6057         just when building tcgetsid.
6058
6059 2012-02-29  Bruno Haible  <bruno@clisp.org>
6060
6061         Tests for module 'hypotl'.
6062         * modules/hypotl-tests: New file.
6063         * tests/test-hypotl.c: New file.
6064
6065         New module 'hypotl'.
6066         * lib/math.in.h (hypotl): New declaration.
6067         * lib/hypotl.c: New file.
6068         * m4/hypotl.m4: New file.
6069         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6070         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
6071         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
6072         * modules/hypotl: New file.
6073         * tests/test-math-c++.cc: Check the hypotl declaration.
6074         * doc/posix-functions/hypotl.texi: Mention the new module.
6075
6076 2012-02-29  Eric Blake  <eblake@redhat.com>
6077
6078         tcgetsid: fix cygwin header bug
6079         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
6080
6081         docs: update cygwin progress
6082         * doc/posix-functions/llround.texi (llround): Added in cygwin
6083         1.7.8.
6084         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
6085         * doc/glibc-functions/program_invocation_name.texi
6086         (program_invocation_name): Likewise.
6087         * doc/glibc-functions/program_invocation_short_name.texi
6088         (program_invocation_short_name): Likewise.
6089         * doc/glibc-functions/madvise.texi (madvise): Likewise.
6090         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
6091         Likewise.
6092         * doc/posix-functions/pthread_spin_destroy.texi
6093         (pthread_spin_destroy): Added in cygwin 1.7.10.
6094         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
6095         Likewise.
6096         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
6097         Likewise.
6098         * doc/posix-functions/pthread_spin_trylock.texi
6099         (pthread_spin_trylock): Likewise.
6100         * doc/posix-functions/pthread_spin_unlock.texi
6101         (pthread_spin_unlock): Likewise.
6102         * doc/posix-functions/pthread_setschedprio.texi
6103         (pthread_setschedprio): Likewise.
6104         * doc/posix-functions/pthread_attr_getstack.texi
6105         (pthread_attr_getstack): Likewise.
6106         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
6107         (pthread_attr_getstackaddr): Likewise.
6108         * doc/glibc-functions/pthread_getattr_np.texi
6109         (pthread_getattr_np): Likewise.
6110         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
6111         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
6112         * doc/posix-functions/clock_settime.texi (clock_settime):
6113         Likewise.
6114         * doc/posix-functions/pthread_attr_getguardsize.texi
6115         (pthread_attr_getguardsize): Likewise.
6116         * doc/posix-functions/pthread_attr_setguardsize.texi
6117         (pthread_attr_setguardsize): Likewise.
6118         * doc/posix-functions/pthread_attr_setstack.texi
6119         (pthread_attr_setstack): Likewise.
6120         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
6121         (pthread_attr_setstackaddr): Likewise.
6122         * doc/posix-functions/clock_getcpuclockid.texi
6123         (clock_getcpuclockid): Likewise.
6124         * doc/posix-functions/pthread_getcpuclockid.texi
6125         (pthread_getcpuclockid): Likewise.
6126         * doc/glibc-functions/error.texi (error): Likewise.
6127         * doc/glibc-functions/error_at_line.texi (error_at_line):
6128         Likewise.
6129         * doc/glibc-functions/error_message_count.texi
6130         (error_message_count): Likewise.
6131         * doc/glibc-functions/error_one_per_line.texi
6132         (error_one_per_line): Likewise.
6133         * doc/glibc-functions/error_print_progname.texi
6134         (error_print_progname): Likewise.
6135         * doc/posix-functions/pthread_condattr_getclock.texi
6136         (pthread_condattr_getclock): Likewise.
6137         * doc/posix-functions/pthread_condattr_setclock.texi
6138         (pthread_condattr_setclock): Likewise.
6139         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
6140         Likewise.
6141         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
6142         * doc/glibc-functions/getpt.texi (getpt): Likewise.
6143         * doc/glibc-functions/get_current_dir_name.texi
6144         (get_current_dir_name): Likewise.
6145         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
6146         Likewise.
6147         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
6148         wrong return type.
6149         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
6150         1.7.11.
6151
6152 2012-02-29  Bruno Haible  <bruno@clisp.org>
6153
6154         Tests for module 'hypotf'.
6155         * modules/hypotf-tests: New file.
6156         * tests/test-hypotf.c: New file.
6157
6158         New module 'hypotf'.
6159         * lib/math.in.h (hypotf): New declaration.
6160         * lib/hypotf.c: New file.
6161         * m4/hypotf.m4: New file.
6162         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6163         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
6164         REPLACE_HYPOTF.
6165         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
6166         REPLACE_HYPOTF.
6167         * modules/hypotf: New file.
6168         * tests/test-math-c++.cc: Check the hypotf declaration.
6169         * doc/posix-functions/hypotf.texi: Mention the new module.
6170
6171         hypot: Prepare for hypotf module.
6172         * m4/hypot.m4: New file.
6173         * modules/hypot (Files): Add m4/hypot.m4.
6174         (configure.ac): Invoke gl_FUNC_HYPOT.
6175
6176 2012-02-29  Bruno Haible  <bruno@clisp.org>
6177
6178         hypot tests: More tests.
6179         * tests/test-hypot.c: Include <float.h>.
6180         (main): Add tests about overflow and underflow.
6181
6182 2012-02-29  Bruno Haible  <bruno@clisp.org>
6183
6184         math code: Add comments.
6185         * lib/acosl.c: Add comment about related glibc source files.
6186         * lib/asinl.c: Likewise.
6187         * lib/atanl.c: Likewise.
6188         * lib/expl.c: Likewise.
6189         * lib/logl.c: Likewise.
6190         * lib/sincosl.c: Likewise.
6191         * lib/sinl.c: Likewise.
6192         * lib/tanl.c: Likewise.
6193         * lib/trigl.c: Likewise.
6194         * lib/cosl.c: Likewise. Fix comments.
6195
6196 2012-02-28  Bruno Haible  <bruno@clisp.org>
6197
6198         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
6199         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
6200         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
6201         HUGE_VALL are defined.
6202         (numeric_equald): Renamed from numeric_equal.
6203         (numeric_equalf, numeric_equall): New functions.
6204         (main): Check also HUGE_VALF, HUGE_VALL.
6205         * modules/math-tests (Files): Add tests/macros.h.
6206         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
6207         HUGE_VALL.
6208
6209 2012-02-28  Bruno Haible  <bruno@clisp.org>
6210
6211         doc: Move ISO C11 feature notes into POSIX chapters.
6212         * doc/posix-functions/aligned_alloc.texi: Renamed from
6213         doc/glibc-functions/aligned_alloc.texi.
6214         * doc/posix-functions/quick_exit.texi: Renamed from
6215         doc/glibc-functions/quick_exit.texi.
6216         * doc/posix-headers/uchar.texi: Renamed from
6217         doc/glibc-headers/uchar.texi.
6218         * doc/posix-functions/c16rtomb.texi: Renamed from
6219         doc/glibc-functions/c16rtomb.texi.
6220         * doc/posix-functions/c32rtomb.texi: Renamed from
6221         doc/glibc-functions/c32rtomb.texi.
6222         * doc/posix-functions/mbrtoc16.texi: Renamed from
6223         doc/glibc-functions/mbrtoc16.texi.
6224         * doc/posix-functions/mbrtoc32.texi: Renamed from
6225         doc/glibc-functions/mbrtoc32.texi.
6226         * doc/gnulib.texi: Update.
6227         (Glibc uchar.h): Remove section.
6228         Suggested by Eric Blake.
6229
6230 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
6231
6232         stdnoreturn: port to MSVC better
6233         MSVC standard headers use __declspec(noreturn), so #define noreturn
6234         to empty on that platform.  Reported by Bruno Haible in
6235         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
6236         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
6237         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
6238
6239 2012-02-28  Bruno Haible  <bruno@clisp.org>
6240
6241         doc: Mention new glibc headers and functions.
6242         * doc/glibc-headers/uchar.texi: New file.
6243         * doc/glibc-functions/aligned_alloc.texi: New file.
6244         * doc/glibc-functions/c16rtomb.texi: New file.
6245         * doc/glibc-functions/c32rtomb.texi: New file.
6246         * doc/glibc-functions/clock_adjtime.texi: New file.
6247         * doc/glibc-functions/fanotify_init.texi: New file.
6248         * doc/glibc-functions/fanotify_mark.texi: New file.
6249         * doc/glibc-functions/inet6_opt_append.texi: New file.
6250         * doc/glibc-functions/inet6_opt_find.texi: New file.
6251         * doc/glibc-functions/inet6_opt_finish.texi: New file.
6252         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
6253         * doc/glibc-functions/inet6_opt_init.texi: New file.
6254         * doc/glibc-functions/inet6_opt_next.texi: New file.
6255         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
6256         * doc/glibc-functions/inet6_rth_add.texi: New file.
6257         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
6258         * doc/glibc-functions/inet6_rth_init.texi: New file.
6259         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
6260         * doc/glibc-functions/inet6_rth_segments.texi: New file.
6261         * doc/glibc-functions/inet6_rth_space.texi: New file.
6262         * doc/glibc-functions/login.texi: New file.
6263         * doc/glibc-functions/mbrtoc16.texi: New file.
6264         * doc/glibc-functions/mbrtoc32.texi: New file.
6265         * doc/glibc-functions/name_to_handle_at.texi: New file.
6266         * doc/glibc-functions/ntp_gettimex.texi: New file.
6267         * doc/glibc-functions/open_by_handle_at.texi: New file.
6268         * doc/glibc-functions/prlimit.texi: New file.
6269         * doc/glibc-functions/process_vm_readv.texi: New file.
6270         * doc/glibc-functions/process_vm_writev.texi: New file.
6271         * doc/glibc-functions/recvmmsg.texi: New file.
6272         * doc/glibc-functions/scandirat.texi: New file.
6273         * doc/glibc-functions/sendmmsg.texi: New file.
6274         * doc/glibc-functions/setns.texi: New file.
6275         * doc/glibc-functions/timespec_get.texi: New file.
6276         * doc/gnulib.texi: Include them.
6277         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
6278         sections.
6279         Reported by Eric Blake.
6280
6281 2012-02-28  Bruno Haible  <bruno@clisp.org>
6282
6283         Avoid compilation errors with MSVC option -fp:strict.
6284         * lib/floor.c: Use MSVC specific pragma fenv_access.
6285         * lib/ceil.c: Likewise.
6286         * lib/trunc.c: Likewise.
6287         * lib/round.c: Likewise.
6288         * lib/rint.c: Likewise.
6289         * lib/fma.c: Likewise.
6290         * lib/integer_length.c: Likewise.
6291         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6292         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6293         * tests/test-floor2.c: Likewise.
6294         * tests/test-floorf2.c: Likewise.
6295         * tests/test-ceil2.c: Likewise.
6296         * tests/test-ceilf2.c: Likewise.
6297         * tests/test-trunc2.c: Likewise.
6298         * tests/test-truncf2.c: Likewise.
6299         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6300
6301 2012-02-27  Bruno Haible  <bruno@clisp.org>
6302
6303         Tests for module 'sqrtl-ieee'.
6304         * modules/sqrtl-ieee-tests: New file.
6305         * tests/test-sqrtl-ieee.c: New file.
6306
6307         New module 'sqrtl-ieee'.
6308         * modules/sqrtl-ieee: New file.
6309
6310         Tests for module 'sqrt-ieee'.
6311         * modules/sqrt-ieee-tests: New file.
6312         * tests/test-sqrt-ieee.c: New file.
6313
6314         New module 'sqrt-ieee'.
6315         * modules/sqrt-ieee: New file.
6316
6317         Tests for module 'sqrtf-ieee'.
6318         * modules/sqrtf-ieee-tests: New file.
6319         * tests/test-sqrtf-ieee.c: New file.
6320         * tests/test-sqrt-ieee.h: New file.
6321
6322         New module 'sqrtf-ieee'.
6323         * modules/sqrtf-ieee: New file.
6324
6325 2012-02-27  Bruno Haible  <bruno@clisp.org>
6326
6327         remainderl-ieee: Work around test failure on OSF/1.
6328         * m4/remainderl-ieee.m4: New file.
6329         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
6330         present, test whether remainderl works with a zero second argument.
6331         Replace it if not.
6332         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
6333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
6334         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
6335         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
6336         (Depends-on): Update conditions.
6337         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
6338         (Depends-on): Add remainder-ieee.
6339         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
6340         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
6341         module.
6342
6343         remainderf-ieee: Work around test failure on OSF/1.
6344         * m4/remainderf-ieee.m4: New file.
6345         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
6346         present, test whether remainderf works with a zero second argument.
6347         Replace it if not.
6348         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
6349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
6350         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
6351         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
6352         (Depends-on): Update conditions.
6353         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
6354         (Depends-on): Add remainder-ieee.
6355         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
6356         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
6357         module.
6358
6359         remainder-ieee: Work around test failure on OSF/1.
6360         * m4/remainder-ieee.m4: New file.
6361         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
6362         present, test whether remainder works with a zero second argument.
6363         Replace it if not.
6364         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
6365         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
6366         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
6367         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
6368         (Depends-on): Update dependencies.
6369         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
6370         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
6371         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
6372
6373         Tests for module 'remainderl-ieee'.
6374         * modules/remainderl-ieee-tests: New file.
6375         * tests/test-remainderl-ieee.c: New file.
6376
6377         New module 'remainderl-ieee'.
6378         * modules/remainderl-ieee: New file.
6379
6380         Tests for module 'remainder-ieee'.
6381         * modules/remainder-ieee-tests: New file.
6382         * tests/test-remainder-ieee.c: New file.
6383
6384         New module 'remainder-ieee'.
6385         * modules/remainder-ieee: New file.
6386
6387         Tests for module 'remainderf-ieee'.
6388         * modules/remainderf-ieee-tests: New file.
6389         * tests/test-remainderf-ieee.c: New file.
6390         * tests/test-remainder-ieee.h: New file.
6391
6392         New module 'remainderf-ieee'.
6393         * modules/remainderf-ieee: New file.
6394
6395 2012-02-27  Bruno Haible  <bruno@clisp.org>
6396
6397         modff, modfl: Fix configure syntax error.
6398         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
6399         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6400
6401 2012-02-27  Bruno Haible  <bruno@clisp.org>
6402
6403         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
6404         * m4/fmodl-ieee.m4: New file.
6405         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
6406         whether fmodl works with zero arguments. Replace it if not.
6407         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
6408         (Depends-on): Add fmod-ieee.
6409         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
6410         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
6411
6412         fmodf-ieee: Work around test failure on OSF/1.
6413         * m4/fmodf-ieee.m4: New file.
6414         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
6415         whether fmodf works with zero arguments. Replace it if not.
6416         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
6417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
6418         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
6419         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
6420         (Depends-on): Update dependencies.
6421         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
6422         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
6423         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
6424
6425         fmodf-ieee: Work around test failure on MSVC 9.
6426         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
6427         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
6428
6429         fmod-ieee: Work around test failures on OSF/1, mingw.
6430         * m4/fmod-ieee.m4: New file.
6431         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
6432         whether fmod works with zero arguments. Replace it if not.
6433         * lib/math.in.h (fmod): New declaration.
6434         * lib/fmod.c: New file.
6435         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
6436         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
6437         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
6438         * modules/fmod (Files): Add lib/fmod.c.
6439         (Depends-on): Add math, isinf, trunc, fma.
6440         (configure.ac): Arrange to compile lib/fmod.c if needed.
6441         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
6442         m4/signbit.m4.
6443         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
6444         * tests/test-math-c++.cc: Check the declaration of fmod.
6445         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
6446
6447         fmodl-ieee: Fix test failures.
6448         * lib/fmodl.c (fmodl): Treat Inf specially.
6449         * modules/fmodl (Depends-on): Add isinf.
6450
6451         Tests for module 'fmodl-ieee'.
6452         * modules/fmodl-ieee-tests: New file.
6453         * tests/test-fmodl-ieee.c: New file.
6454
6455         New module 'fmodl-ieee'.
6456         * modules/fmodl-ieee: New file.
6457
6458         Tests for module 'fmod-ieee'.
6459         * modules/fmod-ieee-tests: New file.
6460         * tests/test-fmod-ieee.c: New file.
6461
6462         New module 'fmod-ieee'.
6463         * modules/fmod-ieee: New file.
6464
6465         Tests for module 'fmodf-ieee'.
6466         * modules/fmodf-ieee-tests: New file.
6467         * tests/test-fmodf-ieee.c: New file.
6468         * tests/test-fmod-ieee.h: New file.
6469
6470         New module 'fmodf-ieee'.
6471         * modules/fmodf-ieee: New file.
6472
6473 2012-02-27  Bruno Haible  <bruno@clisp.org>
6474
6475         Tests for module 'rintl-ieee'.
6476         * modules/rintl-ieee-tests: New file.
6477         * tests/test-rintl-ieee.c: New file.
6478
6479         New module 'rintl-ieee'.
6480         * modules/rintl-ieee: New file.
6481
6482         Tests for module 'rint-ieee'.
6483         * modules/rint-ieee-tests: New file.
6484         * tests/test-rint-ieee.c: New file.
6485
6486         New module 'rint-ieee'.
6487         * modules/rint-ieee: New file.
6488
6489         Tests for module 'rintf-ieee'.
6490         * modules/rintf-ieee-tests: New file.
6491         * tests/test-rintf-ieee.c: New file.
6492         * tests/test-rint-ieee.h: New file.
6493
6494         New module 'rintf-ieee'.
6495         * modules/rintf-ieee: New file.
6496
6497 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6498
6499         regex: re_search etc. should return -2 when memory exhausted
6500         This bug was uncovered when testing 'grep'.  Without the fix,
6501         re_search and friends return -1 when memory is exhausted, but -1
6502         means no match, and this causes grep to falsely report no-match
6503         instead of memory-exhaustion.  See
6504         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
6505         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
6506         trouble; this can occur if re_search_internal ran out of memory.
6507
6508 2012-02-26  Bruno Haible  <bruno@clisp.org>
6509
6510         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
6511         * m4/modfl-ieee.m4: New file.
6512         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
6513         whether modfl works with Inf. Replace it if not.
6514         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
6515         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
6516         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
6517         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
6518         (Depends-on): Update dependencies.
6519         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
6520         m4/signbit.m4.
6521         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
6522         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
6523
6524         modfl-ieee: Fix dependencies.
6525         * modules/modfl-ieee (Depends-on): Add modf-ieee.
6526
6527         modfl-ieee: Fix test failures.
6528         * lib/modfl.c (modfl): Treat NaN and Inf specially.
6529         * modules/modfl (Depends-on): Add isfinite, isinf.
6530
6531         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
6532         * m4/modff-ieee.m4: New file.
6533         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
6534         whether modff works with NaN and Inf. Replace it if not.
6535         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
6536         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
6537         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
6538         * modules/modff (configure.ac): Consider REPLACE_MODFF.
6539         (Depends-on): Update dependencies.
6540         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
6541         m4/signbit.m4.
6542         (Depends-on): Add modf-ieee.
6543         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
6544         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
6545
6546         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
6547         * m4/modf-ieee.m4: New file.
6548         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
6549         whether modf works with NaN and Inf. Replace it if not.
6550         * lib/math.in.h (modf): New declaration.
6551         * lib/modf.c: New file.
6552         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
6553         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
6554         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
6555         * modules/modf (Files): Add lib/modf.c.
6556         (Depends-on): Add math, isfinite, trunc, isinf.
6557         (configure.ac): Addrange to compile lib/modf.c if needed.
6558         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
6559         m4/signbit.m4.
6560         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
6561         * tests/test-math-c++.cc: Check the declaration of modf.
6562         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
6563
6564         Tests for module 'modfl-ieee'.
6565         * modules/modfl-ieee-tests: New file.
6566         * tests/test-modfl-ieee.c: New file.
6567
6568         New module 'modfl-ieee'.
6569         * modules/modfl-ieee: New file.
6570
6571         Tests for module 'modf-ieee'.
6572         * modules/modf-ieee-tests: New file.
6573         * tests/test-modf-ieee.c: New file.
6574
6575         New module 'modf-ieee'.
6576         * modules/modf-ieee: New file.
6577
6578         Tests for module 'modff-ieee'.
6579         * modules/modff-ieee-tests: New file.
6580         * tests/test-modff-ieee.c: New file.
6581         * tests/test-modf-ieee.h: New file.
6582
6583         New module 'modff-ieee'.
6584         * modules/modff-ieee: New file.
6585
6586 2012-02-26  Bruno Haible  <bruno@clisp.org>
6587
6588         Tests for module 'fabsl-ieee'.
6589         * modules/fabsl-ieee-tests: New file.
6590         * tests/test-fabsl-ieee.c: New file.
6591
6592         New module 'fabsl-ieee'.
6593         * modules/fabsl-ieee: New file.
6594
6595         Tests for module 'fabs-ieee'.
6596         * modules/fabs-ieee-tests: New file.
6597         * tests/test-fabs-ieee.c: New file.
6598
6599         New module 'fabs-ieee'.
6600         * modules/fabs-ieee: New file.
6601
6602         Tests for module 'fabsf-ieee'.
6603         * modules/fabsf-ieee-tests: New file.
6604         * tests/test-fabsf-ieee.c: New file.
6605         * tests/test-fabs-ieee.h: New file.
6606
6607         New module 'fabsf-ieee'.
6608         * modules/fabsf-ieee: New file.
6609
6610 2012-02-26  Bruno Haible  <bruno@clisp.org>
6611
6612         Tests for module 'fmal-ieee'.
6613         * modules/fmal-ieee-tests: New file.
6614         * tests/test-fmal-ieee.c: New file.
6615
6616         New module 'fmal-ieee'.
6617         * modules/fmal-ieee: New file.
6618
6619         Tests for module 'fma-ieee'.
6620         * modules/fma-ieee-tests: New file.
6621         * tests/test-fma-ieee.c: New file.
6622
6623         New module 'fma-ieee'.
6624         * modules/fma-ieee: New file.
6625
6626         Tests for module 'fmaf-ieee'.
6627         * modules/fmaf-ieee-tests: New file.
6628         * tests/test-fmaf-ieee.c: New file.
6629         * tests/test-fma-ieee.h: New file.
6630
6631         New module 'fmaf-ieee'.
6632         * modules/fmaf-ieee: New file.
6633
6634 2012-02-26  Bruno Haible  <bruno@clisp.org>
6635
6636         Tests for module 'ldexpl-ieee'.
6637         * modules/ldexpl-ieee-tests: New file.
6638         * tests/test-ldexpl-ieee.c: New file.
6639
6640         New module 'ldexpl-ieee'.
6641         * modules/ldexpl-ieee: New file.
6642
6643         Tests for module 'ldexp-ieee'.
6644         * modules/ldexp-ieee-tests: New file.
6645         * tests/test-ldexp-ieee.c: New file.
6646
6647         New module 'ldexp-ieee'.
6648         * modules/ldexp-ieee: New file.
6649
6650         Tests for module 'ldexpf-ieee'.
6651         * modules/ldexpf-ieee-tests: New file.
6652         * tests/test-ldexpf-ieee.c: New file.
6653         * tests/test-ldexp-ieee.h: New file.
6654
6655         New module 'ldexpf-ieee'.
6656         * modules/ldexpf-ieee: New file.
6657
6658 2012-02-26  Bruno Haible  <bruno@clisp.org>
6659
6660         Refactor frexp*-ieee tests.
6661         * tests/test-frexp-ieee.h: New file.
6662         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
6663         (main): Just call test_function.
6664         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
6665         (main): Just call test_function.
6666         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
6667         (main): Just call test_function.
6668         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
6669         * modules/frexp-ieee-tests (Files): Likewise.
6670         * modules/frexpl-ieee-tests (Files): Likewise.
6671
6672         Tests for module 'frexpl-ieee'.
6673         * modules/frexpl-ieee-tests: New file.
6674         * tests/test-frexpl-ieee.c: New file.
6675
6676         New module 'frexpl-ieee'.
6677         * modules/frexpl-ieee: New file.
6678
6679         Tests for module 'frexp-ieee'.
6680         * modules/frexp-ieee-tests: New file.
6681         * tests/test-frexp-ieee.c: New file.
6682
6683         New module 'frexp-ieee'.
6684         * modules/frexp-ieee: New file.
6685
6686         Tests for module 'frexpf-ieee'.
6687         * modules/frexpf-ieee-tests: New file.
6688         * tests/test-frexpf-ieee.c: New file.
6689
6690         New module 'frexpf-ieee'.
6691         * modules/frexpf-ieee: New file.
6692
6693 2012-02-26  Bruno Haible  <bruno@clisp.org>
6694
6695         roundl-ieee tests: More tests.
6696         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6697         (main): Add tests for [MX] shaded specification in POSIX.
6698         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6699         (Depends-on): Add isnanl-nolibm.
6700
6701         round-ieee tests: More tests.
6702         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6703         (main): Add tests for [MX] shaded specification in POSIX.
6704         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6705         (Depends-on): Add isnand-nolibm.
6706
6707         roundf-ieee tests: More tests.
6708         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6709         (main): Add tests for [MX] shaded specification in POSIX.
6710         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6711         (Depends-on): Add isnanf-nolibm.
6712
6713         truncl-ieee tests: More tests.
6714         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6715         (main): Add tests for [MX] shaded specification in POSIX.
6716         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6717         (Depends-on): Add isnanl-nolibm.
6718
6719         trunc-ieee tests: More tests.
6720         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6721         (main): Add tests for [MX] shaded specification in POSIX.
6722         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6723         (Depends-on): Add isnand-nolibm.
6724
6725         truncf-ieee tests: More tests.
6726         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6727         (main): Add tests for [MX] shaded specification in POSIX.
6728         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6729         (Depends-on): Add isnanf-nolibm.
6730
6731         ceill-ieee tests: More tests.
6732         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6733         (main): Add tests for [MX] shaded specification in POSIX.
6734         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6735         (Depends-on): Add isnanl-nolibm.
6736
6737         ceil-ieee tests: More tests.
6738         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6739         (main): Add tests for [MX] shaded specification in POSIX.
6740         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6741         (Depends-on): Add isnand-nolibm.
6742
6743         ceilf-ieee tests: More tests.
6744         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6745         (main): Add tests for [MX] shaded specification in POSIX.
6746         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6747         (Depends-on): Add isnanf-nolibm.
6748
6749         floorl-ieee tests: More tests.
6750         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6751         (main): Add tests for [MX] shaded specification in POSIX.
6752         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6753         (Depends-on): Add isnanl-nolibm.
6754
6755         floor-ieee tests: More tests.
6756         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6757         (main): Add tests for [MX] shaded specification in POSIX.
6758         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6759         (Depends-on): Add isnand-nolibm.
6760
6761         floorf-ieee tests: More tests.
6762         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6763         (main): Add tests for [MX] shaded specification in POSIX.
6764         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6765         (Depends-on): Add isnanf-nolibm.
6766
6767 2012-02-26  Bruno Haible  <bruno@clisp.org>
6768
6769         fpieee: More comments.
6770         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
6771
6772 2012-02-25  Bruno Haible  <bruno@clisp.org>
6773
6774         Tests for module 'log10l'.
6775         * modules/log10l-tests: New file.
6776         * tests/test-log10l.c: New file.
6777         * tests/test-math-c++.cc: Check the declaration of log10l.
6778
6779         New module 'log10l'.
6780         * lib/math.in.h (log10l): New declaration.
6781         * lib/log10l.c: New file.
6782         * m4/log10l.m4: New file.
6783         * modules/log10l: New file.
6784         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
6785         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
6786         HAVE_DECL_LOG10L.
6787         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
6788         HAVE_DECL_LOG10L.
6789         * doc/posix-functions/log10l.texi: Mention the new module.
6790
6791 2012-02-25  Bruno Haible  <bruno@clisp.org>
6792
6793         fmodl, remainder*: Avoid wrong results due to rounding errors.
6794         * lib/fmodl.c (fmodl): Correct the result if it is not within the
6795         expected bounds.
6796         * lib/remainderf.c (remainderf): Likewise.
6797         * lib/remainder.c (remainder): Likewise.
6798         * lib/remainderl.c (remainderl): Likewise.
6799
6800 2012-02-25  Bruno Haible  <bruno@clisp.org>
6801
6802         Tests for module 'remainderl'.
6803         * modules/remainderl-tests: New file.
6804         * tests/test-remainderl.c: New file.
6805         * tests/test-math-c++.cc: Check the declaration of remainderl.
6806
6807         New module 'remainderl'.
6808         * lib/math.in.h (remainderl): New declaration.
6809         * lib/remainderl.c: New file.
6810         * m4/remainderl.m4: New file.
6811         * modules/remainderl: New file.
6812         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
6813         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
6814         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
6815         HAVE_REMAINDERL.
6816         * doc/posix-functions/remainderl.texi: Mention the new module.
6817
6818 2012-02-25  Bruno Haible  <bruno@clisp.org>
6819
6820         Tests for module 'remainderf'.
6821         * modules/remainderf-tests: New file.
6822         * tests/test-remainderf.c: New file.
6823         * tests/test-math-c++.cc: Check the declaration of remainderf.
6824
6825         New module 'remainderf'.
6826         * lib/math.in.h (remainderf): New declaration.
6827         * lib/remainderf.c: New file.
6828         * m4/remainderf.m4: New file.
6829         * modules/remainderf: New file.
6830         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
6831         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
6832         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
6833         HAVE_REMAINDERF.
6834         * doc/posix-functions/remainderf.texi: Mention the new module.
6835
6836 2012-02-25  Bruno Haible  <bruno@clisp.org>
6837
6838         remainder: Support for MSVC.
6839         * lib/math.in.h (remainder): New declaration.
6840         * lib/remainder.c: New file.
6841         * m4/remainder.m4: New file.
6842         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
6843         (Depends-on): Add math, round, fma.
6844         (configure.ac): Use results of gl_FUNC_REMAINDER.
6845         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
6846         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
6847         HAVE_DECL_REMAINDER.
6848         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
6849         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
6850         * tests/test-math-c++.cc: Check the declaration of remainder.
6851         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
6852         problems are fixed.
6853
6854 2012-02-25  Bruno Haible  <bruno@clisp.org>
6855
6856         Tests for module 'fmodl'.
6857         * modules/fmodl-tests: New file.
6858         * tests/test-fmodl.c: New file.
6859         * tests/test-math-c++.cc: Check the declaration of fmodl.
6860
6861         New module 'fmodl'.
6862         * lib/math.in.h (fmodl): New declaration.
6863         * lib/fmodl.c: New file.
6864         * m4/fmodl.m4: New file.
6865         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
6866         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
6867         REPLACE_FMODL.
6868         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
6869         REPLACE_FMODL.
6870         * modules/fmodl: New file.
6871         * doc/posix-functions/fmodl.texi: Mention the new module.
6872
6873 2012-02-25  Bruno Haible  <bruno@clisp.org>
6874
6875         Tests for module 'modfl'.
6876         * modules/modfl-tests: New file.
6877         * tests/test-modfl.c: New file.
6878         * tests/test-math-c++.cc: Check the declaration of modfl.
6879
6880         New module 'modfl'.
6881         * lib/math.in.h (modfl): New declaration.
6882         * lib/modfl.c: New file.
6883         * m4/modfl.m4: New file.
6884         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
6885         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
6886         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
6887         * modules/modfl: New file.
6888         * doc/posix-functions/modfl.texi: Mention the new module.
6889
6890 2012-02-25  Bruno Haible  <bruno@clisp.org>
6891
6892         Tests for module 'fabsl'.
6893         * modules/fabsl-tests: New file.
6894         * tests/test-fabsl.c: New file.
6895         * tests/test-math-c++.cc: Check the declaration of fabsl.
6896
6897         New module 'fabsl'.
6898         * lib/math.in.h (fabsl): New declaration.
6899         * lib/fabsl.c: New file.
6900         * m4/fabsl.m4: New file.
6901         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
6902         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
6903         REPLACE_FABSL.
6904         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
6905         REPLACE_FABSL.
6906         * modules/fabsl: New file.
6907         * doc/posix-functions/fabsl.texi: Mention the new module.
6908
6909 2012-02-25  Bruno Haible  <bruno@clisp.org>
6910
6911         fabs tests: More tests.
6912         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
6913         (zero): New variable.
6914         (main): Add tests for signed zero.
6915         * modules/fabs-tests (Files): Add tests/minus-zero.h.
6916
6917         fabsf tests: More tests.
6918         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
6919         (zero): New variable.
6920         (main): Add tests for signed zero.
6921         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
6922
6923 2012-02-24  Bruno Haible  <bruno@clisp.org>
6924
6925         atanl: Provide function definition on MSVC.
6926         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
6927         function pointer.
6928         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
6929
6930 2012-02-24  Bruno Haible  <bruno@clisp.org>
6931
6932         acosl: Provide function definition on MSVC.
6933         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
6934         function pointer.
6935         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
6936
6937 2012-02-24  Bruno Haible  <bruno@clisp.org>
6938
6939         asinl: Provide function definition on MSVC.
6940         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
6941         function pointer.
6942         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
6943
6944 2012-02-24  Bruno Haible  <bruno@clisp.org>
6945
6946         tanl: Provide function definition on MSVC.
6947         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
6948         function pointer.
6949         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
6950
6951 2012-02-24  Bruno Haible  <bruno@clisp.org>
6952
6953         cosl: Provide function definition on MSVC.
6954         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
6955         function pointer.
6956         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
6957
6958 2012-02-24  Bruno Haible  <bruno@clisp.org>
6959
6960         sinl: Provide function definition on MSVC.
6961         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
6962         function pointer.
6963         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
6964
6965 2012-02-24  Bruno Haible  <bruno@clisp.org>
6966
6967         logl: Provide function definition on MSVC.
6968         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
6969         function pointer.
6970         * lib/math.in.h (logl): Undefine if it does not exist as a function.
6971
6972 2012-02-24  Bruno Haible  <bruno@clisp.org>
6973
6974         expl: Provide function definition on MSVC.
6975         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
6976         function pointer.
6977         * lib/math.in.h (expl): Undefine if it does not exist as a function.
6978
6979 2012-02-24  Bruno Haible  <bruno@clisp.org>
6980
6981         sqrtl: Provide function definition on MSVC.
6982         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
6983         a function pointer.
6984         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
6985
6986 2012-02-24  Bruno Haible  <bruno@clisp.org>
6987
6988         ceill: Provide function definition on MSVC.
6989         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
6990         used as a function pointer.
6991         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
6992
6993 2012-02-24  Bruno Haible  <bruno@clisp.org>
6994
6995         floorl: Provide function definition on MSVC.
6996         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
6997         used as a function pointer.
6998         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
6999
7000 2012-02-24  Bruno Haible  <bruno@clisp.org>
7001
7002         ceilf: Provide function definition on MSVC.
7003         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
7004         used as a function pointer.
7005         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
7006
7007 2012-02-24  Bruno Haible  <bruno@clisp.org>
7008
7009         floorf: Provide function definition on MSVC.
7010         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
7011         used as a function pointer.
7012         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
7013
7014 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7015
7016         stdnoreturn: new module
7017         This implements a replacement for C11's <stdnoreturn.h>.
7018         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
7019         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
7020         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7021         * tests/test-stdnoreturn.c: New files.
7022
7023 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
7024
7025         regex: fix false multibyte matches in some regular expressions
7026         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
7027         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
7028         * lib/regex_internal.c (re_string_skip_chars):
7029         Fix miscomputation of remain_len that may cause incomplete
7030         multi-byte character and false match.
7031
7032 2012-02-24  Jim Meyering  <meyering@redhat.com>
7033
7034         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
7035         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
7036         uses with "==" *before* the call, e.g., 0 == strcmp (...)
7037         Remove now-unnecessary str''cmp obfuscation.
7038         Suggested by Akim Demaille.
7039
7040 2012-02-24  Bruno Haible  <bruno@clisp.org>
7041
7042         streq: Rename macro.
7043         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
7044         * NEWS: Mention the change.
7045         * lib/mbrtowc.c (mbrtowc): Update.
7046         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
7047         * lib/wcwidth.c (wcwidth): Update.
7048         Suggested by Akim Demaille and Jim Meyering.
7049
7050 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7051
7052         regex: fix typo in definition of MIN
7053         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
7054         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
7055
7056 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7057             Bruno Haible  <bruno@clisp.org>
7058
7059         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
7060         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
7061         entries into a stack-allocated buffer directly.
7062         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
7063
7064 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7065             Bruno Haible  <bruno@clisp.org>
7066
7067         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
7068
7069          - There were several instances of this pattern:
7070
7071              for (;;) {
7072                n = acl (f, GETACLCNT, 0, NULL);
7073                [ allocate an array A of size N ]
7074                if (acl (f, GETACL, n, a) == n)
7075                  break;
7076              }
7077
7078            This loop might never terminate if some other process is constantly
7079            manipulating the file's ACL.  The loop should be rewritten to
7080            terminate.
7081
7082          - The acl (... GETACLNT ...) call is merely an optimization; its value
7083            is merely a hint as to how big to make the array.  A better
7084            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
7085            and just guess a reasonably-big size, growing the size and trying
7086            again if it's not large enough.  This guarantees termination, and
7087            saves a system call.
7088
7089         * lib/acl-internal.h: Include <limits.h>.
7090         (MIN, SIZE_MAX): New macros.
7091         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
7092         a stack-allocated buffer, and use malloc if it does not fit. Don't
7093         use GETACLCNT.
7094         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7095
7096 2012-02-19  Bruno Haible  <bruno@clisp.org>
7097
7098         acl: Fix endless loop on Solaris with vxfs.
7099         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
7100         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
7101         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7102         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
7103         * tests/test-sameacls.c (main)[Solaris]: Likewise.
7104         Reported by Bill Jones in
7105         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
7106
7107 2012-02-19  Bruno Haible  <bruno@clisp.org>
7108
7109         acl: Fix copy-acl test failure on Solaris 11 2011-11.
7110         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
7111         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
7112         that this function returns 0 in some more cases.
7113
7114 2012-02-19  Bruno Haible  <bruno@clisp.org>
7115
7116         acl: Update doc references.
7117         * doc/acl-resources.txt: Update links to Solaris documentation.
7118
7119 2012-02-19  Bruno Haible  <bruno@clisp.org>
7120
7121         Fix test failure in many locales on Solaris 11.
7122         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
7123         'tr' arguments.
7124         * tests/test-pipe-filter-ii1.c (main): Likewise.
7125         * build-aux/bootstrap (check_versions): Run 'tr' command with range
7126         expressions in the C locale.
7127         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7128         * m4/host-os.m4 (gl_HOST_OS): Likewise.
7129
7130 2012-02-19  Bruno Haible  <bruno@clisp.org>
7131
7132         gnulib-tool: Improve usage message.
7133         * gnulib-tool (func_usage): Move doc of --help and --version to the
7134         section "Operation modes".
7135
7136 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
7137
7138         README-release: make it easier to execute commands
7139         * top/README-release: break commands out on to separate lines.
7140
7141 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
7142
7143         GNUmakefile: simplify detection of unconfigured trees
7144         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
7145         whether the tree make is being run from is already configured or
7146         not.  Related simplifications.
7147
7148 2012-02-13  Simon Josefsson  <simon@josefsson.org>
7149
7150         * gnulib-tool (func_usage): Document --help and --version.
7151
7152 2012-02-11  Jim Meyering  <meyering@redhat.com>
7153
7154         bootstrap: don't exit 0 upon gnulib-tool failure
7155         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
7156         its exit status, not 0.
7157
7158 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
7159
7160         README-release: various improvements
7161         * top/README-release: Give a command to push changes for the
7162         release.  Add "distcheck" to list of other pre-release checks.
7163         Fix instance of "make stable" which should be "make TYPE".
7164
7165 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7166
7167         maint: replace FSF snail-mail addresses with URLs
7168         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
7169         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
7170         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
7171         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
7172         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
7173         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
7174         * lib/check-version.c, lib/check-version.h, lib/config.charset:
7175         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
7176         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
7177         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
7178         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
7179         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
7180         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
7181         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
7182         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
7183         * lib/glthread/thread.c, lib/glthread/thread.h:
7184         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
7185         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
7186         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
7187         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
7188         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
7189         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
7190         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
7191         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
7192         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
7193         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
7194         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
7195         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
7196         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
7197         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
7198         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
7199         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
7200         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
7201         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
7202         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
7203         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
7204         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
7205         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
7206         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
7207         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
7208         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
7209         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
7210         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
7211         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
7212         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
7213         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
7214         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
7215         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
7216         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
7217         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
7218         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
7219         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
7220         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
7221         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
7222         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
7223         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
7224         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
7225         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
7226         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
7227         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
7228         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
7229         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
7230         * tests/test-poll.c, tests/test-quotearg-simple.c:
7231         * tests/test-quotearg.c, tests/test-quotearg.h:
7232         * tests/test-round-ieee.c, tests/test-round1.c:
7233         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
7234         * tests/test-roundl-ieee.c, tests/test-roundl.c:
7235         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
7236         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
7237         * tests/test-strerror.c, tests/test-strerror_r.c:
7238         * tests/test-strsignal.c, tests/test-strverscmp.c:
7239         * tests/test-xmemdup0.c:
7240         Replace FSF snail mail addresses with URLs, as per GNU coding
7241         standards.  See glibc bug
7242         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
7243
7244 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7245
7246         README-release: capitalize a word and split a line
7247         * top/README-release: Fix punctuation and spacing.
7248
7249 2012-02-08  Akim Demaille  <demaille@gostai.com>
7250
7251         fatal-signal: use C prototypes (with explicit void).
7252         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
7253         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
7254
7255 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7256
7257         regex: spelling fix
7258         * lib/regexec.c: spelling fix
7259
7260         regex: rely on stdint.h for SIZE_MAX
7261         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
7262
7263 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7264
7265         regex: merge glibc changes
7266
7267         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
7268         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
7269         (init_word_char): Work even if bitset words are not exactly 32 or
7270         64 bits wide.  Don't assume there are no padding bits.
7271         * lib/regex.c [_LIBC]: Do not include <config.h>.
7272         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
7273         and -Wtype-limits.
7274         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
7275         needless disagreement with glibc.  All uses changed.  Define it to
7276         1 only if _GNU_SOURCE, to match glibc.
7277         (_REG_RM_NAME): Remove; no longer needed, since the names in
7278         question are now all protected by __USE_GNU.
7279         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
7280         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
7281         * lib/regex_internal.h (MIN): New macro.
7282
7283         2012-01-03 Ulrich Drepper <drepper@gmail.com>
7284         * lib/regcomp.c (init_word_char): Optimize regex a bit.
7285
7286         2011-12-30 Jakub Jelinek <jakub@redhat.com>
7287         * lib/regex_internal.c (re_string_fetch_byte_case):
7288         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
7289         is miscompiled, and it turns out it is because of an incorrect
7290         attribute on re_string_fetch_byte_case.  Unlike
7291         re_string_peek_byte_case, this one is really not pure, it modifies
7292         memory (increments pstr->cur_idx), and with the pure attribute GCC
7293         assumed it doesn't and it cached the presumed value of
7294         regexp->cur_idx in a variable across the
7295          for (;; ++i)
7296            {
7297              if (i >= BRACKET_NAME_BUF_SIZE)
7298                return REG_EBRACK;
7299              if (token->type == OP_OPEN_CHAR_CLASS)
7300                ch = re_string_fetch_byte_case (regexp);
7301              else
7302                ch = re_string_fetch_byte (regexp);
7303              if (re_string_eoi(regexp))
7304                return REG_EBRACK;
7305              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
7306                break;
7307              elem->opr.name[i] = ch;
7308            }
7309
7310         2011-11-29 Andreas Schwab <schwab@redhat.com>
7311         * lib/regcomp.c (build_equiv_class):
7312         Fix access after end of search string in regex matcher.
7313
7314         2011-11-12 Ulrich Drepper <drepper@redhat.com>
7315         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
7316
7317         2011-10-12 Ulrich Drepper <drepper@redhat.com>
7318         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
7319
7320         2011-10-11 Ulrich Drepper <drepper@redhat.com>
7321         * lib/regcomp.c (parse_branch, parse_sub_exp):
7322         More regex memory leak fixes and tests.
7323         (parse_sub_exp, parse_bracket_exp):
7324         Fix memory leak for some invalid regular expressions.
7325
7326         2011-05-28 Ulrich Drepper <drepper@gmail.com>
7327         * lib/regex_internal.c, lib/regexec.c:
7328         Fix unnecessary overallocation due to incomplete character.  When
7329         incomplete characters are found at the end of a string the code
7330         ran amok and allocated lots of memory.  Stricter limits are now in
7331         place.
7332
7333         2011-05-20 Reuben Thomas <rrt@sc3d.org>
7334         * lib/regex.h: Update documentation.
7335
7336         2011-05-16 Aharon Robbins <arnold@skeeve.com>
7337         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
7338
7339         2010-05-05 Andreas Schwab <schwab@redhat.com>
7340         * lib/regexec.c (find_collation_sequence_value):
7341         Fix lookup of collation sequence value during regexp matching.
7342
7343         2010-01-22 Ulrich Drepper <drepper@redhat.com>
7344         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
7345
7346         2008-01-16 Ulrich Drepper <drepper@redhat.com>
7347         * lib/regex.h: Cleanup namespace.
7348
7349         2007-11-26 Ulrich Drepper <drepper@redhat.com>
7350         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
7351
7352         2007-08-26 Ulrich Drepper <drepper@redhat.com>
7353         * lib/regex_internal.h: Prevent some declarations and definitions
7354         to be seen when used in tests.
7355
7356         2005-05-06 Ulrich Drepper <drepper@redhat.com>
7357         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
7358         __libc_lock_* macros if not _LIBC.
7359         (struct re_dfa_t): Add lock.
7360
7361 2012-02-07  Eric Blake  <eblake@redhat.com>
7362
7363         maint.mk: also prohibit lower-case @var@
7364         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
7365         lower case, like @top_srcdir@.
7366
7367 2012-02-04  Eric Blake  <eblake@redhat.com>
7368
7369         canonicalize: avoid uninitialized memory use
7370         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
7371         random '/' left in dest.
7372         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
7373
7374 2012-02-04  Bruno Haible  <bruno@clisp.org>
7375
7376         isatty: Fix test failure of ptsname_r on native Windows.
7377         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
7378         and don't set errno.
7379         (isatty): Test first whether fd is valid. Set errno when returning 0.
7380
7381 2012-02-04  Bruno Haible  <bruno@clisp.org>
7382
7383         spawn-pipe tests: Fix a NULL program name in a diagnostic.
7384         * tests/test-spawn-pipe-main.c: Include progname.h.
7385         (main): Invoke set_program_name.
7386         * modules/spawn-pipe-tests (Depends-on): Add progname.
7387
7388         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
7389         * tests/test-nonblocking-socket-main.c: Include progname.h.
7390         (main): Invoke set_program_name.
7391         * modules/nonblocking-socket-tests (Depends-on): Add progname.
7392
7393         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
7394         * tests/test-nonblocking-pipe-main.c: Include progname.h.
7395         (main): Invoke set_program_name.
7396         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
7397
7398 2012-02-04  Eric Blake  <eblake@redhat.com>
7399
7400         canonicalize-lgpl: fix // handling
7401         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
7402
7403         canonicalize: fix // handling
7404         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
7405         /// to //, since only // is special.
7406
7407 2012-02-04  Bruno Haible  <bruno@clisp.org>
7408
7409         ioctl: Fix test failure on native Windows.
7410         * lib/ioctl.c: Include msvc-nothrow.h.
7411         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
7412
7413 2012-02-04  Bruno Haible  <bruno@clisp.org>
7414
7415         fsync: Avoid test failure on native Windows.
7416         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
7417         read-only.
7418
7419 2012-02-04  Bruno Haible  <bruno@clisp.org>
7420
7421         sys_select: Avoid syntax error on OpenBSD 5.0.
7422         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
7423         currently being included, just include the system's <sys/select.h>.
7424
7425 2012-02-04  Bruno Haible  <bruno@clisp.org>
7426
7427         sys_select: Avoid syntax error on OpenBSD 5.0.
7428         * lib/sys_select.in.h: Include <signal.h> only after the include_next
7429         <sys/select.h>, not before.
7430         Reported by Jiri B <jirib@devio.us>.
7431
7432 2012-02-04  Bruno Haible  <bruno@clisp.org>
7433
7434         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
7435         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
7436         global variables.
7437         * tests/test-get-rusage-data.c (main): Likewise.
7438         Reported by Jim Meyering.
7439
7440 2012-02-04  Bruno Haible  <bruno@clisp.org>
7441
7442         stdioext: Fix last commit.
7443         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
7444
7445 2012-02-03  Bruno Haible  <bruno@clisp.org>
7446
7447         stdioext: Add tentative support for Plan9.
7448         * lib/stdio-impl.h: Include <errno.h>.
7449         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
7450         * lib/freadable.c (freadable): Likewise.
7451         * lib/fwritable.c (fwritable): Likewise.
7452         * lib/fbufmode.c (fbufmode): Likewise.
7453         * lib/freading.c (freading): Likewise.
7454         * lib/fwriting.c (fwriting): Likewise.
7455         * lib/freadptr.c (freadptr): Likewise.
7456         * lib/freadseek.c (freadptrinc): Likewise.
7457         * lib/freadahead.c (freadahead): Likewise.
7458         * lib/fpurge.c (fpurge): Likewise.
7459         * lib/fseeko.c (rpl_fseeko): Likewise.
7460         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
7461         Reported by Jens Staal <staal1978@gmail.com>.
7462
7463 2012-02-02  Jim Meyering  <meyering@redhat.com>
7464
7465         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
7466         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
7467         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
7468         not even to try to add the attribute.  Instead, add a pragma to suppress
7469         the suggestion/warning.
7470
7471 2012-01-31  Karl Berry  <karl@gnu.org>
7472
7473         setstate doc: typo.
7474         * doc/posix-functions/setstate.texi (setstate): { not (.
7475
7476 2012-01-31  Bruno Haible  <bruno@clisp.org>
7477
7478         popen: Make more robust on Windows.
7479         * lib/popen.c: On native Windows, use the _popen based code even if
7480         HAVE_POPEN is set.
7481         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
7482         environment variable on native Windows.
7483
7484 2012-01-30  Bruno Haible  <bruno@clisp.org>
7485
7486         pclose: Fix typo.
7487         * lib/stdio.in.h (pclose): Fix typo in warning message.
7488
7489 2012-01-30  Bruno Haible  <bruno@clisp.org>
7490
7491         doc about getlogin_r, setstate.
7492         * doc/posix-functions/getlogin_r.texi: List the incompatible
7493         declaration problem under "not fixed by gnulib".
7494         * doc/posix-functions/setstate.texi: Mention incompatible declaration
7495         problem on Solaris 11 and other platforms.
7496
7497 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
7498             Bruno Haible  <bruno@clisp.org>
7499
7500         poll tests: Make test more robust.
7501         * tests/test-poll.c: Include macros.h.
7502         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
7503         return value of various I/O operations.
7504         * modules/poll-tests (Files): Add tests/macros.h.
7505
7506 2012-01-30  Bruno Haible  <bruno@clisp.org>
7507
7508         sys_stat: Fix support for mingw64 and MSVC.
7509         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
7510         header files already do it.
7511         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
7512         stat itself.
7513         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7514
7515 2012-01-30  Bruno Haible  <bruno@clisp.org>
7516
7517         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
7518         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
7519         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
7520
7521 2012-01-29  Bruno Haible  <bruno@clisp.org>
7522
7523         quotearg: Fix test failure on MacOS X 10.5.
7524         * tests/test-quotearg-simple.c: Include localcharset.h.
7525         (main): If the locale encoding is not ASCII, bypass the tests of
7526         locale_quoting_style and clocale_quoting_style.
7527         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
7528
7529 2012-01-29  Jim Meyering  <meyering@redhat.com>
7530
7531         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
7532         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
7533         detect uses of canonicalize_file_name.
7534
7535 2012-01-28  Bruno Haible  <bruno@clisp.org>
7536
7537         test-framework-sh: Fix test failure with AIX 7.1 diff.
7538         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
7539         in column 1, like 'diff -c' does.
7540         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
7541         whether 'diff -u' is used. Instead, test whether the output contains
7542         some '@' character.
7543
7544 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7545
7546         strtoimax: eliminate need for stdint.h, inttypes.h checks
7547         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
7548         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
7549         the prerequisites for a recently-introduced strtoimax test.
7550         I guess this might cause strtoimax to be replaced when not
7551         strictly necessary on older hosts, but this shouldn't introduce
7552         any bugs and it should make Emacs 'configure' faster on typical
7553         modern hosts.  Problem discovered when importing the latest gnulib
7554         to an Emacs test version.
7555         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
7556
7557 2012-01-28  Bruno Haible  <bruno@clisp.org>
7558
7559         sys_time: Override 'struct timeval' on some native Windows platforms.
7560         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
7561         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
7562         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
7563         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
7564         needs to be overridden.
7565         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
7566         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
7567         * tests/test-sys_select.c: Check that the tv_sec member has the same
7568         size as a 'time_t'.
7569         * tests/test-sys_time.c: Likewise.
7570         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
7571         is set, set also REPLACE_GETTIMEOFDAY.
7572         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
7573         convert the resulting 'struct timeval' before returning.
7574         * lib/select.c: Include <sys/time.h>.
7575         (select, timeval): Undefine at the right place.
7576         * modules/select (Depends-on): Add sys_time.
7577         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
7578         some Windows platforms.
7579         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7580
7581 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7582
7583         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
7584         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
7585         an integer.
7586         * lib/fcntl.c (dupfd): Likewise.
7587         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
7588
7589 2012-01-28  Bruno Haible  <bruno@clisp.org>
7590
7591         fcntl: Avoid compilation error on native Windows.
7592         * modules/fcntl (Depends-on): Add 'close'.
7593
7594 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7595
7596         select, poll, isatty: Avoid warnings on x86_64 mingw64.
7597         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
7598         pointer to an integer.
7599         * lib/poll.c (IsConsoleHandle): Likewise.
7600         * lib/isatty.c (IsConsoleHandle): Likewise.
7601
7602 2012-01-28  Jim Meyering  <meyering@redhat.com>
7603
7604         doc: clarify README-release
7605         * top/README-release: Clarify: you should make a point to have
7606         the latest stable versions of build tools in your PATH, and the
7607         reference to buildreq is solely for its list of tool names, not
7608         for its minimal-functional version numbers.
7609         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
7610
7611         maint.mk: use more readable (yet functionally equivalent) quoting
7612         It is common to quote a single quote in a single quoted string like
7613         this:  '...'\''...'.  Unless you know the idiom, that looks like
7614         gibberish, so prefer to double-quote the string when possible.
7615         Then you can use a more readable, lone single quote: "...'..."
7616         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
7617         "don't" is more readable than the equivalent 'don'\''t'.
7618         (sc_cast_of_x_alloc_return_value): Likewise.
7619         (sc_cast_of_alloca_return_value): Likewise.
7620         (sc_makefile_path_separator_check): Similar: use ":" in '...',
7621         rather than '\'':'\''.
7622
7623 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7624
7625         stdalign: relax _Alignof and tighten _Alignas test
7626         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
7627         as it was too strict: alignof must divide offsetof, but it need
7628         not equal offsetof.  Inspired by Joseph S. Myers's comment
7629         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
7630         Conversely, tighten the _Alignas test a bit, as the resulting
7631         alignment must be exactly 8.
7632
7633 2012-01-27  Bruno Haible  <bruno@clisp.org>
7634
7635         stdalign: Document the last change.
7636         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
7637
7638 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7639
7640         stdalign: check that alignof and offsetof are consistent
7641         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
7642         Problem reported for gnulib by Richard W.M. Jones in
7643         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
7644
7645 2012-01-27  Jim Meyering  <meyering@redhat.com>
7646
7647         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
7648         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
7649         convert a sequence with gaps to the minimal containing range.
7650         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
7651         * tests/test-update-copyright.sh: Test for this.
7652         The FSF confirmed it is ok to do this, assuming there is at
7653         least one significant change per year in the affected range:
7654         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
7655
7656 2012-01-26  Bruno Haible  <bruno@clisp.org>
7657
7658         pipe2: refine doc about thread-safety
7659         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
7660         multithread-safety problem.
7661         * doc/glibc-functions/accept4.texi: Likewise.
7662
7663 2012-01-26  Bruno Haible  <bruno@clisp.org>
7664
7665         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
7666         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
7667         In the test program, include <fcntl.h>, for O_RDONLY.
7668
7669 2012-01-26  Eric Blake  <eblake@redhat.com>
7670
7671         pipe2: document lack of thread-safety in replacement
7672         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
7673         issue in replacement.
7674         * doc/glibc-functions/accept4.texi (accept4): Likewise.
7675         Based on a report by Eric Wong.
7676
7677 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7678             Bruno Haible  <bruno@clisp.org>
7679
7680         malloca: Avoid warnings on x86_64 mingw64.
7681         * lib/malloca.c: Include <stdint.h>.
7682         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
7683         * modules/malloca (Depends-on): Add stdint.
7684         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
7685
7686 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7687
7688         obstack: remove __STDC__ conditionals
7689         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
7690         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
7691         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
7692         m4/include_next.m4 as the only gnulib-maintained places that still
7693         refer to __STDC__.
7694
7695 2012-01-24  Bruno Haible  <bruno@clisp.org>
7696
7697         havelib: Modern quoting.
7698         * build-aux/config.rpath: Quote 'like this', not `like this', as per
7699         the recent change to the GNU coding standards.
7700
7701 2012-01-24  Bruno Haible  <bruno@clisp.org>
7702
7703         stdint: Improve support for Android.
7704         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
7705         Reported by Simon Josefsson <simon@josefsson.org>.
7706
7707 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7708
7709         doc: omit trailing empty lines from INSTALL etc.
7710         * doc/Makefile (INSTALL): Omit trailing empty lines.
7711         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
7712         omit trailing empty lines.  This simplifies the build procedure.
7713
7714 2012-01-23  Jim Meyering  <meyering@redhat.com>
7715
7716         tests: avoid spurious warnings about gl_sockets_startup
7717         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
7718         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
7719         reporting a "statement with no effect".
7720         * tests/test-accept.c (main): Mark as "(void)".
7721         * tests/test-accept4.c (main): Likewise.
7722         * tests/test-bind.c (main): Likewise.
7723         * tests/test-connect.c (main): Likewise.
7724         * tests/test-getpeername.c (main): Likewise.
7725         * tests/test-getsockname.c (main): Likewise.
7726         * tests/test-getsockopt.c (main): Likewise.
7727         * tests/test-listen.c (main): Likewise.
7728         * tests/test-recv.c (main): Likewise.
7729         * tests/test-recvfrom.c (main): Likewise.
7730         * tests/test-send.c (main): Likewise.
7731         * tests/test-sendto.c (main): Likewise.
7732         * tests/test-setsockopt.c (main): Likewise.
7733         * tests/test-shutdown.c (main): Likewise.
7734
7735 2012-01-21  Bruno Haible  <bruno@clisp.org>
7736
7737         locale-fr.m4: Fix for Android.
7738         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
7739         failure of the test program on Bionic libc.
7740
7741 2012-01-21  Jim Meyering  <meyering@redhat.com>
7742
7743         bootstrap: fail when bootstrap_post_import_hook fails
7744         Otherwise, it's far too easy to miss diagnostics emitted
7745         between gnulib-tool's output and that of running configure.
7746         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
7747
7748 2012-01-17  Jim Meyering  <meyering@redhat.com>
7749
7750         maint: enable sc_trailing_blank
7751         * build-aux/pmccabe.css: Remove trailing blanks.
7752         * doc/acl-cygwin.txt: Likewise.
7753         * doc/gnu-oids.texi: Likewise
7754         * cfg.mk: Enable sc_trailing_blank.
7755         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
7756
7757 2012-01-17  Jim Meyering  <meyering@redhat.com>
7758
7759         maint: enable sc_prohibit_openat_without_use
7760         * cfg.mk: Enable sc_prohibit_openat_without_use.
7761         Exempt lib/selinux-at.c.
7762
7763 2012-01-17  Jim Meyering  <meyering@redhat.com>
7764
7765         maint: enable sc_prohibit_cloexec_without_use
7766         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
7767         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
7768
7769 2012-01-17  Jim Meyering  <meyering@redhat.com>
7770
7771         maint: enable sc_prohibit_intprops_without_use
7772         * cfg.mk: Enable sc_prohibit_intprops_without_use
7773         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
7774
7775 2012-01-17  Jim Meyering  <meyering@redhat.com>
7776
7777         maint: enable sc_prohibit_hash_pjw_without_use
7778         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
7779         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
7780         to match any use of \<hash_pjw\>, i.e., not necessarily with a
7781         following " (".
7782
7783 2012-01-17  Jim Meyering  <meyering@redhat.com>
7784
7785         maint: enable double-word-prohibiting rule
7786         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
7787         Exempt three files.
7788
7789 2012-01-17  Jim Meyering  <meyering@redhat.com>
7790
7791         maint: remove empty lines at EOF, but excluding modules/*
7792         Apply syntax rules at home as well as abroad.  Most changes
7793         were induced by running this:
7794           make srcdir=. _build-aux=build-aux -f top/maint.mk \
7795             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
7796             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
7797         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
7798         Exempt modules/* and two binary files.
7799         Also exempt doc/INSTALL*, per request from Bruno Haible.
7800         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
7801         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
7802         * doc/Copyright/request-assign.future: Likewise.
7803         * doc/Copyright/request-disclaim.changes: Likewise.
7804         * doc/INSTALL: Likewise.
7805         * doc/INSTALL.ISO: Likewise.
7806         * doc/INSTALL.UTF-8: Likewise.
7807         * doc/acl-cygwin.txt: Likewise.
7808         * doc/acl-resources.txt: Likewise.
7809         * doc/fdl-1.2.texi: Likewise.
7810         * doc/fdl-1.3.texi: Likewise.
7811         * doc/fdl.texi: Likewise.
7812         * lib/argp-pin.c: Likewise.
7813         * lib/round.c: Likewise.
7814         * lib/unicase/u16-totitle.c: Likewise.
7815         * lib/unictype/block_test.c: Likewise.
7816         * lib/uninorm/canonical-decomposition.c: Likewise.
7817         * m4/README: Likewise.
7818         * m4/relocatable-lib.m4: Likewise.
7819         * tests/test-isnand-nolibm.c: Likewise.
7820         * tests/test-isnand.c: Likewise.
7821         * tests/uninorm/NormalizationTest.txt: Likewise.
7822
7823 2012-01-17  Jim Meyering  <meyering@redhat.com>
7824
7825         maint: add framework to run syntax-check rules against gnulib sources
7826         * cfg.mk: New file, to disable all currently-failing tests.
7827         We'll enable them one by one, as they are made to pass.
7828         * Makefile (sc_maint): New rule.
7829
7830 2012-01-21  Bruno Haible  <bruno@clisp.org>
7831
7832         stdint: Add support for Android.
7833         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
7834         include the system's <stdint.h>.
7835         Reported by Simon Josefsson <simon@josefsson.org>.
7836
7837 2012-01-19  Jim Meyering  <meyering@redhat.com>
7838
7839         bootstrap: add bootstrap_post_import_hook
7840         Bison does still need something like the gnulib_mk_hook whose
7841         invocation I had to remove along with slurp in commit 767ccd40.
7842         Technically, we could get along without it, but doing so would
7843         have required living with a warning and a mandatory post-bootstrap
7844         automake rerun.
7845         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
7846         (bootstrap_post_import_hook): New function.
7847         Invoke it after gnulib-tool --import and before autoreconf.
7848
7849 2012-01-18  Jim Meyering  <meyering@redhat.com>
7850
7851         gitlog-to-changelog: don't use "no_"-prefixed variable name
7852         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
7853         to enable both --cluster and --no-cluster.  Change variable name,
7854         s/\$no_cluster/$cluster/, and reverse usage to match.
7855
7856         gitlog-to-changelog: use "||", not "or" in expressions
7857         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
7858         expressions.
7859
7860 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
7861
7862         gitlog-to-changelog: new option --no-cluster
7863         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
7864         clustering of adjacent commit messages.
7865
7866 2012-01-17  Jim Meyering  <meyering@redhat.com>
7867
7868         maint: spell file systems with two words, not one
7869         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
7870         two words, not one.
7871
7872 2012-01-16  Jim Meyering  <meyering@redhat.com>
7873
7874         bootstrap: add a FIXME comment to ensure we eventually remove the hack
7875         * build-aux/bootstrap (gnulib_tool_options): Add comment.
7876
7877 2012-01-16  Eric Blake  <eblake@redhat.com>
7878
7879         bootstrap: cater to autoconf 2.59
7880         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
7881         is not available.
7882
7883         bootstrap: properly check for libtool
7884         * build-aux/bootstrap (libtoolize): Also run libtool when older
7885         usage is detected.
7886
7887 2012-01-15  Bruno Haible  <bruno@clisp.org>
7888
7889         Improve support for MSVC 9.
7890         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
7891         clashes on MSVC.
7892         * lib/fcntl.in.h: Likewise.
7893         * lib/stdlib.in.h: Likewise.
7894         * lib/sys_stat.in.h: Likewise.
7895
7896 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
7897
7898         gnupload: we hold the master copy of this script now
7899         For motivation and more information, see:
7900         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
7901         * build-aux/gnupload: Make it clear in the heading comments that the
7902         master copy of this file is maintained by gnulib.  Since we are at
7903         it, bump its copyright year and ...
7904         ($scriptversion): ... the date in its version.
7905         ($usage): Patches and bug reports should be sent to the gnulib list,
7906         not the automake one.
7907         * config/srclist.txt: Don't try to sync 'gnupload' from automake
7908         anymore.
7909
7910 2012-01-15  Bruno Haible  <bruno@clisp.org>
7911
7912         Fix module 'random'.
7913         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
7914         initstate, setstate are declared.
7915
7916 2012-01-14  Bruno Haible  <bruno@clisp.org>
7917
7918         Tests for module 'random'.
7919         * modules/random-tests: New file.
7920         * tests/test-random.c: New file, based on tests/test-random_r.c.
7921
7922         New module 'random'.
7923         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
7924         declarations.
7925         * lib/random.c: New file, based on glibc/stdlib/random.c.
7926         * m4/random.m4: New file.
7927         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
7928         HAVE_RANDOM.
7929         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
7930         * modules/random: New file.
7931         * config/srclist.txt: Add an entry for random.c.
7932         * doc/posix-functions/random.texi: Mention the 'random' module.
7933         * doc/posix-functions/initstate.texi: Likewise.
7934         * doc/posix-functions/setstate.texi: Likewise.
7935         * doc/posix-functions/srandom.texi: Likewise.
7936
7937 2012-01-12  Bruno Haible  <bruno@clisp.org>
7938
7939         random_r: Use common idioms.
7940         * lib/random_r.c: Include <stdlib.h> first.
7941
7942         random_r: Override incompatible API on AIX, OSF/1.
7943         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
7944         Override the system function if REPLACE_RANDOM_R is 1.
7945         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
7946         and OSF/1, set REPLACE_RANDOM_R.
7947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
7948         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
7949         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
7950         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
7951         * doc/glibc-functions/random_r.texi: Likewise.
7952         * doc/glibc-functions/setstate_r.texi: Likewise.
7953
7954         random_r: Support for MSVC 9.
7955         * lib/random_r.c: Include stdint.h, not inttypes.h.
7956
7957 2012-01-12  Eric Blake  <eblake@redhat.com>
7958
7959         inet_ntop: guard extra work by IF_LINT
7960         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
7961         better code generation when not checking for warnings.
7962         Suggested by Paul Eggert and Jim Meyering.
7963
7964         strptime: fix regression on mingw
7965         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
7966         Fix regression.  Reported by Bruno Haible.
7967
7968 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
7969             Bruno Haible  <bruno@clisp.org>
7970
7971         copy-file: add error-code-returning variant.
7972         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
7973         (qcopy_file_preserving): New declaration.
7974         * lib/copy-file.c (qcopy_file_preserving): Renamed from
7975         copy_file_preserving. Change return type to 'int'. Don't emit an error
7976         message here.
7977         (copy_file_preserving): New function.
7978         * tests/test-copy-file.c: Include <stdlib.h>.
7979         (main): Test qcopy_file_preserving if the environment variable
7980         NO_STDERR_OUTPUT is set.
7981         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
7982         with NO_STDERR_OUTPUT
7983         * tests/test-copy-file-2.sh: Likewise.
7984
7985 2012-01-10  Bruno Haible  <bruno@clisp.org>
7986
7987         copy-file: Use 'quote' module consistently.
7988         * lib/copy-file.c (copy_file_preserving): Use quote().
7989
7990         copy-file: Refactor.
7991         * lib/copy-file.c: Include quote.h.
7992         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
7993         message here.
7994         * modules/copy-file (Depends-on): Add quote.
7995
7996         acl: Export qcopy_acl.
7997         * lib/acl.h (qcopy_acl): New declaration.
7998         * lib/copy-acl.c (qcopy_acl): Make non-static.
7999
8000         acl: Rename a local variable.
8001         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
8002
8003         acl: Align return values of copy_acl and qcopy_acl.
8004         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
8005         maybe < -1.
8006
8007 2012-01-11  Eric Blake  <eblake@redhat.com>
8008
8009         strptime: silence gcc warnings
8010         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
8011         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
8012         Reported by Daniel P. Berrange.
8013
8014         inet_ntop: silence gcc warning
8015         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
8016         Reported by Daniel P. Berrange.
8017
8018 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
8019
8020         getloadavg test: skip the test on GNU/Linux without /proc mounted
8021         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
8022         file.  When /proc is not mounted, it always fails with ENOENT.
8023         * tests/test-getloadavg.c (main): Treat ENOENT return code from
8024         getloadavg(3) the same way as ENOSYS and ENOTSUP.
8025
8026 2012-01-10  Bruno Haible  <bruno@clisp.org>
8027
8028         regex: Avoid link error on MSVC 9.
8029         * modules/regex (Depends-on): Add wctype.
8030
8031 2012-01-10  Bruno Haible  <bruno@clisp.org>
8032
8033         doc: Mention --with-tests option.
8034         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
8035         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
8036         --with-tests.
8037         Reported by Reuben Thomas.
8038
8039 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
8040
8041         users.txt: order package names lexicographically.
8042         * users.txt: Order package names lexicographically.
8043
8044 2012-01-10  Jim Meyering  <meyering@redhat.com>
8045
8046         maint.mk: fix description in comment
8047         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
8048
8049         ignore-value: remove deprecated ignore_ptr function
8050         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
8051         * NEWS: Note this.
8052
8053 2012-01-09  Jim Meyering  <meyering@redhat.com>
8054
8055         test-init.sh: avoid a subshell
8056         * tests/test-init.sh: Remove protective subshell.
8057         Suggested by Bernhard Voelker.  While a subshell is normally
8058         required to protect against older shells (Solaris, FreeBSD) that
8059         warn about a missing program before performing redirection, the
8060         shell-selection tests performed by init.sh probably exclude any
8061         offending shell.
8062
8063 2012-01-08  Bruno Haible  <bruno@clisp.org>
8064
8065         setlocale tests: Avoid test failure on Solaris 11 2011-11.
8066         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
8067         variable.
8068
8069 2012-01-08  Bruno Haible  <bruno@clisp.org>
8070
8071         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
8072         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8073         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8074         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
8075         macro.
8076         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
8077         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8078         * lib/spawn_faction_addopen.c: Add workaround implementation if
8079         HAVE_WORKING_POSIX_SPAWN.
8080         * modules/spawn (Makefile): Substitute
8081         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8082         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
8083         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
8084         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8085         (Depends-on): Update conditions.
8086         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
8087         the Solaris 11 bug.
8088
8089 2012-01-08  Bruno Haible  <bruno@clisp.org>
8090
8091         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
8092         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8093         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8094         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
8095         macro.
8096         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
8097         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8098         * lib/spawn_faction_adddup2.c: Add workaround implementation if
8099         HAVE_WORKING_POSIX_SPAWN.
8100         * modules/spawn (Makefile): Substitute
8101         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8102         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
8103         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
8104         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8105         (Depends-on): Update conditions.
8106         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
8107         the Solaris 11 bug.
8108
8109 2012-01-08  Bruno Haible  <bruno@clisp.org>
8110
8111         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
8112         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8113         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8114         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
8115         HAVE_WORKING_POSIX_SPAWN.
8116         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
8117         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
8118         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8119         * lib/spawn_faction_addclose.c: Add workaround implementation if
8120         HAVE_WORKING_POSIX_SPAWN.
8121         * modules/spawn (Makefile): Substitute
8122         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8123         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
8124         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
8125         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8126         (Depends-on): Update conditions.
8127         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
8128         the Solaris 11 bug.
8129
8130 2012-01-08  Bruno Haible  <bruno@clisp.org>
8131
8132         doc: Update for Solaris 11 2011-11.
8133         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
8134         * m4/printf.m4: Update comments.
8135
8136 2012-01-08  Bruno Haible  <bruno@clisp.org>
8137
8138         mktime: Avoid compilation error on Solaris 11.
8139         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
8140
8141 2012-01-08  Bruno Haible  <bruno@clisp.org>
8142
8143         doc: Small fix.
8144         * doc/posix-headers/nl_types.texi: Correct platforms list.
8145
8146 2012-01-08  Simon Josefsson  <simon@josefsson.org>
8147
8148         Add lgpl-3.0 module.
8149         * MODULES.html.sh (Support for building documentation): Add
8150         lgpl-3.0.
8151         * modules/lgpl-3.0: New file.
8152
8153 2012-01-08  Jim Meyering  <meyering@redhat.com>
8154
8155         select.c: indent with spaces, not TABs
8156         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
8157
8158 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8159
8160         quotearg: do not use grave accent for left quote
8161         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
8162         locale_quoting_style.
8163         (quotearg_buffer_restyled): Fix example.
8164         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
8165
8166 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8167
8168         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
8169         Most programs do not have translation catalogs for English and much
8170         less separate catalogs for British and American English.  Drop the
8171         suggestion to translators about these two, and provide it
8172         automatically for Unicode locales.  Like most programs, even those
8173         using American English, we use single quotation marks.  This conflicts
8174         with the American typographic convention, but works better when you
8175         cite the entire error message within double quotes.  It also tries not
8176         to clash with established practice and with what non-gnulib programs
8177         will usually do.
8178         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
8179         using an UTF-8 or GB-18030 locale.  The list of other locales with
8180         quotes was provided by Bruno Haible.
8181         (quotearg_buffer_restyled): Adjust instructions to translators.
8182         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
8183         text, since this would be wrong when using Unicode.
8184         * modules/quotearg: Depend on c-strcaseeq.
8185
8186 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8187
8188         quotearg: fix Wikipedia link
8189         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
8190
8191 2012-01-07  Simon Josefsson  <simon@josefsson.org>
8192
8193         Fix for mingw with MSVC9.
8194         * m4/ld-version-script.m4: Check that compiler rejects version
8195         scripts with syntax errors.  Reported by Bruno Haible
8196         <bruno@clisp.org>.
8197
8198 2012-01-06  Bruno Haible  <bruno@clisp.org>
8199
8200         Talk about "native Windows API", not "Woe32".
8201         * lib/accept4.c: Update comments to mention native Windows.
8202         * lib/execute.c: Likewise.
8203         * lib/fatal-signal.c: Likewise.
8204         * lib/localcharset.c: Likewise.
8205         * lib/nanosleep.c: Likewise.
8206         * lib/nl_langinfo.c: Likewise.
8207         * lib/pclose.c: Likewise.
8208         * lib/pipe-filter-gi.c: Likewise.
8209         * lib/pipe-filter-ii.c: Likewise.
8210         * lib/pipe.c: Likewise.
8211         * lib/pipe2.c: Likewise.
8212         * lib/popen.c: Likewise.
8213         * lib/progreloc.c: Likewise.
8214         * lib/relocatable.c: Likewise.
8215         * lib/sigaction.c: Likewise.
8216         * lib/sigprocmask.c: Likewise.
8217         * lib/spawn-pipe.h: Likewise.
8218         * lib/spawn-pipe.c: Likewise.
8219         * lib/spawni.c: Likewise.
8220         * lib/stat-time.h: Likewise.
8221         * lib/w32spawn.h: Likewise.
8222         * tests/test-isatty.c: Likewise.
8223         * lib/config.charset: More comments.
8224         * doc/gnulib-intro.texi: Mention native Windows.
8225         * doc/posix-functions/_Exit_C99.texi: Likewise.
8226         * doc/posix-headers/fcntl.texi: Likewise.
8227
8228 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
8229
8230         argp: Avoid crash if translator uses % characters in a translation.
8231         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
8232         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8233
8234 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
8235
8236         doc: C11 and C++11 are now official
8237         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
8238         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
8239         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
8240         * modules/stdalign:
8241         Replace references to draft C1X to C11, and to draft C++0X to C++11.
8242
8243 2012-01-06  Bruno Haible  <bruno@clisp.org>
8244
8245         uc-is-grapheme-break tests: Tweak.
8246         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
8247         message.
8248
8249 2012-01-06  Bruno Haible  <bruno@clisp.org>
8250
8251         test-init.sh: correct the test for diff -u
8252         * tests/test-init.sh: Also redirect stdout to /dev/null.
8253
8254 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8255
8256         Use ', not `, for quoting output.
8257         * build-aux/announce-gen (usage, sizes, print_news_deltas)
8258         (print_changelog_deltas, get_tool_versions, main program):
8259         * build-aux/git-version-gen:
8260         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
8261         * build-aux/move-if-change (help):
8262         * build-aux/useless-if-before-free (usage, main program):
8263         * check-module (parse_module_file, usage)
8264         (find_included_lib_files, check_module):
8265         * lib/argmatch.c (main) [TEST]:
8266         * lib/argp-help.c (_help):
8267         * lib/getopt1.c (main) [TEST]:
8268         * lib/git-merge-changelog.c (usage):
8269         * lib/xstrtol-error.c (xstrtol_error):
8270         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
8271         * m4/argz.m4 (gl_FUNC_ARGZ):
8272         * m4/bison.m4 (gl_BISON):
8273         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
8274         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
8275         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8276         * m4/fpending.m4 (gl_PREREQ_FPENDING):
8277         * m4/gc-random.m4 (gl_GC_RANDOM):
8278         * m4/intl.m4 (gt_CHECK_DECL):
8279         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
8280         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
8281         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
8282         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
8283         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
8284         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
8285         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
8286         * tests/test-dirname.c (main):
8287         * tests/test-getpass.c (main):
8288         * tests/test-iconvme.c (main):
8289         * tests/test-parse-datetime.c (LOG):
8290         * tests/test-xstrtoimax.sh:
8291         * tests/test-xstrtol.sh:
8292         * tests/test-xstrtoll.sh:
8293         * tests/test-xstrtoumax.sh:
8294         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
8295         * top/GNUmakefile (abort-due-to-no-makefile):
8296         Quote 'like this', not `like this', as per the recent change to
8297         the GNU coding standards.
8298
8299 2012-01-05  Bruno Haible  <bruno@clisp.org>
8300
8301         strtoimax: Don't force a replacement on systems where intmax_t is int.
8302         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
8303         'intmax_t' is not larger than 'int'.
8304         Reported by Pádraig Brady <P@draigBrady.com>.
8305
8306 2012-01-05  Bruno Haible  <bruno@clisp.org>
8307
8308         doc: Mention NetBSD bugs.
8309         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
8310         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
8311
8312 2012-01-05  Bruno Haible  <bruno@clisp.org>
8313
8314         strtoumax tests: Enhance tests.
8315         * tests/test-strtoumax.c (main): Add tests for large values.
8316
8317 2012-01-05  Bruno Haible  <bruno@clisp.org>
8318
8319         strtoimax: Work around AIX 5.1 bug.
8320         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
8321         definition.
8322         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
8323         Set HAVE_STRTOIMAX.
8324         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
8325         REPLACE_STRTOIMAX.
8326         * modules/inttypes-incomplete (Makefile.am): Substitute
8327         REPLACE_STRTOIMAX.
8328         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
8329         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
8330         (Depends-on): Update conditions.
8331         * tests/test-strtoimax.c (main): Add tests for large values.
8332         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
8333
8334 2012-01-05  Bruno Haible  <bruno@clisp.org>
8335
8336         inttypes: Modernize.
8337         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
8338         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
8339         (Makefile.am): Update inttypes.h rule.
8340
8341 2012-01-05  Jim Meyering  <meyering@redhat.com>
8342
8343         init.sh: don't waste a subshell just to redirect stderr
8344         * tests/init.sh: In testing for diff -u and diff -c, use a
8345         stderr-redirecting exec inside `...` rather than a subshell.
8346
8347         test-init.sh: avoid failure on HP-UX 11.00
8348         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
8349         resolves to diff -c or cmp.  Reported by Bruno Haible.
8350
8351 2012-01-05  Bruno Haible  <bruno@clisp.org>
8352
8353         Tests for module 'strtoull'.
8354         * modules/strtoull-tests: New file.
8355         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
8356
8357 2012-01-05  Bruno Haible  <bruno@clisp.org>
8358
8359         Tests for module 'strtoll'.
8360         * modules/strtoll-tests: New file.
8361         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
8362
8363 2012-01-05  Bruno Haible  <bruno@clisp.org>
8364
8365         Tests for module 'strtoul'.
8366         * modules/strtoul-tests: New file.
8367         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
8368
8369 2012-01-05  Bruno Haible  <bruno@clisp.org>
8370
8371         Tests for module 'strtol'.
8372         * modules/strtol-tests: New file.
8373         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
8374
8375 2012-01-04  Jim Meyering  <meyering@redhat.com>
8376
8377         test-init.sh: accommodate Solaris 5.10's different diff -u output
8378         * tests/test-init.sh: Also exempt @@ lines from the comparison
8379         of diff output, since Solaris 5.10 and GNU diff formats differ.
8380         Reported by Stefano Lattarini.
8381
8382 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8383
8384         test-posixtm: don't assume signed integer wraparound
8385         * tests/test-posixtm.c (main): Don't assume wraparound semantics
8386         after signed integer overflow.  Inspired by (though it may not
8387         fix) Bruno Haible's bug report in
8388         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
8389
8390         Spell out "Windows 9x" and "Windows XP".
8391         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
8392         "Windows 9x" and "WinXP" with "Windows XP".
8393
8394 2012-01-04  Jim Meyering  <meyering@redhat.com>
8395
8396         test-vc-list-files-cvs.sh: remove obsolete comment
8397         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
8398         double exit.  Now that's all encapsulated via skip_ and Exit.
8399
8400 2012-01-04  Bruno Haible  <bruno@clisp.org>
8401
8402         Talk about "native Windows API", not "Win32".
8403         * lib/classpath.c: Update comments to mention native Windows.
8404         * lib/csharpexec.c: Likewise.
8405         * lib/dup2.c: Likewise.
8406         * lib/error.c: Likewise.
8407         * lib/fcntl.c: Likewise.
8408         * lib/filename.h: Likewise.
8409         * lib/findprog.c: Likewise.
8410         * lib/get-rusage-as.c: Likewise.
8411         * lib/get-rusage-data.c: Likewise.
8412         * lib/getpagesize.c: Likewise.
8413         * lib/javaexec.c: Likewise.
8414         * lib/msvc-inval.c: Likewise.
8415         * lib/msvc-nothrow.c: Likewise.
8416         * lib/nanosleep.c: Likewise.
8417         * lib/nonblocking.c: Likewise.
8418         * lib/printf-parse.c: Likewise.
8419         * lib/setlocale.c: Likewise.
8420         * lib/sigaction.c: Likewise.
8421         * lib/strerror_r.c: Likewise.
8422         * lib/tmpdir.c: Likewise.
8423         * lib/vasnprintf.c: Likewise.
8424         * lib/w32spawn.h: Likewise.
8425         * lib/waitpid.c: Likewise.
8426         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
8427         * m4/locale-ar.m4: Likewise.
8428         * m4/locale-fr.m4: Likewise.
8429         * m4/locale-ja.m4: Likewise.
8430         * m4/locale-tr.m4: Likewise.
8431         * m4/locale-zh.m4: Likewise.
8432         * m4/printf.m4: Likewise.
8433         * tests/test-cloexec.c: Likewise.
8434         * tests/test-copy-acl.sh: Likewise.
8435         * tests/test-copy-file.sh: Likewise.
8436         * tests/test-file-has-acl.sh: Likewise.
8437         * tests/test-set-mode-acl.sh: Likewise.
8438         * tests/test-dup-safer.c: Likewise.
8439         * tests/test-dup2.c: Likewise.
8440         * tests/test-dup3.c: Likewise.
8441         * tests/test-fcntl.c: Likewise.
8442         * tests/test-nonblocking-pipe.h: Likewise.
8443         * tests/test-nonblocking-socket.h: Likewise.
8444         * tests/test-pipe.c: Likewise.
8445         * tests/test-pipe2.c: Likewise.
8446         * tests/test-spawn-pipe-child.c: Likewise.
8447         * doc/acl-resources.txt: Likewise.
8448         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8449         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
8450         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
8451         * lib/localcharset.c: Update comments to mention native Windows.
8452         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8453         * lib/localename.c: Likewise.
8454         * lib/progreloc.c: Likewise.
8455         * lib/relocatable.c: Likewise.
8456         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8457         (windows_compute_revents): Renamed from win32_compute_revents.
8458         (windows_compute_revents_socket): Renamed from
8459         win32_compute_revents_socket.
8460         * lib/select.c: Update comments to mention native Windows.
8461         (windows_poll_handle): Renamed from win32_poll_handle.
8462         * m4/threadlib.m4: Update comments to mention native Windows.
8463         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
8464         --enable-threads=windows instead of --enable-threads=win32. Set
8465         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
8466         * lib/glthread/lock.h: Update comments to mention native Windows.
8467         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
8468         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
8469         USE_WIN32_THREADS.
8470         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
8471         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
8472         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
8473         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
8474         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
8475         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
8476         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
8477         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
8478         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
8479         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
8480         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
8481         * tests/test-tls.c: Likewise.
8482         Rationale:
8483         Microsoft renamed the "Win32 API" to "Windows API", as it is available
8484         on both 32-bit and 64-bit Windows systems.
8485         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
8486         line of distinction is between "native Windows" on one side and Unix/
8487         POSIX systems on the other side. More details in
8488         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
8489         Suggested by Paul Eggert.
8490
8491 2012-01-03  Bruno Haible  <bruno@clisp.org>
8492
8493         isatty: Support for MSVC 9.
8494         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
8495         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
8496         (_isatty_nothrow): New function.
8497         (isatty): Use it instead of _isatty.
8498         (IsConsoleHandle): Add comment, from Paolo Bonzini.
8499         * lib/poll.c (IsConsoleHandle): Likewise.
8500         * lib/select.c (IsConsoleHandle): Likewise.
8501         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
8502         (gl_PREREQ_ISATTY): New macro.
8503         * modules/isatty (Depends-on): Add msvc-inval.
8504         (configure.ac): Invoke gl_PREREQ_ISATTY.
8505
8506 2012-01-03  Jim Meyering  <meyering@redhat.com>
8507
8508         maint.mk: remove temporary transition aid from over 1.5 years ago
8509         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
8510         purpose was to aid in the transition (avoiding silent malfunction)
8511         from that old name to the new _sc_search_regexp.  This shim was
8512         added by commit 219c504b.
8513
8514         init.sh: do not try to accommodate compare arguments starting with "-"
8515         * tests/init.sh (compare_dev_null_): Do not try to accommodate
8516         compare arguments that start with "-".  Besides, we do not worry
8517         about this when invoking diff or cmp; why start now with sed?
8518         Using "--" to separate options from argument would trigger sed
8519         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
8520         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
8521
8522 2012-01-02  Bruno Haible  <bruno@clisp.org>
8523
8524         Enhance tests for module 'isatty'.
8525         * modules/isatty-tests (Depends-on): Add pipe-posix.
8526         * tests/test-isatty.c: Include <fcntl.h>.
8527         (DEV_NULL): New macro.
8528         (main): Test the resut of isatty() also on regular files, pipes, and
8529         /dev/null.
8530
8531         New module 'isatty'.
8532         * lib/unistd.in.h (isatty): New declaration.
8533         * lib/isatty.c: New file, based on an idea of
8534         Bastien Roucariès <roucaries.bastien@gmail.com>.
8535         * m4/isatty.m4: New file.
8536         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
8537         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
8538         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
8539         REPLACE_ISATTY.
8540         * modules/isatty: New file.
8541         * doc/posix-functions/isatty.texi: Mention the new module.
8542         Suggested by Paolo Bonzini.
8543
8544 2012-01-02  Bruno Haible  <bruno@clisp.org>
8545
8546         canonicalize: Tweak 2011-12-29 commit.
8547         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
8548         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
8549
8550 2012-01-02  Jim Meyering  <meyering@redhat.com>
8551
8552         gitlog-to-changelog: describe input syntax in --help output
8553         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
8554
8555         gitlog-to-changelog: fix typo in --help: show backslash before email @
8556         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
8557         in sources, but not in actual output.
8558
8559 2011-12-30  Jim Meyering  <meyering@redhat.com>
8560
8561         gitlog-to-changelog: don't malfunction when name contains %-directive
8562         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
8563         in a name string cause trouble.  E.g., with a user name of "%s",
8564         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
8565
8566 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
8567
8568         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
8569         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
8570         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
8571         the "  (tiny change)" notation that is appended to the standard
8572         ChangeLog "date  name  email" header line.
8573
8574 2012-01-01  Jim Meyering  <meyering@redhat.com>
8575
8576         test-framework-sh: init.sh: fix "make dist" failure
8577         When using gnulib-tool's --with-tests option and any module that
8578         depends on test-framework-sh, "make dist" would fail due to the
8579         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
8580         in the gltests directory, and not in the gllib/ directory.
8581         One way to work around that is to move the EXTRA_DIST += init.sh
8582         from the primary module to the -tests one:
8583         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
8584         * modules/test-framework-sh (Makefile.am): ...not here.
8585         Reported by Tom G. Christensen in
8586         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
8587
8588         version-etc: update copyright year reported by --version
8589         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
8590
8591 2011-12-31  Pádraig Brady  <P@draigBrady.com>
8592
8593         canonicalize: only stat() if required
8594         * lib/canonicalize.c (canonicalize_filename_mode):
8595         Avoid calling l?stat() when both CAN_MISSING,
8596         and CAN_NOLINKS are set, as we neither need
8597         to resolve symlinks or test component existence.
8598
8599 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8600
8601         doc: cover st_ino issues once; add OpenVMS etc.
8602         * doc/posix-functions/stat.texi (stat):
8603         * doc/posix-functions/lstat.texi (lstat):
8604         * doc/posix-functions/fstatat.texi (fstatat):
8605         * doc/posix-functions/fstat.texi (fstat):
8606         Move general 'struct stat' stuff to sys_stat.texi,
8607         leaving behind a pointer.
8608         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8609         Merge duplicate info about 'struct stat' problems into here.
8610         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
8611         and suggest partial workarounds.
8612
8613         same-inode: port to OpenVMS
8614         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
8615         three st_ino values.
8616
8617 2011-12-30  Pádraig Brady  <P@draigBrady.com>
8618
8619         canonicalize: fix references to stat() and lstat()
8620         * lib/canonicalize.c (canonicalize_filename_mode):
8621         Ensure references always resolve to a replacement
8622         function if required (even via a macro).
8623
8624 2011-12-30  Jim Meyering  <meyering@redhat.com>
8625
8626         gitlog-to-changelog: remove a little duplication
8627         * build-aux/gitlog-to-changelog (main): Grep @lines once,
8628         rather than twice.
8629
8630 2011-12-29  Pádraig Brady  <P@draigBrady.com>
8631
8632         canonicalize: add support for not resolving symlinks
8633         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
8634         indicate we don't want to follow symlinks.  Also
8635         provide CAN_MODE_MASK to aid setting these existing
8636         mutually exclusive values.
8637         * lib/canonicalize.c (canonicalize_filename_mode):
8638         Extract the flags from can_mode parameter, which
8639         are currently just used to select between stat()
8640         and lstat().  Also ensure that mutually exclusive
8641         values are flagged immediately as invalid.
8642         * tests/test-canonicalize.c: Verify symlinks are
8643         not followed, and that invalid flag combinations
8644         are diagnosed.
8645
8646 2011-12-25  Jim Meyering  <meyering@redhat.com>
8647
8648         gitlog-to-changelog: do not clump multi-paragraph entries
8649         Identical header lines (date,name,email+coauthors) are suppressed,
8650         thus putting all entries with those same characteristics under
8651         a single header.  However, when a log entry consists of two or
8652         more paragraphs, it may not be clear where it starts and ends.
8653         This change makes it so that such an entry is always separated
8654         from others by a header line, even when that header would
8655         otherwise be suppressed.
8656         * build-aux/gitlog-to-changelog: Implement the above.
8657         Inspired by a related request from Stefano Lattarini in
8658         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
8659
8660 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8661
8662         announce-gen: fix `cmd' typo in diagnostic
8663         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
8664         diagnostic: a missing '$' meant that the command was not output.
8665
8666 2011-12-23  Jim Meyering  <meyering@redhat.com>
8667
8668         test-framework-sh: distribute init.sh
8669         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
8670         Otherwise, "make -C gnulib-tests check" (at least in grep) would
8671         fail due to the lack of init.sh.
8672
8673         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
8674         * modules/atexit-tests: Rather than listing tests/init.sh,
8675         now that there's a module for it, simply depend on that new module.
8676         * modules/closein-tests: Likewise.
8677         * modules/exclude-tests: Likewise.
8678         * modules/getcwd-tests: Likewise.
8679         * modules/perror-tests: Likewise.
8680         * modules/pread-tests: Likewise.
8681         * modules/pwrite-tests: Likewise.
8682         * modules/vc-list-files-tests: Likewise.
8683         * modules/verify-tests: Likewise.
8684         * modules/xalloc-die-tests: Likewise.
8685         * modules/xstrtoimax-tests: Likewise.
8686         * modules/xstrtol-tests: Likewise.
8687         * modules/xstrtoll-tests: Likewise.
8688         * modules/xstrtoumax-tests: Likewise.
8689         * modules/yesno-tests: Likewise.
8690
8691 2011-12-22  Jim Meyering  <meyering@redhat.com>
8692
8693         test-framework-sh: add minimal tests of init.sh's compare function
8694         * modules/test-framework-sh-tests: New file.
8695         * tests/test-init.sh: New file.
8696
8697         test-framework-sh: new module
8698         * modules/test-framework-sh: New file.
8699         * MODULES.html.sh (Support for maintaining and releasing projects):
8700         List it.
8701
8702         init.sh: do not emit simulated diff output to stderr
8703         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
8704
8705 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8706
8707         .gitignore: ignore gnulib.dvi and regex.info
8708         * doc/.gitignore:add gnulib.dvi and regex.info
8709
8710 2011-12-22  Jim Meyering  <meyering@redhat.com>
8711
8712         init.sh: correct previous change
8713         * tests/init.sh (compare): My previous change was wrong.
8714         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
8715
8716         init.sh: avoid unwarranted test failure when using "set -e"
8717         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
8718         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
8719         a use like "compare exp out" would get evoke an unconditional failure.
8720
8721 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
8722
8723         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
8724         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
8725         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
8726         autoreconf that did not.
8727         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
8728         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8729
8730 2011-12-17  Jim Meyering  <meyering@redhat.com>
8731
8732         bootstrap: remove some now-unneeded code
8733         This script arose back when gnulib-tool was young.
8734         Since then, it has seen improvements that render much of this
8735         script unnecessary.  In particular, it can now make symlinks
8736         to the files it uses.  Also, I no longer see as much value in
8737         marking files as read-only via comments.
8738         If you relied on the symlink-creation feature of the preceding
8739         version of this script, you can get most of that functionality
8740         by adding the --symlink option to the definition of
8741         gnulib_tool_option_extras in your bootstrap.conf file.
8742         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
8743         Run autopoint and libtoolize *before* gnulib-tool.
8744         After it, run an abbreviated autoreconf, rather than a loop around
8745         all tools.
8746         (slirp, bt_mark_as_generated): Remove functions.
8747
8748 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8749
8750         ftoastr: fix typo
8751         * lib/ftoastr.h: Fix misspelling in comment.
8752
8753 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
8754
8755         * top/README-release: fix punctuation.
8756
8757 2011-12-17  Jim Meyering  <meyering@redhat.com>
8758
8759         bootstrap: correct the recent buildreq change
8760         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
8761         had no effect.
8762         * build-aux/bootstrap (buildreq): Bracket each search term with
8763         "*...*", so that the shell "case" statement works as intended.
8764         Add comments.
8765
8766 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
8767
8768         build: let bootstrap resort to wget when downloading .po files
8769         * build-aux/bootstrap (download_po_files): Fallback to wget when
8770         downloading the .po files via rsync fails.  This is necessary to
8771         bootstrap from behind a strict firewall.
8772
8773 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8774
8775         stdint: don't assume C++11 when compiling with g++
8776         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
8777         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
8778         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
8779         work also in C++ before C++11, as that improperly inhibits
8780         generating a substitute stdint.h for that case.
8781
8782 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8783
8784         alloca: protect comment from gnulib-tool
8785         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
8786         that gnulib-tool doesn't think it's a license, and munge it to
8787         say "GCC version 3".
8788
8789 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
8790
8791         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
8792         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
8793         $(abs_top_builddir) instead of $(top_builddir).
8794
8795 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
8796
8797         strftime-tests: also test nanoseconds
8798         * tests/test-strftime.c (T): Add a test of %N.
8799
8800 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
8801
8802         inttypes, stdint: add C++11 support
8803         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
8804         when including inttypes.h and stdint.h.  Support this change to
8805         the standard.
8806         * doc/posix-headers/inttypes.texi (inttypes.h):
8807         * doc/posix-headers/stdint.texi (stdint.h): Document this.
8808         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
8809         Define if not defined already, for the benefit of pre-C++11 hosts.
8810         Define the standard format macros (e.g., PRId8) always.
8811         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
8812         Likewise, if __cpluspus.  Define the standard constant and limit
8813         macros (e.g., INT8_C, INT8_MAX) always.
8814         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
8815         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
8816         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
8817         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
8818         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
8819         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
8820         Likewise.
8821
8822 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8823
8824         nonblocking tests: Fix test failure on Linux/PPC.
8825         Suggested by Prerna Saxena in
8826         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
8827         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
8828         Set to 1100000.
8829
8830 2011-12-12  Jim Meyering  <meyering@redhat.com>
8831
8832         argmatch: don't hard-code `' when listing valid option arguments
8833         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
8834         use the quote function to add quotes.  Use fputs rather than
8835         fprintf for the format string with no format directive.
8836
8837 2011-12-07  Eric Blake  <eblake@redhat.com>
8838
8839         bootstrap: detect tools required by gnulib-tool
8840         * build-aux/bootstrap (buildreq): Provide minimum implicit
8841         dependencies.
8842         * DEPENDENCIES: Mention patch as a prereq.
8843
8844 2011-12-04  Bruno Haible  <bruno@clisp.org>
8845
8846         sethostname: Port to Windows platforms.
8847         * lib/sethostname.c: Provide an alternate implementation for Windows
8848         platforms.
8849         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
8850         (main): Skip the test if sethostname() fails with EPERM. On Windows
8851         platforms, don't check the result of gethostname().
8852
8853 2011-12-04  Bruno Haible  <bruno@clisp.org>
8854             Jim Meyering  <meyering@redhat.com>
8855
8856         tests: Avoid spurious error message on platforms without mktemp program.
8857         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
8858
8859 2011-12-04  Bruno Haible  <bruno@clisp.org>
8860
8861         sethostname: Fix documentation.
8862         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
8863         "not fixed" section.
8864
8865 2011-12-03  Bruno Haible  <bruno@clisp.org>
8866
8867         gnulib-tool: Verify that the License field is present and non-empty.
8868         * gnulib-tool (func_get_license_raw): New function, extracted from
8869         func_get_license.
8870         (func_get_license): Use it. Warn if the module is not a test module and
8871         has no license.
8872         Suggested by Jim Meyering.
8873
8874 2011-12-03  Bruno Haible  <bruno@clisp.org>
8875
8876         sethostname tests: Fix link error on mingw.
8877         * tests/test-sethostname1.c: New file, extracted from
8878         tests/test-sethostname.c.
8879         * tests/test-sethostname2.c: New file, extracted from
8880         tests/test-sethostname.c.
8881         * tests/test-sethostname.c: Remove file.
8882         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
8883         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
8884         (Depends-on): Add gethostname.
8885         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
8886         Link the latter with $(GETHOSTNAME_LIB).
8887
8888         sethostname tests: Fix compilation error on mingw.
8889         * tests/test-sethostname.c: Don't include <sys/types.h>.
8890         (geteuid): Use a dummy value without uid_t.
8891         * modules/sethostname-tests (Depends-on): Remove sys_types.
8892
8893         sethostname tests: Avoid a gcc warning.
8894         * tests/test-sethostname.c (main): Remove an unused variable.
8895
8896         Tweak last commit.
8897         * modules/sethostname-tests (Files): Sort by decreasing importance.
8898         (configure.ac): Check for geteuid.
8899         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
8900         the test when there's nothing to test. Drop an unnecessary cast.
8901         Improve an error message. Verify that the final sethostname() call
8902         succeeds.
8903
8904 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8905
8906         Add a test suite for the sethostname module.
8907         * modules/sethostname-tests: New file.  A test program
8908         for the sethostname module.
8909         * tests/test-sethostname.c: Likewise.
8910
8911 2011-12-03  Bruno Haible  <bruno@clisp.org>
8912
8913         Tweak last commit.
8914         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
8915         Fix preprocessor directives indentation. Fix typos.
8916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
8917         * modules/unistd (Makefile): Likewise.
8918
8919 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8920
8921         Integrate the sethostname module into unistd.
8922         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
8923         into the unistd.h header.
8924         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
8925         preprocessor directives.
8926         * modules/unistd: Setup the Makefile substitutions of the
8927         SETHOSTNAME preprocessor directives.
8928
8929 2011-12-03  Bruno Haible  <bruno@clisp.org>
8930
8931         Tweak last commit.
8932         * lib/sethostname.c: Don't include <string.h>.
8933         (sethostname): No need to copy the argument string to the stack. Don't
8934         call clearerr. Preserve errno when fprintf failed.
8935         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
8936         Don't invoke AC_REPLACE_FUNCS.
8937         * modules/sethostname (Link): Remove empty section.
8938         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
8939         failure problem.
8940
8941 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8942
8943         New module 'sethostname'.
8944         * lib/sethostname.c (sethostname): New file.  Provide sethostname
8945         for systems that lack it.
8946         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
8947         sethostname declaration and function.
8948         * modules/sethostname: New file.  Define the sethostname module.
8949
8950 2011-12-03  Bruno Haible  <bruno@clisp.org>
8951
8952         Tweak last commit.
8953         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
8954
8955 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8956
8957         Split the HOST_NAME_MAX detection into a separate m4 macro.
8958         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
8959         macro so it can be used by the pending sethostname module.
8960
8961 2011-12-03  Bruno Haible  <bruno@clisp.org>
8962
8963         Fix module descriptions syntax.
8964         * modules/argv-iter (License): Fix syntax.
8965         * modules/di-set (License): Likewise.
8966         * modules/ino-map (License): Likewise.
8967         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
8968
8969 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8970
8971         stdalign: port to Clang 3.0
8972         Problem reported by Simon Josefsson in
8973         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
8974         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
8975         which has <stdalign.h> but which does not define alignof.
8976         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
8977
8978 2011-12-01  Eric Blake  <eblake@redhat.com>
8979
8980         mktempd: silence dd usage
8981         * build-aux/mktempd (rand_bytes): Silence dd.
8982
8983 2011-11-30  Simon Josefsson  <simon@josefsson.org>
8984
8985         manywarnings: Don't mention gcc version in docstring.
8986         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
8987         Jim Meyering <meyering@redhat.com>.
8988
8989 2011-11-30  Jim Meyering  <meyering@redhat.com>
8990
8991         hash: mark a few floating point constants with "f" suffix
8992         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
8993         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
8994         floating point constants with "f", since they're destined to be
8995         saved/used as "float"s.
8996
8997 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
8998
8999         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
9000         * tests/test-float.c (test_long_double): Correct and re-enable the
9001         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
9002
9003 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
9004
9005         Avoid subtracting two pointers that don't point into the same block.
9006         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
9007         only pointers into the same memory block are subtracted. We cannot
9008         assume that sizeof (ptrdiff_t) == sizeof (void *).
9009
9010 2011-11-29  Eric Blake  <eblake@redhat.com>
9011
9012         maint.mk: add syntax check for use of compare from init.sh
9013         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
9014         moved here from coreutils.
9015
9016         manywarnings: drop -Wunsuffixed-float-constants
9017         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
9018         '1.0D', which is the only way to silence this warning for 'double'.
9019
9020 2011-11-29  Jim Meyering  <meyering@redhat.com>
9021
9022         hash: mark compute_bucket_size with the pure attribute
9023         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
9024
9025         quotearg, propername: correct pragma guard expression
9026         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
9027         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
9028
9029 2011-11-28  Jim Meyering  <meyering@redhat.com>
9030
9031         propername: do not mark proper_name with the const attribute
9032         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
9033         since it examines data pointed to by its parameter.
9034         * lib/propername.c (proper_name): Instead, add a pragma to suppress
9035         the suggestion from -Wsuggest-attribute=const.
9036
9037         propername: mark one more function as const
9038         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
9039
9040 2011-11-27  Jim Meyering  <meyering@redhat.com>
9041
9042         mark functions with const and pure attributes
9043
9044         Mark functions per suggestions from gcc-4.6 when using these options:
9045         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
9046         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
9047         Follow these guidelines: when possible, apply the attribute to
9048         an extern declaration, not to its definition.  Apply it to the
9049         definition only when the definition is static.
9050         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
9051         * lib/argv-iter.h (argv_iter_n_args): Likewise.
9052         * lib/base64.h (isbase64): Likewise.
9053         * lib/basename-lgpl.c (last_component, base_len): Likewise.
9054         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
9055         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
9056         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
9057         (c_tolower, c_toupper): Likewise.
9058         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
9059         * lib/chdir-long.c (find_non_slash): Likewise.
9060         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
9061         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
9062         * lib/file-type.h (file_type): Likewise.
9063         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
9064         * lib/filevercmp.c (verrevcmp): Likewise.
9065         * lib/freadahead.h (freadahead): Likewise.
9066         * lib/fts.c (fts_maxarglen): Likewise.
9067         * lib/hash-pjw.h (hash_pjw): Likewise.
9068         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
9069         * lib/hash.c (is_prime, next_prime): Likewise.
9070         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
9071         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
9072         (hash_table_ok, hash_get_first, hash_string): Likewise.
9073         (compute_bucket_size): Likewise.
9074         * lib/i-ring.h (i_ring_empty): Likewise.
9075         * lib/isnan.c (isnanl): Likewise.
9076         * lib/math.h (isnanl, rpl_isnanl): Likewise.
9077         * lib/memcasecmp.h (memcasecmp): Likewise.
9078         * lib/memchr2.h (memchr2): Likewise.
9079         * lib/memcmp2.h (memcmp2): Likewise.
9080         * lib/parse-datetime.y (lookup_zone): Likewise.
9081         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
9082         [!WINDOWS_SOCKETS]: Likewise.
9083         * lib/strnlen1.h (strnlen1): Likewise.
9084         * lib/uniwidth.in.h (uc_width): Likewise.
9085         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
9086         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
9087         (quoting_options_from_style): Add a comment.
9088         * lib/propername.h (proper_name): Add a comment.
9089
9090 2011-11-27  Bruno Haible  <bruno@clisp.org>
9091
9092         Remove unused macros from !_LIBC code in glibc-borrowed files.
9093         * lib/fnmatch.c (STRCOLL): Remove macro.
9094         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
9095         * lib/glob.c (__stat, __readdir64): Remove macros.
9096         * lib/tempname.c (__open64, __xstat64): Remove macros.
9097         Suggested by Paul Eggert.
9098
9099 2011-11-27  Bruno Haible  <bruno@clisp.org>
9100
9101         getcwd: Fix link error on MSVC 9.
9102         * modules/getcwd (Depends-on): Add readdir, rewinddir.
9103
9104 2011-11-27  Bruno Haible  <bruno@clisp.org>
9105
9106         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
9107         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
9108         HAVE_OPENDIR is 0.
9109         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
9110         HAVE_CLOSEDIR is 0.
9111         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
9112         is 0.
9113         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
9114
9115 2011-11-27  Bruno Haible  <bruno@clisp.org>
9116
9117         getcwd: Fix bug from 2011-08-17.
9118         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
9119         platforms that need it.
9120         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
9121         code of 4 to be a failure, not a success. This ensures that
9122         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
9123
9124 2011-11-27  Bruno Haible  <bruno@clisp.org>
9125
9126         binary-io tests: Avoid test failure on mingw when libtool is used.
9127         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
9128         Don't verify the size of t-bin-out1.tmp here.
9129         * tests/test-binary-io.sh: Verify it here.
9130         Reported by Simon Josefsson.
9131
9132 2011-11-26  Bruno Haible  <bruno@clisp.org>
9133
9134         Fix conflict between two instantiations of module 'unistd'.
9135         * gnulib-tool (func_emit_autoconf_snippet): Substitute
9136         ${include_guard_prefix} also in the autoconf snippet.
9137         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
9138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
9139         GNULIB_UNISTD_H_GETOPT.
9140         * modules/getopt-posix (configure.ac): Set the
9141         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
9142         * modules/getopt-gnu (configure.ac): Likewise.
9143         * modules/unistd (Makefile.am): Change the substitution value of
9144         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
9145         Reported by Simon Josefsson.
9146
9147 2011-11-25  Bruno Haible  <bruno@clisp.org>
9148
9149         pagealign_alloc: Doc and comments.
9150         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
9151         module.
9152         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
9153
9154 2011-11-25  Jim Meyering  <meyering@redhat.com>
9155
9156         test-update-copyright.sh: avoid false-positive failure
9157         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
9158         around false positive failure on Cygwin/Windows.  The latter was
9159         matching erroneously-created files with names like
9160         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
9161
9162 2011-11-25  Simon Josefsson  <simon@josefsson.org>
9163
9164         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
9165         * m4/valgrind-tests.m4: Check that the parameters that will be
9166         used works, not just a subset of them.  Reported by Bruno Haible
9167         <bruno@clisp.org>.
9168
9169 2011-11-24  Jim Meyering  <meyering@redhat.com>
9170
9171         test-stdalign.c: comment out long double tests
9172         * tests/test-stdalign.c: Don't try to reduce alignment of long double
9173         variables.  That provokes errors like this from gcc-4.7.0 20111124:
9174         error: '_Alignas' specifiers cannot reduce alignment of \
9175         'static_longdouble_alignas'.
9176
9177 2011-11-22  Jim Meyering  <meyering@redhat.com>
9178
9179         init.sh: make "compare /dev/null FILE" output more readable
9180         * tests/init.sh (compare_): Document the preferred order of arguments.
9181         (emit_diff_u_header_): New function.
9182         (compare_dev_null_): Emit a simulated diff, rather than just the
9183         contents of the unexpected file.  Suggestion from Bruno Haible.
9184
9185 2011-11-21  Jim Meyering  <meyering@redhat.com>
9186             Eric Blake  <eblake@redhat.com>
9187
9188         init.sh: work around OSF/1 5.1's mishandling of /dev/null
9189         * tests/init.sh: Make our compare function slightly more portable.
9190         Reported by Bruno Haible in
9191         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
9192
9193 2011-11-21  Simon Josefsson  <simon@josefsson.org>
9194
9195         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
9196         before using it, in code that ends up in config.h.
9197
9198 2011-11-20  Bruno Haible  <bruno@clisp.org>
9199
9200         getcwd: Work around getcwd bug on AIX 5..7.
9201         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
9202         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
9203         Use a different value for gl_cv_func_getcwd_path_max. Move the
9204         definition of HAVE_PARTLY_WORKING_GETCWD from here...
9205         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
9206         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
9207         Define HAVE_MINIMALLY_WORKING_GETCWD.
9208         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
9209         where it is not even minimally working, that is, on AIX.
9210         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
9211         m4/getcwd-path-max.m4.
9212         (main): Update exit code computation.
9213         * doc/posix-functions/getcwd.texi: Mention list of platforms where
9214         getcwd does not handle long file names.
9215
9216 2011-11-20  Bruno Haible  <bruno@clisp.org>
9217
9218         getcwd: Fix bug from 2009-09-10.
9219         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
9220         like "no".
9221
9222 2011-11-20  Simon Josefsson  <simon@josefsson.org>
9223
9224         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
9225
9226 2011-11-20  Bruno Haible  <bruno@clisp.org>
9227
9228         fma tests: Avoid shadowing local variables.
9229         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
9230         expected.
9231
9232 2011-11-20  Bruno Haible  <bruno@clisp.org>
9233
9234         copysignf tests: Fix.
9235         * tests/test-copysignf.c: Fix signature check.
9236
9237 2011-11-20  Bruno Haible  <bruno@clisp.org>
9238
9239         fma: Remove unused code.
9240         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
9241         unused macros.
9242
9243 2011-11-20  Bruno Haible  <bruno@clisp.org>
9244
9245         sethostname: Fix doc about AIX.
9246         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
9247         sethostname; it has it.
9248
9249         sethostname: Mention more portability problems.
9250         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
9251         problem.
9252         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9253
9254 2011-11-19  Bruno Haible  <bruno@clisp.org>
9255
9256         Depend on module fcntl-h when AT_FDCWD is used.
9257         * modules/utimens (Depends-on): Add fcntl-h.
9258         * modules/areadlinkat (Depends-on): Likewise.
9259         * modules/areadlinkat-with-size (Depends-on): Likewise.
9260         * modules/faccessat (Depends-on): Likewise.
9261         * modules/fchmodat (Depends-on): Likewise.
9262         * modules/fchownat (Depends-on): Likewise.
9263         * modules/getcwd (Depends-on): Likewise.
9264         * modules/mkdirat (Depends-on): Likewise.
9265         * modules/mkfifoat (Depends-on): Likewise.
9266         * modules/readlinkat (Depends-on): Likewise.
9267         * modules/symlinkat (Depends-on): Likewise.
9268         * modules/dup2-tests (Depends-on): Likewise.
9269         * modules/fdutimensat-tests (Depends-on): Likewise.
9270         * modules/futimens-tests (Depends-on): Likewise.
9271
9272 2011-11-19  Bruno Haible  <bruno@clisp.org>
9273
9274         euidaccess: Update a comment.
9275         * lib/euidaccess.c: Update comment about platforms with faccessat.
9276
9277 2011-11-19  Bruno Haible  <bruno@clisp.org>
9278
9279         openat: Fix file list.
9280         * modules/openat (Files): Remove lib/at-func.c.
9281
9282 2011-11-19  Bruno Haible  <bruno@clisp.org>
9283
9284         fstatat: Simplify.
9285         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
9286         gnulib should define rpl_fstatat, there is a
9287         "#define fstatat rpl_fstatat" in <sys/stat.h>.
9288
9289 2011-11-19  Bruno Haible  <bruno@clisp.org>
9290
9291         Ensure 'inline' can be used in tests/test-utimens-common.h.
9292         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
9293         * modules/futimens-tests (configure.ac): Likewise.
9294         * modules/utimens-tests (configure.ac): Likewise.
9295         * modules/utimensat-tests (configure.ac): Likewise.
9296
9297 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9298
9299         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
9300         not hash_insert0.
9301         (hash_insert_if_absent): Doc fix.
9302
9303 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9304
9305         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
9306
9307 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9308
9309         test-getcwd: disambiguate exit status
9310         * tests/test-getcwd.c (test_long_name): Return 0..7.
9311         (main): Exit with an unambiguous exit status.  The old
9312         code yielded a mysterious mixture of two failure codes.
9313
9314         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
9315         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
9316         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
9317         rpl_fstatat or fstatat.  This should fix the other problem
9318         reported by Kai Habel in
9319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9320         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
9321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
9322         and I reproduced it on a Solaris 8 host we still have in production.
9323
9324 2011-11-18  Jim Meyering  <meyering@redhat.com>
9325
9326         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
9327         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
9328         Add a sentence to the comment.
9329         (hash_insert0): New function that simply calls hash_insert_if_absent.
9330         * lib/hash.h (hash_insert_if_absent): Declare it.
9331         (hash_insert0): Add deprecation attribute.
9332         (_GL_ATTRIBUTE_DEPRECATED): Define.
9333         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
9334         not hash_insert0.
9335         * NEWS: Mention it, even though it's not really an incompatible change.
9336
9337 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
9338
9339         openat: avoid compilation failure due to lack of <errno.h> inclusion
9340         * lib/openat.c: Include <errno.h>.
9341
9342 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9343
9344         * modules/getcwd (Depends-on): Add fdopendir.
9345         This fixes one of the two problems reported by Kai Habel in
9346         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9347
9348         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
9349         stdalign problem reported by Ian Beckwith in
9350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
9351         * modules/crypto/gc-arcfour (Depends-on):
9352         Depend conditionally on crypto/arcfour.
9353         * modules/crypto/gc-arctwo (Depends-on):
9354         Depend conditionally on crypto/arctwo.
9355         * modules/crypto/gc-des (Depends-on):
9356         Depend conditionally on crypto/des.
9357         * modules/crypto/gc-hmac-md5 (Depends-on):
9358         Depend conditionally on crypto/hmac-md5.
9359         * modules/crypto/gc-hmac-sha1 (Depends-on):
9360         Depend conditionally on crypto/hmac-sha1.
9361         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
9362         * modules/crypto/gc-md4 (Depends-on):
9363         Depend conditionally on crypto/md4.
9364         * modules/crypto/gc-md5 (Depends-on):
9365         Depend conditionally on crypto/md5.
9366         * modules/crypto/gc-rijndael (Depends-on):
9367         Depend conditionally on crypto/rijndael.
9368         * modules/crypto/gc-sha1 (Depends-on):
9369         Depend conditionally on crypto/sha1.
9370         * modules/crypto/gc-arcfour:
9371         * modules/crypto/gc-arctwo:
9372         * modules/crypto/gc-des:
9373         * modules/crypto/gc-hmac-md5:
9374         * modules/crypto/gc-hmac-sha1:
9375         * modules/crypto/gc-md2:
9376         * modules/crypto/gc-md4:
9377         * modules/crypto/gc-md5:
9378         * modules/crypto/gc-rijndael:
9379         * modules/crypto/gc-sha1:
9380         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
9381         now that the conditional dependencies do the work for us.
9382
9383 2011-11-17  Jim Meyering  <meyering@redhat.com>
9384
9385         tests: factor st_ctime-comparison out of two headers
9386         * tests/test-utimens-common.h (ctime_compare): Define.
9387         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
9388         * tests/test-lutimens.h (test_lutimens): Likewise.
9389         * tests/test-utimens.h (test_utimens): Likewise.
9390
9391         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
9392         Invoke the test program via an init.sh-using wrapper.
9393         * tests/test-getcwd.sh: New file.
9394         * modules/getcwd-tests (Files): Add it.
9395         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
9396
9397 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
9398
9399         gitlog-to-changelog: support multi-author commits.
9400         The FSF cares about keeping track of all authors of patches to its
9401         projects, but Git doesn't provide obvious support for multi-author
9402         changesets. Consensus seems to be forming around the use of extra
9403         Signed-off-by inspired lines in the log message formatted as
9404         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
9405         multi-author commits between version control systems.
9406         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
9407         log message and output in standard ChangeLog multi-author format.
9408         Reported by Peter Rosin <peda@lysator.liu.se>
9409
9410 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
9411             Bruno Haible  <bruno@clisp.org>
9412
9413         Fix some modules' file list.
9414         * modules/fstatat (Files): Add m4/lstat.m4.
9415         * modules/openat (Files): Likewise.
9416         * modules/unlinkat (Files): Likewise.
9417
9418 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
9419
9420         maint.mk: fix tight-scope.mk generation in VPATH builds.
9421         * top/maint.mk (tight-scope.mk): Make sure to prefix file
9422         reference with $(srcdir) so that the file is found correctly even
9423         when running `make syntax-check' in a VPATH build.
9424
9425 2011-11-13  Bruno Haible  <bruno@clisp.org>
9426             Jim Meyering  <meyering@redhat.com>
9427
9428         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
9429         * tests/init.sh (compare): Remove "No differences encountered" or
9430         synonymous output from the 'diff' program.
9431
9432 2011-11-13  Bruno Haible  <bruno@clisp.org>
9433
9434         Makefile: Tweak indentation.
9435         * Makefile: Use tab as first character in every line that contains rule
9436         commands.
9437
9438 2011-11-13  Bruno Haible  <bruno@clisp.org>
9439
9440         Syntax check for copyright statements.
9441         * check-copyright: New file.
9442         * Makefile (sc_check_copyright): New rule.
9443
9444 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9445
9446         * build-aux/git-version-gen: Add --prefix to configure the tag
9447         match string.
9448
9449 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9450
9451         * build-aux/git-version-gen: Add --help and --version.
9452
9453 2011-11-12  Jim Meyering  <meyering@redhat.com>
9454
9455         revamp the other test-exclude?.sh scripts to use init.sh, too
9456         * tests/test-exclude1.sh: Use init.sh.
9457         * tests/test-exclude2.sh: Likewise.
9458         * tests/test-exclude3.sh: Likewise.
9459         * tests/test-exclude4.sh: Likewise.
9460         * tests/test-exclude5.sh: Likewise.
9461         * tests/test-exclude6.sh: Likewise.
9462         * tests/test-exclude7.sh: Likewise.
9463         * tests/test-exclude8.sh: Likewise.
9464         * modules/exclude-tests (Files): List init.sh.
9465
9466         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
9467         These shell scripts ignored failure of the binary test-exclude,
9468         so making the latter return 77 didn't cause them to be skipped.
9469         * tests/test-exclude5.sh: Exit with test-exclude's error status
9470         when that program fails.  Revamp to use init.sh.
9471         * tests/test-exclude2.sh: Likewise.
9472
9473         test-exclude: fix a typo
9474         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
9475
9476 2011-11-11  Bruno Haible  <bruno@clisp.org>
9477
9478         obstack: Fix compilation error on MSVC 9.
9479         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
9480
9481 2011-11-11  Jim Meyering  <meyering@redhat.com>
9482
9483         test-exclude: skip tests rather than failing on deficient systems
9484         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
9485         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
9486         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
9487         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
9488
9489 2011-11-10  Bruno Haible  <bruno@clisp.org>
9490
9491         ptsname_r test: Avoid gcc warning on glibc systems.
9492         * tests/test-ptsname_r.c (null_ptr): New function.
9493         (test_errors): Use it.
9494
9495 2011-11-10  Bruno Haible  <bruno@clisp.org>
9496
9497         ptsname_r: Avoid compilation error on OSF/1 5.1.
9498         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
9499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
9500         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
9501         function is not declared or incompatibly declared.
9502         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
9503         * modules/ptsname_r (Depends-on, configure.ac): Update.
9504         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
9505
9506 2011-11-10  Bruno Haible  <bruno@clisp.org>
9507
9508         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
9509         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
9510         When cross-compiling, guess yes on all platforms except AIX.
9511         Reported by Ludovic Courtès <ludo@gnu.org>.
9512
9513 2011-11-09  Bruno Haible  <bruno@clisp.org>
9514
9515         ptsname_r tests: Fix bugs.
9516         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
9517         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
9518
9519 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9520
9521         fstatat: work with cross-compilation
9522         Problem reported by Ludovic Courtès in
9523         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
9524         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
9525         "cross-compiling" and assume the bug is present.  Replace
9526         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
9527         an inverted sense, to be more conservative about our assumptions.
9528         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
9529
9530 2011-11-09  Bruno Haible  <bruno@clisp.org>
9531
9532         Improve MODULES.html output.
9533         * modules/mkfifoat (Description): Use the word "function".
9534         * modules/readlinkat (Description): Likewise.
9535         * modules/symlinkat (Description): Likewise.
9536
9537 2011-11-09  Eric Blake  <eblake@redhat.com>
9538
9539         ptsname_r-tests: new test module
9540         * modules/ptsname_r-tests: New module.
9541         * tests/test-ptsname_r.c: New file.
9542
9543         ptsname_r: new module
9544         * modules/ptsname_r: New module.
9545         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
9546         * lib/ptsname.c (__ptsname_r): Split...
9547         * lib/ptsname_r.c: ...into new file.
9548         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9549         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
9550         * modules/stdlib (Makefile.am): Substitute witnesses.
9551         * lib/stdlib.in.h (ptsname_r): Declare it.
9552         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
9553         * MODULES.html.sh (Misc): Likewise.
9554         * modules/ptsname (Depends-on): Alter dependency.
9555         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
9556
9557 2011-11-09  Jim Meyering  <meyering@redhat.com>
9558
9559         announce-gen: be more concise when there's only one URL+tarball
9560         * build-aux/announce-gen (get_tool_versions): When you distribute
9561         only one type of tarball, combine the first two "Here are..."
9562         sections and make the key-checking grammar independent of
9563         how many tarballs there are.
9564
9565 2011-11-09  Eric Blake  <eblake@redhat.com>
9566
9567         openpty: provide a stub on mingw
9568         * lib/pty.in.h (includes): Provide forward declarations.
9569         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
9570
9571         raise: fix mingw handling of SIGPIPE
9572         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
9573
9574 2011-11-08  Bruno Haible  <bruno@clisp.org>
9575
9576         More conditional dependencies.
9577         * modules/faccessat (Depends-on): Add conditions.
9578         * modules/fchmodat (Depends-on): Likewise.
9579         * modules/fchownat (Depends-on): Likewise.
9580         * modules/fstatat (Depends-on): Likewise.
9581         * modules/mkfifoat (Depends-on): Likewise.
9582         * modules/readlinkat (Depends-on): Likewise.
9583         * modules/symlinkat (Depends-on): Likewise.
9584         * modules/unlinkat (Depends-on): Likewise.
9585         * modules/utimensat (Depends-on): Likewise.
9586         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
9587         * modules/linkat (Depends-on): Refine the conditions.
9588         * modules/renameat (Depends-on): Likewise.
9589
9590 2011-11-08  Bruno Haible  <bruno@clisp.org>
9591
9592         faccessat: Move AC_LIBOBJ invocation to module description.
9593         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
9594         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
9595         invocation from here...
9596         * modules/faccessat (configure.ac): ... to here. Invoke
9597         gl_PREREQ_FACCESSAT.
9598
9599 2011-11-08  Bruno Haible  <bruno@clisp.org>
9600
9601         faccessat: Simplify autoconf macro.
9602         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
9603         gl_FUNC_EUIDACCESS.
9604
9605 2011-11-08  Bruno Haible  <bruno@clisp.org>
9606
9607         renameat: Fix dependencies.
9608         * modules/renameat (Depends-on): Add stdbool.
9609
9610 2011-11-08  Bruno Haible  <bruno@clisp.org>
9611
9612         mkfifoat: Fix module description.
9613         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
9614         not gl_UNISTD_MODULE_INDICATOR.
9615
9616 2011-11-08  Bruno Haible  <bruno@clisp.org>
9617
9618         fstatat: Remove unused dependency.
9619         * modules/fstatat (Depends-on): Remove fstat.
9620
9621 2011-11-08  Simon Josefsson  <simon@josefsson.org>
9622
9623         GNUmakefile: behave when Makefile is missing.
9624         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
9625
9626 2011-11-08  Bruno Haible  <bruno@clisp.org>
9627
9628         openat: Conditionalize dependencies.
9629         * lib/openat.c: Reduce the scope of some #includes.
9630         * modules/openat (Depends-on): Add conditions.
9631
9632 2011-11-07  Jim Meyering  <meyering@redhat.com>
9633
9634         maint.mk: extract GPG key ID without using a temporary file
9635         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
9636         without using a temporary file.  Based on a suggestion from Werner Koch
9637         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
9638
9639 2011-11-07  Eric Blake  <eblake@redhat.com>
9640
9641         grantpt: fix typo
9642         * lib/stdlib.in.h (grantpt): Check correct function.
9643
9644         maint.mk: silence new syntax check
9645         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
9646
9647 2011-11-06  Bruno Haible  <bruno@clisp.org>
9648
9649         Doc about floating-point and math API.
9650         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
9651         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
9652
9653 2011-11-06  Bruno Haible  <bruno@clisp.org>
9654
9655         stdalign tests: Skip the test when compiled by Sun C.
9656         * tests/test-stdalign.c (main): Skip the test on Sun C.
9657
9658 2011-11-06  Bruno Haible  <bruno@clisp.org>
9659
9660         ansi-c++-opt: Complete the 2011-06-05 change.
9661         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
9662         does not support namespaces, set the variable to "no", not to ":".
9663
9664 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9665
9666         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
9667
9668 2011-11-06  Bruno Haible  <bruno@clisp.org>
9669
9670         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
9671         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
9672         (minus_zerol) [HP-UX]: New macro.
9673         (unary_minus) [HP-UX]: New function.
9674         (copysignl) [HP-UX]: Use unary_minus function.
9675
9676 2011-11-06  Bruno Haible  <bruno@clisp.org>
9677
9678         ldexp, ldexpf, ldexpl: Enhance tests.
9679         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
9680         and tests/test-ldexpl.c.
9681         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
9682         LDEXP, MIN_EXP, MAX_EXP): New macros.
9683         Include test-ldexp.h.
9684         (main): Just call test_function.
9685         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
9686         infinity.h, nan.h.
9687         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9688         MAX_EXP): New macros.
9689         Include test-ldexp.h.
9690         (x, y): Remove variables.
9691         (main): Just call test_function.
9692         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
9693         infinity.h, nan.h.
9694         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9695         MAX_EXP): New macros.
9696         Include test-ldexp.h.
9697         (x, y): Remove variables.
9698         (main): Just call test_function.
9699         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
9700         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
9701         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9702         (Depends-on): Add isnand-nolibm, signbit, float.
9703         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
9704         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9705         (Depends-on): Add isnanf-nolibm, signbit, float.
9706
9707 2011-11-06  Bruno Haible  <bruno@clisp.org>
9708
9709         math tests: Cosmetics.
9710         * tests/test-math-c++.cc: Reorder declarations.
9711
9712 2011-11-05  Bruno Haible  <bruno@clisp.org>
9713
9714         fma*: Simplify test.
9715         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
9716         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
9717
9718         Tests for module 'fmal'.
9719         * modules/fmal-tests: New file.
9720         * tests/test-fmal1.c: New file.
9721         * tests/test-fmal2.c: New file.
9722
9723         New module 'fmal'.
9724         * lib/math.in.h (fmal): New declaration.
9725         * lib/fmal.c: New file.
9726         * m4/fmal.m4: New file.
9727         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
9728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
9729         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
9730         REPLACE_FMAL.
9731         * modules/fmal: New file.
9732         * doc/posix-functions/fmal.texi: Mention the new module and the various
9733         bugs.
9734
9735         Tests for module 'fmaf'.
9736         * modules/fmaf-tests: New file.
9737         * tests/test-fmaf1.c: New file.
9738         * tests/test-fmaf2.c: New file.
9739
9740         New module 'fmaf'.
9741         * lib/math.in.h (fmaf): New declaration.
9742         * lib/fmaf.c: New file.
9743         * m4/fmaf.m4: New file.
9744         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
9745         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
9746         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
9747         REPLACE_FMAF.
9748         * modules/fmaf: New file.
9749         * doc/posix-functions/fmaf.texi: Mention the new module and the various
9750         bugs.
9751
9752         Tests for module 'fma'.
9753         * modules/fma-tests: New file.
9754         * tests/test-fma1.c: New file.
9755         * tests/test-fma1.h: New file.
9756         * tests/test-fma2.c: New file.
9757         * tests/test-fma2.h: New file.
9758
9759         New module 'fma'.
9760         * lib/math.in.h (fma): New declaration.
9761         * lib/fma.c: New file.
9762         * m4/fma.m4: New file.
9763         * m4/fegetround.m4: New file.
9764         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
9765         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
9766         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
9767         REPLACE_FMA.
9768         * modules/fma: New file.
9769         * doc/posix-functions/fma.texi: Mention the new module and the various
9770         bugs.
9771
9772         Extend gl_MATHFUNC.
9773         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
9774         Support 'void' as argument type.
9775         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
9776
9777 2011-11-05  Jim Meyering  <meyering@redhat.com>
9778
9779         maint.mk: also prohibit inclusion of dirent.h without use
9780         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
9781
9782 2011-11-05  Bruno Haible  <bruno@clisp.org>
9783
9784         ldexpl tests: Avoid test failure on MSVC 9.
9785         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
9786         value. Needed in order to enforce the conversion from a value greater
9787         than LDBL_MAX to Infinity.
9788
9789 2011-11-05  Bruno Haible  <bruno@clisp.org>
9790
9791         New modules 'at-internal', 'openat-h', split off from module 'openat'.
9792         * modules/at-internal: New file, extracted from modules/openat.
9793         * modules/openat-h: New file.
9794         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
9795         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
9796         * modules/openat (Description): Add reference to POSIX function.
9797         (Files): Remove lib/openat.h, lib/openat-proc.c.
9798         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
9799         intprops, unistd.
9800         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
9801         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
9802         gl_FCNTL_MODULE_INDICATOR.
9803         (Include): Remove unistd.h, openat.h.
9804         * modules/areadlinkat (Files): Add lib/at-func.c.
9805         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9806         openat-die, openat-h, save-cwd.
9807         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
9808         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9809         openat-die, openat-h, save-cwd, unistd.
9810         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
9811         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9812         openat-h, save-cwd. Remove fcntl-h, openat.
9813         * modules/fchmodat (Files): Remove lib/openat.h.
9814         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9815         openat, stdbool, unistd.
9816         * modules/fchownat (Files): Remove lib/openat.h.
9817         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9818         openat, stdbool, sys_stat.
9819         * modules/fdopendir (Files): Remove lib/openat-priv.h,
9820         lib/openat-proc.c.
9821         (Depends-on): Add at-internal.
9822         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
9823         * modules/fstatat (Files): Remove lib/openat.h.
9824         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9825         stdbool, unistd.
9826         * modules/fts (Depends-on): Add openat-h.
9827         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
9828         openat.
9829         * modules/mkdirat (Files): Remove lib/openat.h.
9830         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9831         openat, stdbool, sys_stat.
9832         * modules/mkfifoat (Files): Add lib/at-func.c.
9833         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9834         openat-h, save-cwd. Remove fcntl-h, openat.
9835         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
9836         * modules/readlinkat (Files): Add lib/at-func.c.
9837         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9838         openat-h, save-cwd. Remove fcntl-h, openat.
9839         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
9840         openat.
9841         * modules/selinux-at (Files): Add lib/at-func.c.
9842         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9843         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
9844         * modules/symlinkat (Files): Add lib/at-func.c.
9845         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9846         openat-h, save-cwd. Remove fcntl-h, openat.
9847         * modules/unlinkat (Files): Remove lib/openat.h.
9848         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9849         stdbool.
9850         * modules/utimensat (Files): Add lib/at-func.c.
9851         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
9852         openat-die, openat-h, save-cwd.
9853         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
9854         * modules/fdutimensat-tests (Depends-on): Add openat.
9855         * modules/fstatat-tests (Depends-on): Add openat-h.
9856         * modules/readlinkat-tests (Depends-on): Add openat.
9857         * modules/symlinkat-tests (Depends-on): Add openat.
9858
9859 2011-11-05  Bruno Haible  <bruno@clisp.org>
9860
9861         openat: Include <stdbool.h>.
9862         * lib/openat.c: Include <stdbool.h>.
9863
9864 2011-11-04  Bruno Haible  <bruno@clisp.org>
9865
9866         fchownat, renameat, unlinkat: Fix dependencies.
9867         * modules/fchownat (Depends-on): Add fstatat.
9868         * modules/renameat (Depends-on): Likewise.
9869         * modules/unlinkat (Depends-on): Likewise.
9870
9871 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
9872
9873         openat: remove direct dependency on dirent
9874         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
9875         and hasn't been needed ever since fdopendir was split into its own
9876         module on 2009-08-31.
9877         * modules/openat (Depends-on): Remove dirent.
9878
9879 2011-11-04  Bruno Haible  <bruno@clisp.org>
9880
9881         renameat: Optimize code size.
9882         * modules/renameat (configure.ac): Don't compile at-func2.c if
9883         REPLACE_RENAMEAT is 1.
9884
9885 2011-11-04  Bruno Haible  <bruno@clisp.org>
9886
9887         openat tests: Fix file list.
9888         * modules/openat-tests (Files): Add tests/test-open.h.
9889
9890 2011-11-04  Bruno Haible  <bruno@clisp.org>
9891
9892         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
9893         * modules/fchmodat (Depends-on): Add openat-die.
9894         * modules/fchownat (Depends-on): Likewise.
9895         * modules/linkat (Depends-on): Likewise.
9896         * modules/renameat (Depends-on): Likewise.
9897         * modules/openat (Depends-on): Add dirent.
9898
9899 2011-11-04  Jim Meyering  <meyering@redhat.com>
9900
9901         at-func*.c: fix comments
9902         * lib/at-func2.c: Correct/improve first-line comment.
9903         * lib/at-func.c: Correct grammar in first-line comment.
9904
9905 2011-11-04  Bruno Haible  <bruno@clisp.org>
9906
9907         New module 'mkdirat', split off from module 'openat'.
9908         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
9909         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
9910         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
9911         * modules/mkdirat: New file, extracted from modules/openat.
9912         * modules/openat (Files): Remove lib/mkdirat.c.
9913         (Depends-on): Remove mkdir.
9914         (configure.ac): Remove AC_LIBOBJ of mkdirat.
9915         (Include): Remove <sys/stat.h>.
9916         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
9917         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
9918         tests/test-mkdir.h.
9919         (Depends-on): Remove ignore-value.
9920         (Makefile.am): Remove rules for test-mkdirat.
9921         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
9922         of module 'openat'.
9923         * NEWS: Mention the change.
9924
9925 2011-11-04  Bruno Haible  <bruno@clisp.org>
9926
9927         closedir: Avoid warning on mingw.
9928         * lib/closedir.c: Include <unistd.h>.
9929
9930 2011-11-04  Bruno Haible  <bruno@clisp.org>
9931
9932         New module 'fstatat', split off from module 'openat'.
9933         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
9934         defined.
9935         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
9936         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
9937         gl_FUNC_FSTATAT.
9938         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
9939         * modules/fstatat: New file, extracted from modules/openat.
9940         * modules/openat (Files): Remove lib/fstatat.c.
9941         (Depends-on): Remove lstat.
9942         (configure.ac): Remove AC_LIBOBJ of fstatat.
9943         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
9944         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
9945         tests/test-lstat.h, tests/test-stat.h.
9946         (Depends-on): Remove getcwd-lgpl.
9947         (Makefile.am): Remove rules for test-fstatat.
9948         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
9949         of module 'openat'.
9950         * NEWS: Mention the change.
9951         * modules/getcwd (Depends-on): Add fstatat.
9952         * modules/linkat (Depends-on): Likewise.
9953         * modules/mkfifoat-tests (Depends-on): Likewise.
9954         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
9955
9956 2011-11-03  Bruno Haible  <bruno@clisp.org>
9957
9958         New module 'unlinkat', split off from module 'openat'.
9959         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
9960         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
9961         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
9962         * modules/unlinkat: New file, extracted from modules/openat. Correct
9963         the dependency conditions.
9964         * modules/openat (Files): Remove lib/unlinkat.c.
9965         (Depends-on): Remove rmdir, unlink.
9966         (configure.ac): Remove AC_LIBOBJ of unlinkat.
9967         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
9968         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
9969         tests/test-rmdir.h, tests/test-unlink.h.
9970         (Depends-on): Remove unlinkdir.
9971         (Makefile.am): Remove rules for test-unlinkat.
9972         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
9973         of module 'openat'.
9974         * NEWS: Mention the change.
9975         * modules/linkat-tests (Depends-on): Add unlinkat.
9976         * modules/mkfifoat-tests (Depends-on): Likewise.
9977         * modules/readlinkat-tests (Depends-on): Likewise.
9978
9979 2011-11-02  Bruno Haible  <bruno@clisp.org>
9980
9981         New module 'fchmodat', split off from module 'openat'.
9982         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
9983         defined.
9984         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
9985         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
9986         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
9987         * modules/fchmodat: New file, extracted from modules/openat.
9988         * modules/openat (Files): Remove lib/fchmodat.c.
9989         (configure.ac): Remove AC_LIBOBJ of fchmodat.
9990         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
9991         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
9992         (Makefile.am): Remove rules for test-fchmodat.
9993         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
9994         of module 'openat'.
9995         * NEWS: Mention the change.
9996
9997 2011-11-02  Jim Meyering  <meyering@redhat.com>
9998
9999         putenv: indent #definition of "environ" to placate cppi
10000         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
10001
10002         gitlog-to-changelog: provide a ChangeLog-repair mechanism
10003         Git logs are often treated as immutable, because editing them
10004         changes the SHA1 checksums of all descendants.  Thus, errors in
10005         git logs tend to stay there forever.  However, when we generate
10006         a ChangeLog file -- typically for distribution -- from that git log,
10007         we can actually make corrections in the generated file.  The key
10008         lies in recording in machine-readable/applicable form the desired
10009         corrections.  See --help for description and an example.
10010         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
10011         (usage): Describe it; alphabetize option descriptions.
10012         (main): Honor the new option, carefully.
10013
10014 2011-11-01  Jim Meyering  <meyering@redhat.com>
10015
10016         gitlog-to-changelog: avoid an infloop
10017         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
10018         that ends up being empty.
10019
10020 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10021
10022         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
10023         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
10024         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
10025         contains (possibly-quoted) backslashes.  This should avoid
10026         all-too-common shell bugs if COMPLICATED contains backslashes in
10027         the "wrong" places.  Reported by David Evans in
10028         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
10029         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
10030         because we want ASCII ranges.  Is there some reason we don't use
10031         the C locale everywhere in this script?
10032         (func_module, top level): Avoid unwanted pathname expansion when
10033         $repo_url_prefix or $repo_url_suffix_repl contain shell
10034         metacharacters like '?' and '*'.
10035
10036 2011-11-01  Bruno Haible  <bruno@clisp.org>
10037
10038         fchownat: Improve description.
10039         * modules/fchownat (Description): Add link to function.
10040
10041 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10042
10043         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
10044         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
10045         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
10046         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
10047
10048 2011-11-01  Bruno Haible  <bruno@clisp.org>
10049
10050         alignof: Avoid collision with stdalign module.
10051         * lib/alignof.h (alignof): Remove macro.
10052         * NEWS: Mention the change.
10053         Reported by Paul Eggert.
10054
10055 2011-11-01  Bruno Haible  <bruno@clisp.org>
10056
10057         New module 'fchownat', split off from module 'openat'.
10058         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
10059         defined.
10060         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
10061         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
10062         invoke gl_FUNC_FCHOWNAT.
10063         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
10064         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
10065         * modules/fchownat: New file, extracted from modules/openat.
10066         * modules/openat (Files): Remove lib/fchownat.c.
10067         (Depends-on): Remove lchown.
10068         (configure.ac): Remove AC_LIBOBJ of fchownat.
10069         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
10070         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
10071         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
10072         (Depends-on): Remove mgetgroups, usleep, stat-time.
10073         (configure.ac): Remove test for getegid.
10074         (Makefile.am): Remove rules for test-fchownat.
10075         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
10076         of module 'openat'.
10077         * NEWS: Mention the change.
10078
10079 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10080
10081         stdalign: port better to MSVC and to Sun C 5.11
10082         This fixes some of the problems reported by Bruno Haible in
10083         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
10084         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
10085         shortcomings of MSVC and of Sun C 5.11.
10086         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
10087         around __declspec arg.
10088         * modules/stdalign-tests (Files): Add tests/macros.h.
10089         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
10090         Include macros.h, for ASSERT.
10091         (DECLARE_ALIGNED): Remove.
10092         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
10093         to catch bug), and to 1 if not (simplifies the rest of the code).
10094         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
10095         (CHECK_AUTO): Remove.
10096         (CHECK_ALIGNED): Check only the alignment of the static vars,
10097         since auto var alignment isn't supported by Sun C 5.11.
10098         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
10099         ASSERT failures are easier to diagnose.
10100
10101 2011-10-31  Bruno Haible  <bruno@clisp.org>
10102
10103         doc about some IRIX 5.3 problems.
10104         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
10105         on IRIX 5.3.
10106         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
10107         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
10108         5.3.
10109         * doc/posix-functions/grantpt.texi: Likewise.
10110         * doc/posix-functions/unlockpt.texi: Likewise.
10111         * doc/posix-functions/lgamma.texi: Likewise.
10112         * doc/posix-functions/nextafter.texi: Likewise.
10113         * doc/posix-functions/remainder.texi: Likewise.
10114         * doc/posix-functions/select.texi: Mention misplaced declaration on
10115         IRIX 5.3.
10116         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10117
10118 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
10119
10120         gitlog-to-changelog: fix git-log invocation.
10121         git-log mishandles date strings before 1970-01-01 UTC, and there is
10122         no use to specify --since=1970-01-01 by default anyway.
10123         * build-aux/gitlog-to-changelog: By default, when no --since option
10124         was given, do not specify explicit --since option to git-log.
10125
10126 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
10127
10128         gitlog-to-changelog: new option --append-dot.
10129         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
10130         first non-blank line of each commit message terminated with a dot.
10131
10132 2011-10-30  Bruno Haible  <bruno@clisp.org>
10133
10134         ffsl, ffsll: Avoid compilation error due to 'restrict'.
10135         * lib/ffsl.h: Include <config.h>.
10136         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
10137
10138 2011-10-30  Jim Meyering  <meyering@redhat.com>
10139
10140         GNUmakefile: reenable "make syntax-check" for most projects
10141         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
10142         build-aux variable", "syntax-check" would do nothing but succeed with
10143         the "No version control files detected..." diagnostic (unless you
10144         happened to override _build-aux via cfg.mk).
10145         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
10146         to precede inclusion of maint.mk.  Otherwise, these variables would
10147         be used undefined in any project that does not override the default.
10148
10149 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
10150
10151         gitlog-to-changelog: treat a message with only blank lines as empty.
10152         * build-aux/gitlog-to-changelog: Move the code that removes leading and
10153         trailing blank lines before the code that issues a warning about an
10154         empty commit message.
10155
10156 2011-10-30  Jim Meyering  <meyering@redhat.com>
10157
10158         test-parse-datetime.c: avoid new DST-related false positive test failure
10159         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
10160         based on the time/date we'll convert, not the current time.
10161         Otherwise, the moment we cross a DST boundary like today's in
10162         Europe, (CEST to CET), that offset ends up being one hour off.
10163
10164 2011-10-27  Bruno Haible  <bruno@clisp.org>
10165
10166         fstat: Tweak documentation.
10167         * modules/fstat (Description): More precise description.
10168
10169 2011-10-27  Bruno Haible  <bruno@clisp.org>
10170
10171         Update documentation regarding 'largefile' module.
10172         * doc/posix-functions/fstat.texi: Tweak wording.
10173         * doc/posix-functions/opendir.texi: Mention that the module fixes the
10174         problems with huge directories and/or small ino_t types.
10175         * doc/posix-functions/readdir.texi: Likewise.
10176         * doc/posix-functions/rewinddir.texi: Likewise.
10177
10178 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
10179
10180         maint.mk: don't maintain a second build-aux variable.
10181         * maint.mk (build_aux): Removed.  The maintainer-makefile module
10182         depends on GNUmakefile, which already maintains a cfg.mk
10183         overridable $(_build-aux) for projects with a non-standard
10184         build-aux directory location, although without the $(srcdir)
10185         prefix.  Use that variable consistently instead of introducing a
10186         second one.  Adjust all call sites.
10187
10188 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
10189
10190         Add stdalign module and use it in other modules.
10191         This is based on a previous proposal by Bruno Haible
10192         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
10193
10194         stdalign: new module
10195         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
10196         * modules/stdalign: New files.
10197         * MODULES.html.sh (c1x_core_properties): Add stdalign.
10198         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
10199
10200         stdalign-tests: new module
10201         * modules/stdalign-tests, tests/test-stdalign.c: New files.
10202
10203         argp: use stdalign
10204         * lib/argp-parse.c: Include <stdalign.h>.
10205         (alignof): Remove.
10206         * modules/argp (Depends-on): Add stdalign.
10207
10208         crypto libraries: use stdalign
10209         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
10210         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
10211         Do not include <stdlib.h> twice, in md4.c.
10212         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
10213         because we are accessing a pointer's bit-pattern, not a size.
10214         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
10215         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
10216         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
10217         * modules/crypto/sha512: Likewise.
10218
10219         sys_socket: use stdalign, not alignof
10220         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
10221         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
10222
10223 2011-10-27  Bruno Haible  <bruno@clisp.org>
10224
10225         raise test: Avoid a test failure on Linux/MIPS.
10226         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
10227         because 99 is a valid signal on Linux/MIPS.
10228
10229 2011-10-27  Bruno Haible  <bruno@clisp.org>
10230
10231         nonblocking tests: Fix test failure on Linux/MIPS.
10232         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
10233         Set to 270000.
10234
10235 2011-10-27  Bruno Haible  <bruno@clisp.org>
10236
10237         utimensat: Work around problem on Linux/hppa.
10238         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
10239         values.
10240         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
10241
10242 2011-10-25  Jim Meyering  <meyering@redhat.com>
10243
10244         maint.mk: fix a bug in sc_prohibit_stddef_without_use
10245         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
10246         after symbols like NULL, size_t, etc.
10247         Reported by Alfred M. Szmidt.
10248
10249         maint.mk: exempt ENODATA from a syntax-check rule
10250         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
10251         from the sc_prohibit_always-defined_macros syntax-check rule.
10252         Add a comment.  See this for more details:
10253         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
10254
10255 2011-10-23  Jim Meyering  <meyering@redhat.com>
10256
10257         fts: close parent dir FD before returning from post-traversal fts_read
10258         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
10259         unlink A, even though an FD open on A remained.  This is suboptimal
10260         (holding a file descriptor open longer than needed), but otherwise not
10261         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
10262         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
10263         that represents a real problem: it causes the removal of A to fail
10264         with e.g., "rm: cannot remove `A': Device or resource busy"
10265
10266         fts visits each directory twice and keeps a cache (fts_fd_ring) of
10267         directory file descriptors.  After completing the final, FTS_DP,
10268         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
10269         cache, but then proceeded to add a new FD to it via the subsequent
10270         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
10271         final file descriptor would be closed only via fts_close's call to
10272         fd_ring_clear.  Now, it is usually closed earlier, via the final
10273         FTS_DP-returning fts_read call.
10274         * lib/fts.c (restore_initial_cwd): New function, converted from
10275         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
10276         Update callers.
10277         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
10278         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
10279
10280 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
10281             Bruno Haible  <bruno@clisp.org>
10282             Jim Meyering  <jim@meyering.net>
10283
10284         readme-release: improve safety of release prep instructions.
10285         * README-release: Don't git pull all branches when only master
10286         is needed for the release process.
10287         Run make maintainer-clean before changing trees and merging.
10288         Don't try to run ./configure right after git pull in case files
10289         that influence the bootstrap process have changed, move the
10290         ./configure step to after running ./bootstrap.
10291         Don't bootstrap "one last time"... it's the first time!
10292
10293 2011-10-22  Bruno Haible  <bruno@clisp.org>
10294
10295         errno, strerror-override: Support for MSVC 10.
10296         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
10297         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
10298         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
10299         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
10300         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
10301         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
10302         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
10303         Assign values compatible with MSVC 10.
10304         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
10305         New macros.
10306         (GNULIB_defined_EWINSOCK): New macro.
10307         * lib/strerror-override.c (strerror_override): Update accordingly.
10308         * lib/strerror-override.h: Likewise.
10309         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
10310         longer equal to the corresponding errno value.
10311         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10312
10313 2011-10-22  Bruno Haible  <bruno@clisp.org>
10314
10315         perror: Recognize when test program crashes.
10316         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
10317         strerror, set gl_cv_func_perror_works to no.
10318         Reported by Daniel Richard G. <skunk@iskunk.org>.
10319
10320         perror: Fix indentation.
10321         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
10322
10323 2011-10-22  Bruno Haible  <bruno@clisp.org>
10324
10325         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
10326         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
10327         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
10328         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
10329         functions, not as a macro.
10330         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
10331         macros.
10332         (isfinite, isinf, isnan, signbit): Check overloaded functions and
10333         absence of macro.
10334         Suggested by Eric Blake.
10335         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10336
10337 2011-10-21  Bruno Haible  <bruno@clisp.org>
10338
10339         relocatable-prog-wrapper: Don't leave object files behind.
10340         * build-aux/install-reloc: Re-synchronize list of .o files to be
10341         removed with list of compilation units.
10342
10343 2011-10-20  Bruno Haible  <bruno@clisp.org>
10344
10345         openpty, posix_openpt: Remove code duplication.
10346         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
10347         * lib/openpty.c: Include <stdlib.h>.
10348         (openpty): Use posix_openpt on all platforms except IRIX.
10349         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
10350
10351 2011-10-20  Bruno Haible  <bruno@clisp.org>
10352
10353         unlockpt: Detect invalid argument.
10354         * lib/unlockpt.c: Include <fcntl.h>.
10355         (unlockpt): Check whether fd is valid, using fcntl().
10356         * modules/unlockpt (Depends-on): Add fcntl-h.
10357
10358 2011-10-20  Bruno Haible  <bruno@clisp.org>
10359
10360         openpty: Avoid compilation error on AIX 6.1.
10361         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
10362
10363 2011-10-20  Bruno Haible  <bruno@clisp.org>
10364
10365         posix_openpt: Support for OpenBSD.
10366         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
10367         (posix_openpt) [OpenBSD]: New code.
10368         * lib/grantpt.c: Include <fcntl.h>.
10369         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
10370         * modules/grantpt (Depends-on): Add fcntl-h.
10371
10372 2011-10-20  Bruno Haible  <bruno@clisp.org>
10373
10374         posix_openpt test: Coding style.
10375         * tests/test-posix_openpt.c: Use GNU coding style.
10376
10377 2011-10-20  Bruno Haible  <bruno@clisp.org>
10378
10379         grantpt: Support --avoid=pt_chown.
10380         * modules/grantpt (Files): Add lib/pty-private.h.
10381
10382 2011-10-20  Bruno Haible  <bruno@clisp.org>
10383
10384         posix_openpt: Fix autoconf macro.
10385         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
10386         unneeded check for _getpty.
10387
10388 2011-10-20  Bruno Haible  <bruno@clisp.org>
10389
10390         openpty: Update comments.
10391         * lib/openpty.c: Add comments about Minix.
10392
10393 2011-10-19  Eric Blake  <eblake@redhat.com>
10394
10395         openpty: relax license
10396         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
10397
10398         pt_chown: use configmake to simplify build
10399         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
10400
10401         ptsname and others: relax license
10402         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
10403         * modules/unlockpt (License): Likewise.
10404         * modules/pt_chown (License): Likewise.
10405         * modules/ptsname (License): Likewise.
10406         * modules/ttyname_r (License): Likewise.
10407
10408 2011-10-19  Jim Meyering  <meyering@redhat.com>
10409
10410         posix_openpt: remove spurious #endif
10411         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
10412
10413 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
10414
10415         maint.mk: Respect $(build_aux) in web-manual rule.
10416         * top/maint.mk (web-manual): Find gen-announce script in user's
10417         $(build_aux) directory instead of hard-coding 'build-aux'.
10418
10419 2011-10-19  Bruno Haible  <bruno@clisp.org>
10420
10421         posix_openpt: Fix compilation error.
10422         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
10423         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
10424         Mention the openpty module as an alternative.
10425
10426 2011-10-19  Bruno Haible  <bruno@clisp.org>
10427
10428         Support for old NeXTstep 3.3 frexp().
10429         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
10430         execution time of the test to 5 seconds.
10431         Reported by Daniel Richard G. <skunk@iskunk.org>.
10432
10433 2011-10-19  Bruno Haible  <bruno@clisp.org>
10434
10435         Support for old NeXTstep 3.3 sed.
10436         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
10437         part, use /.../, not \|...|. Escape periods in the header file name.
10438         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10439         Reported by Daniel Richard G. <skunk@iskunk.org>.
10440
10441 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10442
10443         Support for old NeXTstep 3.3 gcc.
10444         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
10445         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
10446         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
10447         * lib/spawn.in.h (_Restrict_arr_): Likewise.
10448         * lib/regex.h (_Restrict_arr_): Likewise.
10449         * lib/regex_internal.h (re_token_t): Likewise.
10450         * lib/regexec.c (check_node_accept_bytes): Likewise.
10451         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
10452
10453 2011-10-18  Eric Blake  <eblake@redhat.com>
10454
10455         posix_openpt: new module
10456         * modules/posix_openpt: New module.
10457         * m4/posix_openpt.m4: New file.
10458         * lib/posix_openpt.c: Likewise.
10459         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10460         (gl_STDLIB_H_DEFAULTS): Set defaults.
10461         * modules/stdlib (Makefile.am): Substitute macros.
10462         * lib/stdlib.in.h (posix_openpt): Declare.
10463         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
10464         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
10465         * modules/posix_openpt-tests: New test module.
10466         * tests/test-posix_openpt.c: New test.
10467
10468 2011-10-15  Bruno Haible  <bruno@clisp.org>
10469
10470         xstrtoll: Fix compilation failure.
10471         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
10472         from lib/strtol.c.
10473         * doc/posix-headers/limits.texi: Mention missing numerical limits on
10474         some platforms.
10475         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10476
10477 2011-10-15  Bruno Haible  <bruno@clisp.org>
10478
10479         vasnprintf: Optimize bit search operation.
10480         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
10481         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
10482         gl_DOUBLE_EXPONENT_LOCATION.
10483         * modules/vasnprintf (Files): Add m4/exponentd.m4.
10484         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10485         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10486         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10487         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10488         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10489         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10490         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10491         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
10492
10493 2011-10-15  Bruno Haible  <bruno@clisp.org>
10494
10495         vasnprintf: Fix comments.
10496         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
10497
10498 2011-10-14  Bruno Haible  <bruno@clisp.org>
10499
10500         Tests for module 'integer_length_ll'.
10501         * modules/integer_length_ll-tests: New file.
10502         * tests/test-integer_length_ll.c: New file.
10503
10504         New module 'integer_length_ll'.
10505         * lib/integer_length_ll.c: New file.
10506         * modules/integer_length_ll: New file.
10507
10508 2011-10-14  Bruno Haible  <bruno@clisp.org>
10509
10510         Tests for module 'integer_length_l'.
10511         * modules/integer_length_l-tests: New file.
10512         * tests/test-integer_length_l.c: New file.
10513
10514         New module 'integer_length_l'.
10515         * lib/integer_length_l.c: New file.
10516         * modules/integer_length_l: New file.
10517
10518 2011-10-14  Bruno Haible  <bruno@clisp.org>
10519
10520         Tests for module 'integer_length'.
10521         * modules/integer_length-tests: New file.
10522         * tests/test-integer_length.c: New file.
10523
10524         New module 'integer_length'.
10525         * lib/integer_length.h: New file.
10526         * lib/integer_length.c: New file.
10527         * modules/integer_length: New file.
10528
10529 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10530
10531         popen: Fix dependency conditions.
10532         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
10533
10534 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10535
10536         perror: Fix autoconf test.
10537         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
10538         <stdlib.h> and <string.h>.
10539
10540 2011-10-14  Bruno Haible  <bruno@clisp.org>
10541
10542         ffsl: Optimize on 64-bit platforms.
10543         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
10544         unrolling.
10545
10546 2011-10-13  Bruno Haible  <bruno@clisp.org>
10547
10548         ffsl: Optimize on 32-bit platforms.
10549         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
10550         use ffs() without a loop.
10551
10552         ffsl, ffsll: Optimize for GCC.
10553         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
10554         * lib/ffsl.c (GCC_BUILTIN): New macro.
10555         * lib/ffsll.c (GCC_BUILTIN): Likewise.
10556
10557 2011-10-13  Bruno Haible  <bruno@clisp.org>
10558
10559         ffs, bcopy, memset: Support symbol renaming via config.h.
10560         * lib/ffs.c: Include <config.h>.
10561         * lib/bcopy.c: Likewise.
10562         * lib/memset.c: Likewise.
10563
10564 2011-10-10  Bruno Haible  <bruno@clisp.org>
10565
10566         atanl: Simplify for platforms where 'long double' == 'double'.
10567         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10568         alternative implementation.
10569         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10570         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10571         * modules/atanl (Depends-on): Add atan. Update conditions.
10572
10573 2011-10-10  Bruno Haible  <bruno@clisp.org>
10574
10575         acosl: Simplify for platforms where 'long double' == 'double'.
10576         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10577         alternative implementation.
10578         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10579         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10580         * modules/acosl (Depends-on): Add acos. Update conditions.
10581
10582 2011-10-10  Bruno Haible  <bruno@clisp.org>
10583
10584         asinl: Simplify for platforms where 'long double' == 'double'.
10585         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10586         alternative implementation.
10587         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10588         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10589         * modules/asinl (Depends-on): Add asin. Update conditions.
10590
10591 2011-10-10  Bruno Haible  <bruno@clisp.org>
10592
10593         tanl: Simplify for platforms where 'long double' == 'double'.
10594         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10595         implementation.
10596         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10597         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10598         * modules/tanl (Depends-on): Add tan. Update conditions.
10599         (configure.ac): Don't compile trigl.c if
10600         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10601
10602 2011-10-10  Bruno Haible  <bruno@clisp.org>
10603
10604         cosl: Simplify for platforms where 'long double' == 'double'.
10605         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10606         implementation.
10607         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10608         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10609         * modules/cosl (Depends-on): Add cos. Update conditions.
10610         (configure.ac): Don't compile sincosl.c and trigl.c if
10611         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10612
10613 2011-10-10  Bruno Haible  <bruno@clisp.org>
10614
10615         sinl: Simplify for platforms where 'long double' == 'double'.
10616         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10617         implementation.
10618         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10619         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10620         * modules/sinl (Depends-on): Add sin. Update conditions.
10621         (configure.ac): Don't compile sincosl.c and trigl.c if
10622         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10623
10624 2011-10-10  Bruno Haible  <bruno@clisp.org>
10625
10626         logl: Simplify for platforms where 'long double' == 'double'.
10627         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10628         implementation.
10629         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10630         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10631         * modules/logl (Depends-on): Add log. Update conditions.
10632
10633 2011-10-10  Bruno Haible  <bruno@clisp.org>
10634
10635         expl: Simplify for platforms where 'long double' == 'double'.
10636         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10637         implementation.
10638         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10639         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10640         * modules/expl (Depends-on): Add exp. Update conditions.
10641
10642 2011-10-10  Bruno Haible  <bruno@clisp.org>
10643
10644         sqrtl: Simplify for platforms where 'long double' == 'double'.
10645         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10646         alternative implementation.
10647         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10648         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10649         * modules/sqrtl (Depends-on): Update conditions.
10650
10651 2011-10-10  Bruno Haible  <bruno@clisp.org>
10652
10653         ldexpl: Simplify for platforms where 'long double' == 'double'.
10654         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10655         alternative implementation.
10656         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10657         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10658         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
10659
10660 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
10661
10662         ffsll: set correct witness
10663         * modules/ffsll (configure.ac): Fix typo.
10664
10665 2011-10-10  Bruno Haible  <bruno@clisp.org>
10666
10667         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
10668         * lib/printf-frexpl.c: Include <config.h>.
10669         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10670         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
10671         second time.
10672         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
10673         gl_LONG_DOUBLE_VS_DOUBLE.
10674         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
10675         conditions.
10676
10677 2011-10-10  Bruno Haible  <bruno@clisp.org>
10678
10679         frexpl: Simplify for platforms where 'long double' == 'double'.
10680         * lib/frexpl.c: Include <config.h>.
10681         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10682         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10683         time.
10684         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10685         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10686         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
10687         * modules/frexpl (Depends-on): Add frexp. Update conditions.
10688         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
10689         conditions.
10690
10691 2011-10-10  Jim Meyering  <meyering@redhat.com>
10692
10693         test-renameat: don't leave behind a temporary file
10694         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
10695           ERROR: files left in build directory after distclean:
10696           ./gltests/test-renameat.too
10697           make[1]: *** [distcleancheck] Error 1
10698         Reported by Tom G. Christensen.
10699
10700 2011-10-09  Bruno Haible  <bruno@clisp.org>
10701
10702         rint: Determine RINT_LIBM correctly on AIX 7.
10703         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
10704         directly, not only through a function pointer. Also accept an optional
10705         4th argument with extra code.
10706         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
10707         rintf() call by gcc when optimizing.
10708
10709         mathfunc.m4: Refactor.
10710         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
10711         m4 variable.
10712
10713 2011-10-09  Bruno Haible  <bruno@clisp.org>
10714
10715         rintl: Simplify for platforms where 'long double' == 'double'.
10716         * lib/rintl.c: Include <config.h>.
10717         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10718         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10719         time.
10720         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10721         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10722         * modules/rintl (Depends-on): Add rint. Update conditions.
10723
10724 2011-10-09  Bruno Haible  <bruno@clisp.org>
10725
10726         roundl: Simplify for platforms where 'long double' == 'double'.
10727         * lib/roundl.c: Include <config.h>.
10728         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10729         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10730         time.
10731         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10732         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10733         * modules/roundl (Depends-on): Add round. Update conditions.
10734
10735 2011-10-09  Bruno Haible  <bruno@clisp.org>
10736
10737         truncl: Simplify for platforms where 'long double' == 'double'.
10738         * lib/truncl.c: Include <config.h>.
10739         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10740         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10741         time.
10742         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10743         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10744         * modules/truncl (Depends-on): Add trunc. Update conditions.
10745
10746 2011-10-09  Bruno Haible  <bruno@clisp.org>
10747
10748         ceill: Simplify for platforms where 'long double' == 'double'.
10749         * lib/ceill.c: Include <config.h>.
10750         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10751         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10752         time.
10753         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10754         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10755         * modules/ceill (Depends-on): Add ceil. Update conditions.
10756
10757 2011-10-09  Bruno Haible  <bruno@clisp.org>
10758
10759         floorl: Simplify for platforms where 'long double' == 'double'.
10760         * lib/floorl.c: Include <config.h>.
10761         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10762         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10763         time.
10764         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10765         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10766         * modules/floorl (Depends-on): Add floor. Update conditions.
10767
10768 2011-10-09  Bruno Haible  <bruno@clisp.org>
10769
10770         rint: Fix ordering constraints.
10771         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
10772         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
10773         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10774
10775 2011-10-09  Bruno Haible  <bruno@clisp.org>
10776
10777         copysignl: Simplify for platforms where 'long double' == 'double'.
10778         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10779         alternative.
10780         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10781         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10782         * modules/copysignl (Depends-on): Add copysign. Update conditions.
10783
10784 2011-10-09  Bruno Haible  <bruno@clisp.org>
10785
10786         Tests for module 'rintl'.
10787         * modules/rintl-tests: New file.
10788         * tests/test-rintl.c: New file.
10789
10790         New module 'rintl'.
10791         * lib/math.in.h (rintl): New declaration.
10792         * lib/rintl.c: New file.
10793         * m4/rintl.m4: New file.
10794         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
10795         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
10796         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
10797         * modules/rintl: New file.
10798         * tests/test-math-c++.cc: Check the declaration of rintl.
10799         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10800         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
10801         * doc/posix-functions/rintl.texi: Mention the new module.
10802
10803 2011-10-09  Bruno Haible  <bruno@clisp.org>
10804
10805         Tests for module 'rintf'.
10806         * modules/rintf-tests: New file.
10807         * tests/test-rintf.c: New file.
10808
10809         New module 'rintf'.
10810         * lib/math.in.h (rintf): New declaration.
10811         * lib/rintf.c: New file.
10812         * m4/rintf.m4: New file.
10813         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
10814         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
10815         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
10816         * modules/rintf: New file.
10817         * tests/test-math-c++.cc: Check the declaration of rintf.
10818         * doc/posix-functions/rintf.texi: Mention the new module.
10819
10820 2011-10-09  Bruno Haible  <bruno@clisp.org>
10821
10822         rint: Support for MSVC.
10823         * lib/math.in.h (rint): New declaration.
10824         * lib/rint.c: New file.
10825         * m4/rint.m4: New file.
10826         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
10827         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
10828         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
10829         * modules/rint (Description): Fix.
10830         (Files): Add lib/rint.c, m4/rint.m4.
10831         (Depends-on): Add math.
10832         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
10833         gl_MATH_MODULE_INDICATOR.
10834         * tests/test-math-c++.cc: Check the declaration of rint.
10835         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10836         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
10837         * doc/posix-functions/rint.texi: Mention the replacement provided by
10838         the module.
10839
10840         rint tests: More tests.
10841         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
10842         minus-zero.h, infinity.h, nan.h.
10843         (main): Skip the test if the current rounding mode is not standard. Add
10844         tests for negative numbers, minus zero, infinity, NaN.
10845         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
10846         tests/nan.h.
10847         (Depends-on): Add isnand-nolibm.
10848
10849 2011-10-09  Bruno Haible  <bruno@clisp.org>
10850
10851         Tests for module 'copysignl'.
10852         * modules/copysignl-tests: New file.
10853         * tests/test-copysignl.c: New file.
10854
10855         New module 'copysignl'.
10856         * lib/math.in.h (copysignl): New declaration.
10857         * lib/copysignl.c: New file.
10858         * m4/copysignl.m4: New file.
10859         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
10860         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
10861         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
10862         HAVE_COPYSIGNL.
10863         * modules/copysignl: New file.
10864         * tests/test-math-c++.cc: Check the declaration of copysignl.
10865         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10866         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
10867         * doc/posix-functions/copysignl.texi: Mention the new module.
10868
10869 2011-10-09  Bruno Haible  <bruno@clisp.org>
10870
10871         Tests for module 'copysignf'.
10872         * modules/copysignf-tests: New file.
10873         * tests/test-copysignf.c: New file.
10874
10875         New module 'copysignf'.
10876         * lib/math.in.h (copysignf): New declaration.
10877         * lib/copysignf.c: New file.
10878         * m4/copysignf.m4: New file.
10879         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
10880         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
10881         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
10882         HAVE_COPYSIGNF.
10883         * modules/copysignf: New file.
10884         * tests/test-math-c++.cc: Check the declaration of copysignf.
10885         * doc/posix-functions/copysignf.texi: Mention the new module.
10886
10887 2011-10-09  Bruno Haible  <bruno@clisp.org>
10888
10889         Ensure that HAVE_* variables are set to 1 before they are set to 0.
10890         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
10891         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
10892         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10893         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
10894         gl_SIGNAL_H_DEFAULTS.
10895
10896 2011-10-09  Bruno Haible  <bruno@clisp.org>
10897
10898         poll: Make macro safer.
10899         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
10900         ac_cv_header_poll_h is not set.
10901
10902 2011-10-09  Bruno Haible  <bruno@clisp.org>
10903
10904         copysign: Provide replacement.
10905         * lib/math.in.h (copysign): New declaration.
10906         * lib/copysign.c: New file.
10907         * m4/copysign.m4: New file.
10908         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
10909         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
10910         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
10911         HAVE_COPYSIGN.
10912         * modules/copysign (Description): Clarify.
10913         (Files): Add lib/copysign.c, m4/copysign.m4.
10914         (Depends-on): Add math, signbit.
10915         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
10916         gl_MATH_MODULE_INDICATOR.
10917         * tests/test-math-c++.cc: Check the declaration of copysign.
10918         * doc/posix-functions/copysign.texi: Mention the effects of the module
10919         on Minix and MSVC.
10920
10921 2011-10-09  Bruno Haible  <bruno@clisp.org>
10922
10923         isinf: Ensure macro on AIX 5.1.
10924         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
10925         macro.
10926         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
10927
10928 2011-10-09  Bruno Haible  <bruno@clisp.org>
10929
10930         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
10931         * modules/snprintf-posix-tests (configure.ac): Require
10932         gl_LONG_DOUBLE_VS_DOUBLE.
10933         * modules/sprintf-posix-tests (configure.ac): Likewise.
10934         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
10935         * modules/vasprintf-posix-tests (configure.ac): Likewise.
10936         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
10937         * modules/vsprintf-posix-tests (configure.ac): Likewise.
10938         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
10939         tests on platforms where 'long double' is the same as 'double'.
10940         * tests/test-sprintf-posix.h (test_function): Likewise.
10941         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10942         * tests/test-vasprintf-posix.c (test_function): Likewise.
10943
10944         *printf: Fix for platforms where 'long double' == 'double'.
10945         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
10946         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
10947         * modules/dprintf-posix (Files): Add m4/math_h.m4.
10948         * modules/fprintf-posix (Files): Likewise.
10949         * modules/obstack-printf-posix (Files): Likewise.
10950         * modules/snprintf-posix (Files): Likewise.
10951         * modules/sprintf-posix (Files): Likewise.
10952         * modules/vasnprintf (Files): Likewise.
10953         * modules/vasnprintf-posix (Files): Likewise.
10954         * modules/vasprintf-posix (Files): Likewise.
10955         * modules/vdprintf-posix (Files): Likewise.
10956         * modules/vfprintf-posix (Files): Likewise.
10957         * modules/vsnprintf-posix (Files): Likewise.
10958         * modules/vsprintf-posix (Files): Likewise.
10959         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10960         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10961         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10962         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10963         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10964         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10965         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10966
10967         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
10968         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
10969         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10970         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
10971         'long double'.
10972         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
10973
10974         isinf: Fix for platforms where 'long double' == 'double'.
10975         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10976         Don't blindly assume 80-bit 'long double'.
10977
10978         isfinite: Fix for platforms where 'long double' == 'double'.
10979         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10980         Don't blindly assume 80-bit 'long double'.
10981
10982         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
10983         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
10984         * modules/isfinite-tests (configure.ac): Require
10985         gl_LONG_DOUBLE_VS_DOUBLE.
10986         * modules/isinf-tests (configure.ac): Likewise.
10987         * modules/isnan-tests (configure.ac): Likewise.
10988         * modules/isnanl-tests (configure.ac): Likewise.
10989         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
10990         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
10991         tests on platforms where 'long double' is the same as 'double'.
10992         * tests/test-isinf.c (test_isinfl): Likewise.
10993         * tests/test-isnan.c (test_long_double): Likewise.
10994         * tests/test-isnanl.h (main): Likewise.
10995
10996 2011-10-08  Bruno Haible  <bruno@clisp.org>
10997
10998         Tests for module 'tanhf'.
10999         * modules/tanhf-tests: New file.
11000         * tests/test-tanhf.c: New file.
11001
11002         New module 'tanhf'.
11003         * lib/math.in.h (tanhf): New declaration.
11004         * lib/tanhf.c: New file.
11005         * m4/tanhf.m4: New file.
11006         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
11007         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
11008         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
11009         * modules/tanhf: New file.
11010         * tests/test-math-c++.cc: Check the declaration of tanhf.
11011         * doc/posix-functions/tanhf.texi: Mention the new module.
11012
11013         tanh: Use a .m4 file.
11014         * m4/tanh.m4: New file.
11015         * modules/tanh (Files): Add it.
11016         (configure.ac): Just invoke gl_FUNC_TANH.
11017
11018 2011-10-08  Bruno Haible  <bruno@clisp.org>
11019
11020         Tests for module 'coshf'.
11021         * modules/coshf-tests: New file.
11022         * tests/test-coshf.c: New file.
11023
11024         New module 'coshf'.
11025         * lib/math.in.h (coshf): New declaration.
11026         * lib/coshf.c: New file.
11027         * m4/coshf.m4: New file.
11028         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
11029         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
11030         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
11031         * modules/coshf: New file.
11032         * tests/test-math-c++.cc: Check the declaration of coshf.
11033         * doc/posix-functions/coshf.texi: Mention the new module.
11034
11035         cosh: Use a .m4 file.
11036         * m4/cosh.m4: New file.
11037         * modules/cosh (Files): Add it.
11038         (configure.ac): Just invoke gl_FUNC_COSH.
11039
11040 2011-10-08  Bruno Haible  <bruno@clisp.org>
11041
11042         Tests for module 'sinhf'.
11043         * modules/sinhf-tests: New file.
11044         * tests/test-sinhf.c: New file.
11045
11046         New module 'sinhf'.
11047         * lib/math.in.h (sinhf): New declaration.
11048         * lib/sinhf.c: New file.
11049         * m4/sinhf.m4: New file.
11050         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
11051         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
11052         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
11053         * modules/sinhf: New file.
11054         * tests/test-math-c++.cc: Check the declaration of sinhf.
11055         * doc/posix-functions/sinhf.texi: Mention the new module.
11056
11057         sinh: Use a .m4 file.
11058         * m4/sinh.m4: New file.
11059         * modules/sinh (Files): Add it.
11060         (configure.ac): Just invoke gl_FUNC_SINH.
11061
11062 2011-10-08  Bruno Haible  <bruno@clisp.org>
11063
11064         Tests for module 'atan2f'.
11065         * modules/atan2f-tests: New file.
11066         * tests/test-atan2f.c: New file.
11067
11068         New module 'atan2f'.
11069         * lib/math.in.h (atan2f): New declaration.
11070         * lib/atan2f.c: New file.
11071         * m4/atan2f.m4: New file.
11072         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
11073         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
11074         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
11075         * modules/atan2f: New file.
11076         * tests/test-math-c++.cc: Check the declaration of atan2f.
11077         * doc/posix-functions/atan2f.texi: Mention the new module.
11078
11079         atan2: Use a .m4 file.
11080         * m4/atan2.m4: New file.
11081         * modules/atan2 (Files): Add it.
11082         (configure.ac): Just invoke gl_FUNC_ATAN2.
11083
11084 2011-10-08  Bruno Haible  <bruno@clisp.org>
11085
11086         Tests for module 'atanf'.
11087         * modules/atanf-tests: New file.
11088         * tests/test-atanf.c: New file.
11089
11090         New module 'atanf'.
11091         * lib/math.in.h (atanf): New declaration.
11092         * lib/atanf.c: New file.
11093         * m4/atanf.m4: New file.
11094         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
11095         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
11096         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
11097         * modules/atanf: New file.
11098         * tests/test-math-c++.cc: Check the declaration of atanf.
11099         * doc/posix-functions/atanf.texi: Mention the new module.
11100
11101         atan: Use a .m4 file.
11102         * m4/atan.m4: New file.
11103         * modules/atan (Files): Add it.
11104         (configure.ac): Just invoke gl_FUNC_ATAN.
11105
11106 2011-10-08  Bruno Haible  <bruno@clisp.org>
11107
11108         Tests for module 'acosf'.
11109         * modules/acosf-tests: New file.
11110         * tests/test-acosf.c: New file.
11111
11112         New module 'acosf'.
11113         * lib/math.in.h (acosf): New declaration.
11114         * lib/acosf.c: New file.
11115         * m4/acosf.m4: New file.
11116         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
11117         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
11118         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
11119         * modules/acosf: New file.
11120         * tests/test-math-c++.cc: Check the declaration of acosf.
11121         * doc/posix-functions/acosf.texi: Mention the new module.
11122
11123         acos: Use a .m4 file.
11124         * m4/acos.m4: New file.
11125         * modules/acos (Files): Add it.
11126         (configure.ac): Just invoke gl_FUNC_ACOS.
11127
11128 2011-10-08  Bruno Haible  <bruno@clisp.org>
11129
11130         Tests for module 'asinf'.
11131         * modules/asinf-tests: New file.
11132         * tests/test-asinf.c: New file.
11133
11134         New module 'asinf'.
11135         * lib/math.in.h (asinf): New declaration.
11136         * lib/asinf.c: New file.
11137         * m4/asinf.m4: New file.
11138         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
11139         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
11140         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
11141         * modules/asinf: New file.
11142         * tests/test-math-c++.cc: Check the declaration of asinf.
11143         * doc/posix-functions/asinf.texi: Mention the new module.
11144
11145         asin: Use a .m4 file.
11146         * m4/asin.m4: New file.
11147         * modules/asin (Files): Add it.
11148         (configure.ac): Just invoke gl_FUNC_ASIN.
11149
11150 2011-10-08  Bruno Haible  <bruno@clisp.org>
11151
11152         Tests for module 'tanf'.
11153         * modules/tanf-tests: New file.
11154         * tests/test-tanf.c: New file.
11155
11156         New module 'tanf'.
11157         * lib/math.in.h (tanf): New declaration.
11158         * lib/tanf.c: New file.
11159         * m4/tanf.m4: New file.
11160         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
11161         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
11162         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
11163         * modules/tanf: New file.
11164         * tests/test-math-c++.cc: Check the declaration of tanf.
11165         * doc/posix-functions/tanf.texi: Mention the new module.
11166
11167         tan: Use a .m4 file.
11168         * m4/tan.m4: New file.
11169         * modules/tan (Files): Add it.
11170         (configure.ac): Just invoke gl_FUNC_TAN.
11171
11172 2011-10-08  Bruno Haible  <bruno@clisp.org>
11173
11174         Tests for module 'cosf'.
11175         * modules/cosf-tests: New file.
11176         * tests/test-cosf.c: New file.
11177
11178         New module 'cosf'.
11179         * lib/math.in.h (cosf): New declaration.
11180         * lib/cosf.c: New file.
11181         * m4/cosf.m4: New file.
11182         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
11183         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
11184         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
11185         * modules/cosf: New file.
11186         * tests/test-math-c++.cc: Check the declaration of cosf.
11187         * doc/posix-functions/cosf.texi: Mention the new module.
11188
11189         cos: Use a .m4 file.
11190         * m4/cos.m4: New file.
11191         * modules/cos (Files): Add it.
11192         (configure.ac): Just invoke gl_FUNC_COS.
11193
11194 2011-10-08  Bruno Haible  <bruno@clisp.org>
11195
11196         Tests for module 'sinf'.
11197         * modules/sinf-tests: New file.
11198         * tests/test-sinf.c: New file.
11199
11200         New module 'sinf'.
11201         * lib/math.in.h (sinf): New declaration.
11202         * lib/sinf.c: New file.
11203         * m4/sinf.m4: New file.
11204         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
11205         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
11206         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
11207         * modules/sinf: New file.
11208         * tests/test-math-c++.cc: Check the declaration of sinf.
11209         * doc/posix-functions/sinf.texi: Mention the new module.
11210
11211         sin: Use a .m4 file.
11212         * m4/sin.m4: New file.
11213         * modules/sin (Files): Add it.
11214         (configure.ac): Just invoke gl_FUNC_SIN.
11215
11216 2011-10-08  Bruno Haible  <bruno@clisp.org>
11217
11218         Tests for module 'powf'.
11219         * modules/powf-tests: New file.
11220         * tests/test-powf.c: New file.
11221
11222         New module 'powf'.
11223         * lib/math.in.h (powf): New declaration.
11224         * lib/powf.c: New file.
11225         * m4/powf.m4: New file.
11226         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
11227         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
11228         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
11229         * modules/powf: New file.
11230         * tests/test-math-c++.cc: Check the declaration of powf.
11231         * doc/posix-functions/powf.texi: Mention the new module.
11232
11233         pow: Use a .m4 file.
11234         * m4/pow.m4: New file.
11235         * modules/pow (Files): Add it.
11236         (configure.ac): Just invoke gl_FUNC_POW.
11237
11238 2011-10-08  Bruno Haible  <bruno@clisp.org>
11239
11240         Tests for module 'log10f'.
11241         * modules/log10f-tests: New file.
11242         * tests/test-log10f.c: New file.
11243
11244         New module 'log10f'.
11245         * lib/math.in.h (log10f): New declaration.
11246         * lib/log10f.c: New file.
11247         * m4/log10f.m4: New file.
11248         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
11249         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
11250         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
11251         * modules/log10f: New file.
11252         * tests/test-math-c++.cc: Check the declaration of log10f.
11253         * doc/posix-functions/log10f.texi: Mention the new module.
11254
11255         log10: Use a .m4 file.
11256         * m4/log10.m4: New file.
11257         * modules/log10 (Files): Add it.
11258         (configure.ac): Just invoke gl_FUNC_LOG10.
11259
11260 2011-10-08  Bruno Haible  <bruno@clisp.org>
11261
11262         Tests for module 'logf'.
11263         * modules/logf-tests: New file.
11264         * tests/test-logf.c: New file.
11265
11266         New module 'logf'.
11267         * lib/math.in.h (logf): New declaration.
11268         * lib/logf.c: New file.
11269         * m4/logf.m4: New file.
11270         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
11271         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
11272         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
11273         * modules/logf: New file.
11274         * tests/test-math-c++.cc: Check the declaration of logf.
11275         * doc/posix-functions/logf.texi: Mention the new module.
11276
11277         log: Use a .m4 file.
11278         * m4/log.m4: New file.
11279         * modules/log (Files): Add it.
11280         (configure.ac): Just invoke gl_FUNC_LOG.
11281
11282 2011-10-08  Bruno Haible  <bruno@clisp.org>
11283
11284         Tests for module 'expf'.
11285         * modules/expf-tests: New file.
11286         * tests/test-expf.c: New file.
11287
11288         New module 'expf'.
11289         * lib/math.in.h (expf): New declaration.
11290         * lib/expf.c: New file.
11291         * m4/expf.m4: New file.
11292         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
11293         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
11294         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
11295         * modules/expf: New file.
11296         * tests/test-math-c++.cc: Check the declaration of expf.
11297         * doc/posix-functions/expf.texi: Mention the new module.
11298
11299         exp: Use a .m4 file.
11300         * m4/exp.m4: New file.
11301         * modules/exp (Files): Add it.
11302         (configure.ac): Just invoke gl_FUNC_EXP.
11303
11304 2011-10-08  Bruno Haible  <bruno@clisp.org>
11305
11306         Tests for module 'sqrtf'.
11307         * modules/sqrtf-tests: New file.
11308         * tests/test-sqrtf.c: New file.
11309
11310         New module 'sqrtf'.
11311         * lib/math.in.h (sqrtf): New declaration.
11312         * lib/sqrtf.c: New file.
11313         * m4/sqrtf.m4: New file.
11314         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
11315         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
11316         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
11317         * modules/sqrtf: New file.
11318         * tests/test-math-c++.cc: Check the declaration of sqrtf.
11319         * doc/posix-functions/sqrtf.texi: Mention the new module.
11320
11321 2011-10-08  Bruno Haible  <bruno@clisp.org>
11322
11323         Tests: Avoid link failures w.r.t. libintl.
11324         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
11325         $(LIBINTL).
11326         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
11327         $(LIBINTL).
11328         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
11329         against $(LIBINTL).
11330         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
11331         $(LIBINTL).
11332         * modules/openat-tests (Makefile.am): Link test-fchmodat against
11333         $(LIBINTL).
11334         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
11335
11336 2011-10-08  Bruno Haible  <bruno@clisp.org>
11337
11338         pow tests: Defeat compiler optimizations.
11339         * tests/test-pow.c (main): Assign arguments to x and y before use.
11340
11341 2011-10-08  Bruno Haible  <bruno@clisp.org>
11342
11343         gnulib-tool: Improve last commit.
11344         * gnulib-tool (func_modules_transitive_closure): Simplify code.
11345         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
11346         ignore dependencies that are not among the modules list.
11347
11348 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
11349
11350         gnulib-tool: don't follow dependencies to avoided modules
11351         This fixes a bug that is related to the previous one.
11352         * gnulib-tool (func_modules_transitive_closure)
11353         (func_emit_autoconf_snippets):
11354         Check whether a dependency is acceptable before using it.
11355         (--extract-dependencies): Report an error if --avoid is also used,
11356         since this combination of options is not yet supported.
11357
11358         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
11359         Problem reported by Peter Dyballa in
11360         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
11361         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
11362         when echoing "$condition".
11363
11364 2011-10-07  Bruno Haible  <bruno@clisp.org>
11365
11366         Fix documentation about math functions on MacOS X.
11367         * doc/posix-functions/exp2.texi: Don't say the function is missing on
11368         MacOS X 10.5.
11369         * doc/posix-functions/fdim.texi: Likewise.
11370         * doc/posix-functions/feclearexcept.texi: Likewise.
11371         * doc/posix-functions/fegetenv.texi: Likewise.
11372         * doc/posix-functions/fegetround.texi: Likewise.
11373         * doc/posix-functions/feholdexcept.texi: Likewise.
11374         * doc/posix-functions/feraiseexcept.texi: Likewise.
11375         * doc/posix-functions/fesetenv.texi: Likewise.
11376         * doc/posix-functions/fesetround.texi: Likewise.
11377         * doc/posix-functions/fetestexcept.texi: Likewise.
11378         * doc/posix-functions/feupdateenv.texi: Likewise.
11379         * doc/posix-functions/fmax.texi: Likewise.
11380         * doc/posix-functions/fmin.texi: Likewise.
11381         * doc/posix-functions/log2.texi: Likewise.
11382         * doc/posix-functions/modff.texi: Likewise.
11383         * doc/posix-functions/nan.texi: Likewise.
11384         * doc/posix-functions/nanf.texi: Likewise.
11385         * doc/posix-functions/nextafterf.texi: Likewise.
11386         * doc/posix-functions/remquo.texi: Likewise.
11387
11388 2011-10-07  Bruno Haible  <bruno@clisp.org>
11389
11390         modff: Drop assumption about library that defines modff.
11391         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
11392         AC_CHECK_FUNCS.
11393         * modules/modff (Files): Add m4/mathfunc.m4.
11394
11395 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
11396
11397         raise tests: Avoid a GCC warning.
11398         * tests/test-raise.c (handler): Use _Noreturn.
11399
11400 2011-10-07  Bruno Haible  <bruno@clisp.org>
11401
11402         Tests for module 'ldexpf'.
11403         * modules/ldexpf-tests: New file.
11404         * tests/test-ldexpf.c: New file.
11405
11406         New module 'ldexpf'.
11407         * lib/math.in.h (ldexpf): New declaration.
11408         * lib/ldexpf.c: New file.
11409         * m4/ldexpf.m4: New file.
11410         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
11411         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
11412         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
11413         * modules/ldexpf: New file.
11414         * tests/test-math-c++.cc: Check the declaration of ldexpf.
11415         * doc/posix-functions/ldexpf.texi: Mention the new module.
11416
11417 2011-10-06  Bruno Haible  <bruno@clisp.org>
11418
11419         frexpf: Work around problems on IRIX and mingw.
11420         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
11421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
11422         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
11423         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
11424         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
11425         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
11426         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
11427
11428 2011-10-06  Bruno Haible  <bruno@clisp.org>
11429
11430         fabsf: Drop assumption about library that defines fabsf.
11431         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
11432         AC_CHECK_FUNCS.
11433         * modules/fabsf (Files): Add m4/mathfunc.m4.
11434
11435 2011-10-06  Bruno Haible  <bruno@clisp.org>
11436
11437         frexpf: Drop assumption about library that defines frexpf.
11438         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
11439         'int *', 'float *', 'long double *', 'float', 'long double'.
11440         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
11441         AC_CHECK_FUNCS.
11442         * modules/frexpf (Files): Add m4/mathfunc.m4.
11443
11444         Tests for module 'frexpf'.
11445         * modules/frexpf-tests: New file.
11446         * tests/test-frexpf.c: New file.
11447
11448         New module 'frexpf'.
11449         * lib/math.in.h (frexpf): New declaration.
11450         * lib/frexpf.c: New file.
11451         * m4/frexpf.m4: New file.
11452         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
11453         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
11454         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
11455         * modules/frexpf: New file.
11456         * tests/test-math-c++.cc: Check the declaration of frexpf.
11457         * doc/posix-functions/frexpf.texi: Mention the new module.
11458
11459 2011-10-06  Bruno Haible  <bruno@clisp.org>
11460
11461         math: Sort function declarations of math.in.h.
11462         * lib/math.in.h (frexp, logb): Move declarations.
11463
11464 2011-10-05  Bruno Haible  <bruno@clisp.org>
11465
11466         Tests for module 'modff'.
11467         * modules/modff-tests: New file.
11468         * tests/test-modff.c: New file.
11469
11470         New module 'modff'.
11471         * lib/math.in.h (modff): New declaration.
11472         * lib/modff.c: New file.
11473         * m4/modff.m4: New file.
11474         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
11475         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
11476         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
11477         * modules/modff: New file.
11478         * tests/test-math-c++.cc: Check the declaration of modff.
11479         * doc/posix-functions/modff.texi: Mention the new module.
11480
11481         modf tests: Make test sharper.
11482         * tests/test-modf.c (main): Strengthen upper bound.
11483
11484         modf: Use a .m4 file.
11485         * m4/modf.m4: New file.
11486         * modules/modf (Files): Add it.
11487         (configure.ac): Just invoke gl_FUNC_MODF.
11488
11489 2011-10-05  Bruno Haible  <bruno@clisp.org>
11490
11491         Tests for module 'fmodf'.
11492         * modules/fmodf-tests: New file.
11493         * tests/test-fmodf.c: New file.
11494
11495         New module 'fmodf'.
11496         * lib/math.in.h (fmodf): New declaration.
11497         * lib/fmodf.c: New file.
11498         * m4/fmodf.m4: New file.
11499         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
11500         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
11501         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
11502         * modules/fmodf: New file.
11503         * tests/test-math-c++.cc: Check the declaration of fmodf.
11504         * doc/posix-functions/fmodf.texi: Mention the new module.
11505
11506         fmod: Use a .m4 file.
11507         * m4/fmod.m4: New file.
11508         * modules/fmod (Files): Add it.
11509         (configure.ac): Just invoke gl_FUNC_FMOD.
11510
11511 2011-10-05  Bruno Haible  <bruno@clisp.org>
11512
11513         Tests for module 'fabsf'.
11514         * modules/fabsf-tests: New file.
11515         * tests/test-fabsf.c: New file.
11516
11517         New module 'fabsf'.
11518         * lib/math.in.h (fabsf): New declaration.
11519         * lib/fabsf.c: New file.
11520         * m4/fabsf.m4: New file.
11521         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
11522         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
11523         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
11524         * modules/fabsf: New file.
11525         * tests/test-math-c++.cc: Check the declaration of fabsf.
11526         * doc/posix-functions/fabsf.texi: Mention the new module.
11527
11528         fabs: Use a .m4 file.
11529         * m4/fabs.m4: New file.
11530         * modules/fabs (Files): Add it.
11531         (configure.ac): Just invoke gl_FUNC_FABS.
11532
11533 2011-10-05  Jim Meyering  <meyering@redhat.com>
11534
11535         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
11536         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
11537         ls -lL regression introduced in coreutils-8.12, it does so at the
11538         cost of an additional stat call in the common case.  Besides, now
11539         that the kernel change that prompted commit 95f7c57f has been reverted
11540         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
11541         we have no use for commit 95f7c57f, "file-has-acl: use
11542         acl_extended_file_nofollow if available".
11543
11544 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
11545
11546         file-has-acl: revert unintended change in behavior of ls -L
11547         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
11548         derived from...
11549         (file_has_acl): ...code here.  Call it.
11550         This problem was introduced with 2011-07-22 commit 95f7c57f,
11551         "file-has-acl: use acl_extended_file_nofollow if available".
11552         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
11553
11554 2011-10-03  Bruno Haible  <bruno@clisp.org>
11555
11556         poll: Avoid link errors on MSVC.
11557         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
11558         * modules/poll (Depends-on): Add sockets.
11559         (Link): New section.
11560         * NEWS: Mention the change.
11561         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
11562         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
11563         $(LIB_POLL) instead of $(LIBSOCKET).
11564
11565 2011-10-03  Bruno Haible  <bruno@clisp.org>
11566
11567         sys_select tests: Fix link error on MSVC 9.
11568         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
11569         with $(LIB_SELECT) instead of $(LIBSOCKET).
11570
11571 2011-10-03  Bruno Haible  <bruno@clisp.org>
11572
11573         sys_select: Fix compilation error on mingw.
11574         * lib/sys_select.in.h: On native Windows, include <io.h>.
11575
11576 2011-10-03  Bruno Haible  <bruno@clisp.org>
11577
11578         wmemset: Support for MSVC.
11579         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
11580         whether wmemset() exists.
11581
11582 2011-10-03  Bruno Haible  <bruno@clisp.org>
11583
11584         wmemmove: Support for MSVC.
11585         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
11586         whether wmemmove() exists.
11587
11588 2011-10-03  Bruno Haible  <bruno@clisp.org>
11589
11590         wmemcpy: Support for MSVC.
11591         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
11592         whether wmemcpy() exists.
11593
11594 2011-10-03  Bruno Haible  <bruno@clisp.org>
11595
11596         wmemcmp: Support for MSVC.
11597         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
11598         whether wmemcmp() exists.
11599
11600 2011-10-03  Bruno Haible  <bruno@clisp.org>
11601
11602         wmemchr: Support for MSVC.
11603         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
11604         whether wmemchr() exists.
11605
11606 2011-10-03  Bruno Haible  <bruno@clisp.org>
11607
11608         glthread/*, strsignal: Support for MSVC.
11609         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
11610         including <winsock.h> on MSVC 9.
11611         * lib/glthread/lock.h: Likewise.
11612         * lib/glthread/thread.h: Likewise.
11613         * lib/glthread/tls.h: Likewise.
11614         * lib/glthread/yield.h: Likewise.
11615         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
11616         if HAVE_UNISTD_H is false.
11617         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
11618
11619 2011-10-03  Bruno Haible  <bruno@clisp.org>
11620
11621         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
11622         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
11623         Set to 100000.
11624
11625 2011-10-03  Bruno Haible  <bruno@clisp.org>
11626
11627         acl: Fix specification.
11628         * lib/file-has-acl.c (file_has_acl): Fix specification.
11629
11630 2011-10-03  Bruno Haible  <bruno@clisp.org>
11631
11632         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
11633         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
11634         (compute_curr_prefix, shared_library_fullname,
11635         find_shared_library_fullname, get_shared_library_fullname, relocate):
11636         Use it together with PIC && INSTALLDIR.
11637         Reported by <jojelino@gmail.com>
11638         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
11639
11640 2011-10-01  Jim Meyering  <meyering@redhat.com>
11641
11642         maint.mk: adjust a release-related rule not to require use of gzip
11643         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
11644         Instead, check each file in $(DIST_ARCHIVES).  This is better for
11645         projects that build only .tar.xz files.  Also fix an erroneous test.
11646
11647         test-linkat: don't leave behind a temporary file
11648         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
11649         Otherwise, coreutils' "make distcheck" would fail with this:
11650           Only in /c/cu/tests/torture/coreutils/test/\
11651             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
11652           make[2]: *** [my-distcheck] Error 1
11653
11654         float, math: add omitted file
11655         * lib/itold.c: Add file, required for yesterday's float change.
11656
11657 2011-10-01  Bruno Haible  <bruno@clisp.org>
11658
11659         isinf: Fix for OpenBSD/x86.
11660         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
11661         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
11662         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
11663
11664 2011-10-01  Bruno Haible  <bruno@clisp.org>
11665
11666         isfinite: Fix syntax error in configure test.
11667         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
11668
11669         isfinite: Fix typo.
11670         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
11671         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
11672
11673 2011-10-01  Bruno Haible  <bruno@clisp.org>
11674
11675         nonblocking tests: Fix test failure on Linux/IA-64.
11676         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
11677         Set to 270000.
11678
11679 2011-10-01  Bruno Haible  <bruno@clisp.org>
11680
11681         mkfifoat tests: Fix a test failure on mingw.
11682         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
11683         with error ENOSYS.
11684
11685 2011-09-30  Bruno Haible  <bruno@clisp.org>
11686
11687         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
11688         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
11689         'long double'. Set REPLACE_ITOLD.
11690         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
11691         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
11692         * lib/itold.c: New file.
11693         * modules/float (Files): Add lib/itold.c.
11694         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
11695         (Makefile.am): Substitute REPLACE_ITOLD.
11696         * modules/math (Depends-on): Add float.
11697         (Makefile.am): Substitute REPLACE_ITOLD.
11698         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
11699         * doc/posix-headers/math.texi: Likewise.
11700         * doc/posix-functions/logl.texi: Likewise.
11701
11702 2011-09-30  Bruno Haible  <bruno@clisp.org>
11703
11704         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
11705         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
11706         Set to 140000.
11707
11708 2011-09-30  Bruno Haible  <bruno@clisp.org>
11709
11710         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
11711         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
11712         invocation, say "right after AC_PROG_CC_STDC", not "right after
11713         AC_PROG_CC".
11714         Reported by Gary V. Vaughan <gary@gnu.org>.
11715
11716 2011-09-30  Bruno Haible  <bruno@clisp.org>
11717
11718         Centralize C99 requirement.
11719         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
11720         * modules/stdarg (configure.ac-early): Invoke it instead of
11721         AC_PROG_CC_STDC.
11722         Reported by Gary V. Vaughan and Paul Eggert.
11723
11724 2011-09-29  Bruno Haible  <bruno@clisp.org>
11725
11726         float: Fix LDBL_MAX value on Linux/PowerPC.
11727         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
11728         on Linux/PowerPC.
11729         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
11730         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
11731         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
11732         platform.
11733         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
11734
11735 2011-09-29  Bruno Haible  <bruno@clisp.org>
11736
11737         doc: Improve doc about gl_EARLY.
11738         * doc/gnulib-tool.texi (Initial import): Mention where to place an
11739         AC_PROG_CC_STDC invocation.
11740         Reported by Gary V. Vaughan <gary@gnu.org>.
11741
11742 2011-09-28  Bruno Haible  <bruno@clisp.org>
11743
11744         fgetc, fputc, fread, fwrite tests: Fix link error.
11745         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
11746         on non-MSVC platforms.
11747         * tests/test-fputc.c (main): Likewise.
11748         * tests/test-fread.c (main): Likewise.
11749         * tests/test-fwrite.c (main): Likewise.
11750         Reported by Jim Meyering.
11751
11752 2011-09-27  Bruno Haible  <bruno@clisp.org>
11753
11754         fputc, fwrite tests: Avoid test failure on MSVC.
11755         * tests/test-fgetc.c: Include msvc-inval.h.
11756         (main): Invoke gl_msvc_inval_ensure_handler.
11757         * tests/test-fputc.c: Include msvc-inval.h.
11758         (main): Invoke gl_msvc_inval_ensure_handler.
11759         * tests/test-fread.c: Include msvc-inval.h.
11760         (main): Invoke gl_msvc_inval_ensure_handler.
11761         * tests/test-fwrite.c: Include msvc-inval.h.
11762         (main): Invoke gl_msvc_inval_ensure_handler.
11763         * modules/fgetc-tests (Depends-on): Add msvc-inval.
11764         * modules/fputc-tests (Depends-on): Likewise.
11765         * modules/fread-tests (Depends-on): Likewise.
11766         * modules/fwrite-tests (Depends-on): Likewise.
11767
11768 2011-09-27  Bruno Haible  <bruno@clisp.org>
11769
11770         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
11771         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
11772         (raise): Remove older, duplicated declaration.
11773         (_gl_raise_SIGPIPE): New declaration.
11774         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
11775         (rpl_raise): Remove function.
11776         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
11777         a gnulib-defined SIGPIPE here.
11778         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
11779         'sigprocmask' has detected missing signal-blocking and the module
11780         'sigpipe' is enabled.
11781         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11782
11783 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
11784
11785         base64-tests: avoid memory leak
11786         * tests/test-base64.c (main): Plug memory leak.
11787
11788         base32: new module
11789         * modules/base32: New module.
11790         * lib/base32.c: New file.
11791         * lib/base32.h: Likewise.
11792         * m4/base32.m4: Likewise.
11793         * modules/base32-tests: New test.
11794         * tests/test-base32.c: Likewise.
11795         * MODULES.html.sh (Misc): Mention it.
11796
11797 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11798
11799         gnulib: use more-standard license notice wording
11800         * gnulib-tool (func_emit_copyright_notice): When emitting a
11801         license notice into a file, use the standard wording as suggested
11802         by the current information for GNU maintainers, except say "file"
11803         rather than "program".  The new wording gives a license version
11804         number, which addresses an issue raised by Glenn Morris in
11805         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
11806         * m4/onceonly.m4: Use that same wording here, too.
11807
11808         dup2: minor simplification
11809         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
11810         as lib/dup2.c no longer uses 'inline'.
11811
11812 2011-09-25  Bruno Haible  <bruno@clisp.org>
11813
11814         strings: Fix compilation error on MSVC.
11815         * lib/strings.in.h: Include <stddef.h> for size_t.
11816
11817 2011-09-25  Bruno Haible  <bruno@clisp.org>
11818
11819         fflush et al.: Document limitation on MSVC.
11820         * doc/posix-functions/fflush.texi: Document possible crash in handling
11821         mode other than DEFAULT_HANDLING.
11822         * doc/posix-functions/fgetc.texi: Likewise.
11823         * doc/posix-functions/fputc.texi: Likewise.
11824         * doc/posix-functions/fread.texi: Likewise.
11825         * doc/posix-functions/fwrite.texi: Likewise.
11826
11827 2011-09-25  Bruno Haible  <bruno@clisp.org>
11828
11829         msvc-inval: Allow three invalid parameter handling modes.
11830         * lib/msvc-inval.h: Don't include <stdlib.h> here.
11831         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
11832         macros.
11833         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
11834         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
11835         SANE_LIBRARY_HANDLING as a no-op.
11836         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
11837         <stdlib.h>.
11838         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
11839
11840 2011-09-25  Bruno Haible  <bruno@clisp.org>
11841
11842         msvc-inval: Make handler multithread-safe.
11843         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
11844         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
11845         declarations.
11846         (gl_msvc_inval_current): New declaration.
11847         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11848         Operate on the structure returned by gl_msvc_inval_current().
11849         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
11850         Remove varaiables.
11851         (tls_index, tls_initialized): New variables.
11852         (not_per_thread): New variable.
11853         (gl_msvc_inval_current): New function.
11854         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
11855         returned by gl_msvc_inval_current().
11856
11857 2011-09-25  Bruno Haible  <bruno@clisp.org>
11858
11859         msvc-inval: Install handler globally.
11860         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
11861         !_MSC_VER.
11862         (gl_msvc_invalid_parameter_handler): Remove declaration.
11863         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
11864         declarations.
11865         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11866         Install the handler globally, don't uninstall it.
11867         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
11868         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
11869         currently valid, call RaiseException instead.
11870         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
11871         for !_MSC_VER.
11872
11873 2011-09-25  Bruno Haible  <bruno@clisp.org>
11874
11875         strerror_r-posix: Fix for MSVC 9.
11876         * lib/strerror_r.c (local_snprintf): New function.
11877         (snprintf): Define to local_snprintf, not to _snprintf.
11878
11879 2011-09-25  Bruno Haible  <bruno@clisp.org>
11880
11881         ftruncate: Support for MSVC 9.
11882         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
11883         (chsize_nothrow): New function.
11884         (chsize): Redefine as a macro.
11885         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
11886         * modules/ftruncate (Depends-on): Add msvc-inval.
11887
11888 2011-09-25  Bruno Haible  <bruno@clisp.org>
11889
11890         New module 'fstat'.
11891         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
11892         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
11893         * lib/fchdir.c (rpl_fstat): Remove function.
11894         * m4/fstat.m4: New file.
11895         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
11896         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
11897         declared.
11898         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
11899         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
11900         * modules/fstat: New file.
11901         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
11902         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
11903         is set.
11904         * doc/posix-functions/fstat.texi: Mention the new module and the
11905         problem on MSVC.
11906         * NEWS: Mention the change.
11907         * modules/acl (Depends-on): Add fstat.
11908         * modules/chdir-safer (Depends-on): Likewise.
11909         * modules/chown (Depends-on): Likewise.
11910         * modules/copy-file (Depends-on): Likewise.
11911         * modules/fchdir (Depends-on): Likewise.
11912         * modules/fdopendir (Depends-on): Likewise.
11913         * modules/fopen (Depends-on): Likewise.
11914         * modules/fts (Depends-on): Likewise.
11915         * modules/getcwd (Depends-on): Likewise.
11916         * modules/isapipe (Depends-on): Likewise.
11917         * modules/linkat (Depends-on): Likewise.
11918         * modules/lseek (Depends-on): Likewise.
11919         * modules/mkdir-p (Depends-on): Likewise.
11920         * modules/open (Depends-on): Likewise.
11921         * modules/openat (Depends-on): Likewise.
11922         * modules/read-file (Depends-on): Likewise.
11923         * modules/renameat (Depends-on): Likewise.
11924         * modules/utimens (Depends-on): Likewise.
11925
11926 2011-09-25  Bruno Haible  <bruno@clisp.org>
11927
11928         linkat: Fix compilation on MSVC 9.
11929         * lib/linkat.c: Don't include <stdint.h>.
11930
11931 2011-09-25  Bruno Haible  <bruno@clisp.org>
11932
11933         fclose: Support for MSVC 9.
11934         * lib/fclose.c: Include msvc-inval.h.
11935         (fclose_nothrow): New function.
11936         (rpl_fclose): Use it.
11937         * modules/fclose (Depends-on): Add msvc-inval.
11938         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
11939
11940 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11941
11942         dup2: minor simplifications
11943         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
11944         that it's a performance win.
11945         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
11946         ! defined __CYGWIN__)" to "ifdef F_GETFL".
11947
11948 2011-09-24  Jim Meyering  <meyering@redhat.com>
11949
11950         test-futimens: avoid a warning from gcc -Wshadow
11951         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
11952         to avoid a shadowing warning.
11953
11954 2011-09-24  Bruno Haible  <bruno@clisp.org>
11955
11956         fdopen: Support for MSVC 9.
11957         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
11958         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
11959         * lib/fdopen.c: Include msvc-inval.h.
11960         (fdopen_nothrow): New function.
11961         (rpl_fdopen): Use it.
11962         * modules/fdopen (Depends-on): Add msvc-inval.
11963         * modules/fclose-tests (Depends-on): Add fdopen.
11964         * modules/fflush-tests (Depends-on): Likewise.
11965         * modules/fgetc-tests (Depends-on): Likewise.
11966         * modules/fputc-tests (Depends-on): Likewise.
11967         * modules/fread-tests (Depends-on): Likewise.
11968         * modules/freopen-tests (Depends-on): Likewise.
11969         * modules/fseeko-tests (Depends-on): Likewise.
11970         * modules/ftello-tests (Depends-on): Likewise.
11971         * modules/fwrite-tests  (Depends-on): Likewise.
11972         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
11973
11974 2011-09-24  Bruno Haible  <bruno@clisp.org>
11975
11976         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
11977         * modules/fgetc-tests (Depends-on): Add unistd.
11978         * modules/fputc-tests (Depends-on): Likewise.
11979         * modules/fread-tests (Depends-on): Likewise.
11980         * modules/fwrite-tests (Depends-on): Likewise.
11981
11982 2011-09-24  Bruno Haible  <bruno@clisp.org>
11983
11984         dup: Simplify autoconf test.
11985         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
11986         on gl_MSVC_INVAL's result.
11987
11988 2011-09-24  Bruno Haible  <bruno@clisp.org>
11989
11990         Tests for function fwrite().
11991         * modules/fwrite-tests: New file.
11992         * tests/test-fwrite.c: New file.
11993         * modules/stdio-tests (Depends-on): Add fwrite-tests.
11994
11995         Tests for function fread().
11996         * modules/fread-tests: New file.
11997         * tests/test-fread.c: New file.
11998         * modules/stdio-tests (Depends-on): Add fread-tests.
11999
12000         Activate fputc tests.
12001         * modules/stdio-tests (Depends-on): Add fputc-tests.
12002
12003         Enhance fgetc, fputc tests.
12004         * tests/test-fgetc.c (main): Also test the stream's error indicator.
12005         * tests/test-fputc.c (main): Likewise.
12006
12007 2011-09-24  Bruno Haible  <bruno@clisp.org>
12008
12009         write: Support for MSVC 9.
12010         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12011         is not 1.
12012         * lib/write.c (write_nothrow): New function.
12013         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
12014         not 1. Use write_nothrow.
12015         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
12016         invalid parameter handler.
12017         (gl_PREREQ_WRITE): New macro.
12018         * modules/write (Depends-on): Add msvc-inval.
12019         (configure.ac): Invoke gl_PREREQ_WRITE.
12020         * doc/posix-functions/write.texi: Mention the problem on MSVC.
12021
12022 2011-09-24  Bruno Haible  <bruno@clisp.org>
12023
12024         read: Fix last commit.
12025         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
12026
12027 2011-09-24  Bruno Haible  <bruno@clisp.org>
12028
12029         dup2: Fix last commit.
12030         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
12031         (rpl_dup2): Disable fcntl workaround on native Windows.
12032
12033         sigprocmask: Make code safer.
12034         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
12035         section that changes macro definitions for this compilation unit.
12036
12037 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12038
12039         dup2: clarify by coalescing Windows-specific material
12040         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
12041         "msvc-nothrow.h"' to the Windows-specific section, so that the
12042         Emacs source need not contain these include files.
12043         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
12044         Windows-specific fixes into this function rather than just the
12045         nothrow fix, as this shortens and clarifies the code.  Always
12046         define as a function, as that's a bit cleaner than having it be
12047         sometimes a function and sometimes a macro.
12048         (rpl_dup2): Move the Windows-specific stuff out of here and into
12049         ms_windows_dup2.  Don't protect the Haiku-related fix with
12050         "#if !defined __linux__", as the same code also works around
12051         a Linux kernel bug, and it doesn't add any system calls on any
12052         platform.  Add comment about FreeBSD 6.1.
12053
12054         sigprocmask: move #include directive
12055         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
12056         Windows-specific section, so that the Emacs source need not
12057         contain msvc-inval.h.
12058
12059 2011-09-23  Bruno Haible  <bruno@clisp.org>
12060
12061         read: Support for MSVC 9.
12062         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12063         is not 1.
12064         * lib/read.c (read_nothrow): New function.
12065         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
12066         read_nothrow.
12067         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
12068         invalid parameter handler.
12069         (gl_PREREQ_READ): New macro.
12070         * modules/read (Depends-on): Add msvc-inval.
12071         (configure.ac): Invoke gl_PREREQ_READ.
12072         * doc/posix-functions/read.texi: Mention the problem on MSVC.
12073
12074 2011-09-23  Bruno Haible  <bruno@clisp.org>
12075
12076         close: Support for MSVC 9.
12077         * lib/close.c: Include <errno.h>, msvc-inval.h.
12078         (close_nothrow): New function.
12079         (rpl_close): Use it.
12080         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
12081         invalid parameter handler.
12082         * modules/close (Depends-on): Add msvc-inval.
12083         * modules/dup2-tests (Depends-on): Add close.
12084         * modules/dup3-tests (Depends-on): Likewise.
12085         * modules/fcntl-tests (Depends-on): Likewise.
12086         * modules/spawn-pipe-tests (Depends-on): Likewise.
12087         * modules/unistd-safer-tests (Depends-on): Likewise.
12088         * doc/posix-functions/close.texi: Mention the problem on MSVC.
12089
12090 2011-09-23  Bruno Haible  <bruno@clisp.org>
12091
12092         New module 'dup'.
12093         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
12094         Allow replacement.
12095         * lib/dup.c: New file.
12096         * lib/fchdir.c (rpl_dup): Remove function.
12097         * m4/dup.m4: New file.
12098         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
12099         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
12100         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
12101         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
12102         * modules/dup: New file.
12103         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
12104         'dup' module is in use.
12105         * modules/fdopendir (Depends-on): Add dup.
12106         * modules/fdutimensat-tests (Depends-on): Likewise.
12107         * modules/fts (Depends-on): Likewise.
12108         * modules/futimens-tests (Depends-on): Likewise.
12109         * modules/posix_spawnp-tests (Depends-on): Likewise.
12110         * modules/unistd-safer-tests (Depends-on): Likewise.
12111         * modules/utimens-tests (Depends-on): Likewise.
12112         * doc/posix-functions/dup.texi: Mention the new module and the problem
12113         on MSVC.
12114
12115 2011-09-23  Bruno Haible  <bruno@clisp.org>
12116
12117         getdtablesize: Support for MSVC 9.
12118         * lib/getdtablesize.c: Include msvc-inval.h.
12119         (_setmaxstdio_nothrow): New function.
12120         (_setmaxstdio): Redefine it.
12121         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
12122         * modules/getdtablesize (Depends-on): Add msvc-inval.
12123         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
12124
12125 2011-09-23  Bruno Haible  <bruno@clisp.org>
12126
12127         signal-h: Rename from signal.
12128         * modules/signal-h: Renamed from modules/signal.
12129         * modules/pthread_sigmask (Depends-on): Update.
12130         * modules/raise (Depends-on): Likewise.
12131         * modules/sigaction (Depends-on): Likewise.
12132         * modules/sigpipe (Depends-on): Likewise.
12133         * modules/sigprocmask (Depends-on): Likewise.
12134         * modules/sys_select (Depends-on): Likewise.
12135         * modules/signal-h-tests: Renamed from modules/signal-tests.
12136         (Files, Depends-on, Makefile.am): Update.
12137         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
12138         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
12139         (Files, Makefile.am): Update.
12140         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
12141         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
12142         * modules/signal: New placeholder file.
12143         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
12144         * doc/posix-headers/signal.texi: Update.
12145         * NEWS: Mention the change.
12146
12147 2011-09-23  Bruno Haible  <bruno@clisp.org>
12148
12149         sigprocmask: Avoid crashes through signal() on MSVC 9.
12150         * lib/sigprocmask.c: Include msvc-inval.h.
12151         (signal_nothrow): New function.
12152         (signal): Redefine it.
12153         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
12154         * modules/sigprocmask (Depends-on): Add msvc-inval.
12155         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
12156
12157 2011-09-23  Bruno Haible  <bruno@clisp.org>
12158
12159         Tests for module 'raise'.
12160         * modules/raise-tests: New file.
12161         * tests/test-raise.c: New file.
12162
12163         raise: Support for MSVC.
12164         * lib/signal.in.h (raise): New declaration.
12165         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
12166         for native Windows platforms.
12167         * m4/raise.m4: New file.
12168         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
12169         HAVE_RAISE, REPLACE_RAISE.
12170         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
12171         REPLACE_RAISE.
12172         * modules/raise (Status, Notice): Remove fields.
12173         (Files): Add m4/raise.m4.
12174         (Depends-on): Add signal, msvc-inval.
12175         (configure.ac): Use the common idioms.
12176         (Maintainer): Add me.
12177         * tests/test-signal-c++.cc: Check the signature of raise.
12178         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
12179
12180 2011-09-23  Bruno Haible  <bruno@clisp.org>
12181
12182         pipe2: Fix compilation on pre-C99 compilers.
12183         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
12184
12185 2011-09-23  Bruno Haible  <bruno@clisp.org>
12186
12187         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
12188         * lib/msvc-nothrow.h: New file.
12189         * lib/msvc-nothrow.c: New file.
12190         * m4/msvc-nothrow.m4: New file.
12191         * modules/msvc-nothrow: New file.
12192         * lib/dup2.c: Include msvc-nothrow.h.
12193         (rpl_dup2): No need to protect _get_osfhandle call here.
12194         * lib/accept4.c: Include msvc-nothrow.h.
12195         * lib/error.c: Likewise.
12196         * lib/fcntl.c: Likewise.
12197         * lib/lseek.c: Likewise.
12198         * lib/nonblocking.c: Likewise.
12199         * lib/poll.c: Likewise.
12200         * lib/read.c: Likewise.
12201         * lib/select.c: Likewise.
12202         * lib/sockets.h: Likewise.
12203         * lib/sockets.c: Likewise.
12204         * lib/stdio-read.c: Likewise.
12205         * lib/stdio-write.c: Likewise.
12206         * lib/write.c: Likewise.
12207         * lib/w32sock.h: Likewise.
12208         * lib/w32spawn.h: Likewise.
12209         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
12210         * lib/fsync.c: Likewise.
12211         * lib/isapipe.c: Likewise.
12212         * modules/dup2 (Depends-on): Add msvc-nothrow.
12213         * modules/accept4 (Depends-on): Likewise.
12214         * modules/error (Depends-on): Likewise.
12215         * modules/fcntl (Depends-on): Likewise.
12216         * modules/lseek (Depends-on): Likewise.
12217         * modules/nonblocking (Depends-on): Likewise.
12218         * modules/poll (Depends-on): Likewise.
12219         * modules/read (Depends-on): Likewise.
12220         * modules/select (Depends-on): Likewise.
12221         * modules/sockets (Depends-on): Likewise.
12222         * modules/sigpipe (Depends-on): Likewise.
12223         * modules/write (Depends-on): Likewise.
12224         * modules/accept (Depends-on): Likewise.
12225         * modules/bind (Depends-on): Likewise.
12226         * modules/connect (Depends-on): Likewise.
12227         * modules/gethostname (Depends-on): Likewise.
12228         * modules/getpeername (Depends-on): Likewise.
12229         * modules/getsockname (Depends-on): Likewise.
12230         * modules/getsockopt (Depends-on): Likewise.
12231         * modules/ioctl (Depends-on): Likewise.
12232         * modules/listen (Depends-on): Likewise.
12233         * modules/recv (Depends-on): Likewise.
12234         * modules/recvfrom (Depends-on): Likewise.
12235         * modules/send (Depends-on): Likewise.
12236         * modules/sendto (Depends-on): Likewise.
12237         * modules/setsockopt (Depends-on): Likewise.
12238         * modules/shutdown (Depends-on): Likewise.
12239         * modules/socket (Depends-on): Likewise.
12240         * modules/execute (Depends-on): Likewise.
12241         * modules/spawn-pipe (Depends-on): Likewise.
12242         * modules/flock (Depends-on): Likewise.
12243         * modules/fsync (Depends-on): Likewise.
12244         * modules/isapipe (Depends-on): Likewise.
12245         * tests/test-cloexec.c: Include msvc-nothrow.h.
12246         * tests/test-dup-safer.c: Likewise.
12247         * tests/test-dup2.c: Likewise.
12248         * tests/test-dup3.c: Likewise.
12249         * tests/test-fcntl.c: Likewise.
12250         * tests/test-pipe.c: Likewise.
12251         * tests/test-pipe2.c: Likewise.
12252         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
12253         * modules/unistd-safer-tests (Depends-on): Likewise.
12254         * modules/dup2-tests (Depends-on): Likewise.
12255         * modules/dup3-tests (Depends-on): Likewise.
12256         * modules/fcntl-tests (Depends-on): Likewise.
12257         * modules/pipe-posix-tests (Depends-on): Likewise.
12258         * modules/pipe2-tests (Depends-on): Likewise.
12259
12260 2011-09-23  Bruno Haible  <bruno@clisp.org>
12261
12262         dup2: Make code more maintainable.
12263         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
12264         (rpl_dup2): Use it.
12265         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
12266         * modules/dup2 (configure.ac): Invoke it.
12267         Reported by Paul Eggert.
12268
12269 2011-09-23  Bruno Haible  <bruno@clisp.org>
12270
12271         msvc-inval: Fix compilation error.
12272         * lib/msvc-inval.h: Include <excpt.h>.
12273
12274 2011-09-23  Bruno Haible  <bruno@clisp.org>
12275
12276         mkdir: Tweak for MSVC 9.
12277         * lib/sys_stat.in.h: Update comments.
12278         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
12279
12280         Tests for module 'chdir'.
12281         * modules/chdir-tests: New file.
12282         * tests/test-chdir.c: New file.
12283
12284         New module 'chdir'.
12285         * modules/chdir: New file.
12286         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
12287         (chdir): New declaration.
12288         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
12289         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
12290         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
12291         * tests/test-unistd-c++.cc: Check signature of chdir.
12292         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
12293         * modules/chdir-long (Depends-on): Add chdir.
12294         * modules/fchdir (Depends-on): Likewise.
12295         * modules/rename (Depends-on): Likewise.
12296         * modules/savewd (Depends-on): Likewise.
12297
12298         rmdir: Support for mingw, MSVC 9.
12299         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
12300         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
12301
12302         getcwd: Tweak for MSVC 9.
12303         * lib/unistd.in.h: Update comments.
12304         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
12305
12306 2011-09-22  Bruno Haible  <bruno@clisp.org>
12307
12308         strerror_r-posix: Avoid a link error on MSVC.
12309         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
12310         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
12311
12312 2011-09-22  Bruno Haible  <bruno@clisp.org>
12313
12314         select: Avoid link errors on MSVC.
12315         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
12316         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
12317         * modules/pselect (Link): Likewise.
12318         * NEWS: Mention the change.
12319         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
12320         test-select-stdin against $(LIB_SELECT).
12321         * modules/pselect-tests (Makefile.am): Link test-pselect against
12322         $(LIB_SELECT).
12323
12324 2011-09-22  Bruno Haible  <bruno@clisp.org>
12325
12326         select: Avoid compilation error on MSVC.
12327         * lib/select.c: Don't include <stdbool.h>.
12328
12329 2011-09-21  Bruno Haible  <bruno@clisp.org>
12330
12331         Consolidate all uses of PATH_MAX in *.m4 files.
12332         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
12333         macros.
12334         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
12335         and gl_PATHMAX_SNIPPET.
12336         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12337         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12338         * modules/chdir-long (Files): Add m4/pathmax.m4.
12339         * modules/getcwd (Files): Likewise.
12340
12341 2011-09-21  Bruno Haible  <bruno@clisp.org>
12342
12343         ftruncate: Un-deprecate, concentrate on Win32 support.
12344         * modules/ftruncate (Status, Notice): Remove sections.
12345         (Depends-on): Add largefile.
12346         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
12347         non-mingw platforms.
12348         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
12349         include <io.h>.
12350         * modules/perror-tests (Depends-on): Add ftruncate.
12351         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
12352         'ftruncate' module.
12353
12354 2011-09-21  Bruno Haible  <bruno@clisp.org>
12355
12356         Add dependencies to new dirent related modules.
12357         * modules/opendir (Depends-on): Add closedir.
12358         * modules/getcwd (Depends-on): Add opendir, closedir.
12359         * modules/dirent-safer-tests (Depends-on): Likewise.
12360         * modules/fdopendir-tests (Depends-on): Likewise.
12361         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
12362         * modules/renameat-tests (Depends-on): Likewise.
12363
12364 2011-09-21  Bruno Haible  <bruno@clisp.org>
12365
12366         opendir: Avoid compilation error on mingw.
12367         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
12368         * modules/opendir (Depends-on): Add unistd.
12369
12370 2011-09-21  Bruno Haible  <bruno@clisp.org>
12371
12372         ftruncate tests: Avoid a test failure on mingw.
12373         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
12374
12375 2011-09-21  Bruno Haible  <bruno@clisp.org>
12376
12377         select tests: Avoid test failures on OSF/1 5.1 and mingw.
12378         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
12379         native Windows.
12380
12381 2011-09-21  Bruno Haible  <bruno@clisp.org>
12382
12383         New module 'fdopen'.
12384         * lib/stdio.in.h (fdopen): New declaration.
12385         * lib/fdopen.c: New file.
12386         * m4/fdopen.m4: New file.
12387         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
12388         REPLACE_FDOPEN.
12389         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
12390         REPLACE_FDOPEN.
12391         * modules/fdopen: New file.
12392         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
12393         * tests/test-stdio-c++.cc: Check signature of fdopen.
12394         * doc/posix-functions/fdopen.texi: Mention the new module.
12395
12396 2011-09-21  Bruno Haible  <bruno@clisp.org>
12397
12398         unlockpt tests: Avoid test failure on NetBSD 5.1.
12399         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
12400         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
12401
12402 2011-09-21  Bruno Haible  <bruno@clisp.org>
12403
12404         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
12405         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
12406         * tests/test-getlogin_r.c (main): Likewise.
12407
12408 2011-09-20  Bruno Haible  <bruno@clisp.org>
12409
12410         time tests: Don't require pid_t.
12411         * doc/posix-headers/time.texi: Revert last change.
12412         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
12413         * tests/test-time.c: Comment out the check for pid_t.
12414
12415 2011-09-20  Bruno Haible  <bruno@clisp.org>
12416
12417         fsync tests: Avoid a test failure on mingw.
12418         * tests/test-fsync.c (main): Allow a failure with EIO.
12419
12420 2011-09-20  Bruno Haible  <bruno@clisp.org>
12421
12422         euidaccess: Update comments.
12423         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
12424
12425 2011-09-20  Bruno Haible  <bruno@clisp.org>
12426
12427         Ensure EBADF returns for socket functions on mingw.
12428         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
12429         descriptor is invalid.
12430         * lib/bind.c (rpl_bind): Likewise.
12431         * lib/connect.c (rpl_connect): Likewise.
12432         * lib/getpeername.c (rpl_getpeername): Likewise.
12433         * lib/getsockname.c (rpl_getsockname): Likewise.
12434         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12435         * lib/listen.c (rpl_listen): Likewise.
12436         * lib/recv.c (rpl_recv): Likewise.
12437         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12438         * lib/send.c (rpl_send): Likewise.
12439         * lib/sendto.c (rpl_sendto): Likewise.
12440         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12441         * lib/shutdown.c (rpl_shutdown): Likewise.
12442
12443 2011-09-20  Bruno Haible  <bruno@clisp.org>
12444
12445         select tests: EBADF tests.
12446         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
12447         test_bad_fd): New functions.
12448         (test_function): Invoke also test_bad_fd.
12449
12450 2011-09-20  Bruno Haible  <bruno@clisp.org>
12451
12452         Tests for module 'posix_spawn_file_actions_addopen.
12453         * modules/posix_spawn_file_actions_addopen-tests: New file.
12454         * tests/test-posix_spawn_file_actions_addopen.c: New file.
12455
12456         Tests for module 'posix_spawn_file_actions_adddup2'.
12457         * modules/posix_spawn_file_actions_adddup2-tests: New file.
12458         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
12459
12460         Tests for module 'posix_spawn_file_actions_addclose'.
12461         * modules/posix_spawn_file_actions_addclose-tests: New file.
12462         * tests/test-posix_spawn_file_actions_addclose.c: New file.
12463
12464 2011-09-20  Bruno Haible  <bruno@clisp.org>
12465
12466         Tests for module 'unlockpt'.
12467         * modules/unlockpt-tests: New file.
12468         * tests/test-unlockpt.c: New file.
12469         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
12470
12471         Tests for module 'grantpt'.
12472         * modules/grantpt-tests: New file.
12473         * tests/test-grantpt.c: New file.
12474         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
12475
12476 2011-09-20  Bruno Haible  <bruno@clisp.org>
12477
12478         freopen tests: EBADF tests.
12479         * tests/test-freopen.c: Include errno.h, unistd.h.
12480         (main): Add tests for EBADF, commented out for the moment.
12481
12482         fclose tests: EBADF tests.
12483         * tests/test-fclose.c (main): Add tests for EBADF.
12484
12485         fflush tests: EBADF tests.
12486         * tests/test-fflush.c: Include errno.h, macros.h.
12487         (main): Add tests for EBADF.
12488
12489         ftello tests: EBADF tests.
12490         * tests/test-ftello4.sh: New file.
12491         * tests/test-ftello4.c: New file.
12492         * modules/ftello-tests (Files): Add them.
12493         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
12494
12495         fseeko tests: EBADF tests.
12496         * tests/test-fseeko4.sh: New file.
12497         * tests/test-fseeko4.c: New file.
12498         * modules/fseeko-tests (Files): Add them.
12499         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
12500
12501         Tests for function fputc().
12502         * modules/fputc-tests: New file.
12503         * tests/test-fputc.c: New file.
12504         * modules/stdio-tests (Depends-on): Add fputc-tests.
12505
12506         Tests for function fgetc().
12507         * modules/fgetc-tests: New file.
12508         * tests/test-fgetc.c: New file.
12509         * modules/stdio-tests (Depends-on): Add fgetc-tests.
12510
12511         Tests for function fdopen().
12512         * modules/fdopen-tests: New file.
12513         * tests/test-fdopen.c: New file.
12514         * modules/stdio-tests (Depends-on): Add fdopen-tests.
12515
12516         Tests for module 'vdprintf'.
12517         * modules/vdprintf-tests: New file.
12518         * tests/test-vdprintf.c: New file.
12519
12520         Tests for module 'dprintf'.
12521         * modules/dprintf-tests: New file.
12522         * tests/test-dprintf.c: New file.
12523
12524 2011-09-20  Bruno Haible  <bruno@clisp.org>
12525
12526         Tests for module 'ioctl'.
12527         * modules/ioctl-tests: New file.
12528         * tests/test-ioctl.c: New file.
12529
12530 2011-09-20  Bruno Haible  <bruno@clisp.org>
12531
12532         fcntl tests: EBADF tests.
12533         * tests/test-fcntl.c (main): Add more tests for EBADF.
12534
12535 2011-09-20  Bruno Haible  <bruno@clisp.org>
12536
12537         utimensat tests: EBADF tests.
12538         * tests/test-utimensat.c (main): Add tests for EBADF.
12539
12540         renameat tests: EBADF tests.
12541         * tests/test-renameat.c (main): Add tests for EBADF.
12542
12543         mkfifoat tests: EBADF tests.
12544         * tests/test-mkfifoat.c (main): Add tests for EBADF.
12545
12546         readlinkat tests: EBADF tests.
12547         * tests/test-readlinkat.c (main): Add tests for EBADF.
12548
12549         symlinkat tests: EBADF tests.
12550         * tests/test-symlinkat.c (main): Add tests for EBADF.
12551
12552         linkat tests: EBADF tests.
12553         * tests/test-linkat.c (main): Add tests for EBADF.
12554
12555         Tests for module 'faccessat'.
12556         * modules/faccessat-tests: New file.
12557         * tests/test-faccessat.c: New file.
12558
12559         fdopendir tests: EBADF tests.
12560         * tests/test-fdopendir.c (main): Add more tests for EBADF.
12561
12562         openat tests: EBADF tests.
12563         * tests/test-fchownat.c (main): Add tests for EBADF.
12564         * tests/test-fstatat.c (main): Likewise.
12565         * tests/test-mkdirat.c (main): Likewise.
12566         * tests/test-openat.c (main): Likewise.
12567         * tests/test-unlinkat.c (main): Likewise.
12568         * tests/test-fchmodat.c: New file.
12569         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
12570         (Makefile.am): Also run 'test-fchmodat'.
12571
12572 2011-09-20  Bruno Haible  <bruno@clisp.org>
12573
12574         utimens, futimens, fdutimensat tests: EBADF tests.
12575         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
12576
12577         Tests for function fstat().
12578         * modules/fstat-tests: New file.
12579         * tests/test-fstat.c: New file.
12580         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
12581
12582 2011-09-20  Bruno Haible  <bruno@clisp.org>
12583
12584         test-ttyname_r tests: EBADF tests.
12585         * tests/test-ttyname_r.c (main): Add tests for EBADF.
12586
12587         Tests for module 'isatty'.
12588         * modules/isatty-tests: New file.
12589         * tests/test-isatty.c: New file.
12590
12591         Tests for module 'write'.
12592         * modules/write-tests: New file.
12593         * tests/test-write.c: New file.
12594
12595         Tests for module 'read'.
12596         * modules/read-tests: New file.
12597         * tests/test-read.c: New file.
12598
12599         pwrite tests: EBADF tests.
12600         * tests/test-pwrite.c (main): Add tests for EBADF.
12601
12602         pread tests: EBADF tests.
12603         * tests/test-pread.c (main): Add tests for EBADF.
12604
12605         lseek tests: EBADF tests.
12606         * tests/test-lseek.c (main): Add more tests for EBADF.
12607
12608         Tests for module 'ftruncate'.
12609         * modules/ftruncate-tests: New file.
12610         * tests/test-ftruncate.sh: New file.
12611         * tests/test-ftruncate.c: New file.
12612
12613         fsync tests: EBADF tests.
12614         * tests/test-fsync.c (main): Add more tests for EBADF.
12615
12616         fdatasync tests: EBADF tests.
12617         * tests/test-fdatasync.c (main): Add more tests for EBADF.
12618
12619         Tests for module 'fchown'.
12620         * modules/fchown-tests: New file.
12621         * tests/test-fchown.c: New file.
12622
12623         Tests for module 'fchmod'.
12624         * modules/fchmod-tests: New file.
12625         * tests/test-fchmod.c: New file.
12626
12627         fchdir tests: EBADF tests.
12628         * tests/test-fchdir.c (main): Add more tests for EBADF.
12629
12630         dup2 tests: EBADF tests.
12631         * tests/test-dup2.c (main): Add more tests for EBADF.
12632
12633         Tests for module 'dup'.
12634         * modules/dup-tests: New file.
12635         * tests/test-dup.c: New file.
12636
12637         Tests for module 'close'.
12638         * modules/close-tests: New file.
12639         * tests/test-close.c: New file.
12640
12641 2011-09-20  Bruno Haible  <bruno@clisp.org>
12642
12643         Tests for module 'shutdown'.
12644         * modules/shutdown-tests: New file.
12645         * tests/test-shutdown.c: New file.
12646
12647         Tests for module 'setsockopt'.
12648         * modules/setsockopt-tests: New file.
12649         * tests/test-setsockopt.c: New file.
12650
12651         Tests for module 'sendto'.
12652         * modules/sendto-tests: New file.
12653         * tests/test-sendto.c: New file.
12654
12655         Tests for module 'send'.
12656         * modules/send-tests: New file.
12657         * tests/test-send.c: New file.
12658
12659         Tests for module 'recvfrom'.
12660         * modules/recvfrom-tests: New file.
12661         * tests/test-recvfrom.c: New file.
12662
12663         Tests for module 'recv'.
12664         * modules/recv-tests: New file.
12665         * tests/test-recv.c: New file.
12666
12667         Tests for module 'listen'.
12668         * modules/listen-tests: New file.
12669         * tests/test-listen.c: New file.
12670
12671         Tests for module 'getsockopt'.
12672         * modules/getsockopt-tests: New file.
12673         * tests/test-getsockopt.c: New file.
12674
12675         Tests for module 'getsockname'.
12676         * modules/getsockname-tests: New file.
12677         * tests/test-getsockname.c: New file.
12678
12679         Tests for module 'getpeername'.
12680         * modules/getpeername-tests: New file.
12681         * tests/test-getpeername.c: New file.
12682
12683         Tests for module 'connect'.
12684         * modules/connect-tests: New file.
12685         * tests/test-connect.c: New file.
12686
12687         Tests for module 'bind'.
12688         * modules/bind-tests: New file.
12689         * tests/test-bind.c: New file.
12690
12691         accept4 tests: Fix for native Windows.
12692         * tests/test-accept4.c: Include sockets.h.
12693         (main): Invoke gl_sockets_startup.
12694         * modules/accept4-tests (Depends-on): Add sockets.
12695
12696         accept tests: Fix for native Windows.
12697         * tests/test-accept.c: Include sockets.h.
12698         (main): Invoke gl_sockets_startup.
12699         * modules/accept-tests (Depends-on): Add sockets.
12700
12701 2011-09-19  Bruno Haible  <bruno@clisp.org>
12702
12703         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
12704         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
12705         do...while(0).
12706         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
12707         Suggested by Paul Eggert.
12708
12709 2011-09-19  Bruno Haible  <bruno@clisp.org>
12710
12711         sched: Ensure pid_t is defined.
12712         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
12713         not define pid_t.
12714         * lib/sched.in.h: Include <sys/types.h>.
12715         * doc/posix-headers/sched.texi: Mention the pid_t problem.
12716         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12717
12718 2011-09-19  Bruno Haible  <bruno@clisp.org>
12719
12720         msvc-inval: Ensure the entire expansion is a single statement.
12721         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
12722         of braces.
12723
12724 2011-09-19  Jim Meyering  <meyering@redhat.com>
12725
12726         tests: use printf, not echo in init.sh's warn_ function
12727         * tests/init.sh (warn_): Use printf, not echo.  The latter would
12728         misbehave when given strings containing a backslash or starting
12729         with e.g., -n.  James Youngman suggested setting IFS.
12730
12731 2011-09-19  Eric Blake  <eblake@redhat.com>
12732
12733         futimens: enhance test
12734         * tests/test-futimens.h (test_futimens): Also check for EBADF on
12735         closed non-negative fd.
12736
12737         date: accept 'hence' as opposite of 'ago'
12738         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
12739         * tests/test-parse-datetime.c (main): Enhance test.
12740         Suggested by Jesse Wilson.
12741
12742 2011-09-19  Jim Meyering  <meyering@redhat.com>
12743
12744         getcwd: don't fail in a deep directory on a system without openat
12745         Before this change, getcwd would fail when called from a directory
12746         of depth PATH_MAX / 3 or greater.  That was due to the fact that
12747         the non-openat implementation used "..", "../..", "../../..", etc.
12748         to access ancestor directories.  With too many, that string would
12749         be longer than PATH_MAX.
12750         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
12751         using gnulib's openat replacement.
12752         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
12753         we're using the replacement function.
12754
12755 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
12756
12757         maint.mk: avoid warnings from perl about missing files
12758         * top/maint.mk (def_sym_regex): Ignore files listed in
12759         $(gl_other_headers_) that do not exist, say because a project
12760         does not use a corresponding module.
12761
12762 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12763
12764         stat: use pathmax.h only if needed
12765         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
12766         This is better for Emacs, which does not have a mingw port and
12767         therefore can avoid the pathmax module.
12768
12769         utimens: remove dependency on dup2
12770         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
12771         to work around the Linux kernel bug.
12772         * modules/utimens (Depends-on): Remove dup2.
12773
12774 2011-09-18  Bruno Haible  <bruno@clisp.org>
12775
12776         inet_ntop, inet_pton: Look for it also in libresolv.
12777         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
12778         libnsl, search for it in libresolv.
12779         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12780         Needed on Solaris 7.
12781
12782 2011-09-18  Bruno Haible  <bruno@clisp.org>
12783
12784         accept, accept4 tests: Avoid link error on Solaris.
12785         * modules/accept-tests (Makefile.am): Link test-accept against
12786         $(LIBSOCKET).
12787         * modules/accept4-tests (Makefile.am): Link test-accept4 against
12788         $(LIBSOCKET).
12789
12790         accept4: Avoid link error on Solaris.
12791         * modules/accept4 (Link): New section.
12792
12793         socket functions: Avoid link errors on Solaris.
12794         * modules/accept (Depends-on): Add socketlib.
12795         (Link): New section.
12796         * modules/bind (Depends-on): Add socketlib.
12797         (Link): New section.
12798         * modules/connect (Depends-on): Add socketlib.
12799         (Link): New section.
12800         * modules/getpeername (Depends-on): Add socketlib.
12801         (Link): New section.
12802         * modules/getsockname (Depends-on): Add socketlib.
12803         (Link): New section.
12804         * modules/getsockopt (Depends-on): Add socketlib.
12805         (Link): New section.
12806         * modules/listen (Depends-on): Add socketlib.
12807         (Link): New section.
12808         * modules/recv (Depends-on): Add socketlib.
12809         (Link): New section.
12810         * modules/recvfrom (Depends-on): Add socketlib.
12811         (Link): New section.
12812         * modules/send (Depends-on): Add socketlib.
12813         (Link): New section.
12814         * modules/sendto (Depends-on): Add socketlib.
12815         (Link): New section.
12816         * modules/setsockopt (Depends-on): Add socketlib.
12817         (Link): New section.
12818         * modules/shutdown (Depends-on): Add socketlib.
12819         (Link): New section.
12820         * modules/socket (Depends-on): Add socketlib.
12821         (Link): New section.
12822
12823 2011-09-18  Bruno Haible  <bruno@clisp.org>
12824
12825         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
12826         * tests/test-ptsname.c (main): Terminate the test if it takes longer
12827         than 5 seconds.
12828         * modules/ptsname-tests (configure.ac): Test for alarm.
12829
12830 2011-09-18  Bruno Haible  <bruno@clisp.org>
12831
12832         posix_spawn_file_actions_add*: Fix module dependencies.
12833         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
12834         posix_spawn_file_actions_init.
12835         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
12836         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
12837
12838 2011-09-18  Bruno Haible  <bruno@clisp.org>
12839
12840         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
12841         * tests/test-rename.h (test_rename): Allow error code EEXIST.
12842         * tests/test-renameat.c (main): Likewise.
12843
12844 2011-09-18  Bruno Haible  <bruno@clisp.org>
12845
12846         Tests for module 'accept4'.
12847         * modules/accept4-tests: New file.
12848         * tests/test-accept4.c: New file.
12849
12850 2011-09-18  Bruno Haible  <bruno@clisp.org>
12851
12852         Tests for module 'accept'.
12853         * modules/accept-tests: New file.
12854         * tests/test-accept.c: New file.
12855
12856 2011-09-18  Bruno Haible  <bruno@clisp.org>
12857
12858         dup2: Support for MSVC.
12859         * lib/dup2.c: Include msvc-inval.h.
12860         (rpl_dup2): Handle invalid parameter notifications during dup2 and
12861         _get_osfhandle calls.
12862         * modules/dup2 (Depends-on): Add msvc-inval.
12863         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
12864
12865         New module 'msvc-inval'.
12866         * lib/msvc-inval.h: New file.
12867         * lib/msvc-inval.c: New file.
12868         * m4/msvc-inval.m4: New file.
12869         * modules/msvc-inval: New file.
12870
12871 2011-09-17  Bruno Haible  <bruno@clisp.org>
12872
12873         Tests for module 'pclose'.
12874         * modules/pclose-tests: New file.
12875
12876         New module 'pclose'.
12877         * lib/stdio.in.h (pclose): New declaration.
12878         * lib/pclose.c: New file.
12879         * m4/pclose.m4: New file.
12880         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
12881         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
12882         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
12883         * modules/pclose: New file.
12884         * modules/popen-tests (Depends-on): Add pclose.
12885         * modules/popen-safer-tests (Depends-on): Likewise.
12886         * doc/posix-functions/pclose.texi: Mention the new module.
12887
12888 2011-09-17  Bruno Haible  <bruno@clisp.org>
12889
12890         popen: Support for MSVC.
12891         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
12892         * lib/popen.c (popen): Provide alternate definition for native Windows.
12893         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
12894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
12895         * modules/popen (Depends-on, configure.ac): Update condition.
12896         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
12897         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
12898         fixed.
12899
12900 2011-09-17  Bruno Haible  <bruno@clisp.org>
12901
12902         isnanl, isnand, isnanf: Work around MSVC bug.
12903         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
12904
12905 2011-09-17  Bruno Haible  <bruno@clisp.org>
12906
12907         sys_socket tests: Fix recent mistake.
12908         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
12909
12910 2011-09-17  Bruno Haible  <bruno@clisp.org>
12911
12912         putenv: Support for MSVC.
12913         * modules/putenv (Depends-on): Add environ.
12914         * lib/putenv.c (environ): Disable declaration.
12915         * lib/unistd.in.h: Update comment.
12916
12917 2011-09-17  Bruno Haible  <bruno@clisp.org>
12918
12919         math: Avoid macro redefinition warnings on MSVC.
12920         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
12921         Undefine before redefining.
12922
12923 2011-09-17  Bruno Haible  <bruno@clisp.org>
12924
12925         doc: Mention functions which are declared as macros.
12926         * doc/posix-functions/*[fl].texi: Mention that some functions are
12927         defined as macros with arguments only.
12928
12929 2011-09-17  Bruno Haible  <bruno@clisp.org>
12930
12931         Add dependencies to new dirent related modules.
12932         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
12933         * modules/fts (Depends-on): Likewise.
12934         * modules/glob (Depends-on): Likewise.
12935         * modules/savedir (Depends-on): Likewise.
12936         * modules/scandir (Depends-on): Likewise.
12937         * modules/dirent-safer (Depends-on): Add opendir, closedir.
12938         * modules/fdopendir (Depends-on): Add opendir.
12939
12940 2011-09-17  Bruno Haible  <bruno@clisp.org>
12941
12942         inet_pton: Support for MSVC on Windows Vista or newer.
12943         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
12944         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
12945         HAVE_DECL_INET_PTON is defined.
12946         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12947         On platforms with <winsock2.h>, test whether inet_pton is declared in
12948         <ws2tcpip.h>. If so, arrange to replace it.
12949         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12950         REPLACE_INET_PTON.
12951         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
12952         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
12953         (Depends-on, configure.ac): Update condition.
12954         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
12955
12956 2011-09-17  Bruno Haible  <bruno@clisp.org>
12957
12958         inet_ntop: Support for MSVC on Windows Vista or newer.
12959         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
12960         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
12961         HAVE_DECL_INET_NTOP is defined.
12962         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12963         On platforms with <winsock2.h>, test whether inet_ntop is declared in
12964         <ws2tcpip.h>. If so, arrange to replace it.
12965         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12966         REPLACE_INET_NTOP.
12967         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
12968         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
12969         (Depends-on, configure.ac): Update condition.
12970         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
12971
12972 2011-09-16  Eric Blake  <eblake@redhat.com>
12973
12974         test-fsync: yet another enhancement
12975         * tests/test-fsync.c (main): Also test behavior on read-only text
12976         file.
12977
12978 2011-09-16  Bruno Haible  <bruno@clisp.org>
12979
12980         Enhance fsync, fdatasync tests.
12981         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
12982         * tests/test-fdatasync.c (main): Likewise.
12983
12984 2011-09-16  Bruno Haible  <bruno@clisp.org>
12985
12986         Support for MSVC compiler: Ensure mode_t gets defined.
12987         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
12988         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12989         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12990         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
12991         * tests/test-fcntl-h.c: Check that mode_t is defined.
12992         * tests/test-sys_stat.c: Likewise.
12993         * tests/test-sys_types.c: Likewise.
12994         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
12995         * doc/posix-headers/sys_stat.texi: Likewise.
12996         * doc/posix-headers/sys_types.texi: Likewise.
12997
12998 2011-09-16  Bruno Haible  <bruno@clisp.org>
12999
13000         sys_stat: Support for MSVC.
13001         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
13002         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
13003         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
13004         MSVC.
13005
13006 2011-09-16  Bruno Haible  <bruno@clisp.org>
13007
13008         Support for MSVC compiler: Ensure off_t gets defined.
13009         * lib/unistd.in.h: Include <sys/types.h>.
13010         * tests/test-fcntl-h.c: Check that off_t is defined.
13011         * tests/test-sys_stat.c: Likewise.
13012         * tests/test-sys_types.c: Likewise.
13013
13014 2011-09-16  Eric Blake  <eblake@redhat.com>
13015
13016         fdatasync: port to Solaris
13017         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
13018         * modules/fdatasync (Link): Document it.
13019         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
13020
13021         fdatasync: port to MacOS X 10.7
13022         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
13023         declared.
13024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
13025         * modules/unistd (Makefile.am): Substitute it.
13026         * lib/unistd.in.h (fdatasync): Declare on MacOS.
13027         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
13028
13029         fdatasync: minor improvements
13030         * modules/fdatasync (Depends-on): Add condition for fsync.
13031         * lib/fdatasync.c (fdatasync): Add comment.
13032         * tests/test-unistd-c++.cc: Test fdatasync.
13033
13034         unistd: update refs to newer POSIX
13035         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
13036         Suggested by Bruno Haible.
13037
13038         fdatasync: new module
13039         * modules/fsync (Description): Document difference to fdatasync.
13040         * modules/fdatasync: New module.
13041         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
13042         * lib/fdatasync.c (fdatasync): Likewise.
13043         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
13044         defaults.
13045         * modules/unistd (Makefile.am): Set witnesses.
13046         * lib/unistd.in.h (fdatasync): Declare.
13047         * MODULES.html.sh: Document it.
13048         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
13049         * modules/fdatasync-tests: New test.
13050         * tests/test-fdatasync.c: Likewise.
13051
13052 2011-09-16  Eric Blake  <eblake@redhat.com>
13053
13054         test-fsync: enhance tests
13055         * modules/fsync-tests (Depends-on): Add errno, for mingw.
13056         * tests/test-fsync.c (main): Enhance test.
13057
13058 2011-09-15  Bruno Haible  <bruno@clisp.org>
13059
13060         Support for MSVC compiler: Ensure ssize_t gets defined.
13061         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
13062         * doc/posix-headers/stdio.texi: Likewise.
13063         * modules/stdio (Depends-on): Add ssize_t.
13064         * modules/sys_socket (Depends-on): Likewise.
13065         * modules/sys_types (Depends-on): Likewise.
13066         * modules/sys_uio (Depends-on): Likewise.
13067         * modules/unistd (Depends-on): Likewise.
13068         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
13069         * tests/test-sys_types.c: Check that ssize_t is defined.
13070
13071 2011-09-14  Bruno Haible  <bruno@clisp.org>
13072
13073         Avoid using #, the m4 comment starter character, near brackets.
13074         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
13075         delimiter character in sed expressions.
13076         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
13077         Suggested by Eric Blake.
13078
13079         Properly quote AC_CHECK_DECLS' 4th argument.
13080         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
13081         argument.
13082         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13083         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13084         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13085         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13086         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13087         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
13088         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
13089         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
13090         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
13091         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13092         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
13093         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13094         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13095         * m4/isinf.m4 (gl_ISINF): Likewise.
13096         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13097         * m4/readutmp.m4 (gl_READUTMP): Likewise.
13098         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13099         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13100         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13101         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13102         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13103         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13104         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
13105         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13106         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13107         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13108         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
13109         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13110         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13111         Reported by Eric Blake.
13112
13113         Properly quote AC_CHECK_DECL's 4th argument.
13114         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
13115         argument.
13116         * m4/argp.m4 (gl_ARGP): Likewise.
13117         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13118         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13119         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13120         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13121         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
13122         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
13123         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
13124         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13125         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13126         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13127         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13128         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13129         Reported by Eric Blake.
13130
13131 2011-09-14  Eric Blake  <eblake@redhat.com>
13132
13133         opendir: avoid compile warning
13134         * lib/opendir.c (includes): Always include errno.h.
13135         Reported by Tatsuro MATSUOKA.
13136
13137 2011-09-14  Jim Meyering  <meyering@redhat.com>
13138
13139         maint.mk: sc_tight_scope: propagate failure from sub-make
13140         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
13141         Reported by Martin von Gagern.
13142
13143 2011-09-13  Bruno Haible  <bruno@clisp.org>
13144
13145         tempname: Support for MSVC.
13146         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
13147         MSVC.
13148         * modules/tempname (Depends-on): Add fcntl-h.
13149
13150 2011-09-13  Bruno Haible  <bruno@clisp.org>
13151
13152         sys_time: Support for MSVC.
13153         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
13154         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
13155         include <winsock2.h>.
13156         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
13157         function declarations that collide with POSIX.
13158         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
13159         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13160
13161 2011-09-13  Bruno Haible  <bruno@clisp.org>
13162
13163         stat: Support for MSVC.
13164         * lib/stat.c: Include pathmax.h.
13165         * modules/stat (Depends-on): Add pathmax.
13166
13167         pathmax: Support for native Windows.
13168         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
13169
13170 2011-09-12  Bruno Haible  <bruno@clisp.org>
13171
13172         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
13173         * lib/dirent.in.h (struct dirent): New type.
13174         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
13175         DT_WHT): New macros.
13176         (DIR): New type.
13177         (opendir, closedir): Declare only if the module 'opendir' is enabled.
13178         (readdir, rewinddir): New declarations.
13179         * lib/dirent-private.h: New file.
13180         * lib/opendir.c: New file.
13181         * lib/readdir.c: New file.
13182         * lib/rewinddir.c: New file.
13183         * lib/closedir.c: New file.
13184         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
13185         * m4/opendir.m4: New file.
13186         * m4/readdir.m4: New file.
13187         * m4/rewinddir.m4: New file.
13188         * m4/closedir.m4: New file.
13189         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
13190         REPLACE_CLOSEDIR here.
13191         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
13192         readdir, rewinddir are declared.
13193         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
13194         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
13195         HAVE_REWINDDIR, HAVE_CLOSEDIR.
13196         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
13197         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
13198         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
13199         * modules/opendir: New file.
13200         * modules/readdir: New file.
13201         * modules/rewinddir: New file.
13202         * modules/closedir: New file.
13203         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
13204         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
13205         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
13206         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
13207         * NEWS: Mention the 'fchdir' change.
13208
13209 2011-09-11  Bruno Haible  <bruno@clisp.org>
13210
13211         asm-underscore.m4: Support for MSVC.
13212         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
13213         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
13214
13215 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
13216
13217         Doc about crypt functions.
13218         * doc/posix-functions/crypt.texi: Expand range of glibc versions
13219         needing for _GNU_SOURCE to get crypt.
13220         * doc/posix-functions/encrypt.texi: Likewise.
13221         * doc/posix-functions/setkey.texi: Likewise.
13222
13223 2011-09-11  Bruno Haible  <bruno@clisp.org>
13224
13225         doc: Update regarding MSVC 9.
13226         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
13227         tested".
13228         * doc/posix-functions/*.texi: Update with info about MSVC 9.
13229         * doc/posix-headers/*.texi: Likewise.
13230         * doc/pastposix-functions/*.texi: Likewise.
13231         * doc/glibc-functions/*.texi: Likewise.
13232         * doc/glibc-headers/*.texi: Likewise.
13233
13234 2011-09-11  Bruno Haible  <bruno@clisp.org>
13235
13236         unistd et al.: Don't assume <unistd.h> exists.
13237         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
13238         does not exist.
13239         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
13240         exist. But include <stdlib.h>.
13241         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
13242         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
13243         symlink() does not exist.
13244         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
13245         include <io.h> instead.
13246         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
13247         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
13248         include <direct.h> instead.
13249         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13250         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13251         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
13252         <io.h> instead.
13253         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
13254         correctly if the system does not have hard links.
13255         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
13256         <direct.h> instead.
13257         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
13258         it when looking for function declarations.
13259         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
13260         <direct.h> and <io.h> instead.
13261         * doc/posix-headers/unistd.texi: More details about MSVC problem.
13262
13263 2011-09-11  Bruno Haible  <bruno@clisp.org>
13264
13265         strcase: Support for MSVC.
13266         * modules/strcase (Status, Notice): Remove obsoletion mark.
13267         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
13268         * doc/posix-functions/strncasecmp.texi: Likewise.
13269
13270         strings: Don't assume <strings.h> exists.
13271         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
13272         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
13273         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
13274         * doc/posix-headers/strings.texi: Mention the MSVC problem.
13275
13276 2011-09-11  Bruno Haible  <bruno@clisp.org>
13277
13278         dirent: Don't assume <dirent.h> exists.
13279         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
13280         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
13281         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
13282         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
13283
13284 2011-09-11  Bruno Haible  <bruno@clisp.org>
13285
13286         Fix wint_t on MSVC.
13287         * lib/wchar.in.h (wint_t): On MSVC, override it.
13288         * lib/wctype.in.h (wint_t): Likewise.
13289         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
13290         MSVC.
13291         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
13292         * doc/posix-headers/wctype.texi: Likewise.
13293
13294 2011-09-11  Bruno Haible  <bruno@clisp.org>
13295
13296         sys_types: Fix typo.
13297         * lib/sys_types.in.h: Fix typo in comment.
13298         Reported by Paul Eggert.
13299
13300         Support for MSVC compiler: Ensure size_t gets defined.
13301         * modules/strings (Depends-on): Add 'sys_types'.
13302         * modules/sys_uio (Depends-on): Likewise.
13303         * lib/sys_uio.in.h: Update comment.
13304
13305         C++ tests for module 'sys_types'.
13306         * modules/sys_types-c++-tests: New file.
13307         * tests/test-sys_types-c++.cc: New file.
13308
13309         Tests for module 'sys_types'.
13310         * modules/sys_types-tests: New file.
13311         * tests/test-sys_types.c: New file.
13312
13313         New module 'sys_types'.
13314         * lib/sys_types.in.h: New file.
13315         * m4/sys_types_h.m4: New file.
13316         * modules/sys_types: New file.
13317         * doc/posix-headers/sys_types.texi: Mention the new module and the
13318         size_t problem on MSVC 9.
13319
13320 2011-09-11  Bruno Haible  <bruno@clisp.org>
13321
13322         Support for MSVC compiler: Avoid division by a literal 0.
13323         * lib/math.in.h (NAN): Define through a function call also on MSVC.
13324         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
13325         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
13326         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
13327         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
13328         * tests/infinity.h: New file.
13329         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
13330         on MSVC.
13331         * tests/test-ceilf1.c: Include infinity.h.
13332         (main): Use Infinityf.
13333         * tests/test-ceil1.c: Include infinity.h.
13334         (main): Use Infinityd.
13335         * tests/test-ceill.c: Include infinity.h.
13336         (main): Use Infinityl.
13337         * tests/test-dprintf-posix.c: Include infinity.h.
13338         (test_function): Use Infinityd.
13339         * tests/test-floorf1.c: Include infinity.h.
13340         (main): Use Infinityf.
13341         * tests/test-floor1.c: Include infinity.h.
13342         (main): Use Infinityd.
13343         * tests/test-floorl.c: Include infinity.h.
13344         (main): Use Infinityl.
13345         * tests/test-fprintf-posix.c: Include infinity.h.
13346         (test_function): Use Infinityd.
13347         * tests/test-frexp.c: Include infinity.h.
13348         (main): Use Infinityd.
13349         * tests/test-frexpl.c: Include infinity.h.
13350         (main): Use Infinityl.
13351         * tests/test-isfinite.c: Include infinity.h.
13352         (test_isfinitef): Use Infinityf.
13353         (test_isfinited): Use Infinityd.
13354         (test_isfinitel): Use Infinityl.
13355         * tests/test-isinf.c: Include infinity.h.
13356         (test_isinff): Use Infinityf.
13357         (test_isinfd): Use Infinityd.
13358         (test_isinfl): Use Infinityl.
13359         * tests/test-isnan.c: Include infinity.h.
13360         (test_float): Use Infinityf.
13361         (test_double): Use Infinityd.
13362         (test_long_double): Use Infinityl.
13363         * tests/test-isnanf.h: Include infinity.h.
13364         (main): Use Infinityf.
13365         * tests/test-isnand.h: Include infinity.h.
13366         (main): Use Infinityd.
13367         * tests/test-isnanl.h: Include infinity.h.
13368         (main): Use Infinityl.
13369         * tests/test-ldexpl.c: Include infinity.h.
13370         (main): Use Infinityl.
13371         * tests/test-printf-posix.h: Include infinity.h.
13372         (test_function): Use Infinityd.
13373         * tests/test-roundf1.c: Include infinity.h.
13374         (main): Use Infinityf.
13375         * tests/test-round1.c: Include infinity.h.
13376         (main): Use Infinityd.
13377         * tests/test-roundl.c: Include infinity.h.
13378         (main): Use Infinityl.
13379         * tests/test-signbit.c: Include infinity.h.
13380         (test_signbitf): Use Infinityf.
13381         (test_signbitd): Use Infinityd.
13382         (test_signbitl): Use Infinityl.
13383         * tests/test-snprintf-posix.h: Include infinity.h.
13384         (test_function): Use Infinityd, Infinityl.
13385         * tests/test-sprintf-posix.h: Include infinity.h.
13386         (test_function): Use Infinityd, Infinityl.
13387         * tests/test-truncf1.c: Include infinity.h.
13388         (main): Use Infinityf.
13389         * tests/test-trunc1.c: Include infinity.h.
13390         (main): Use Infinityd.
13391         * tests/test-truncl.c: Include infinity.h.
13392         (main): Use Infinityl.
13393         * tests/test-vasnprintf-posix.c: Include infinity.h.
13394         (test_function): Use Infinityd, Infinityl.
13395         * tests/test-vasprintf-posix.c: Include infinity.h.
13396         (test_function): Use Infinityd, Infinityl.
13397         * modules/ceilf-tests (Files): Add tests/infinity.h.
13398         * modules/ceil-tests (Files): Likewise.
13399         * modules/ceill-tests (Files): Likewise.
13400         * modules/dprintf-posix-tests (Files): Likewise.
13401         * modules/floorf-tests (Files): Likewise.
13402         * modules/floor-tests (Files): Likewise.
13403         * modules/floorl-tests (Files): Likewise.
13404         * modules/fprintf-posix-tests (Files): Likewise.
13405         * modules/frexp-tests (Files): Likewise.
13406         * modules/frexp-nolibm-tests (Files): Likewise.
13407         * modules/frexpl-tests (Files): Likewise.
13408         * modules/frexpl-nolibm-tests (Files): Likewise.
13409         * modules/isfinite-tests (Files): Likewise.
13410         * modules/isinf-tests (Files): Likewise.
13411         * modules/isnan-tests (Files): Likewise.
13412         * modules/isnanf-tests (Files): Likewise.
13413         * modules/isnanf-nolibm-tests (Files): Likewise.
13414         * modules/isnand-tests (Files): Likewise.
13415         * modules/isnand-nolibm-tests (Files): Likewise.
13416         * modules/isnanl-tests (Files): Likewise.
13417         * modules/isnanl-nolibm-tests (Files): Likewise.
13418         * modules/ldexpl-tests (Files): Likewise.
13419         * modules/printf-posix-tests (Files): Likewise.
13420         * modules/roundf-tests (Files): Likewise.
13421         * modules/round-tests (Files): Likewise.
13422         * modules/roundl-tests (Files): Likewise.
13423         * modules/signbit-tests (Files): Likewise.
13424         * modules/snprintf-posix-tests (Files): Likewise.
13425         * modules/sprintf-posix-tests (Files): Likewise.
13426         * modules/truncf-tests (Files): Likewise.
13427         * modules/trunc-tests (Files): Likewise.
13428         * modules/truncl-tests (Files): Likewise.
13429         * modules/vasnprintf-posix-tests (Files): Likewise.
13430         * modules/vasprintf-posix-tests (Files): Likewise.
13431         * modules/vdprintf-posix-tests (Files): Likewise.
13432         * modules/vfprintf-posix-tests (Files): Likewise.
13433         * modules/vprintf-posix-tests (Files): Likewise.
13434         * modules/vsnprintf-posix-tests (Files): Likewise.
13435         * modules/vsprintf-posix-tests (Files): Likewise.
13436         * modules/xprintf-posix-tests (Files): Likewise.
13437
13438 2011-09-11  Bruno Haible  <bruno@clisp.org>
13439
13440         Ensure pid_t gets defined.
13441         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
13442         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13443         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13444         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13445         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13446         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13447         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13448         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13449         * tests/test-fcntl-h.c: Check that pid_t is defined.
13450         * tests/test-sched.c: Likewise.
13451         * tests/test-termios.c: Likewise.
13452         * tests/test-time.c: Likewise.
13453         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
13454         * doc/posix-headers/signal.texi: Likewise.
13455         * doc/posix-headers/sys_types.texi: Likewise.
13456         * doc/posix-headers/time.texi: Likewise.
13457
13458 2011-09-11  Bruno Haible  <bruno@clisp.org>
13459
13460         acl: Fix compilation on Solaris 10 (older version).
13461         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
13462         of ACE_EVERYONE.
13463         * lib/set-mode-acl.c (qset_acl): Likewise.
13464         Reported by Christian Jullien <eligis@orange.fr>.
13465
13466 2011-09-10  Bruno Haible  <bruno@clisp.org>
13467
13468         iconv, unsetenv: Add support for MSVC compiler.
13469         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
13470         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
13471
13472 2011-09-10  Bruno Haible  <bruno@clisp.org>
13473
13474         *printf: Add support for MSVC compiler.
13475         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
13476         handles the exception caused by the %n directive. When cross-compiling,
13477         guess no on native Windows.
13478         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13479         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
13480         emulate it through vsnprintf.
13481         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
13482         * doc/posix-functions/dprintf.texi: Update documentation regarding
13483         MSVC 9.
13484         * doc/posix-functions/fprintf.texi: Likewise.
13485         * doc/posix-functions/printf.texi: Likewise.
13486         * doc/posix-functions/snprintf.texi: Likewise.
13487         * doc/posix-functions/sprintf.texi: Likewise.
13488         * doc/posix-functions/swprintf.texi: Likewise.
13489         * doc/posix-functions/vdprintf.texi: Likewise.
13490         * doc/posix-functions/vfprintf.texi: Likewise.
13491         * doc/posix-functions/vprintf.texi: Likewise.
13492         * doc/posix-functions/vsnprintf.texi: Likewise.
13493         * doc/posix-functions/vsprintf.texi: Likewise.
13494         * doc/glibc-functions/asprintf.texi: Likewise.
13495         * doc/glibc-functions/obstack_printf.texi: Likewise.
13496         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13497         * doc/glibc-functions/vasprintf.texi: Likewise.
13498
13499 2011-09-10  Bruno Haible  <bruno@clisp.org>
13500
13501         nocrash: Add support for native Windows.
13502         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
13503
13504 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
13505             Bruno Haible  <bruno@clisp.org>
13506
13507         absolute-header, include-next: Add support for MSVC compiler.
13508         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
13509         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
13510         directory separator in #line directives.
13511         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
13512         recognize also backslash as directory separator in #line directives.
13513
13514 2011-09-08  Jim Meyering  <meyering@redhat.com>
13515
13516         maint.mk: mark the post-release commit log with "maint: " prefix
13517         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
13518         one-line commit-log summary.
13519
13520 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
13521             Bruno Haible  <bruno@clisp.org>
13522
13523         Doc about crypt functions.
13524         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
13525         systems.
13526         * doc/posix-functions/encrypt.texi: Likewise.
13527         * doc/posix-functions/setkey.texi: Likewise.
13528
13529 2011-09-08  Simon Josefsson  <simon@josefsson.org>
13530
13531         * lib/gc.h: Fix copyright header.
13532
13533 2011-09-07  Bruno Haible  <bruno@clisp.org>
13534
13535         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
13536         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
13537         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
13538
13539 2011-09-07  Bruno Haible  <bruno@clisp.org>
13540
13541         openat: Work around compilation error with OSF/1 5.1 DTK cc.
13542         * lib/fopen.c: Use different syntax for include of <stdio.h>.
13543         * lib/freopen.c: Likewise.
13544         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
13545         * lib/lstat.c: Likewise.
13546         * lib/stat.c: Likewise.
13547         * lib/open.c: Use different syntax for include of <fcntl.h>.
13548         * lib/openat.c: Include fcntl.h again, explicitly.
13549
13550 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
13551
13552         parse-datetime: document the newly accepted format
13553         * doc/parse-datetime.texi (Combined date and time of day items):
13554         New section.
13555
13556 2011-09-06  Bruno Haible  <bruno@clisp.org>
13557
13558         acl: Fix a test failure on newer Solaris 10 with ZFS.
13559         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
13560         ENOSYS as no ACL.
13561         Reported by Jim Meyering.
13562
13563 2011-09-06  Bruno Haible  <bruno@clisp.org>
13564
13565         acl: Update for AIX >= 5.3 with NFS.
13566         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
13567         ENOSYS as no ACL.
13568
13569         acl: Fix a test failure on AIX >= 5.3 with NFS.
13570         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
13571         as no ACL.
13572
13573 2011-09-06  Bruno Haible  <bruno@clisp.org>
13574
13575         acl: Fix a test failure on IRIX 6.5 with NFS.
13576         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
13577         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
13578         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
13579         * lib/copy-acl.c (qcopy_acl): Likewise.
13580
13581 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
13582
13583         openat: port to AIX 7.1 with large files
13584         AIX 7.1 does a "#define openat open64at" if large files are in use,
13585         so we can't simply #undef openat.  Use the orig_openat trick (similar
13586         to orig_open in lib/open.c) to work around the problem.  Problem
13587         reported by Kevin Brott for GNU tar, in the thread containing
13588         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
13589         * lib/openat.c (__need_system_fcntl_h): Define first.
13590         Include <fcntl.h> and <sys/types.h> before undefining.
13591         (orig_openat) [HAVE_OPENAT]: New inline function.
13592         (openat) [HAVE_OPENAT]: Do not undef.
13593         (rpl_openat): Use orig_openat, not openat.
13594
13595 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13596             Bruno Haible  <bruno@clisp.org>
13597
13598         acl: Avoid errors on NonStop Kernel.
13599         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
13600         ENOTSUP errors.
13601
13602 2011-09-05  Bruno Haible  <bruno@clisp.org>
13603
13604         acl: Clean up Solaris code.
13605         * lib/acl-internal.h: Remove no-op #if.
13606         * lib/file-has-acl.c: Likewise.
13607         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
13608         * lib/copy-acl.c (qcopy_acl): Likewise.
13609
13610 2011-09-05  Bruno Haible  <bruno@clisp.org>
13611
13612         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
13613         binaries built on the original Solaris 10.
13614         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
13615         trivial.
13616
13617 2011-09-05  Bruno Haible  <bruno@clisp.org>
13618
13619         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13620         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
13621         10.
13622         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
13623         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
13624         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
13625         instead of acl_get, facl_get, acl_set, facl_set.
13626
13627 2011-09-05  Bruno Haible  <bruno@clisp.org>
13628
13629         copy-file: Try unit tests on more file systems.
13630         * tests/test-copy-file-1.sh: New file.
13631         * tests/test-copy-file-2.sh: New file.
13632         * modules/copy-file-tests (Files): Add them.
13633         (Makefile.am): Add them to TESTS.
13634
13635         acl: Try unit tests on more file systems.
13636         * tests/test-file-has-acl-1.sh: New file.
13637         * tests/test-file-has-acl-2.sh: New file.
13638         * tests/test-set-mode-acl-1.sh: New file.
13639         * tests/test-set-mode-acl-2.sh: New file.
13640         * tests/test-copy-acl-1.sh: New file.
13641         * tests/test-copy-acl-2.sh: New file.
13642         * modules/acl-tests (Files): Add them.
13643         (Makefile.am): Add them to TESTS.
13644
13645 2011-09-04  Bruno Haible  <bruno@clisp.org>
13646
13647         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13648         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
13649         10.
13650         (OLD_ALLOW, OLD_DENY): New macros.
13651         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
13652         ACE_ACCESS_ALLOWED_ACE_TYPE.
13653         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
13654         ACE_ACCESS_DENIED_ACE_TYPE.
13655         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
13656         (NEW_ACE_EXECUTE): Fix value.
13657         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
13658         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
13659         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
13660         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
13661         NEW_ACE_SYNCHRONIZE): New macros.
13662         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
13663         instead of acl_fromtext, acl_set, facl_set.
13664         Fixes a coreutils/tests/cp/perm failure.
13665
13666 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
13667
13668         openat: test for fstatat (..., 0) bug
13669         Further testing with tar suggests that fstatat (..., 0)
13670         does not work in general, on AIX 7.1; see
13671         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
13672         So, give up entirely on AIX 7.1's fstatat, and fall back on our
13673         replacement fstatat (which is what older AIX releases were using
13674         anyway).
13675         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
13676         use is now changed to orig_fstatat.  This was probably the right
13677         thing to do anyway.
13678         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
13679         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
13680         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
13681         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
13682         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
13683         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
13684         if the bug is found.
13685
13686         openat: test for fstatat (AT_FDCWD, ..., 0) bug
13687         This tests for another fstatat bug on AIX 7.1:
13688         fstatat (AT_FDCWD, ..., 0) does not work.  See
13689         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
13690         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
13691         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
13692         (rpl_fstatat): Adjust so that it works around either (or both)
13693         bugs if present.
13694         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
13695
13696 2011-09-03  Karl Berry  <karl@gnu.org>
13697
13698         * doc/regex.texi (Character Class Operators): Avoid literal ":"
13699         in index entries.
13700
13701 2011-09-02  Bruno Haible  <bruno@clisp.org>
13702
13703         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
13704         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
13705         values of AR, ARFLAGS, RANLIB.
13706         Reported by John W. Eaton <jwe@gnu.org> for Octave.
13707
13708 2011-09-02  Bruno Haible  <bruno@clisp.org>
13709
13710         Find 'ar' program that fits with --host argument.
13711         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
13712
13713 2011-09-02  Bruno Haible  <bruno@clisp.org>
13714
13715         tests: init.sh: Support any non-GNU diff.
13716         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
13717         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
13718         Solaris 8.
13719
13720 2011-09-02  Bruno Haible  <bruno@clisp.org>
13721
13722         tests: init.sh: work also with any non-GNU diff that supports -u
13723         * tests/init.sh: Relax check for diff -u support.
13724         Rather than checking for GNU diff via --version, simply check
13725         for support for -u itself.  Useful at least on OpenBSD 4.9,
13726         AIX 7.1, IRIX 6.5, and Solaris 10.
13727
13728 2011-09-01  Bruno Haible  <bruno@clisp.org>
13729
13730         strtoimax, strtoumax: Document problem on HP-UX 11.
13731         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
13732         * doc/posix-functions/strtoumax.texi: Likewise.
13733
13734 2011-09-01  Bruno Haible  <bruno@clisp.org>
13735
13736         strtoumax: Avoid link error on OSF/1 with DTK cc.
13737         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
13738         defined as a function.
13739         * modules/strtoumax (Depends-on, configure.ac): Test only whether
13740         strtoumax is defined, not whether it is declared.
13741
13742 2011-09-01  Bruno Haible  <bruno@clisp.org>
13743
13744         strtoimax: Avoid link error on OSF/1 with DTK cc.
13745         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
13746         defined as a function.
13747         * modules/strtoimax (Depends-on, configure.ac): Test only whether
13748         strtoimax is defined, not whether it is declared.
13749
13750 2011-09-01  Bruno Haible  <bruno@clisp.org>
13751
13752         imaxdiv: Avoid link error on OSF/1 with DTK cc.
13753         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
13754         as a function.
13755         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
13756         whether it is declared.
13757
13758 2011-09-01  Bruno Haible  <bruno@clisp.org>
13759
13760         imaxabs: Avoid link error on OSF/1 with DTK cc.
13761         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
13762         as a function.
13763         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
13764         whether it is declared.
13765
13766 2011-09-01  Bruno Haible  <bruno@clisp.org>
13767
13768         Tests for module 'strtoumax'.
13769         * modules/strtoumax-tests: New file.
13770         * tests/test-strtoumax.c: New file.
13771
13772         Tests for module 'strtoimax'.
13773         * modules/strtoimax-tests: New file.
13774         * tests/test-strtoimax.c: New file.
13775
13776         Tests for module 'imaxdiv'.
13777         * modules/imaxdiv-tests: New file.
13778         * tests/test-imaxdiv.c: New file.
13779
13780         Tests for module 'imaxabs'.
13781         * modules/imaxabs-tests: New file.
13782         * tests/test-imaxabs.c: New file.
13783
13784 2011-09-01  Bruno Haible  <bruno@clisp.org>
13785
13786         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
13787         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
13788         pthread_create.
13789
13790 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13791
13792         openat: work around AIX 7.1 fstatat issue
13793         This should fix the problem that was not properly fixed
13794         in the previous change, dated 2011-08-30.
13795         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
13796         __need_system_stat_h defined.
13797         (orig_fstatat) [HAVE_FSTATAT]: New function.
13798         (rpl_fstatat): Go back to the old way of doing things,
13799         except call orig_fstatat instead of fstatat.
13800         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
13801         Remove unnecessary check whether fstatat fills in st_size etc.
13802
13803 2011-09-01  Bruno Haible  <bruno@clisp.org>
13804
13805         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
13806         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
13807         just include the system's header.
13808
13809 2011-08-31  Jim Meyering  <meyering@redhat.com>
13810
13811         tests: avoid spurious assertion failure in test-float.c on ppc64
13812         * tests/test-float.c (test_long_double): Comment out an assertion,
13813         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
13814         with gcc-4.4.4.
13815
13816         maint: indent with spaces, not TABs
13817         I need to get in the habit of running gnulib's "make check".
13818         Both of these would have been caught.
13819         * m4/largefile.m4: Indent with spaces, not TABs.
13820         * lib/parse-datetime.y (iso_8601_time): Likewise.
13821         Spotted by Pádraig Brady.
13822
13823         test-parse-datetime.c: accommodate a relatively strict gcc warning
13824         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
13825         to avoid a warning from gcc's -Werror=missing-declarations.
13826         Insert a few spaces-before-funcall-parenthesis.
13827
13828 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
13829
13830         parse-datetime: accept ISO 8601 date and time rep with "T" separator
13831         The parser now accepts ISO 8601 date-time strings with "T" as the
13832         separator.  It has long parsed dates like "2004-02-29 16:21:42"
13833         with a space between the date and time strings.  Now it also parses
13834         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
13835         variants like "2004-02-29T16:21:42.333-07:00"
13836         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
13837         of day representation using the 'T' separator character.
13838         * doc/parse-datetime.texi (General date syntax): replace use of
13839         deprecated --iso-8601 option with --rfc-3339 in example of date
13840         command output formats that can be parsed.
13841         * tests/test-parse-datetime.c (tm_diff): New function, taken from
13842         lib/parse-datetime.y.
13843         (gmt_offset): New function.
13844         (main): Add additional test cases to validate ISO8601 extended
13845         date and time of day parsing.
13846
13847 2011-08-31  Bruno Haible  <bruno@clisp.org>
13848
13849         freopen: Documentation.
13850         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
13851         name.
13852         Reported by Claudio Bley <claudio.bley@gmail.com>.
13853
13854 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
13855
13856         freopen: Don't crash if the filename argument is NULL.
13857         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
13858         NULL.
13859
13860 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13861
13862         openat: work around AIX 7.1 fstatat bug
13863         Problem reported by Kevin Brott for GNU tar, in the thread containing
13864         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
13865         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
13866         FSTATAT_ST_SIZE_ETC_BROKEN.
13867         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
13868         rpl_fstatat.
13869         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
13870         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
13871         AC_CHECK_FUNCS_ONCE for fstatat.
13872         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
13873         fchmodat, mkdirat, openat and unlinkat.
13874
13875 2011-08-30  Bruno Haible  <bruno@clisp.org>
13876
13877         Avoid endless recursions if config.h includes some header files.
13878         * lib/fopen.c (__need_FILE): Define already before including config.h.
13879         * lib/freopen.c (__need_FILE): Likewise.
13880         * lib/open.c (__need_system_fcntl_h): Likewise.
13881         * lib/stat.c (__need_system_sys_stat_h): Likewise.
13882         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
13883         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
13884
13885 2011-08-25  Karl Berry  <karl@gnu.org>
13886
13887         * config/srclist.txt (ylwrap): new try.
13888         * build-aux/ylwrap: new file.
13889
13890 2011-08-23  Bruno Haible  <bruno@clisp.org>
13891
13892         tmpdir: Use a good default directory on native Windows.
13893         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
13894         (P_tmpdir): Default to _P_tmpdir on native Windows.
13895         (path_search): On native Windows, try the value returned by GetTempPath
13896         before trying P_tmpdir.
13897         * modules/tmpdir (Depends-on): Add pathmax.
13898         Suggested by John Darrington <john@darrington.wattle.id.au>.
13899
13900 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
13901
13902         doc: fix typo in README-release
13903         * top/README-release: Capitalize first word of a sentence.
13904
13905 2011-08-19  Jim Meyering  <meyering@redhat.com>
13906
13907         fts: do not exhaust memory when processing million-entry directories
13908         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
13909         directory would require about 256*N bytes of memory.  Thus, it was
13910         easy to construct a directory too large to be processed by any of
13911         those tools.  With this change, fts' maximum memory utilization is
13912         now limited to around 30MB.
13913         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
13914         (fts_read): When we've processed the final entry (i.e., when
13915         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
13916         using the parent entry to read any remaining entries.  Dispatch
13917         depending on what fts_build returns:
13918         - NULL+stop, aka failure: stop
13919         - NULL otherwise: move up in the dir hierarchy
13920         - non-NULL: handle this new entry
13921         (fts_build): Declare and use new local, continue_readdir.
13922         Prepare to be called from fts_read, when the entries
13923         from a partially-read directory have just been exhausted.
13924         In that case, we'll skip the opendir and instead use the parent's
13925         fts_dirp and derive dir_fd from that.
13926         Finally, in the readdir loop, if we read max_entries entries,
13927         exit the loop ensuring *not* to call closedir.  This is required
13928         so that fts_dirp can be reused on a subsequent call.
13929         Prompted by Ben England's report of memory exhaustion in find
13930         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
13931
13932         maint: fts: move decl of `dp' down into while loop; split a long line
13933         * lib/fts.c (fts_build): No semantic change.
13934
13935         fts: add/use new struct member, fts_dirp
13936         We are about to use this to manage any directory with
13937         too many entries to read all of them into memory at once.
13938         To do that, we'll need to save the DIR* pointer in each
13939         affected FTSENT struct.
13940         * lib/fts_.h: Include <dirent.h>.
13941         (struct FTSENT) [fts_dirp]: New member.
13942         * lib/fts.c (closedir_and_clear): Define.
13943         Use it in place of closedir so that we are sure to
13944         clear the new fts_dirp member when done with it.
13945         (fts_alloc): Initialize the new member.
13946         (fts_lfree): Free, if needed.
13947
13948         maint: fts: give __opendir2 a new parameter and rename
13949         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
13950         than surreptitiously using sole caller's "dir_fd".
13951         (fts_opendir): Rename from __opendir2.
13952
13953         maint: fts.c: remove __opendir2's now-unused parameter, oflag
13954         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
13955
13956         maint: fts.c: correct off-by-one indentation
13957         * lib/fts.c (fts_build): Correct indentation, change style
13958         of a couple of block comments, and bracing style.
13959
13960         maint: fts.c: move __opendir2 #define "up" out of function body
13961         * lib/fts.c (__opendir2): Move "up".  No semantic change.
13962
13963         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
13964         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
13965         out for a long time and besides was useful only on BSD systems.
13966
13967 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13968
13969         regex: port to Stratus OpenVOS
13970         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
13971         define to empty, rather than attempting nonportable optimizations.
13972         Problem reported by Paul Green in:
13973         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
13974         and fix suggested by Eric Blake in:
13975         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
13976
13977 2011-08-17  Eric Blake  <eblake@redhat.com>
13978
13979         getcwd: fix test failures on mingw
13980         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
13981         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
13982         test if long directory cannot be created, and allow mingw errno.
13983
13984         getcwd-lgpl: fix m4 to match relaxed test for BSD
13985         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
13986         (gl_FUNC_GETCWD_SIGNATURE): New macro.
13987         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
13988         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
13989         signature problem.
13990
13991         getcwd: fix compilation on mingw64
13992         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
13993         getcwd.
13994         Reported by Marc-André Lureau.
13995
13996         pipe2: silence compiler warning
13997         * lib/pipe2.c (pipe2): Hide label if it is not used.
13998
13999 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
14000
14001         relocatable-prog: fix link error
14002         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
14003         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
14004         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
14005         into modules/relocatable-lib without noticing that
14006         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
14007         also needs to build relocatable.c.
14008
14009 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14010
14011         getaddrinfo: fix sh typo in gai_strerrorA decl checking
14012         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
14013         shell code: it contained a 'break' that was not in a loop.
14014         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
14015         via a shell-language loop; this may have been true in old Autoconf
14016         versions, but it's not true in Autoconf 2.68.  I found this bug
14017         when testing coreutils git on Solaris 8, whose shell complains
14018         about the syntax error.
14019
14020 2011-08-12  Simon Josefsson  <simon@josefsson.org>
14021
14022         * lib/base64.c: Fix comment to reference RFC 4648.
14023         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
14024         <gvtulder@gmail.com>.
14025
14026 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14027
14028         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
14029
14030         po/Makefile.in.in: fix make -q problem
14031         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
14032         rule, since there's no file named 'check-macro-version' and its
14033         use as a file breaks make -q.
14034         (all): Don't depend on check-macro-version.
14035         (CHECK_MACRO_VERSION): New macro.
14036         (stamp-po): Use it.
14037
14038         configmake: fix make -q problem
14039         * modules/configmake (configmake.h): Update configmake.h's time stamp
14040         even if the file does not change.  Otherwise, 'make -q' fails.
14041         Problem reported by Simon Josefsson in
14042         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
14043
14044 2011-08-11  Jim Meyering  <meyering@redhat.com>
14045
14046         git-version-gen: correct the advice in a comment
14047         * build-aux/git-version-gen: Correct comment.
14048         Don't recommend to list .tarball-version in .gitignore.
14049
14050 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14051
14052         base64: fix off-by-one buffer size bug
14053         Problem and (trivial) fix reported by Gijs van Tulder in
14054         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
14055         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
14056         * tests/test-base64.c (main): Catch the bug.
14057
14058 2011-08-10  Eric Blake  <eblake@redhat.com>
14059
14060         closein: correct comments
14061         * lib/closein.c (close_stdin): Improve comments.
14062
14063 2011-08-09  Bruno Haible  <bruno@clisp.org>
14064
14065         More tests for 'fseeko'.
14066         * tests/test-fseeko3.c: New file, from Eric Blake.
14067         * tests/test-fseeko3.sh: New file.
14068         * modules/fseeko-tests (Files): Add them.
14069         (TESTS): Add test-fseeko3.sh.
14070         (check_PROGRAMS): Add test-fseeko3.
14071
14072 2011-08-09  Eric Blake  <eblake@redhat.com>
14073
14074         fseeko: remove unneeded hack
14075         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
14076
14077         fseeko: fix bug on glibc
14078         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
14079         Reported by John W. Eaton.
14080
14081 2011-08-08  Bruno Haible  <bruno@clisp.org>
14082
14083         unictype/base: Fix interoperability with preinstalled libunistring.
14084         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
14085         Reported by Simon Josefsson.
14086
14087 2011-08-08  Bruno Haible  <bruno@clisp.org>
14088
14089         iswblank: Detect declaration correctly.
14090         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
14091         AC_CHECK_DECLS invocation.
14092
14093 2011-08-08  Bruno Haible  <bruno@clisp.org>
14094
14095         tcgetsid: Detect declaration correctly.
14096         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
14097         AC_CHECK_DECLS invocation.
14098         Reported by Simon Josefsson.
14099
14100 2011-08-08  Eric Blake  <eblake@redhat.com>
14101
14102         largefile: fix typo that regressed large file support
14103         * modules/largefile (configure.ac-early): Fix section name.
14104
14105 2011-08-06  Karl Berry  <karl@gnu.org>
14106
14107         * MODULES.html.sh (func_all_files): _Noreturn is no longer
14108         a separate module.
14109
14110 2011-08-05  Simon Josefsson  <simon@josefsson.org>
14111
14112         openat: Fix warnings and commens when building unlinkat.c on Hurd.
14113         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
14114         get prototype for free.
14115
14116 2011-08-04  Bruno Haible  <bruno@clisp.org>
14117
14118         Tests for module 'pathmax'.
14119         * modules/pathmax-tests: New file.
14120         * tests/test-pathmax.c: New file.
14121
14122         canonicalize-lgpl: Support larger filenames on the Hurd.
14123         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
14124         Reported by Paul Eggert.
14125
14126         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
14127         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
14128         * lib/chdir-long.h: Include pathmax.h.
14129         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
14130         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
14131         (PATH_MAX): Remove code that is done by pathmax.h.
14132         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
14133         * lib/tmpfile.c: Add a comment.
14134         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
14135         * modules/chdir-long (Depends-on): Add pathmax.
14136         * modules/getcwd (Depends-on): Add pathmax.
14137         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
14138         is not defined.
14139         * doc/posix-headers/limits.texi: Mention the pathmax module.
14140         * NEWS: Mention the change.
14141
14142 2011-08-02  Bruno Haible  <bruno@clisp.org>
14143
14144         pthread_sigmask: Actually use results of gl_THREADLIB.
14145         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
14146         gl_THREADLIB, not gl_[]THREADLIB.
14147         Reported by Eric Blake.
14148
14149 2011-08-02  Jim Meyering  <meyering@redhat.com>
14150
14151         maint.mk: relax the default _gl_TS_function_match regexp
14152         * top/maint.mk (_gl_TS_function_match): Don't require at least one
14153         space between function name and "(" in an "extern" declaration.
14154         That would fail to match a decl with no space there: extern void foo();
14155
14156 2011-07-31  Iain Nicol  <iain@thenicols.net>
14157
14158         git-version-gen: document that EXTRA_DIST must include .version
14159         * build-aux/git-version-gen: In the how-to-use comment, document
14160         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
14161         will fail when run from an unpacked distribution tarball.
14162
14163 2011-08-01  Bruno Haible  <bruno@clisp.org>
14164
14165         wctype-h: Fix last change.
14166         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
14167         REPLACE_TOWLOWER to 0.
14168         Reported by Sam Steingold <sds@gnu.org>.
14169
14170 2011-07-31  Bruno Haible  <bruno@clisp.org>
14171
14172         frexpl: Update autoconf test.
14173         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
14174         according to changes of 2011-06-20.
14175
14176 2011-07-31  Bruno Haible  <bruno@clisp.org>
14177
14178         sys_utsname: Add support for Minix.
14179         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
14180         <sys/utsname.h>.
14181         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14182         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
14183
14184 2011-07-31  Bruno Haible  <bruno@clisp.org>
14185
14186         strings: Add support for Minix.
14187         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
14188         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
14189         * doc/posix-headers/strings.texi: Document the Minix problem.
14190
14191 2011-07-31  Bruno Haible  <bruno@clisp.org>
14192
14193         wctype-h: Add support for Minix.
14194         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
14195         REPLACE_TOWLOWER.
14196         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
14197         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
14198         REPLACE_ISWCNTRL.
14199
14200 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
14201
14202         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
14203         This is a performance improvement for 64-bit hosts: it causes the
14204         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
14205
14206 2011-07-31  Bruno Haible  <bruno@clisp.org>
14207
14208         stdioext: Add support for Minix.
14209         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
14210         * lib/fpurge.c (fpurge): Likewise.
14211         * lib/freadahead.c (freadahead): Likewise.
14212         * lib/freadable.c (freadable): Likewise.
14213         * lib/freading.c (freading): Likewise.
14214         * lib/freadptr.c (freadptr): Likewise.
14215         * lib/freadseek.c (freadptrinc): Likewise.
14216         * lib/fseeko.c (rpl_fseeko): Likewise.
14217         * lib/fseterr.c (fseterr): Likewise.
14218         * lib/fwritable.c (fwritable): Likewise.
14219         * lib/fwriting.c (fwriting): Likewise.
14220         * lib/fflush.c (clear_ungetc_buffer): Update comment.
14221         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
14222
14223 2011-07-31  Bruno Haible  <bruno@clisp.org>
14224
14225         errno: Port to Minix.
14226         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
14227         ECONNABORTED are defined.
14228         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
14229         GNULIB_defined_ECONNABORTED): New macros.
14230         * lib/strerror-override.h (strerror_override): Test also
14231         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
14232         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
14233         ECONNABORTED.
14234         * doc/posix-headers/errno.texi: Mention the Minix problem.
14235
14236 2011-07-31  Bruno Haible  <bruno@clisp.org>
14237
14238         Work around declaration collisions on Minix.
14239         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
14240         defined, set REPLACE_MBSINIT.
14241         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
14242         defined, set REPLACE_MBRTOWC.
14243         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
14244         set REPLACE_MBRLEN.
14245         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
14246         defined, set REPLACE_MBSRTOWCS.
14247         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
14248         defined, set REPLACE_WCRTOMB.
14249         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
14250         defined, set REPLACE_WCSRTOMBS.
14251
14252 2011-07-31  Bruno Haible  <bruno@clisp.org>
14253
14254         Add support for Minix with ACK compiler.
14255         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
14256         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
14257         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
14258
14259 2011-07-31  Bruno Haible  <bruno@clisp.org>
14260
14261         Documentation about Minix.
14262         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
14263         * doc/glibc-headers/*.texi: Likewise.
14264         * doc/posix-functions/*.texi: Likewise.
14265         * doc/glibc-functions/*.texi: Likewise.
14266
14267 2011-07-31  Bruno Haible  <bruno@clisp.org>
14268
14269         snippet/warn-on-use: Fix indentation.
14270         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
14271
14272 2011-07-25  Jim Meyering  <meyering@redhat.com>
14273
14274         tests: test-update-copyright.sh: remove unnecessary "rm" commands
14275         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
14276         commands.
14277
14278 2011-07-27  Jim Meyering  <meyering@redhat.com>
14279
14280         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
14281         * top/maint.mk (gl_extract_significant_defines_): Now that
14282         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
14283         gnulib/lib/signal.in.h, and now that we recommend to
14284         define-if-undefined those two symbols in application code,
14285         we must filter them out of the "significant" list.
14286         This avoids a "make syntax-check" failure in coreutils.
14287
14288 2011-07-26  Eric Blake  <eblake@redhat.com>
14289
14290         warnings: add comments about previous patch
14291         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
14292         * m4/include_next.m4: Likewise.
14293         * m4/warn-on-use.m4: Likewise.
14294         * m4/warnings.m4: Likewise, and simplify use.
14295         Suggested by Stefano Lattarini.
14296
14297         include-next, warnings: support older autoconf
14298         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
14299         AS_VAR_PUSHDEF in a way that works with older autoconf.
14300         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
14301         Reported by Daniel P. Berrange.
14302
14303 2011-07-25  Bruno Haible  <bruno@clisp.org>
14304
14305         fseek, ftell: Fix doc.
14306         * doc/posix-functions/fseek.texi: Reword statement about
14307         AC_SYS_LARGEFILE.
14308         * doc/posix-functions/ftell.texi: Likewise.
14309
14310 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14311             Bruno Haible  <bruno@clisp.org>
14312
14313         Add dependencies to the 'largefile' module.
14314         * modules/fopen (Depends-on): Add 'largefile'.
14315         * modules/freopen (Depends-on): Likewise.
14316         * modules/fseeko (Depends-on): Likewise.
14317         * modules/ftello (Depends-on): Likewise.
14318         * modules/glob (Depends-on): Likewise.
14319         * modules/lseek (Depends-on): Likewise.
14320         * modules/lstat (Depends-on): Likewise.
14321         * modules/mkostemp (Depends-on): Likewise.
14322         * modules/mkostemps (Depends-on): Likewise.
14323         * modules/mkstemp (Depends-on): Likewise.
14324         * modules/mkstemps (Depends-on): Likewise.
14325         * modules/open (Depends-on): Likewise.
14326         * modules/openat (Depends-on): Likewise.
14327         * modules/pread (Depends-on): Likewise.
14328         * modules/pwrite (Depends-on): Likewise.
14329         * modules/scandir (Depends-on): Likewise.
14330         * modules/stat (Depends-on): Likewise.
14331         * modules/tmpfile (Depends-on): Likewise.
14332         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
14333         since the containing module now depends on the largefile module.
14334         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
14335         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
14336         off_t is fixed by gnulib.
14337         * doc/posix-functions/freopen.texi: Likewise.
14338         * doc/posix-functions/fseeko.texi: Likewise.
14339         * doc/posix-functions/fstatat.texi: Likewise.
14340         * doc/posix-functions/ftello.texi: Likewise.
14341         * doc/posix-functions/glob.texi: Likewise.
14342         * doc/posix-functions/lseek.texi: Likewise.
14343         * doc/posix-functions/lstat.texi: Likewise.
14344         * doc/posix-functions/mkstemp.texi: Likewise.
14345         * doc/posix-functions/open.texi: Likewise.
14346         * doc/posix-functions/openat.texi: Likewise.
14347         * doc/posix-functions/pread.texi: Likewise.
14348         * doc/posix-functions/pwrite.texi: Likewise.
14349         * doc/posix-functions/scandir.texi: Likewise.
14350         * doc/posix-functions/stat.texi: Likewise.
14351         * doc/posix-functions/tmpfile.texi: Likewise.
14352         * doc/glibc-functions/mkostemp.texi: Likewise.
14353         * doc/glibc-functions/mkostemps.texi: Likewise.
14354         * doc/glibc-functions/mkstemps.texi: Likewise.
14355
14356 2011-07-25  Bruno Haible  <bruno@clisp.org>
14357
14358         fcntl: Move AC_LIBOBJ invocation to module description.
14359         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
14360         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
14361
14362         fcntl: Remove call-in from fchdir.m4.
14363         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
14364         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
14365
14366         dup3: Remove potential call-in from fchdir.m4.
14367         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
14368         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
14369
14370         dup2: Move AC_LIBOBJ invocation to module description.
14371         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
14372         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
14373         Don't invoke AC_LIBOBJ.
14374         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
14375
14376         dup2: Remove call-in from fchdir.m4.
14377         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
14378         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
14379
14380         fclose: Move AC_LIBOBJ invocation to module description.
14381         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
14382         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
14383         to 1.
14384         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
14385
14386         fclose: Remove call-in from close.m4.
14387         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
14388         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
14389
14390         close: Move AC_LIBOBJ invocation to module description.
14391         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
14392         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
14393         1.
14394         * modules/close (configure.ac): Invoke AC_LIBOBJ.
14395
14396         close: Remove call-in from fchdir.m4.
14397         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
14398         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
14399
14400         open: Move AC_LIBOBJ invocation to module description.
14401         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
14402         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
14403         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
14404
14405         open: Remove call-in from fchdir.m4.
14406         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
14407         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
14408
14409         fchdir: Start to remove gl_REPLACE_* idiom.
14410         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
14411         (gl_FUNC_FCHDIR): Invoke it.
14412
14413 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14414
14415         * lib/ftell.c (ftell): Comment out cast.
14416
14417         close: use gl_REPLACE_FCLOSE only if defined
14418         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
14419         is defined.  The close module doesn't depend on the fclose module
14420         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
14421         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
14422         I reproduced the problem with "./gnulib-tool --test close sys_socket".
14423
14424 2011-07-24  Jim Meyering  <meyering@redhat.com>
14425
14426         test-select.h: avoid warning when using gcc's -Wmissing-declarations
14427         * tests/test-select.h (test_function): Declare as "static".
14428
14429 2011-07-24  Bruno Haible  <bruno@clisp.org>
14430
14431         doc: Mention the effects of AC_SYS_LARGEFILE.
14432         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
14433         on this function.
14434         * doc/posix-functions/aio_error.texi: Likewise.
14435         * doc/posix-functions/aio_fsync.texi: Likewise.
14436         * doc/posix-functions/aio_read.texi: Likewise.
14437         * doc/posix-functions/aio_return.texi: Likewise.
14438         * doc/posix-functions/aio_suspend.texi: Likewise.
14439         * doc/posix-functions/aio_write.texi: Likewise.
14440         * doc/posix-functions/fgetpos.texi: Likewise.
14441         * doc/posix-functions/fopen.texi: Likewise.
14442         * doc/posix-functions/freopen.texi: Likewise.
14443         * doc/posix-functions/fsetpos.texi: Likewise.
14444         * doc/posix-functions/fstatvfs.texi: Likewise.
14445         * doc/posix-functions/ftruncate.texi: Likewise.
14446         * doc/posix-functions/ftw.texi: Likewise.
14447         * doc/posix-functions/getrlimit.texi: Likewise.
14448         * doc/posix-functions/glob.texi: Likewise.
14449         * doc/posix-functions/lio_listio.texi: Likewise.
14450         * doc/posix-functions/lockf.texi: Likewise.
14451         * doc/posix-functions/mkstemp.texi: Likewise.
14452         * doc/posix-functions/mmap.texi: Likewise.
14453         * doc/posix-functions/nftw.texi: Likewise.
14454         * doc/posix-functions/openat.texi: Likewise.
14455         * doc/posix-functions/opendir.texi: Likewise.
14456         * doc/posix-functions/posix_fadvise.texi: Likewise.
14457         * doc/posix-functions/posix_fallocate.texi: Likewise.
14458         * doc/posix-functions/pread.texi: Likewise.
14459         * doc/posix-functions/pwrite.texi: Likewise.
14460         * doc/posix-functions/readdir.texi: Likewise.
14461         * doc/posix-functions/readdir_r.texi: Likewise.
14462         * doc/posix-functions/rewinddir.texi: Likewise.
14463         * doc/posix-functions/scandir.texi: Likewise.
14464         * doc/posix-functions/seekdir.texi: Likewise.
14465         * doc/posix-functions/setrlimit.texi: Likewise.
14466         * doc/posix-functions/statvfs.texi: Likewise.
14467         * doc/posix-functions/telldir.texi: Likewise.
14468         * doc/posix-functions/tmpfile.texi: Likewise.
14469         * doc/posix-functions/truncate.texi: Likewise.
14470         * doc/glibc-functions/fallocate.texi: Likewise.
14471         * doc/glibc-functions/fstatfs.texi: Likewise.
14472         * doc/glibc-functions/fts_children.texi: Likewise.
14473         * doc/glibc-functions/fts_read.texi: Likewise.
14474         * doc/glibc-functions/getdirentries.texi: Likewise.
14475         * doc/glibc-functions/mkostemp.texi: Likewise.
14476         * doc/glibc-functions/mkostemps.texi: Likewise.
14477         * doc/glibc-functions/mkstemps.texi: Likewise.
14478         * doc/glibc-functions/preadv.texi: Likewise.
14479         * doc/glibc-functions/pwritev.texi: Likewise.
14480         * doc/glibc-functions/sendfile.texi: Likewise.
14481         * doc/glibc-functions/statfs.texi: Likewise.
14482
14483 2011-07-24  Bruno Haible  <bruno@clisp.org>
14484
14485         doc: Fix typo.
14486         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
14487
14488 2011-07-24  Bruno Haible  <bruno@clisp.org>
14489
14490         doc: Mention fsusage.
14491         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
14492
14493 2011-07-24  Bruno Haible  <bruno@clisp.org>
14494
14495         doc: Mention new glibc headers and functions.
14496         * doc/glibc-headers/gshadow.texi: New file.
14497         * doc/glibc-functions/endsgent.texi: New file.
14498         * doc/glibc-functions/fgetsgent.texi: New file.
14499         * doc/glibc-functions/fgetsgent_r.texi: New file.
14500         * doc/glibc-functions/getsgent.texi: New file.
14501         * doc/glibc-functions/getsgent_r.texi: New file.
14502         * doc/glibc-functions/getsgnam.texi: New file.
14503         * doc/glibc-functions/getsgnam_r.texi: New file.
14504         * doc/glibc-functions/putsgent.texi: New file.
14505         * doc/glibc-functions/setsgent.texi: New file.
14506         * doc/glibc-functions/sgetsgent.texi: New file.
14507         * doc/glibc-functions/sgetsgent_r.texi: New file.
14508         * doc/glibc-functions/malloc_info.texi: New file.
14509         * doc/glibc-functions/preadv.texi: New file.
14510         * doc/glibc-functions/pwritev.texi: New file.
14511         * doc/glibc-functions/register_printf_modifier.texi: New file.
14512         * doc/glibc-functions/register_printf_specifier.texi: New file.
14513         * doc/glibc-functions/register_printf_type.texi: New file.
14514         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
14515         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
14516         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
14517         * doc/glibc-functions/pthread_getname_np.texi: New file.
14518         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
14519         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
14520         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
14521         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
14522         * doc/glibc-functions/pthread_setname_np.texi: New file.
14523         * doc/glibc-functions/pthread_sigqueue.texi: New file.
14524         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
14525         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
14526         * doc/glibc-functions/qsort_r.texi: New file.
14527         * doc/glibc-functions/quick_exit.texi: New file.
14528         * doc/glibc-functions/syncfs.texi: New file.
14529         * doc/gnulib.texi: Include them.
14530         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
14531         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
14532         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
14533         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
14534         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
14535         * doc/glibc-functions/execvpe.texi: Likewise.
14536
14537 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14538
14539         ftell: don't include <unistd.h>
14540         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
14541         guaranteed to define off_t, and the ftell module depends on the
14542         stdio module.
14543
14544         ftell: do not assume wraparound signed arithmetic
14545         * lib/ftell.c: Include <limits.h>.
14546         (ftell): Don't assume wraparound signed arithmetic.
14547
14548 2011-07-24  Bruno Haible  <bruno@clisp.org>
14549
14550         close: No longer depend on module 'fclose'.
14551         * modules/close (Depends-on): Remove fclose.
14552         * NEWS: Mention the change.
14553         Suggested by Sam Steingold <sds@gnu.org>.
14554
14555 2011-07-24  Bruno Haible  <bruno@clisp.org>
14556
14557         fsusage: Enable large volume support on AIX >= 5.2.
14558         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
14559         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
14560         instead of STAT_STATVFS.
14561         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
14562
14563         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
14564         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
14565         f_blocks field only on MacOS X.
14566
14567         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
14568         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
14569         * modules/fsusage (Depends-on): Add largefile.
14570
14571 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14572
14573         * README: Modernize discussion of signed integers.
14574         Assuming overflow wraparound is no longer safe.
14575         Mention ones' complement and signed magnitude.
14576
14577 2011-07-22  Bruno Haible  <bruno@clisp.org>
14578
14579         select tests, pselect tests: Refactor.
14580         * tests/test-select.h: New file, extracted from tests/test-select.c.
14581         (select_fn): New type.
14582         (test, do_select, do_select_nowait, do_select_wait, test_tty,
14583         test_connect_first, test_accept_first, test_pair, test_socket_pair,
14584         test_pipe): Add my_select argument.
14585         (test_function): Renamed from main. Add my_select argument.
14586         * tests/test-select.c: Move most code to tests/test-select.h. Include
14587         test-select.h.
14588         * modules/select-tests (Files): Add tests/test-select.h.
14589         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
14590         (my_select, main): New functions.
14591         * modules/pselect-tests (Files): Add tests/test-select.h,
14592         tests/macros.h, tests/signature.h.
14593         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
14594         (configure.ac): Check for <sys/wait.h>.
14595
14596 2011-07-22  Bruno Haible  <bruno@clisp.org>
14597
14598         sys_select tests: Check the signature of FD_*.
14599         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
14600         signature tests from here...
14601         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
14602         here.
14603         * modules/sys_select-tests (Files): Add tests/signature.h.
14604
14605 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14606
14607         largefile: new module, replacing large-inode
14608         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
14609         * MODULES.html.sh: Add largefile, remove large-inode.
14610         * modules/largefile, m4/largefile.m4: New files.
14611         * modules/large-inode, m4/large-inode.m4: Remove.
14612
14613         fsusage: port to MacOS X 10.7 with 4 TiB file systems
14614         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
14615         implementations that use only 32 bits to count blocks.
14616         On typical hosts with 1024-byte blocks, this fails with file
14617         systems as small as 4 TiB.  Problem reported by Herb Wartens
14618         <http://debbugs.gnu.org/9140> and this should also fix a similar
14619         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
14620
14621         large-inode: New module
14622         * MODULES.html.sh: Add it.
14623         * modules/large-inode, m4/large-inode.m4: New files.
14624
14625         extensions: Enable extensions on MacOS X 10.5 and later.
14626         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
14627
14628 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
14629
14630         file-has-acl: use acl_extended_file_nofollow if available
14631         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
14632         (acl_extended_file): New macro.
14633         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
14634         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
14635
14636 2011-07-21  Bruno Haible  <bruno@clisp.org>
14637
14638         Declare system functions in a way that works with C++.
14639         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
14640         declare fdopendir as extern "C".
14641         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
14642         declare frexpl as extern "C".
14643         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
14644         declare gai_strerror as extern "C".
14645         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
14646         programs, declare gai_strerror as extern "C".
14647         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
14648         declare getlogin_r as extern "C".
14649         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
14650         as extern "C".
14651         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
14652         declare ldexpl as extern "C".
14653         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
14654         as extern "C".
14655         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
14656         program, declare getmntinfo as extern "C".
14657         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
14658         stpncpy as extern "C".
14659         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
14660         program, declare __xpg_strerror_r as extern "C".
14661         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
14662         strndup as extern "C".
14663         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
14664         declare memset and bzero as extern "C".
14665         Reported by Sam Steingold <sds@gnu.org>.
14666
14667 2011-07-12  Jim Meyering  <meyering@redhat.com>
14668
14669         maint.mk: prohibit inclusion of "verify.h" without use
14670         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
14671
14672 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14673
14674         timer-time: A new module to check for timer_settime()
14675         * m4/timer_time.m4: Check for the posix function.
14676         * modules/timer-time: Add the new module.
14677         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
14678         Mention it.
14679
14680 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
14681             Bruno Haible  <bruno@clisp.org>
14682
14683         pthread_sigmask: assume POSIX threads if --avoid=threadlib
14684         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
14685         not defined, assume POSIX threads and look for pthread_sigmask in
14686         $LIBS, without changing $CPPFLAGS.
14687
14688 2011-07-19  Bruno Haible  <bruno@clisp.org>
14689
14690         strstr: Update cross-compilation guess.
14691         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
14692         CPUs, guess no, in view of glibc
14693         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
14694         Suggested by Eric Blake. Reported by Reuben Thomas.
14695
14696 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14697
14698         getopt-gnu: suppress core dumps from detection code
14699         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
14700         to suppress core dumps that may well occur on glibc systems.
14701         * modules/getopt-gnu: Depend on nocrash.
14702
14703 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14704
14705         pthread_sigmask: ensure usleep is declared
14706         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
14707         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
14708
14709 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14710
14711         doc: Document NonStop portability issues.
14712         * doc/posix-functions/sigaction.texi (sigaction):
14713         * doc/posix-headers/signal.texi (signal.h):
14714         Document NonStop.  See Joachim Schmitz in
14715         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
14716
14717 2011-07-15  Bruno Haible  <bruno@clisp.org>
14718
14719         ffsl, ffsll: Avoid unportable behaviour.
14720         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
14721
14722 2011-07-15  Bruno Haible  <bruno@clisp.org>
14723
14724         ffs: More tests.
14725         * tests/test-ffs.c (NBITS): New macro.
14726         (main): Add more tests.
14727         * tests/test-ffsl.c (NBITS): New macro.
14728         (main): Add more tests.
14729         * tests/test-ffsll.c (NBITS): New macro.
14730         (main): Add more tests.
14731
14732 2011-07-15  Eric Blake  <eblake@redhat.com>
14733
14734         ffsl, ffsll: new modules
14735         * modules/ffsl: New file.
14736         * modules/ffsll: Likewise.
14737         * m4/ffsl.m4: Likewise.
14738         * m4/ffsll.m4: Likewise.
14739         * lib/ffsl.c: Likewise.
14740         * lib/ffsl.h: Likewise.
14741         * lib/ffsll.c: Likewise.
14742         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
14743         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
14744         * modules/string (Makefile.am): Substitute witnesses.
14745         * lib/strings.in.h (ffsl, ffsll): Declare.
14746         * modules/ffsl-tests: New test file.
14747         * modules/ffsll-tests: Likewise.
14748         * tests/test-ffsl.c: Likewise.
14749         * tests/test-ffsll.c: Likewise.
14750         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14751         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
14752         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
14753
14754         ffs: fix m4 prerequisite
14755         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
14756
14757         ffs: avoid undefined behavior
14758         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
14759         * tests/test-ffs.c (naive, main): Avoid signed shifts.
14760         Reported by Bruno Haible.
14761
14762 2011-07-12  Bruno Haible  <bruno@clisp.org>
14763
14764         pthread_sigmask: Rely on module 'threadlib'.
14765         * modules/pthread_sigmask (Depends-on): Add threadlib.
14766         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
14767         is defined.
14768
14769 2011-07-12  Bruno Haible  <bruno@clisp.org>
14770
14771         regex: Depend on module 'strcase'.
14772         * modules/regex (Depends-on): Add strcase, for strcasecmp().
14773
14774 2011-07-12  Jim Meyering  <meyering@redhat.com>
14775
14776         warn-on-use: fix typo in file name
14777         * modules/snippet/warn-on-use (Files): Correct file name:
14778         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
14779
14780 2011-07-12  Bruno Haible  <bruno@clisp.org>
14781
14782         strings: Document module.
14783         * doc/posix-headers/strings.texi: Mention module 'strings'.
14784
14785 2011-07-12  Bruno Haible  <bruno@clisp.org>
14786
14787         Rename module '_Noreturn' to 'snippet/_Noreturn'.
14788         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
14789         (Files, Makefile.am): Update.
14790         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
14791         * modules/stdlib (Depends-on): Update.
14792
14793 2011-07-12  Bruno Haible  <bruno@clisp.org>
14794
14795         * NEWS: Mention the changes.
14796
14797         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
14798         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
14799         (Files, Makefile.am): Update.
14800         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
14801         * modules/arpa_inet (Depends-on): Update.
14802         * modules/ctype (Depends-on): Update.
14803         * modules/dirent (Depends-on): Update.
14804         * modules/fcntl-h (Depends-on): Update.
14805         * modules/glob (Depends-on): Update.
14806         * modules/iconv-h (Depends-on): Update.
14807         * modules/inttypes-incomplete (Depends-on): Update.
14808         * modules/langinfo (Depends-on): Update.
14809         * modules/locale (Depends-on): Update.
14810         * modules/math (Depends-on): Update.
14811         * modules/netdb (Depends-on): Update.
14812         * modules/poll-h (Depends-on): Update.
14813         * modules/pty (Depends-on): Update.
14814         * modules/search (Depends-on): Update.
14815         * modules/signal (Depends-on): Update.
14816         * modules/spawn (Depends-on): Update.
14817         * modules/stdio (Depends-on): Update.
14818         * modules/stdlib (Depends-on): Update.
14819         * modules/string (Depends-on): Update.
14820         * modules/strings (Depends-on): Update.
14821         * modules/sys_file (Depends-on): Update.
14822         * modules/sys_ioctl (Depends-on): Update.
14823         * modules/sys_select (Depends-on): Update.
14824         * modules/sys_socket (Depends-on): Update.
14825         * modules/sys_stat (Depends-on): Update.
14826         * modules/sys_time (Depends-on): Update.
14827         * modules/sys_times (Depends-on): Update.
14828         * modules/sys_utsname (Depends-on): Update.
14829         * modules/sys_wait (Depends-on): Update.
14830         * modules/termios (Depends-on): Update.
14831         * modules/time (Depends-on): Update.
14832         * modules/unistd (Depends-on): Update.
14833         * modules/wchar (Depends-on): Update.
14834         * modules/wctype-h (Depends-on): Update.
14835         * MODULES.html.sh (Support for building libraries and executables):
14836         Update.
14837
14838         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
14839         * modules/snippet/unused-parameter: Renamed from
14840         modules/unused-parameter.
14841         (Files, Makefile.am): Update.
14842         * build-aux/snippet/unused-parameter.h: Renamed from
14843         build-aux/unused-parameter.h.
14844         * modules/selinux-h (Depends-on): Update.
14845         * modules/unistr/base (Depends-on): Update.
14846         * MODULES.html.sh (Core language properties): Update.
14847
14848         Rename module 'link-warning' to 'snippet/link-warning'.
14849         * modules/snippet/link-warning: Renamed from modules/link-warning.
14850         (Files, Makefile.am): Update.
14851         * build-aux/snippet/link-warning.h: Renamed from
14852         build-aux/link-warning.h.
14853         * MODULES.html.sh (Support for building libraries and executables):
14854         Update.
14855
14856         Rename module 'c++defs' to 'snippet/c++defs'.
14857         * modules/snippet/c++defs: Renamed from modules/c++defs.
14858         (Files, Makefile.am): Update.
14859         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
14860         * modules/arpa_inet (Depends-on): Update.
14861         * modules/ctype (Depends-on): Update.
14862         * modules/dirent (Depends-on): Update.
14863         * modules/fcntl-h (Depends-on): Update.
14864         * modules/glob (Depends-on): Update.
14865         * modules/iconv-h (Depends-on): Update.
14866         * modules/langinfo (Depends-on): Update.
14867         * modules/locale (Depends-on): Update.
14868         * modules/math (Depends-on): Update.
14869         * modules/netdb (Depends-on): Update.
14870         * modules/poll-h (Depends-on): Update.
14871         * modules/pty (Depends-on): Update.
14872         * modules/search (Depends-on): Update.
14873         * modules/signal (Depends-on): Update.
14874         * modules/spawn (Depends-on): Update.
14875         * modules/stdio (Depends-on): Update.
14876         * modules/stdlib (Depends-on): Update.
14877         * modules/string (Depends-on): Update.
14878         * modules/strings (Depends-on): Update.
14879         * modules/sys_ioctl (Depends-on): Update.
14880         * modules/sys_select (Depends-on): Update.
14881         * modules/sys_socket (Depends-on): Update.
14882         * modules/sys_stat (Depends-on): Update.
14883         * modules/sys_time (Depends-on): Update.
14884         * modules/sys_wait (Depends-on): Update.
14885         * modules/termios (Depends-on): Update.
14886         * modules/time (Depends-on): Update.
14887         * modules/unistd (Depends-on): Update.
14888         * modules/wchar (Depends-on): Update.
14889         * modules/wctype-h (Depends-on): Update.
14890
14891         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
14892         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
14893         (Files, Makefile.am): Update.
14894         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
14895         * modules/argv-iter (Depends-on): Update.
14896         * modules/arpa_inet (Depends-on): Update.
14897         * modules/dirent (Depends-on): Update.
14898         * modules/fcntl-h (Depends-on): Update.
14899         * modules/fnmatch (Depends-on): Update.
14900         * modules/getopt-posix (Depends-on): Update.
14901         * modules/glob (Depends-on): Update.
14902         * modules/iconv-h (Depends-on): Update.
14903         * modules/inttypes-incomplete (Depends-on): Update.
14904         * modules/locale (Depends-on): Update.
14905         * modules/math (Depends-on): Update.
14906         * modules/netdb (Depends-on): Update.
14907         * modules/search (Depends-on): Update.
14908         * modules/signal (Depends-on): Update.
14909         * modules/spawn (Depends-on): Update.
14910         * modules/stdio (Depends-on): Update.
14911         * modules/stdlib (Depends-on): Update.
14912         * modules/string (Depends-on): Update.
14913         * modules/strings (Depends-on): Update.
14914         * modules/sys_socket (Depends-on): Update.
14915         * modules/sys_stat (Depends-on): Update.
14916         * modules/sys_time (Depends-on): Update.
14917         * modules/sys_times (Depends-on): Update.
14918         * modules/sys_utsname (Depends-on): Update.
14919         * modules/time (Depends-on): Update.
14920         * modules/unistd (Depends-on): Update.
14921         * modules/wchar (Depends-on): Update.
14922         * MODULES.html.sh (Support for building libraries and executables):
14923         Update.
14924
14925 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14926
14927         Improvements on _Noreturn and related modules.
14928
14929         modules/_Exit-tests: test _Noreturn too
14930         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
14931         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
14932         (main): Use them.
14933
14934         stdnoreturn, stdnoreturn-tests: remove modules
14935         They're not needed here and a bit premature for use elsewhere.  See
14936         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
14937         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
14938         * tests/test-stdnoreturn.c: Remove files.
14939         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
14940         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
14941         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
14942         and using noreturn.
14943         * modules/openat, modules/sigpipe-die, modules/xalloc:
14944         * modules/xmemdup0, modules/xstrtol:
14945         Remove dependency on stdnoreturn.
14946
14947         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
14948         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
14949         Reparenthesize to avoid GCC warning.
14950         Support Microsoft's syntax.
14951         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
14952
14953         _Noreturn-tests: remove module
14954         * modules/_Noreturn-tests: Remove.
14955         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
14956         * tests/test-_Noreturn.c: Remove.
14957         * tests/test-stdnoreturn.c: Merge from the old
14958         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
14959
14960 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14961
14962         _Noreturn, stdnoreturn, and related modules.
14963
14964         * top/maint.mk: Adjust to new noreturn support.
14965         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
14966         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
14967
14968         xalloc: use stdnoreturn.h
14969         * lib/xalloc.h: Include <stdnoreturn.h>.
14970         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14971         * modules/xalloc (Depends-on): Add stdnoreturn.
14972
14973         xstrtol: use stdnoreturn.h
14974         * lib/xstrtol.h: Include <stdnoreturn.h>.
14975         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14976         * modules/xstrtol (Depends-on): Add stdnoreturn.
14977
14978         xmemdup0: use stdnoreturn.h
14979         * lib/xmemdup0.h: Include <stdnoreturn.h>.
14980         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14981         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
14982
14983         sigpipe-die: use stdnoreturn.h
14984         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
14985         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14986         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
14987
14988         openat: use stdnoreturn.h
14989         * lib/openat.h: Include <stdnoreturn.h>.
14990         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14991         * modules/openat (Depends-on): Add stdnoreturn.
14992
14993         * lib/openat-die.c (openat_save_fail): Modernize comment.
14994
14995         * lib/xalloc-die.c (xalloc_die): Modernize comment.
14996
14997         * lib/glthread/thread.h: Modernize comment.
14998
14999         obstack: use _Noreturn
15000         * lib/obstack.c (__attribute__): Remove macro.
15001         (print_and_abort): Use _Noreturn.
15002
15003         c-stack: use _Noreturn
15004         * lib/c-stack.c (die, overflow_handler, segv_handler):
15005         Use _Noreturn rather than __attribute__((noreturn)).
15006
15007         argmatch-tests, exclude_tests: use _Noreturn
15008         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
15009         Remove.
15010         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
15011
15012         stdlib: use _Noreturn
15013         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
15014         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
15015         * modules/stdlib (Depends-on): Add _Noreturn.
15016         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
15017
15018         stdnoreturn-tests: new module
15019         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
15020
15021         stdnoreturn: new module
15022         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
15023         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
15024
15025         _Noreturn-tests: new module
15026         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
15027
15028         _Noreturn: new module
15029         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
15030         New section, mentioning it.
15031         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
15032
15033         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
15034
15035 2011-07-11  Eric Blake  <eblake@redhat.com>
15036
15037         ffs: new module
15038         * modules/ffs: New file.
15039         * m4/ffs.m4: Likewise.
15040         * lib/ffs.c: Likewise.
15041         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
15042         * modules/strings (Makefile.am): Substitute witness.
15043         (Depends-on): Add c++defs.
15044         * lib/strings.in.h (ffs): Declare.
15045         * modules/ffs-tests: New test file.
15046         * tests/test-ffs.c: Test new module.
15047         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15048         * doc/posix-functions/ffs.texi (ffs): Likewise.
15049
15050         regex: avoid compiler warning
15051         * lib/regex.c (includes): Include <strings.h>, for use of
15052         strcasecmp in regcomp.c.
15053         Reported by Joachim Schmitz.
15054
15055 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15056
15057         stdint: respect system's intmax_t if INTMAX_MAX
15058         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
15059         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
15060         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
15061         long but int64_t is long long, and where we will clash with the
15062         system intmax_t if we override it.  See
15063         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
15064         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
15065         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
15066         similarly for UINTMAX_C.
15067
15068 2011-07-08  Bruno Haible  <bruno@clisp.org>
15069
15070         pthread_sigmask tests: Avoid a compiler warning.
15071         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
15072         non-zero.
15073
15074         sigprocmask tests: A better way to avoid a compiler warning.
15075         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
15076         (main): Complain if system() returns non-zero.
15077         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
15078
15079 2011-07-08  Bruno Haible  <bruno@clisp.org>
15080
15081         pthread_sigmask: Work around IRIX bug.
15082         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
15083         bug.
15084         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
15085         there may be unblocked pending signals.
15086         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
15087
15088 2011-07-08  Bruno Haible  <bruno@clisp.org>
15089
15090         pthread_sigmask: Work around Cygwin bug.
15091         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
15092         bug.
15093         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
15094         the system's pthread_sigmask function.
15095         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
15096
15097 2011-07-08  Bruno Haible  <bruno@clisp.org>
15098
15099         pthread_sigmask: Work around bug in single-threaded implementation.
15100         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
15101         FreeBSD, HP-UX, Solaris bug.
15102         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
15103         * lib/pthread_sigmask.c: Include <stddef.h>.
15104         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
15105         the system's pthread_sigmask function.
15106         * modules/pthread_sigmask (configure.ac): Invoke
15107         gl_PREREQ_PTHREAD_SIGMASK.
15108         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
15109         HP-UX, Solaris.
15110
15111 2011-07-08  Eric Blake  <eblake@redhat.com>
15112
15113         test-sigprocmask: avoid compiler warning
15114         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
15115         * tests/test-sigprocmask.c (main): Use it to silence warning.
15116         Reported by Jim Meyering.
15117
15118         test-snprintf: avoid compiler warning
15119         * tests/test-snprintf.c (main): Avoid shadowed declaration.
15120         * tests/test-vsnprintf.c (main): Likewise.
15121         Reported by Jim Meyering.
15122
15123 2011-07-08  Bruno Haible  <bruno@clisp.org>
15124
15125         Tests for module 'pthread_sigmask'.
15126         * modules/pthread_sigmask-tests: New file.
15127         * tests/test-pthread_sigmask1.c: New file, based on
15128         tests/test-sigprocmask.c.
15129         * tests/test-pthread_sigmask2.c: New file.
15130
15131 2011-07-08  Jim Meyering  <meyering@redhat.com>
15132
15133         test-getopt.h: avoid warning about an unused variable
15134         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
15135
15136 2011-07-07  Jim Meyering  <meyering@redhat.com>
15137
15138         maint: reduce list of files exempt from sc_prohibit_leading_TABs
15139         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
15140         now that it no longer contains leading TABs.
15141         Remove unused "url=FIXME" statement.
15142
15143 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15144
15145         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
15146         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15147         When gl_THREADLIB is not in use, assume that the POSIX sematics
15148         are desired.  This is better for Emacs, which uses POSIX semantics
15149         on GNUish and/or POSIXish platforms, and does not use threads at
15150         all otherwise.
15151
15152         pthread_sigmask: fix typo when testing for libraries
15153         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15154         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
15155
15156 2011-07-08  Eric Blake  <eblake@redhat.com>
15157
15158         fts: introduce FTS_NOATIME
15159         * lib/fts_.h (FTS_NOATIME): New bit flag.
15160         (FTS_OPTIONMASK): Adjust.
15161         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
15162         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
15163
15164 2011-07-08  Bruno Haible  <bruno@clisp.org>
15165
15166         Tests for module 'thread'.
15167         * modules/thread-tests: New file.
15168         * tests/test-thread_self.c: New file.
15169         * tests/test-thread_create.cc: New file.
15170
15171 2011-07-08  Bruno Haible  <bruno@clisp.org>
15172
15173         thread: Avoid gcc warnings when using gl_thread_self().
15174         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
15175         'void *'.
15176         (gl_thread_self_pointer): Update.
15177
15178 2011-07-07  Bruno Haible  <bruno@clisp.org>
15179
15180         signal-c++-tests: Check declaration of pthread_sigmask.
15181         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
15182         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
15183         $(LIB_PTHREAD_SIGMASK).
15184
15185 2011-07-07  Bruno Haible  <bruno@clisp.org>
15186
15187         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
15188         * lib/signal.in.h (pthread_sigmask): Override if
15189         REPLACE_PTHREAD_SIGMASK is 1.
15190         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15191         REPLACE_PTHREAD_SIGMASK.
15192         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
15193         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
15194         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
15195         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15196         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
15197
15198 2011-07-07  Bruno Haible  <bruno@clisp.org>
15199
15200         pthread_sigmask: Ensure declaration in <signal.h>.
15201         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
15202         include <pthread.h>.
15203         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
15204         problem.
15205
15206 2011-07-07  Bruno Haible  <bruno@clisp.org>
15207
15208         pthread_sigmask: Document the module.
15209         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
15210
15211 2011-07-07  Bruno Haible  <bruno@clisp.org>
15212
15213         pthread_sigmask: Follow gnulib conventions.
15214         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
15215         gl_PTHREAD_SIGMASK.
15216         * modules/pthread_sigmask (configure.ac): Update.
15217
15218 2011-07-07  Bruno Haible  <bruno@clisp.org>
15219
15220         pthread_sigmask: Make declaration C++ safe.
15221         * lib/signal.in.h: In two special conditions, just do an #include_next.
15222         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15223         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
15224         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15225         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15226         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
15227         not REPLACE_PTHREAD_MASK.
15228         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
15229         not REPLACE_PTHREAD_MASK.
15230         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15231
15232 2011-07-07  Bruno Haible  <bruno@clisp.org>
15233
15234         pthread_sigmask: Fix return value.
15235         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
15236         * lib/pthread_sigmask.c: New file.
15237         * modules/pthread_sigmask (Files): Add it.
15238         (configure.ac): Invoke AC_LIBOBJ.
15239
15240 2011-07-07  Eric Blake  <eblake@redhat.com>
15241
15242         getopt: more portable argv creation
15243         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
15244         const, use char arrays rather than strings.
15245         Suggested by Paul Eggert.
15246
15247 2011-07-07  Bruno Haible  <bruno@clisp.org>
15248
15249         Tests for module 'sigprocmask'.
15250         * modules/sigprocmask-tests: New file.
15251         * tests/test-sigprocmask.c: New file.
15252
15253 2011-07-07  Bruno Haible  <bruno@clisp.org>
15254
15255         float tests: Tweak.
15256         * tests/test-float.c (main): Tweak skip message.
15257
15258 2011-07-07  Eric Blake  <eblake@redhat.com>
15259
15260         getopt: avoid compiler warning during configure
15261         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
15262         assigning string literals to non-const pointer.
15263
15264         getopt-gnu: avoid crash in glibc getopt
15265         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
15266         * tests/test-getopt.h (test_getopt): Enhance test.
15267         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15268         * doc/posix-functions/getopt.texi (getopt): Document it.
15269         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15270         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15271         Likewise.
15272
15273 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15274
15275         getopt: handle W; without long options in getopt [BZ #12922]
15276         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
15277         but no long options are defined, just return 'W'.
15278
15279 2011-07-07  Bruno Haible  <bruno@clisp.org>
15280
15281         Avoid literal tabs.
15282         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
15283         variable containing a tab instead of a literal tab.
15284         Reported by Jim Meyering.
15285
15286 2011-07-07  Bruno Haible  <bruno@clisp.org>
15287
15288         Comments.
15289         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
15290
15291 2011-07-06  Bruno Haible  <bruno@clisp.org>
15292
15293         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
15294         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
15295         <winsock2.h>.
15296         (rpl_fd_isset, FD_ISSET): New definitions, copied from
15297         lib/sys_socket.in.h.
15298         (close, gethostname): Hide declarations from <winsock2.h>.
15299         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15300         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
15301         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
15302         (select): Don't override if gnulib's <sys/select.h> was already
15303         included.
15304         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15305         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15306         setsockopt, shutdown, select): Tweak indentation.
15307
15308 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15309
15310         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
15311         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
15312         in an application that does not use the sys_select module.
15313
15314 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
15315
15316         poll: do not return 0 on timeout=-1
15317         * lib/poll.c: Loop with yield if no events occurred.
15318
15319 2011-07-06  Eric Blake  <eblake@redhat.com>
15320
15321         pthread_sigmask: always replace when not using pthread
15322         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
15323         replacement when using some threading other than pthread.  Fix
15324         logic bug.
15325
15326 2011-07-06  Bruno Haible  <bruno@clisp.org>
15327
15328         Comments.
15329         * m4/printf.m4: Update comments about mingw.
15330
15331 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15332
15333         sys_select: define sigset_t more portably
15334         * lib/sys_select.in.h: Always include <sys/types.h>, since
15335         we now need sigset_t and mingw defines it there.
15336         Include <signal.h> before split inclusion guard, to avoid
15337         mishaps on Solaris, whose <signal.h> eventually includes us.
15338         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
15339         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
15340         which come from ...
15341         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15342         gl_CHECK_TYPE_SIGSET_T.
15343         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
15344         does the real work.
15345         * modules/sys_select (Depends-on): Add 'signal'.
15346
15347         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
15348         Suggested by Bruno Haible.
15349
15350         pselect: Use pthread_sigmask, not sigprocmask.
15351         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
15352         multithreaded apps better than sigprocmask does.
15353         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
15354         sigprocmask directly.
15355
15356 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15357
15358         * lib/pselect.c (pselect): Use plain name, without "rpl_".
15359         Don't #undef,  since we don't need any underlying pselect.
15360         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
15361         (Depends-on): Add select.
15362         (Link): Add $(LIBSOCKET).
15363         These changes suggested by Bruno Haible.
15364
15365         pselect: document better
15366         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15367         * doc/posix-functions/pselect.texi (pselect): Document new module.
15368
15369         pthread_sigmask: new module
15370         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15371         * doc/posix-functions/pthread_sigmask.texi: Document new module.
15372         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
15373         This is done only as a macro; I don't know how well that'll
15374         work for C++.  Move <sys/types.h> include before the include_next,
15375         to avoid mishap on Solaris.
15376         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
15377         * modules/signal (Makefile.am): Substitute the check's results.
15378         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
15379
15380         test-pselect: new module
15381         * modules/pselect-tests, tests/test-pselect.c: New files.
15382         * tests/test-select.c, tests/test-sys_select-c++.cc:
15383         If TEST_PSELECT is defined, test pselect instead of testing select.
15384
15385         * tests/test-sys_select.c (sigset_t): Test for it, too.
15386         Suggested by Bruno Haible.
15387
15388 2011-07-05  Eric Blake  <eblake@redhat.com>
15389
15390         snprintf: guarantee %1$d, for libintl
15391         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
15392         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
15393         * doc/posix-functions/snprintf.texi (snprintf): Update.
15394         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15395         * tests/test-snprintf.c (main): Enhance test.
15396         * tests/test-vsnprintf.c (main): Likewise.
15397
15398 2011-07-05  Jim Meyering  <meyering@redhat.com>
15399
15400         maint: exempt stdio-read.c and stdio-write.c from the cppi check
15401         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
15402         per Bruno's request, to accommodate this idiom (no space after "#")
15403         even when the function is inside an #if block:
15404         char *
15405         gets (char *s)
15406         #undef gets
15407         {
15408           ...
15409         }
15410
15411 2011-07-04  Jim Meyering  <meyering@redhat.com>
15412
15413         maint: indent with spaces, not TABs, and add a rule to check this
15414         * tests/test-userspec.c: Indent with spaces, not TABs.
15415         * tests/test-argp.c: Likewise.
15416         * tests/test-c-stack2.sh: Likewise.
15417         * tests/test-parse-duration.sh: Likewise
15418         * m4/strtod.m4: Likewise.
15419         * m4/alloca.m4: Likewise.
15420         * m4/pselect.m4: Likewise.
15421         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
15422
15423 2011-07-03  Jim Meyering  <meyering@redhat.com>
15424
15425         maint.mk: correct omissions in prohibit_argmatch_without_use check
15426         This rule would mistakenly report that argmatch.h is included without
15427         use even when both the argmatch and invalid_arg macro were used.
15428         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
15429         of argmatch and invalid_arg.
15430
15431 2011-07-03  Bruno Haible  <bruno@clisp.org>
15432
15433         Comments about EINTR.
15434         * lib/safe-read.h: Explain the purpose of this module.
15435         * lib/safe-write.h: Likewise.
15436         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
15437         module.
15438         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
15439         module.
15440         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15441
15442 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15443
15444         xnanosleep: Rewrite to use new dtotimespec module.
15445         It has the conversion code that used to be in xnanosleep.
15446         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
15447         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
15448         (TIME_T_MAX): Remove.
15449         (xnanosleep): Rewrite in terms of dtotimespec.
15450         * modules/xnanosleep (Depends-on): Add dtotimespec.
15451         Remove intprops, stdbool.
15452
15453         timespec-add, timespec-sub: new modules
15454         * lib/timespec.h (timespec_add, timespec_sub): New decls.
15455         * lib/timespec-add.c, lib/timespec-sub.c:
15456         * modules/timespec-add, modules/timespec-sub: New files.
15457
15458         dtotimespec: new module
15459         * lib/timespec.h (dtotimespec): New decl.
15460         * lib/dtotimespec.c, modules/dtotimespec: New files.
15461
15462         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
15463
15464         pselect: new module
15465         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
15466         (pselect): New decls.
15467         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
15468         since the standard pselect decl uses 'restrict'.
15469         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
15470         HAVE_PSELECT, REPLACE_PSELECT.
15471         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
15472         HAVE_PSELECT, REPLACE_PSELECT.
15473         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
15474
15475         sys_select: don't depend on sys_socket
15476         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
15477         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
15478         This fix works on GNU and GNU-like platforms, but has not been tested
15479         on native Windows.
15480         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
15481         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
15482         gl_HEADER_SYS_SOCKET.
15483         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
15484         gl_PREREQ_SYS_H_WINSOCK2.
15485
15486 2011-06-29  Eric Blake  <eblake@redhat.com>
15487
15488         pipe2: fix C89 compile problem
15489         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
15490         Reported by Bruno Haible.
15491
15492         pipe, pipe2: don't corrupt fd on error
15493         * lib/pipe.c (pipe): Leave fd unchanged on error.
15494         * lib/pipe2.c (pipe2): Likewise.
15495         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
15496         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15497
15498 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
15499
15500         mmap-anon: do not use regular expressions inadvertently
15501         * m4/mmap-anon.m4: Remove trailing period from strings sought
15502         in the output.
15503
15504 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
15505
15506         nanosleep: fix integer overflow problem
15507         * lib/nanosleep.c (my_usleep): Don't assume signed integer
15508         arithmetic wraps around on overflow.
15509
15510         nanosleep: simplify carrying
15511         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
15512         first call to the underyling nanosleep, not for the last one.
15513         This doesn't fix any bugs, but it simplifies the computation of
15514         the remaining delay.  Found while auditing integer overflow issues.
15515
15516         dup2: remove test for existence of fcntl
15517         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
15518         "#if HAVE_FCNTL", in the configure-time test program.
15519         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
15520         and therefore speeds up "configure" a bit.  Found while
15521         adding the dup2 module to Emacs.
15522
15523 2011-06-24  Eric Blake  <eblake@redhat.com>
15524
15525         maint.mk: enhance useless header checks
15526         * top/maint.mk (_sc_header_without_use): Check both include
15527         styles.
15528         (sc_prohibit_assert_without_use)
15529         (sc_prohibit_close_stream_without_use)
15530         (sc_prohibit_getopt_without_use)
15531         (sc_prohibit_quotearg_without_use)
15532         (sc_prohibit_quote_without_use)
15533         (sc_prohibit_long_options_without_use)
15534         (sc_prohibit_inttostr_without_use)
15535         (sc_prohibit_ignore_value_without_use)
15536         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
15537         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
15538         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
15539         (sc_prohibit_hash_pjw_without_use)
15540         (sc_prohibit_safe_read_without_use)
15541         (sc_prohibit_argmatch_without_use)
15542         (sc_prohibit_canonicalize_without_use)
15543         (sc_prohibit_root_dev_ino_without_use)
15544         (sc_prohibit_openat_without_use)
15545         (sc_prohibit_c_ctype_without_use)
15546         (sc_prohibit_signal_without_use)
15547         (sc_prohibit_stdio--_without_use)
15548         (sc_prohibit_stdio-safer_without_use)
15549         (sc_prohibit_strings_without_use)
15550         (sc_prohibit_intprops_without_use)
15551         (sc_prohibit_stddef_without_use)
15552         (sc_prohibit_xfreopen_without_use): Update clients.
15553
15554 2011-06-24  Jim Meyering  <meyering@redhat.com>
15555
15556         syntax-check: keep one maint.mk rule in sync with its header
15557         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
15558         of the bug Eric has just fixed, with today's commit 25e4c2ec.
15559         I prefer to avoid temporary files here, so use <(...), but that
15560         is not supported by /bin/sh, so...
15561         (SHELL): Define to /bin/bash.
15562
15563 2011-06-24  Eric Blake  <eblake@redhat.com>
15564
15565         maint.mk: update sc_prohibit_intprops_without_use
15566         * top/maint.mk (_intprops_names): Match recent changes.
15567
15568 2011-06-24  Bruno Haible  <bruno@clisp.org>
15569
15570         strerror-override: No-op tweak.
15571         * lib/strerror-override.h (strerror_override): Reorder conditions,
15572         for consistency with lib/strerror-override.c.
15573
15574 2011-06-23  Eric Blake  <eblake@redhat.com>
15575
15576         maint.mk: test further PATH_MAX issues
15577         * top/maint.mk (sc_prohibit_path_max_array): Rename...
15578         (sc_prohibit_path_max_allocation): ...and also test alloca.
15579         Suggested by Jim Meyering.
15580
15581 2011-06-22  Eric Blake  <eblake@redhat.com>
15582
15583         maint.mk: add syntax-check to avoid char[PATH_MAX]
15584         * top/maint.mk (sc_prohibit_path_max_array): New rule.
15585
15586         stat: be robust to PATH_MAX definition
15587         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
15588         * modules/stat (Depends-on): Add verify.
15589
15590         link: work around IRIX bug
15591         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
15592         * lib/link.c (rpl_link): Work around it.
15593         * tests/test-link.h (test_link): Enhance test.
15594         * doc/posix-functions/link.texi (link): Document the bug.
15595
15596         getopt: silence clang warning
15597         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
15598         dereference.
15599         Reported by Gustavo Martin Domato.
15600
15601 2011-06-22  Jim Meyering  <meyering@redhat.com>
15602
15603         bootstrap: do not insert a blank line into each .gitignore file
15604         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
15605
15606 2011-06-21  Eric Blake  <eblake@redhat.com>
15607
15608         perror: test for output mismatch
15609         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
15610         perror on IRIX.
15611
15612         strerror_r: fix OpenBSD behavior on out-of-range
15613         * lib/strerror_r.c (strerror_r): Always use maximal string.
15614         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15615
15616         strerror_r: fix OpenBSD behavior on 0
15617         * lib/strerror-override.c (strerror_override): Also override 0
15618         when needed.
15619         * lib/strerror-override.h (strerror_override): Likewise.
15620         * lib/strerror.c (strerror): Simplify, now that 0 override is done
15621         earlier.
15622         * lib/strerror_r.c (strerror_r): Likewise.
15623         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
15624         behavior...
15625         (gl_FUNC_STRERROR_0): ...into new macro.
15626         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
15627         is overridden.
15628         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
15629         * modules/strerror-override (Files): Add strerror.m4.
15630         (configure.ac): Also provide override for 0 when needed.
15631         * doc/posix-functions/strerror.texi (strerror): Document this.
15632         * doc/posix-functions/perror.texi (perror): Likewise.
15633
15634         perror: adjust array size
15635         * modules/perror (Depends-on): Add strerror-override.
15636         * lib/perror.c (perror): Use it to avoid magic number.
15637
15638         strerror-override: reduce size
15639         * lib/strerror-override.c (strerror_override): Use fewer lines.
15640
15641 2011-06-20  Bruno Haible  <bruno@clisp.org>
15642
15643         pathmax: Ensure correct value for PATH_MAX on HP-UX.
15644         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
15645
15646 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
15647
15648         alloca: port to compilers that can optimize like GCC 4.6.0
15649         * lib/alloca.c (find_stack_direction): New signature, taken from
15650         Autoconf git.  This works with GCC 4.6.0.  This code should never
15651         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
15652         be used with other compilers that optimize as well as GCC 4.6.0 does.
15653         (alloca): Adjust to new signature.
15654         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
15655         New macro, which patches Autoconf in a similar way.
15656
15657         c-stack: stop worrying about stack direction
15658         * lib/c-stack.c (find_stack_direction): Remove.
15659         (segv_handler): Don't worry about stack direction growth, as it's
15660         too much of a pain to configure this correctly, given how compilers
15661         are optimizing-away our stack-growth detection code.  Instead, assume
15662         that any access to just before or just after the stack is OK.
15663         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
15664         Don't require AC_FUNC_ALLOCA; no longer needed.
15665
15666 2011-06-20  Eric Blake  <eblake@redhat.com>
15667
15668         test-stat: don't allocate PATH_MAX bytes
15669         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
15670         PATH_MAX-sized buffer.
15671         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
15672         * modules/stat-tests (Depends-on): Likewise.
15673         * tests/test-fstatat.c (includes): Drop pathmax.h.
15674         * tests/test-stat.c (includes): Likewise.
15675         Reported by Bruno Haible.
15676
15677 2011-06-20  Bruno Haible  <bruno@clisp.org>
15678
15679         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
15680         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
15681         * lib/float.c: New file.
15682         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
15683         REPLACE_FLOAT_LDBL.
15684         * modules/float (Files): Add lib/float.c.
15685         (configure.ac): Invoke AC_LIBOBJ.
15686         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
15687
15688 2011-06-20  Bruno Haible  <bruno@clisp.org>
15689
15690         Tests for module 'float'.
15691         * modules/float-tests: New file.
15692         * tests/test-float.c: New file.
15693
15694 2011-06-19  Bruno Haible  <bruno@clisp.org>
15695
15696         isinf: Coding style.
15697         * lib/isinf.c: Use GNU coding style.
15698
15699 2011-06-19  Bruno Haible  <bruno@clisp.org>
15700
15701         linkat test: Avoid test failure on AIX 7.1.
15702         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
15703         * tests/test-link.h (test_link): Likewise.
15704
15705 2011-06-19  Bruno Haible  <bruno@clisp.org>
15706
15707         pread test: Avoid test failure on OpenBSD 4.9.
15708         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
15709
15710 2011-06-19  Bruno Haible  <bruno@clisp.org>
15711
15712         sprintf-posix: Fix test failure on AIX 7.1.
15713         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
15714         * doc/posix-functions/dprintf.texi: Mention limited precision problem
15715         on AIX.
15716         * doc/posix-functions/fprintf.texi: Likewise.
15717         * doc/posix-functions/printf.texi: Likewise.
15718         * doc/posix-functions/snprintf.texi: Likewise.
15719         * doc/posix-functions/sprintf.texi: Likewise.
15720         * doc/posix-functions/vdprintf.texi: Likewise.
15721         * doc/posix-functions/vfprintf.texi: Likewise.
15722         * doc/posix-functions/vprintf.texi: Likewise.
15723         * doc/posix-functions/vsnprintf.texi: Likewise.
15724         * doc/posix-functions/vsprintf.texi: Likewise.
15725
15726 2011-06-19  Bruno Haible  <bruno@clisp.org>
15727
15728         roundl-ieee: Fix test failure on AIX 7.1.
15729         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
15730         * doc/posix-functions/roundl.texi: Mention problem with negative
15731         arguments.
15732
15733 2011-06-19  Bruno Haible  <bruno@clisp.org>
15734
15735         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15736         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
15737         * doc/posix-functions/round.texi: Mention problem with negative
15738         arguments.
15739         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
15740
15741 2011-06-19  Bruno Haible  <bruno@clisp.org>
15742
15743         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15744         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
15745         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
15746         * doc/posix-functions/roundf.texi: Mention problem with negative
15747         arguments.
15748         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
15749
15750 2011-06-19  Bruno Haible  <bruno@clisp.org>
15751
15752         ceilf-ieee: Work around bug on MacOS X 10.5.
15753         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
15754
15755         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
15756         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
15757         IEEE compliant, avoid compiler optimizations.
15758         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15759         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15760         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15761         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15762         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15763         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15764         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15765         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15766         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15767         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15768
15769 2011-06-19  Bruno Haible  <bruno@clisp.org>
15770
15771         ceilf-ieee: Work around bug on AIX 7.1.
15772         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
15773         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
15774
15775 2011-06-19  Bruno Haible  <bruno@clisp.org>
15776
15777         ceil-ieee: Work around bug on AIX 7.1.
15778         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
15779         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
15780
15781 2011-06-18  Bruno Haible  <bruno@clisp.org>
15782
15783         fsync test: Avoid test failure on MacOS X and AIX.
15784         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
15785         EINVAL.
15786
15787 2011-06-18  Bruno Haible  <bruno@clisp.org>
15788
15789         openat, fdopendir tests: Fix link errors.
15790         * modules/openat-tests (Depends-on): Add progname.
15791         * modules/fdopendir-tests (Depends-on): Likewise.
15792         * tests/test-fchownat.c: Include progname.h.
15793         (main): Call set_program_name.
15794         * tests/test-fstatat.c: Include progname.h.
15795         (main): Call set_program_name.
15796         * tests/test-mkdirat.c: Include progname.h.
15797         (main): Call set_program_name.
15798         * tests/test-openat.c: Include progname.h.
15799         (main): Call set_program_name.
15800         * tests/test-unlinkat.c: Include progname.h.
15801         (main): Call set_program_name.
15802         * tests/test-fdopendir.c: Include progname.h.
15803         (main): Call set_program_name.
15804
15805 2011-06-18  Bruno Haible  <bruno@clisp.org>
15806
15807         Doc update.
15808         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
15809         HP-UX.
15810         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
15811
15812 2011-06-18  Bruno Haible  <bruno@clisp.org>
15813
15814         getcwd tests: Avoid compilation error on HP-UX 11.31.
15815         * modules/getcwd-tests (Depends-on): Add pathmax.
15816         * tests/test-getcwd.c: Include pathmax.h.
15817
15818 2011-06-18  Bruno Haible  <bruno@clisp.org>
15819
15820         isfinite, isinf: Fix link error on AIX 6 and 7.
15821         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
15822         needed, also test the macro with a 'float' argument.
15823         * m4/isinf.m4 (gl_ISINF): Likewise.
15824
15825 2011-06-18  Bruno Haible  <bruno@clisp.org>
15826
15827         getloadavg: Don't clobber LIBS. Regression from previous commit.
15828         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
15829         AC_CHECK_LIB from here...
15830         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
15831         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
15832         gl_func_getloadavg_done.
15833         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15834
15835 2011-06-18  Bruno Haible  <bruno@clisp.org>
15836
15837         clean-temp: Improve documentation.
15838         * lib/clean-temp.h: Explain better how to use this module.
15839         Reported by John Darrington <john@darrington.wattle.id.au>.
15840
15841 2011-06-17  Bruno Haible  <bruno@clisp.org>
15842
15843         pread, pwrite: Avoid cc warning on AIX.
15844         * lib/unistd.in.h (pread): Undefine before defining as a macro.
15845         (pwrite): Likewise.
15846
15847 2011-06-17  Bruno Haible  <bruno@clisp.org>
15848
15849         spawn-pipe tests: Fix link error.
15850         * tests/test-spawn-pipe-child.c: Undefine fprintf.
15851         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15852
15853 2011-06-17  Bruno Haible  <bruno@clisp.org>
15854
15855         Tests: Remove unnecessary dependency.
15856         * modules/canonicalize-tests (Depends-on): Remove progname.
15857         * modules/chown-tests (Depends-on): Likewise.
15858         * modules/dirname-tests (Depends-on): Likewise.
15859         * modules/fdopendir-tests (Depends-on): Likewise.
15860         * modules/fdutimensat-tests (Depends-on): Likewise.
15861         * modules/hash-tests (Depends-on): Likewise.
15862         * modules/lchown-tests (Depends-on): Likewise.
15863         * modules/linkat-tests (Depends-on): Likewise.
15864         * modules/renameat-tests (Depends-on): Likewise.
15865         * modules/spawn-pipe-tests (Depends-on): Likewise.
15866         * modules/utimensat-tests (Depends-on): Likewise.
15867
15868 2011-06-17  Bruno Haible  <bruno@clisp.org>
15869
15870         spawn-pipe tests: Fix link error.
15871         * tests/test-spawn-pipe-child.c: Undefine fflush.
15872
15873 2011-06-17  Bruno Haible  <bruno@clisp.org>
15874
15875         Fix tests link errors.
15876         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
15877         * modules/chown-tests (Makefile.am): Don't link test-chown with
15878         LIBINTL.
15879         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
15880         LIBINTL.
15881         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
15882         LIBINTL.
15883         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
15884         LIBINTL.
15885
15886 2011-06-16  Bruno Haible  <bruno@clisp.org>
15887
15888         crypto/gc-sha1: Fix recent regression.
15889         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
15890         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
15891
15892         crypto/gc-md5: Fix recent regression.
15893         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
15894
15895         crypto/gc-md4: Fix recent regression.
15896         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
15897         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
15898
15899         crypto/gc-arctwo: Fix recent regression.
15900         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
15901         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
15902
15903         crypto/gc-rijndael: Fix recent regression.
15904         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
15905         (configure.ac): Invoke AC_LIBOBJ here.
15906         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
15907         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15908
15909         crypto/gc-hmac-sha1: Fix recent regression.
15910         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
15911         (configure.ac): Invoke AC_LIBOBJ here.
15912         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
15913         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15914
15915         crypto/gc-hmac-md5: Fix recent regression.
15916         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
15917         (configure.ac): Invoke AC_LIBOBJ here.
15918         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
15919         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15920
15921         crypto/gc-des: Fix recent regression.
15922         * modules/crypto/gc-des (Files): Remove m4/des.m4.
15923         (configure.ac): Invoke AC_LIBOBJ here.
15924         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
15925         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15926
15927         crypto/gc-arcfour: Fix recent regression.
15928         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
15929         (configure.ac): Invoke AC_LIBOBJ here.
15930         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
15931         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15932
15933 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
15934
15935         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
15936         After the 2011-05-21 change, this macro requires
15937         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
15938         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15939
15940 2011-06-16  Bruno Haible  <bruno@clisp.org>
15941
15942         fprintftime: Move AC_LIBOBJ invocations to module description.
15943         * m4/fprintftime.m4: Remove file.
15944         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
15945         (configure.ac): Remove gl_FPRINTFTIME call.
15946         (Makefile.am): Augment lib_SOURCES.
15947         Reported by Jim Meyering.
15948
15949 2011-06-16  Bruno Haible  <bruno@clisp.org>
15950
15951         tmpfile-safer: Finish 2011-05-23 commit.
15952         * m4/stdio-safer.m4: Really remove file.
15953         Reported by Jim Meyering.
15954
15955 2011-06-16  Bruno Haible  <bruno@clisp.org>
15956
15957         syntax-check: Fix typo.
15958         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
15959         printf-posix.m4.
15960         Reported by Jim Meyering.
15961
15962 2011-06-13  Jim Meyering  <meyering@redhat.com>
15963
15964         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
15965         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
15966
15967 2011-05-23  Bruno Haible  <bruno@clisp.org>
15968
15969         yesno: Move AC_LIBOBJ invocations to module description.
15970         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
15971         * modules/yesno (Makefile.am): Augment lib_SOURCES.
15972
15973 2011-05-23  Bruno Haible  <bruno@clisp.org>
15974
15975         xstrtol: Move AC_LIBOBJ invocations to module description.
15976         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
15977         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
15978
15979 2011-05-23  Bruno Haible  <bruno@clisp.org>
15980
15981         xstrtold: Move AC_LIBOBJ invocations to module description.
15982         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
15983         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
15984
15985 2011-05-23  Bruno Haible  <bruno@clisp.org>
15986
15987         xstrtod: Move AC_LIBOBJ invocations to module description.
15988         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
15989         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
15990
15991 2011-05-23  Bruno Haible  <bruno@clisp.org>
15992
15993         xnanosleep: Move AC_LIBOBJ invocations to module description.
15994         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
15995         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
15996
15997 2011-05-23  Bruno Haible  <bruno@clisp.org>
15998
15999         xgetcwd: Move AC_LIBOBJ invocations to module description.
16000         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
16001         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
16002
16003 2011-05-23  Bruno Haible  <bruno@clisp.org>
16004
16005         xalloc: Move AC_LIBOBJ invocations to module description.
16006         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
16007         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
16008
16009 2011-05-23  Bruno Haible  <bruno@clisp.org>
16010
16011         write-any-file: Move AC_LIBOBJ invocations to module description.
16012         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
16013         invocation.
16014         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
16015
16016 2011-05-23  Bruno Haible  <bruno@clisp.org>
16017
16018         utimens: Move AC_LIBOBJ invocations to module description.
16019         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
16020         * modules/utimens (Makefile.am): Augment lib_SOURCES.
16021
16022 2011-05-23  Bruno Haible  <bruno@clisp.org>
16023
16024         utimecmp: Move AC_LIBOBJ invocations to module description.
16025         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
16026         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
16027
16028 2011-05-23  Bruno Haible  <bruno@clisp.org>
16029
16030         userspec: Move AC_LIBOBJ invocations to module description.
16031         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
16032         * modules/userspec (Makefile.am): Augment lib_SOURCES.
16033
16034 2011-05-23  Bruno Haible  <bruno@clisp.org>
16035
16036         unlinkdir: Move AC_LIBOBJ invocations to module description.
16037         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
16038         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
16039
16040 2011-05-23  Bruno Haible  <bruno@clisp.org>
16041
16042         unistd-safer: Move AC_LIBOBJ invocations to module description.
16043         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
16044         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
16045
16046 2011-05-23  Bruno Haible  <bruno@clisp.org>
16047
16048         tempname: Move AC_LIBOBJ invocations to module description.
16049         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
16050         * modules/tempname (Makefile.am): Augment lib_SOURCES.
16051
16052 2011-05-23  Bruno Haible  <bruno@clisp.org>
16053
16054         strftime: Move AC_LIBOBJ invocations to module description.
16055         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
16056         * modules/strftime (Makefile.am): Augment lib_SOURCES.
16057
16058 2011-05-23  Bruno Haible  <bruno@clisp.org>
16059
16060         stdlib-safer: Move AC_LIBOBJ invocations to module description.
16061         * m4/stdlib-safer.m4: Remove file.
16062         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
16063         (configure.ac): Remove gl_STDLIB_SAFER call.
16064         (Makefile.am): Augment lib_SOURCES.
16065
16066 2011-05-23  Bruno Haible  <bruno@clisp.org>
16067
16068         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
16069         * m4/stdio-safer.m4: Remove file.
16070         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
16071         (configure.ac): Remove gl_TMPFILE_SAFER call.
16072         (Makefile.am): Augment lib_SOURCES.
16073
16074 2011-05-23  Bruno Haible  <bruno@clisp.org>
16075
16076         popen-safer: Move AC_LIBOBJ invocations to module description.
16077         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
16078         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
16079         (configure.ac): Remove gl_POPEN_SAFER call.
16080         (Makefile.am): Augment lib_SOURCES.
16081
16082 2011-05-23  Bruno Haible  <bruno@clisp.org>
16083
16084         freopen-safer: Move AC_LIBOBJ invocations to module description.
16085         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
16086         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
16087         (configure.ac): Remove gl_FREOPEN_SAFER call.
16088         (Makefile.am): Augment lib_SOURCES.
16089
16090 2011-05-23  Bruno Haible  <bruno@clisp.org>
16091
16092         fopen-safer: Move AC_LIBOBJ invocations to module description.
16093         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
16094         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
16095         (configure.ac): Remove gl_FOPEN_SAFER call.
16096         (Makefile.am): Augment lib_SOURCES.
16097
16098 2011-05-23  Bruno Haible  <bruno@clisp.org>
16099
16100         crypto/sha512: Move AC_LIBOBJ invocations to module description.
16101         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
16102         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
16103
16104 2011-05-23  Bruno Haible  <bruno@clisp.org>
16105
16106         crypto/sha256: Move AC_LIBOBJ invocations to module description.
16107         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
16108         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
16109
16110 2011-05-23  Bruno Haible  <bruno@clisp.org>
16111
16112         crypto/sha1: Move AC_LIBOBJ invocations to module description.
16113         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
16114         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
16115
16116 2011-05-23  Bruno Haible  <bruno@clisp.org>
16117
16118         settime: Move AC_LIBOBJ invocations to module description.
16119         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
16120         * modules/settime (Makefile.am): Augment lib_SOURCES.
16121
16122 2011-05-23  Bruno Haible  <bruno@clisp.org>
16123
16124         savedir: Move AC_LIBOBJ invocations to module description.
16125         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
16126         * modules/savedir (Makefile.am): Augment lib_SOURCES.
16127
16128 2011-05-23  Bruno Haible  <bruno@clisp.org>
16129
16130         save-cwd: Move AC_LIBOBJ invocations to module description.
16131         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
16132         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
16133
16134 2011-05-23  Bruno Haible  <bruno@clisp.org>
16135
16136         same: Move AC_LIBOBJ invocations to module description.
16137         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
16138         * modules/same (Makefile.am): Augment lib_SOURCES.
16139
16140 2011-05-23  Bruno Haible  <bruno@clisp.org>
16141
16142         safe-write: Move AC_LIBOBJ invocations to module description.
16143         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
16144         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
16145         instead of gl_SAFE_WRITE.
16146         (Makefile.am): Augment lib_SOURCES.
16147
16148 2011-05-23  Bruno Haible  <bruno@clisp.org>
16149
16150         safe-read: Move AC_LIBOBJ invocations to module description.
16151         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
16152         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
16153         of gl_SAFE_READ.
16154         (Makefile.am): Augment lib_SOURCES.
16155
16156 2011-05-23  Bruno Haible  <bruno@clisp.org>
16157
16158         safe-alloc: Move AC_LIBOBJ invocations to module description.
16159         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
16160         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
16161
16162 2011-05-23  Bruno Haible  <bruno@clisp.org>
16163
16164         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
16165         * m4/rijndael.m4: Remove file.
16166         * modules/crypto/rijndael (Files): Remove it.
16167         (configure.ac): Remove gl_RIJNDAEL call.
16168         (Makefile.am): Augment lib_SOURCES.
16169
16170 2011-05-23  Bruno Haible  <bruno@clisp.org>
16171
16172         readtokens: Move AC_LIBOBJ invocations to module description.
16173         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
16174         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
16175
16176 2011-05-23  Bruno Haible  <bruno@clisp.org>
16177
16178         read-file: Move AC_LIBOBJ invocations to module description.
16179         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
16180         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
16181         of gl_FUNC_READ_FILE.
16182         (Makefile.am): Augment lib_SOURCES.
16183
16184 2011-05-23  Bruno Haible  <bruno@clisp.org>
16185
16186         quotearg: Move AC_LIBOBJ invocations to module description.
16187         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
16188         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
16189
16190 2011-05-23  Bruno Haible  <bruno@clisp.org>
16191
16192         quote: Move AC_LIBOBJ invocations to module description.
16193         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
16194         * modules/quote (Makefile.am): Augment lib_SOURCES.
16195
16196 2011-05-23  Bruno Haible  <bruno@clisp.org>
16197
16198         posixver: Move AC_LIBOBJ invocations to module description.
16199         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
16200         * modules/posixver (Makefile.am): Augment lib_SOURCES.
16201
16202 2011-05-23  Bruno Haible  <bruno@clisp.org>
16203
16204         posixtm: Move AC_LIBOBJ invocations to module description.
16205         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
16206         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
16207
16208 2011-05-23  Bruno Haible  <bruno@clisp.org>
16209
16210         physmem: Move AC_LIBOBJ invocations to module description.
16211         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
16212         * modules/physmem (Makefile.am): Augment lib_SOURCES.
16213
16214 2011-05-23  Bruno Haible  <bruno@clisp.org>
16215
16216         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
16217         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
16218         invocation.
16219         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
16220
16221 2011-05-23  Bruno Haible  <bruno@clisp.org>
16222
16223         mpsort: Move AC_LIBOBJ invocations to module description.
16224         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
16225         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
16226
16227 2011-05-23  Bruno Haible  <bruno@clisp.org>
16228
16229         modechange: Move AC_LIBOBJ invocations to module description.
16230         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
16231         * modules/modechange (Makefile.am): Augment lib_SOURCES.
16232
16233 2011-05-23  Bruno Haible  <bruno@clisp.org>
16234
16235         mkdir-p: Move AC_LIBOBJ invocations to module description.
16236         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
16237         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
16238
16239 2011-05-23  Bruno Haible  <bruno@clisp.org>
16240
16241         mkancesdirs: Move AC_LIBOBJ invocations to module description.
16242         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
16243         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
16244
16245 2011-05-23  Bruno Haible  <bruno@clisp.org>
16246
16247         mgetgroups: Move AC_LIBOBJ invocations to module description.
16248         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
16249         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
16250
16251 2011-05-23  Bruno Haible  <bruno@clisp.org>
16252
16253         memxor: Move AC_LIBOBJ invocations to module description.
16254         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
16255         * modules/memxor (Makefile.am): Augment lib_SOURCES.
16256
16257 2011-05-23  Bruno Haible  <bruno@clisp.org>
16258
16259         memcoll: Move AC_LIBOBJ invocations to module description.
16260         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
16261         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
16262
16263 2011-05-23  Bruno Haible  <bruno@clisp.org>
16264
16265         memcasecmp: Move AC_LIBOBJ invocations to module description.
16266         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
16267         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
16268
16269 2011-05-23  Bruno Haible  <bruno@clisp.org>
16270
16271         crypto/md5: Move AC_LIBOBJ invocations to module description.
16272         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
16273         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
16274
16275 2011-05-23  Bruno Haible  <bruno@clisp.org>
16276
16277         crypto/md4: Move AC_LIBOBJ invocations to module description.
16278         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
16279         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
16280
16281 2011-05-23  Bruno Haible  <bruno@clisp.org>
16282
16283         crypto/md2: Move AC_LIBOBJ invocations to module description.
16284         * m4/md2.m4: Remove file.
16285         * modules/crypto/md2 (Files): Remove it.
16286         (configure.ac): Remove gl_MD2 call.
16287         (Makefile.am): Augment lib_SOURCES.
16288
16289 2011-05-23  Bruno Haible  <bruno@clisp.org>
16290
16291         long-options: Move AC_LIBOBJ invocations to module description.
16292         * m4/long-options.m4: Remove file.
16293         * modules/long-options (Files): Remove it.
16294         (configure.ac): Remove gl_LONG_OPTIONS call.
16295         (Makefile.am): Augment lib_SOURCES.
16296
16297 2011-05-23  Bruno Haible  <bruno@clisp.org>
16298
16299         i-ring: Move AC_LIBOBJ invocations to module description.
16300         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
16301         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
16302
16303 2011-05-23  Bruno Haible  <bruno@clisp.org>
16304
16305         idcache: Move AC_LIBOBJ invocations to module description.
16306         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
16307         * modules/idcache (Makefile.am): Augment lib_SOURCES.
16308
16309 2011-05-23  Bruno Haible  <bruno@clisp.org>
16310
16311         human: Move AC_LIBOBJ invocations to module description.
16312         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
16313         * modules/human (Makefile.am): Augment lib_SOURCES.
16314
16315 2011-05-23  Bruno Haible  <bruno@clisp.org>
16316
16317         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
16318         * m4/hmac-sha1.m4: Remove file.
16319         * modules/crypto/hmac-sha1 (Files): Remove it.
16320         (configure.ac): Remove gl_HMAC_SHA1 call.
16321         (Makefile.am): Augment lib_SOURCES.
16322
16323 2011-05-23  Bruno Haible  <bruno@clisp.org>
16324
16325         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
16326         * m4/hmac-md5.m4: Remove file.
16327         * modules/crypto/hmac-md5 (Files): Remove it.
16328         (configure.ac): Remove gl_HMAC_MD5 call.
16329         (Makefile.am): Augment lib_SOURCES.
16330
16331 2011-05-23  Bruno Haible  <bruno@clisp.org>
16332
16333         hash: Move AC_LIBOBJ invocations to module description.
16334         * m4/hash.m4: Remove file.
16335         * modules/hash (Files): Remove it.
16336         (configure.ac): Remove gl_HASH call.
16337         (Makefile.am): Augment lib_SOURCES.
16338
16339 2011-05-23  Bruno Haible  <bruno@clisp.org>
16340
16341         hard-locale: Move AC_LIBOBJ invocations to module description.
16342         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
16343         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
16344
16345 2011-05-23  Bruno Haible  <bruno@clisp.org>
16346
16347         getugroups: Move AC_LIBOBJ invocations to module description.
16348         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
16349         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
16350
16351 2011-05-23  Bruno Haible  <bruno@clisp.org>
16352
16353         gettime: Move AC_LIBOBJ invocations to module description.
16354         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
16355         * modules/gettime (Makefile.am): Augment lib_SOURCES.
16356
16357 2011-05-23  Bruno Haible  <bruno@clisp.org>
16358
16359         getndelim2: Move AC_LIBOBJ invocations to module description.
16360         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
16361         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
16362
16363 2011-05-23  Bruno Haible  <bruno@clisp.org>
16364
16365         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
16366         * m4/gc-pbkdf2-sha1.m4: Remove file.
16367         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
16368         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
16369         (Makefile.am): Augment lib_SOURCES.
16370
16371 2011-05-23  Bruno Haible  <bruno@clisp.org>
16372
16373         fts: Move AC_LIBOBJ invocations to module description.
16374         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
16375         * modules/fts (configure.ac): ... to here.
16376
16377 2011-05-23  Bruno Haible  <bruno@clisp.org>
16378
16379         file-type: Move AC_LIBOBJ invocations to module description.
16380         * m4/file-type.m4: Remove file.
16381         * modules/file-type (Files): Remove it.
16382         (configure.ac): Remove gl_FILE_TYPE call.
16383         (Makefile.am): Augment lib_SOURCES.
16384
16385 2011-05-23  Bruno Haible  <bruno@clisp.org>
16386
16387         filenamecat*: Respect rules for use of AC_LIBOBJ.
16388         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
16389         Remove AC_LIBOBJ invocation.
16390         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
16391         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
16392
16393 2011-05-23  Bruno Haible  <bruno@clisp.org>
16394
16395         filemode: Move AC_LIBOBJ invocations to module description.
16396         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
16397         * modules/filemode (Makefile.am): Augment lib_SOURCES.
16398
16399 2011-05-23  Bruno Haible  <bruno@clisp.org>
16400
16401         openat-safer: Move AC_LIBOBJ invocations to module description.
16402         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
16403         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
16404
16405 2011-05-23  Bruno Haible  <bruno@clisp.org>
16406
16407         fcntl-safer: Move AC_LIBOBJ invocations to module description.
16408         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
16409         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
16410
16411 2011-05-23  Bruno Haible  <bruno@clisp.org>
16412
16413         exclude: Move AC_LIBOBJ invocations to module description.
16414         * m4/exclude.m4: Remove file.
16415         * modules/exclude (Files): Remove it.
16416         (configure.ac): Remove gl_EXCLUDE call.
16417         (Makefile.am): Augment lib_SOURCES.
16418
16419 2011-05-23  Bruno Haible  <bruno@clisp.org>
16420
16421         dirname*: Respect rules for use of AC_LIBOBJ.
16422         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
16423         invocations.
16424         * modules/dirname (Makefile.am): Augment lib_SOURCES.
16425         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
16426
16427 2011-05-23  Bruno Haible  <bruno@clisp.org>
16428
16429         dirent-safer: Move AC_LIBOBJ invocations to module description.
16430         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
16431         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
16432
16433 2011-05-23  Bruno Haible  <bruno@clisp.org>
16434
16435         crypto/des: Move AC_LIBOBJ invocations to module description.
16436         * m4/des.m4: Remove file.
16437         * modules/crypto/des (Files): Remove it.
16438         (configure.ac): Remove gl_DES call.
16439         (Makefile.am): Augment lib_SOURCES.
16440
16441 2011-05-23  Bruno Haible  <bruno@clisp.org>
16442
16443         cycle-check: Move AC_LIBOBJ invocations to module description.
16444         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
16445         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
16446
16447 2011-05-23  Bruno Haible  <bruno@clisp.org>
16448
16449         c-strtold: Move AC_LIBOBJ invocations to module description.
16450         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
16451         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
16452
16453 2011-05-23  Bruno Haible  <bruno@clisp.org>
16454
16455         c-strtod: Move AC_LIBOBJ invocations to module description.
16456         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
16457         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
16458
16459 2011-05-23  Bruno Haible  <bruno@clisp.org>
16460
16461         crc: Move AC_LIBOBJ invocations to module description.
16462         * m4/crc.m4: Remove file.
16463         * modules/crc (Files): Remove it.
16464         (configure.ac): Remove gl_CRC call.
16465         (Makefile.am): Augment lib_SOURCES.
16466
16467 2011-05-23  Bruno Haible  <bruno@clisp.org>
16468
16469         close-stream: Move AC_LIBOBJ invocations to module description.
16470         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
16471         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
16472
16473 2011-05-23  Bruno Haible  <bruno@clisp.org>
16474
16475         closeout: Move AC_LIBOBJ invocations to module description.
16476         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
16477         * modules/closeout (Makefile.am): Augment lib_SOURCES.
16478
16479 2011-05-23  Bruno Haible  <bruno@clisp.org>
16480
16481         closein: Move AC_LIBOBJ invocations to module description.
16482         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
16483         * modules/closein (Makefile.am): Augment lib_SOURCES.
16484
16485 2011-05-23  Bruno Haible  <bruno@clisp.org>
16486
16487         cloexec: Move AC_LIBOBJ invocations to module description.
16488         * m4/cloexec.m4: Remove file.
16489         * modules/cloexec (Files): Remove it.
16490         (configure.ac): Remove gl_CLOEXEC call.
16491         (Makefile.am): Augment lib_SOURCES.
16492
16493 2011-05-23  Bruno Haible  <bruno@clisp.org>
16494
16495         check-version: Move AC_LIBOBJ invocations to module description.
16496         * m4/check-version.m4: Remove file.
16497         * modules/check-version (Files): Remove it.
16498         (configure.ac): Remove gl_CHECK_VERSION call.
16499         (Makefile.am): Augment lib_SOURCES.
16500
16501 2011-05-23  Bruno Haible  <bruno@clisp.org>
16502
16503         chdir-safer: Move AC_LIBOBJ invocations to module description.
16504         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
16505         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
16506
16507 2011-05-23  Bruno Haible  <bruno@clisp.org>
16508
16509         canonicalize: Move AC_LIBOBJ invocations to module description.
16510         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
16511         AC_LIBOBJ invocation.
16512         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
16513
16514 2011-05-23  Bruno Haible  <bruno@clisp.org>
16515
16516         canon-host: Move AC_LIBOBJ invocations to module description.
16517         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
16518         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
16519         instead of gl_CANON_HOST.
16520         (Makefile.am): Augment lib_SOURCES.
16521
16522 2011-05-23  Bruno Haible  <bruno@clisp.org>
16523
16524         backupfile: Move AC_LIBOBJ invocations to module description.
16525         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
16526         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
16527
16528 2011-05-23  Bruno Haible  <bruno@clisp.org>
16529
16530         argmatch: Move AC_LIBOBJ invocations to module description.
16531         * m4/argmatch.m4: Remove file.
16532         * modules/argmatch (Files): Remove it.
16533         (configure.ac): Remove gl_ARGMATCH call.
16534         (Makefile.am): Augment lib_SOURCES.
16535
16536 2011-05-23  Bruno Haible  <bruno@clisp.org>
16537
16538         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
16539         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
16540         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
16541
16542 2011-05-23  Bruno Haible  <bruno@clisp.org>
16543
16544         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
16545         * m4/arcfour.m4: Remove file.
16546         * modules/crypto/arcfour (Files): Remove it.
16547         (configure.ac): Remove gl_ARCFOUR call.
16548         (Makefile.am): Augment lib_SOURCES.
16549
16550 2011-05-22  Bruno Haible  <bruno@clisp.org>
16551
16552         write: Move AC_LIBOBJ invocations to module description.
16553         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
16554         * modules/write (configure.ac): ... to here.
16555
16556 2011-05-22  Bruno Haible  <bruno@clisp.org>
16557
16558         wmemset: Move AC_LIBOBJ invocations to module description.
16559         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
16560         here...
16561         * modules/wmemset (configure.ac): ... to here.
16562
16563 2011-05-22  Bruno Haible  <bruno@clisp.org>
16564
16565         wmemmove: Move AC_LIBOBJ invocations to module description.
16566         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
16567         here...
16568         * modules/wmemmove (configure.ac): ... to here.
16569
16570 2011-05-22  Bruno Haible  <bruno@clisp.org>
16571
16572         wmemcpy: Move AC_LIBOBJ invocations to module description.
16573         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
16574         here...
16575         * modules/wmemcpy (configure.ac): ... to here.
16576
16577 2011-05-22  Bruno Haible  <bruno@clisp.org>
16578
16579         wmemcmp: Move AC_LIBOBJ invocations to module description.
16580         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
16581         here...
16582         * modules/wmemcmp (configure.ac): ... to here.
16583
16584 2011-05-22  Bruno Haible  <bruno@clisp.org>
16585
16586         wmemchr: Move AC_LIBOBJ invocations to module description.
16587         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
16588         here...
16589         * modules/wmemchr (configure.ac): ... to here.
16590
16591 2011-05-22  Bruno Haible  <bruno@clisp.org>
16592
16593         wcswidth: Move AC_LIBOBJ invocations to module description.
16594         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
16595         here...
16596         * modules/wcswidth (configure.ac): ... to here.
16597
16598 2011-05-22  Bruno Haible  <bruno@clisp.org>
16599
16600         wcwidth: Respect rules for use of AC_LIBOBJ.
16601         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
16602         invocation from here...
16603         * modules/wcwidth (configure.ac): ... to here.
16604         (Depends-on): Update conditions.
16605
16606 2011-05-22  Bruno Haible  <bruno@clisp.org>
16607
16608         wctype: Move AC_LIBOBJ invocations to module description.
16609         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
16610         invocation from here...
16611         * modules/wctype (configure.ac): ... to here.
16612         (Depends-on): Update conditions.
16613
16614 2011-05-22  Bruno Haible  <bruno@clisp.org>
16615
16616         wctrans: Move AC_LIBOBJ invocations to module description.
16617         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
16618         invocation from here...
16619         * modules/wctrans (configure.ac): ... to here.
16620
16621 2011-05-22  Bruno Haible  <bruno@clisp.org>
16622
16623         wctomb: Move AC_LIBOBJ invocations to module description.
16624         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
16625         invocations from here...
16626         * modules/wctomb (configure.ac): ... to here.
16627
16628 2011-05-22  Bruno Haible  <bruno@clisp.org>
16629
16630         wctob: Move AC_LIBOBJ invocations to module description.
16631         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
16632         gl_PREREQ_WCTOB invocations from here...
16633         * modules/wctob (configure.ac): ... to here.
16634         (Depends-on): Update conditions.
16635
16636 2011-05-22  Bruno Haible  <bruno@clisp.org>
16637
16638         wcsxfrm: Move AC_LIBOBJ invocations to module description.
16639         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
16640         here...
16641         * modules/wcsxfrm (configure.ac): ... to here.
16642
16643 2011-05-22  Bruno Haible  <bruno@clisp.org>
16644
16645         wcstok: Move AC_LIBOBJ invocations to module description.
16646         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
16647         * modules/wcstok (configure.ac): ... to here.
16648
16649 2011-05-22  Bruno Haible  <bruno@clisp.org>
16650
16651         wcsstr: Move AC_LIBOBJ invocations to module description.
16652         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
16653         * modules/wcsstr (configure.ac): ... to here.
16654
16655 2011-05-22  Bruno Haible  <bruno@clisp.org>
16656
16657         wcsspn: Move AC_LIBOBJ invocations to module description.
16658         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
16659         * modules/wcsspn (configure.ac): ... to here.
16660
16661 2011-05-22  Bruno Haible  <bruno@clisp.org>
16662
16663         wcsrtombs: Move AC_LIBOBJ invocations to module description.
16664         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
16665         gl_PREREQ_WCSRTOMBS invocations from here...
16666         * modules/wcsrtombs (configure.ac): ... to here.
16667
16668 2011-05-22  Bruno Haible  <bruno@clisp.org>
16669
16670         wcsrchr: Move AC_LIBOBJ invocations to module description.
16671         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
16672         here...
16673         * modules/wcsrchr (configure.ac): ... to here.
16674
16675 2011-05-22  Bruno Haible  <bruno@clisp.org>
16676
16677         wcspbrk: Move AC_LIBOBJ invocations to module description.
16678         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
16679         here...
16680         * modules/wcspbrk (configure.ac): ... to here.
16681
16682 2011-05-22  Bruno Haible  <bruno@clisp.org>
16683
16684         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
16685         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
16686         gl_PREREQ_WCSNRTOMBS invocations from here...
16687         * modules/wcsnrtombs (configure.ac): ... to here.
16688
16689 2011-05-22  Bruno Haible  <bruno@clisp.org>
16690
16691         wcsnlen: Move AC_LIBOBJ invocations to module description.
16692         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
16693         here...
16694         * modules/wcsnlen (configure.ac): ... to here.
16695
16696 2011-05-22  Bruno Haible  <bruno@clisp.org>
16697
16698         wcsncpy: Move AC_LIBOBJ invocations to module description.
16699         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
16700         here...
16701         * modules/wcsncpy (configure.ac): ... to here.
16702
16703 2011-05-22  Bruno Haible  <bruno@clisp.org>
16704
16705         wcsncmp: Move AC_LIBOBJ invocations to module description.
16706         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
16707         here...
16708         * modules/wcsncmp (configure.ac): ... to here.
16709
16710 2011-05-22  Bruno Haible  <bruno@clisp.org>
16711
16712         wcsncat: Move AC_LIBOBJ invocations to module description.
16713         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
16714         here...
16715         * modules/wcsncat (configure.ac): ... to here.
16716
16717 2011-05-22  Bruno Haible  <bruno@clisp.org>
16718
16719         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
16720         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
16721         from here...
16722         * modules/wcsncasecmp (configure.ac): ... to here.
16723
16724 2011-05-22  Bruno Haible  <bruno@clisp.org>
16725
16726         wcslen: Move AC_LIBOBJ invocations to module description.
16727         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
16728         * modules/wcslen (configure.ac): ... to here.
16729
16730 2011-05-22  Bruno Haible  <bruno@clisp.org>
16731
16732         wcsdup: Move AC_LIBOBJ invocations to module description.
16733         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
16734         * modules/wcsdup (configure.ac): ... to here.
16735
16736 2011-05-22  Bruno Haible  <bruno@clisp.org>
16737
16738         wcscspn: Move AC_LIBOBJ invocations to module description.
16739         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
16740         here...
16741         * modules/wcscspn (configure.ac): ... to here.
16742
16743 2011-05-22  Bruno Haible  <bruno@clisp.org>
16744
16745         wcscpy: Move AC_LIBOBJ invocations to module description.
16746         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
16747         * modules/wcscpy (configure.ac): ... to here.
16748
16749 2011-05-22  Bruno Haible  <bruno@clisp.org>
16750
16751         wcscoll: Move AC_LIBOBJ invocations to module description.
16752         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
16753         here...
16754         * modules/wcscoll (configure.ac): ... to here.
16755
16756 2011-05-22  Bruno Haible  <bruno@clisp.org>
16757
16758         wcscmp: Move AC_LIBOBJ invocations to module description.
16759         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
16760         * modules/wcscmp (configure.ac): ... to here.
16761
16762 2011-05-22  Bruno Haible  <bruno@clisp.org>
16763
16764         wcschr: Move AC_LIBOBJ invocations to module description.
16765         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
16766         * modules/wcschr (configure.ac): ... to here.
16767
16768 2011-05-22  Bruno Haible  <bruno@clisp.org>
16769
16770         wcscat: Move AC_LIBOBJ invocations to module description.
16771         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
16772         * modules/wcscat (configure.ac): ... to here.
16773
16774 2011-05-22  Bruno Haible  <bruno@clisp.org>
16775
16776         wcscasecmp: Move AC_LIBOBJ invocations to module description.
16777         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
16778         here...
16779         * modules/wcscasecmp (configure.ac): ... to here.
16780
16781 2011-05-22  Bruno Haible  <bruno@clisp.org>
16782
16783         wcrtomb: Move AC_LIBOBJ invocations to module description.
16784         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
16785         invocations from here...
16786         * modules/wcrtomb (configure.ac): ... to here.
16787
16788 2011-05-22  Bruno Haible  <bruno@clisp.org>
16789
16790         wcpncpy: Move AC_LIBOBJ invocations to module description.
16791         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
16792         here...
16793         * modules/wcpncpy (configure.ac): ... to here.
16794
16795 2011-05-22  Bruno Haible  <bruno@clisp.org>
16796
16797         wcpcpy: Move AC_LIBOBJ invocations to module description.
16798         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
16799         * modules/wcpcpy (configure.ac): ... to here.
16800
16801 2011-05-22  Bruno Haible  <bruno@clisp.org>
16802
16803         waitpid: Move AC_LIBOBJ invocations to module description.
16804         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
16805         invocation from here...
16806         * modules/waitpid (configure.ac): ... to here.
16807
16808 2011-05-22  Bruno Haible  <bruno@clisp.org>
16809
16810         utimensat: Move AC_LIBOBJ invocations to module description.
16811         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
16812         here...
16813         * modules/utimensat (configure.ac): ... to here.
16814
16815 2011-05-22  Bruno Haible  <bruno@clisp.org>
16816
16817         usleep: Move AC_LIBOBJ invocations to module description.
16818         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
16819         here...
16820         * modules/usleep (configure.ac): ... to here.
16821
16822 2011-05-22  Bruno Haible  <bruno@clisp.org>
16823
16824         unlockpt: Move AC_LIBOBJ invocations to module description.
16825         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
16826         gl_PREREQ_UNLOCKPT invocations from here...
16827         * modules/unlockpt (configure.ac): ... to here.
16828
16829 2011-05-22  Bruno Haible  <bruno@clisp.org>
16830
16831         unlink: Respect rules for use of AC_LIBOBJ.
16832         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
16833         * modules/unlink (configure.ac): ... to here.
16834
16835 2011-05-22  Bruno Haible  <bruno@clisp.org>
16836
16837         uname: Move AC_LIBOBJ invocations to module description.
16838         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
16839         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
16840         here...
16841         * modules/uname (configure.ac): ... to here.
16842
16843 2011-05-22  Bruno Haible  <bruno@clisp.org>
16844
16845         ttyname_r: Move AC_LIBOBJ invocations to module description.
16846         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
16847         gl_PREREQ_TTYNAME_R invocations from here...
16848         * modules/ttyname_r (configure.ac): ... to here.
16849
16850 2011-05-22  Bruno Haible  <bruno@clisp.org>
16851
16852         tsearch: Move AC_LIBOBJ invocations to module description.
16853         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
16854         invocations from here...
16855         * modules/tsearch (configure.ac): ... to here.
16856
16857 2011-05-22  Bruno Haible  <bruno@clisp.org>
16858
16859         towctrans: Move AC_LIBOBJ invocations to module description.
16860         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
16861         AC_LIBOBJ invocation from here...
16862         * modules/towctrans (configure.ac): ... to here.
16863
16864 2011-05-22  Bruno Haible  <bruno@clisp.org>
16865
16866         tmpfile: Move AC_LIBOBJ invocations to module description.
16867         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
16868         invocations from here...
16869         * modules/tmpfile (configure.ac): ... to here.
16870
16871 2011-05-22  Bruno Haible  <bruno@clisp.org>
16872
16873         times: Move AC_LIBOBJ invocations to module description.
16874         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
16875         * modules/times (configure.ac): ... to here.
16876
16877 2011-05-22  Bruno Haible  <bruno@clisp.org>
16878
16879         time_r: Move AC_LIBOBJ invocations to module description.
16880         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
16881         invocations from here...
16882         * modules/time_r (configure.ac): ... to here.
16883
16884 2011-05-22  Bruno Haible  <bruno@clisp.org>
16885
16886         timegm: Move AC_LIBOBJ invocations to module description.
16887         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
16888         invocations from here...
16889         * modules/timegm (configure.ac): ... to here.
16890
16891 2011-05-22  Bruno Haible  <bruno@clisp.org>
16892
16893         tcgetsid: Move AC_LIBOBJ invocations to module description.
16894         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
16895         and gl_PREREQ_TCGETSID invocations from here...
16896         * modules/tcgetsid (configure.ac): ... to here.
16897         (Depends-on): Update conditions.
16898
16899 2011-05-22  Bruno Haible  <bruno@clisp.org>
16900
16901         symlinkat: Move AC_LIBOBJ invocations to module description.
16902         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
16903         here...
16904         * modules/symlinkat (configure.ac): ... to here.
16905
16906 2011-05-22  Bruno Haible  <bruno@clisp.org>
16907
16908         symlink: Move AC_LIBOBJ invocations to module description.
16909         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
16910         here...
16911         * modules/symlink (configure.ac): ... to here.
16912
16913 2011-05-22  Bruno Haible  <bruno@clisp.org>
16914
16915         strverscmp: Move AC_LIBOBJ invocations to module description.
16916         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
16917         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
16918         from here...
16919         * modules/strverscmp (configure.ac): ... to here.
16920
16921 2011-05-22  Bruno Haible  <bruno@clisp.org>
16922
16923         strtok_r: Move AC_LIBOBJ invocations to module description.
16924         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
16925         and gl_PREREQ_STRTOK_R invocations from here...
16926         * modules/strtok_r (configure.ac): ... to here.
16927         (Depends-on): Update conditions.
16928
16929 2011-05-22  Bruno Haible  <bruno@clisp.org>
16930
16931         strtoumax: Move AC_LIBOBJ invocations to module description.
16932         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
16933         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
16934         from here...
16935         * modules/strtoumax (configure.ac): ... to here.
16936
16937 2011-05-22  Bruno Haible  <bruno@clisp.org>
16938
16939         strtoimax: Move AC_LIBOBJ invocations to module description.
16940         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
16941         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
16942         from here...
16943         * modules/strtoimax (configure.ac): ... to here.
16944
16945 2011-05-22  Bruno Haible  <bruno@clisp.org>
16946
16947         strtoull: Move AC_LIBOBJ invocations to module description.
16948         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
16949         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
16950         from here...
16951         * modules/strtoull (configure.ac): ... to here.
16952
16953 2011-05-22  Bruno Haible  <bruno@clisp.org>
16954
16955         strtoll: Move AC_LIBOBJ invocations to module description.
16956         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
16957         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
16958         here...
16959         * modules/strtoll (configure.ac): ... to here.
16960
16961 2011-05-22  Bruno Haible  <bruno@clisp.org>
16962
16963         strtoul: Move AC_LIBOBJ invocations to module description.
16964         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
16965         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16966         * modules/strtoul (configure.ac): ... to here.
16967
16968 2011-05-22  Bruno Haible  <bruno@clisp.org>
16969
16970         strtol: Move AC_LIBOBJ invocations to module description.
16971         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
16972         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16973         * modules/strtol (configure.ac): ... to here.
16974
16975 2011-05-22  Bruno Haible  <bruno@clisp.org>
16976
16977         strtod: Move AC_LIBOBJ invocations to module description.
16978         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
16979         invocations from here...
16980         * modules/strtod (configure.ac): ... to here.
16981
16982 2011-05-22  Bruno Haible  <bruno@clisp.org>
16983
16984         strstr*: Move AC_LIBOBJ invocations to module description.
16985         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
16986         invocations from here...
16987         * modules/strstr-simple (configure.ac): ... to here.
16988         * modules/strstr (configure.ac): ... and here.
16989
16990 2011-05-22  Bruno Haible  <bruno@clisp.org>
16991
16992         strsignal: Move AC_LIBOBJ invocations to module description.
16993         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
16994         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
16995         * modules/strsignal (configure.ac): ... to here.
16996         (Depends-on): Update conditions.
16997
16998 2011-05-22  Bruno Haible  <bruno@clisp.org>
16999
17000         strsep: Move AC_LIBOBJ invocations to module description.
17001         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
17002         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
17003         here...
17004         * modules/strsep (configure.ac): ... to here.
17005
17006 2011-05-22  Bruno Haible  <bruno@clisp.org>
17007
17008         strptime: Move AC_LIBOBJ invocations to module description.
17009         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
17010         gl_PREREQ_STRPTIME invocations from here...
17011         * modules/strptime (configure.ac): ... to here.
17012
17013 2011-05-22  Bruno Haible  <bruno@clisp.org>
17014
17015         strpbrk: Move AC_LIBOBJ invocations to module description.
17016         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
17017         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
17018         here...
17019         * modules/strpbrk (configure.ac): ... to here.
17020
17021 2011-05-22  Bruno Haible  <bruno@clisp.org>
17022
17023         strnlen: Move AC_LIBOBJ invocations to module description.
17024         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
17025         invocations from here...
17026         * modules/strnlen (configure.ac): ... to here.
17027
17028 2011-05-22  Bruno Haible  <bruno@clisp.org>
17029
17030         strndup: Move AC_LIBOBJ invocations to module description.
17031         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
17032         invocations from here...
17033         * modules/strndup (configure.ac): ... to here.
17034         (Depends-on): Update conditions.
17035
17036 2011-05-22  Bruno Haible  <bruno@clisp.org>
17037
17038         strncat: Move AC_LIBOBJ invocations to module description.
17039         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
17040         invocations from here...
17041         * modules/strncat (configure.ac): ... to here.
17042
17043 2011-05-22  Bruno Haible  <bruno@clisp.org>
17044
17045         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
17046         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
17047         invocations from here...
17048         * modules/strdup (configure.ac): ... to here.
17049         * modules/strdup-posix (configure.ac): ... and here.
17050
17051 2011-05-22  Bruno Haible  <bruno@clisp.org>
17052
17053         strcspn: Move AC_LIBOBJ invocations to module description.
17054         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
17055         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
17056         here...
17057         * modules/strcspn (configure.ac): ... to here.
17058
17059 2011-05-22  Bruno Haible  <bruno@clisp.org>
17060
17061         strchrnul: Move AC_LIBOBJ invocations to module description.
17062         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
17063         gl_PREREQ_STRCHRNUL invocations from here...
17064         * modules/strchrnul (configure.ac): ... to here.
17065
17066 2011-05-22  Bruno Haible  <bruno@clisp.org>
17067
17068         strcasestr*: Move AC_LIBOBJ invocations to module description.
17069         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17070         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
17071         * modules/strcasestr-simple (configure.ac): ... to here.
17072         * modules/strcasestr (configure.ac): ... and here.
17073
17074 2011-05-22  Bruno Haible  <bruno@clisp.org>
17075
17076         strcase: Move AC_LIBOBJ invocations to module description.
17077         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
17078         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
17079         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
17080         gl_PREREQ_STRNCASECMP invocations from here...
17081         * modules/strcase (configure.ac): ... to here.
17082
17083 2011-05-22  Bruno Haible  <bruno@clisp.org>
17084
17085         stpncpy: Move AC_LIBOBJ invocations to module description.
17086         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
17087         here...
17088         * modules/stpncpy (configure.ac): ... to here.
17089
17090 2011-05-22  Bruno Haible  <bruno@clisp.org>
17091
17092         stpcpy: Move AC_LIBOBJ invocations to module description.
17093         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
17094         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
17095         here...
17096         * modules/stpcpy (configure.ac): ... to here.
17097
17098 2011-05-21  Bruno Haible  <bruno@clisp.org>
17099
17100         stat: Move AC_LIBOBJ invocations to module description.
17101         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
17102         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
17103         here...
17104         * modules/stat (configure.ac): ... to here.
17105
17106 2011-05-21  Bruno Haible  <bruno@clisp.org>
17107
17108         sleep: Move AC_LIBOBJ invocations to module description.
17109         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
17110         * modules/sleep (configure.ac): ... to here.
17111
17112 2011-05-21  Bruno Haible  <bruno@clisp.org>
17113
17114         signbit: Move AC_LIBOBJ invocations to module description.
17115         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
17116         * modules/signbit (configure.ac): ... to here.
17117
17118 2011-05-21  Bruno Haible  <bruno@clisp.org>
17119
17120         sigprocmask: Move AC_LIBOBJ invocations to module description.
17121         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
17122         gl_PREREQ_SIGPROMASK invocations from here...
17123         * modules/sigprocmask (configure.ac): ... to here.
17124
17125 2011-05-21  Bruno Haible  <bruno@clisp.org>
17126
17127         sigaction: Move AC_LIBOBJ invocations to module description.
17128         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
17129         gl_PREREQ_SIGACTION invocations from here...
17130         * modules/sigaction (configure.ac): ... to here.
17131
17132 2011-05-21  Bruno Haible  <bruno@clisp.org>
17133
17134         sig2str: Move AC_LIBOBJ invocations to module description.
17135         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
17136         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
17137         here...
17138         * modules/sig2str (configure.ac): ... to here.
17139
17140 2011-05-21  Bruno Haible  <bruno@clisp.org>
17141
17142         setlocale: Move AC_LIBOBJ invocations to module description.
17143         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
17144         gl_PREREQ_SETLOCALE invocations from here...
17145         * modules/setlocale (configure.ac): ... to here.
17146
17147 2011-05-21  Bruno Haible  <bruno@clisp.org>
17148
17149         unsetenv: Move AC_LIBOBJ invocations to module description.
17150         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
17151         and gl_PREREQ_UNSETENV invocations from here...
17152         * modules/unsetenv (configure.ac): ... to here.
17153         (Depends-on): Update.
17154
17155 2011-05-21  Bruno Haible  <bruno@clisp.org>
17156
17157         setenv: Move AC_LIBOBJ invocations to module description.
17158         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
17159         here...
17160         * modules/setenv (configure.ac): ... to here.
17161
17162 2011-05-21  Bruno Haible  <bruno@clisp.org>
17163
17164         selinux-h: Move AC_LIBOBJ invocations to module description.
17165         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
17166         AC_LIBOBJ invocation from here...
17167         * modules/selinux-h (configure.ac): ... to here.
17168
17169 2011-05-21  Bruno Haible  <bruno@clisp.org>
17170
17171         select: Respect rules for use of AC_LIBOBJ.
17172         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
17173         here...
17174         * modules/select (configure.ac): ... to here.
17175
17176 2011-05-21  Bruno Haible  <bruno@clisp.org>
17177
17178         scandir: Move AC_LIBOBJ invocations to module description.
17179         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
17180         invocations from here...
17181         * modules/scandir (configure.ac): ... to here.
17182
17183 2011-05-21  Bruno Haible  <bruno@clisp.org>
17184
17185         rpmatch: Move AC_LIBOBJ invocations to module description.
17186         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
17187         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
17188         here...
17189         * modules/rpmatch (configure.ac): ... to here.
17190
17191 2011-05-21  Bruno Haible  <bruno@clisp.org>
17192
17193         rmdir: Respect rules for use of AC_LIBOBJ.
17194         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
17195         * modules/rmdir (configure.ac): ... to here.
17196
17197 2011-05-21  Bruno Haible  <bruno@clisp.org>
17198
17199         renameat: Move AC_LIBOBJ invocations to module description.
17200         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
17201         here...
17202         * modules/renameat (configure.ac): ... to here.
17203
17204 2011-05-21  Bruno Haible  <bruno@clisp.org>
17205
17206         rename: Respect rules for use of AC_LIBOBJ.
17207         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
17208         here...
17209         * modules/rename (configure.ac): ... to here.
17210
17211 2011-05-21  Bruno Haible  <bruno@clisp.org>
17212
17213         remove: Move AC_LIBOBJ invocations to module description.
17214         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
17215         here...
17216         * modules/remove (configure.ac): ... to here.
17217
17218 2011-05-21  Bruno Haible  <bruno@clisp.org>
17219
17220         relocatable-lib: Move AC_LIBOBJ invocations to module description.
17221         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
17222         macro.
17223         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
17224         * modules/relocatable-lib (configure.ac): ... to here.
17225         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17226         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
17227
17228 2011-05-21  Bruno Haible  <bruno@clisp.org>
17229
17230         relocatable-prog: Move AC_LIBOBJ invocations to module description.
17231         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
17232         here...
17233         * modules/relocatable-prog (configure.ac): ... to here.
17234
17235 2011-05-21  Bruno Haible  <bruno@clisp.org>
17236
17237         regex: Move AC_LIBOBJ invocations to module description.
17238         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
17239         invocations from here...
17240         * modules/regex (configure.ac): ... to here.
17241
17242 2011-05-21  Bruno Haible  <bruno@clisp.org>
17243
17244         realloc-*: Move AC_LIBOBJ invocations to module description.
17245         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
17246         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
17247         AC_LIBOBJ invocations from here...
17248         * modules/realloc-gnu (configure.ac): ... to here.
17249         * modules/realloc-posix (configure.ac): ... and here.
17250
17251 2011-05-21  Bruno Haible  <bruno@clisp.org>
17252
17253         readutmp: Move AC_LIBOBJ invocations to module description.
17254         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
17255         * modules/readutmp (configure.ac): ... to here.
17256
17257 2011-05-21  Bruno Haible  <bruno@clisp.org>
17258
17259         readlinkat: Move AC_LIBOBJ invocations to module description.
17260         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
17261         here...
17262         * modules/readlinkat (configure.ac): ... to here.
17263
17264 2011-05-21  Bruno Haible  <bruno@clisp.org>
17265
17266         readlink: Move AC_LIBOBJ invocations to module description.
17267         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
17268         gl_PREREQ_READLINK invocations from here...
17269         * modules/readlink (configure.ac): ... to here.
17270
17271 2011-05-21  Bruno Haible  <bruno@clisp.org>
17272
17273         readline: Move AC_LIBOBJ invocations to module description.
17274         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
17275         gl_PREREQ_READLINE invocations from here...
17276         * modules/readline (configure.ac): ... to here.
17277
17278 2011-05-21  Bruno Haible  <bruno@clisp.org>
17279
17280         read: Move AC_LIBOBJ invocations to module description.
17281         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
17282         * modules/read (configure.ac): ... to here.
17283
17284 2011-05-21  Bruno Haible  <bruno@clisp.org>
17285
17286         rawmemchr: Move AC_LIBOBJ invocations to module description.
17287         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
17288         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
17289         from here...
17290         * modules/rawmemchr (configure.ac): ... to here.
17291
17292 2011-05-21  Bruno Haible  <bruno@clisp.org>
17293
17294         random_r: Move AC_LIBOBJ invocations to module description.
17295         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
17296         gl_PREREQ_RANDOM_R invocations from here...
17297         * modules/random_r (configure.ac): ... to here.
17298
17299 2011-05-21  Bruno Haible  <bruno@clisp.org>
17300
17301         pwrite: Move AC_LIBOBJ invocations to module description.
17302         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
17303         * modules/pwrite (configure.ac): ... to here.
17304
17305 2011-05-21  Bruno Haible  <bruno@clisp.org>
17306
17307         putenv: Move AC_LIBOBJ invocations to module description.
17308         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
17309         * modules/putenv (configure.ac): ... to here.
17310
17311 2011-05-21  Bruno Haible  <bruno@clisp.org>
17312
17313         login_tty: Move AC_LIBOBJ invocations to module description.
17314         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
17315         * modules/login_tty (configure.ac): ... to here.
17316
17317 2011-05-21  Bruno Haible  <bruno@clisp.org>
17318
17319         openpty: Move AC_LIBOBJ invocations to module description.
17320         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
17321         * modules/openpty (configure.ac): ... to here.
17322
17323 2011-05-21  Bruno Haible  <bruno@clisp.org>
17324
17325         forkpty: Move AC_LIBOBJ invocations to module description.
17326         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
17327         * modules/forkpty (configure.ac): ... to here.
17328
17329 2011-05-21  Bruno Haible  <bruno@clisp.org>
17330
17331         ptsname: Move AC_LIBOBJ invocations to module description.
17332         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
17333         invocations from here...
17334         * modules/ptsname (configure.ac): ... to here.
17335
17336 2011-05-21  Bruno Haible  <bruno@clisp.org>
17337
17338         pread: Move AC_LIBOBJ invocations to module description.
17339         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
17340         * modules/pread (configure.ac): ... to here.
17341
17342 2011-05-21  Bruno Haible  <bruno@clisp.org>
17343
17344         posix_spawn*: Move AC_LIBOBJ invocations to module description.
17345         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
17346         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
17347         * modules/posix_spawn (configure.ac): ... to here.
17348         * modules/posix_spawnp (configure.ac): ... and here.
17349
17350 2011-05-21  Bruno Haible  <bruno@clisp.org>
17351
17352         popen: Move AC_LIBOBJ invocations to module description.
17353         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
17354         invocations from here...
17355         * modules/popen (configure.ac): ... to here.
17356
17357 2011-05-21  Bruno Haible  <bruno@clisp.org>
17358
17359         poll: Move AC_LIBOBJ invocations to module description.
17360         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
17361         invocations from here...
17362         * modules/poll (configure.ac): ... to here.
17363
17364 2011-05-21  Bruno Haible  <bruno@clisp.org>
17365
17366         pipe-posix: Move AC_LIBOBJ invocations to module description.
17367         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
17368         * modules/pipe-posix (configure.ac): ... to here.
17369
17370 2011-05-21  Bruno Haible  <bruno@clisp.org>
17371
17372         openat: Respect rules for use of AC_LIBOBJ.
17373         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
17374         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17375         * modules/openat (configure.ac): ... to here.
17376
17377 2011-05-21  Bruno Haible  <bruno@clisp.org>
17378
17379         obstack-printf*: Move AC_LIBOBJ invocations to module description.
17380         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
17381         invocation from here...
17382         * modules/obstack-printf (configure.ac): ... to here.
17383         * modules/obstack-printf-posix (configure.ac): ... and here.
17384
17385 2011-05-21  Bruno Haible  <bruno@clisp.org>
17386
17387         nl_langinfo: Move AC_LIBOBJ invocations to module description.
17388         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
17389         from here...
17390         * modules/nl_langinfo (configure.ac): ... to here.
17391
17392 2011-05-21  Bruno Haible  <bruno@clisp.org>
17393
17394         nanosleep: Move AC_LIBOBJ invocations to module description.
17395         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
17396         gl_PREREQ_NANOSLEEP invocations from here...
17397         * modules/nanosleep (configure.ac): ... to here.
17398
17399 2011-05-21  Bruno Haible  <bruno@clisp.org>
17400
17401         mountlist: Move AC_LIBOBJ invocations to module description.
17402         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
17403         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
17404         * modules/mountlist (configure.ac): ... to here.
17405
17406 2011-05-21  Bruno Haible  <bruno@clisp.org>
17407
17408         mktime: Respect rules for use of AC_LIBOBJ.
17409         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
17410         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
17411         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
17412         (gl_FUNC_MKTIME_INTERNAL): ... and here...
17413         * modules/mktime (configure.ac): ... to here.
17414         * modules/mktime-internal (configure.ac): ... and here.
17415         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
17416
17417 2011-05-21  Bruno Haible  <bruno@clisp.org>
17418
17419         mkstemps: Move AC_LIBOBJ invocations to module description.
17420         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
17421         here...
17422         * modules/mkstemps (configure.ac): ... to here.
17423
17424 2011-05-21  Bruno Haible  <bruno@clisp.org>
17425
17426         mkstemp: Move AC_LIBOBJ invocations to module description.
17427         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
17428         gl_PREREQ_MKSTEMP invocations from here...
17429         * modules/mkstemp (configure.ac): ... to here.
17430
17431 2011-05-21  Bruno Haible  <bruno@clisp.org>
17432
17433         mkostemps: Move AC_LIBOBJ invocations to module description.
17434         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
17435         here...
17436         * modules/mkostemps (configure.ac): ... to here.
17437
17438 2011-05-21  Bruno Haible  <bruno@clisp.org>
17439
17440         mkostemp: Move AC_LIBOBJ invocations to module description.
17441         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
17442         gl_PREREQ_MKOSTEMP invocations from here...
17443         * modules/mkostemp (configure.ac): ... to here.
17444
17445 2011-05-21  Bruno Haible  <bruno@clisp.org>
17446
17447         mknod: Move AC_LIBOBJ invocations to module description.
17448         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
17449         * modules/mknod (configure.ac): ... to here.
17450
17451 2011-05-21  Bruno Haible  <bruno@clisp.org>
17452
17453         mkfifoat: Move AC_LIBOBJ invocations to module description.
17454         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
17455         here...
17456         * modules/mkfifoat (configure.ac): ... to here.
17457
17458 2011-05-21  Bruno Haible  <bruno@clisp.org>
17459
17460         mkfifo: Respect rules for use of AC_LIBOBJ.
17461         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
17462         here...
17463         * modules/mkfifo (configure.ac): ... to here.
17464
17465 2011-05-21  Bruno Haible  <bruno@clisp.org>
17466
17467         mkdtemp: Move AC_LIBOBJ invocations to module description.
17468         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
17469         invocations from here...
17470         * modules/mkdtemp (configure.ac): ... to here.
17471
17472 2011-05-21  Bruno Haible  <bruno@clisp.org>
17473
17474         mkdir: Move AC_LIBOBJ invocations to module description.
17475         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
17476         * modules/mkdir (configure.ac): ... to here.
17477
17478 2011-05-21  Bruno Haible  <bruno@clisp.org>
17479
17480         memset: Move AC_LIBOBJ invocations to module description.
17481         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
17482         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
17483         here...
17484         * modules/memset (configure.ac): ... to here.
17485
17486 2011-05-21  Bruno Haible  <bruno@clisp.org>
17487
17488         memrchr: Move AC_LIBOBJ invocations to module description.
17489         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
17490         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
17491         here...
17492         * modules/memrchr (configure.ac): ... to here.
17493
17494 2011-05-21  Bruno Haible  <bruno@clisp.org>
17495
17496         mempcpy: Move AC_LIBOBJ invocations to module description.
17497         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
17498         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
17499         here...
17500         * modules/mempcpy (configure.ac): ... to here.
17501
17502 2011-05-21  Bruno Haible  <bruno@clisp.org>
17503
17504         memmove: Move AC_LIBOBJ invocations to module description.
17505         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
17506         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
17507         here...
17508         * modules/memmove (configure.ac): ... to here.
17509
17510 2011-05-21  Bruno Haible  <bruno@clisp.org>
17511
17512         memmem*: Move AC_LIBOBJ invocations to module description.
17513         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
17514         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
17515         here...
17516         (gl_FUNC_MEMMEM): ... and here...
17517         * modules/memmem-simple (configure.ac): ... to here.
17518         * modules/memmem (configure.ac): ... and here.
17519
17520 2011-05-21  Bruno Haible  <bruno@clisp.org>
17521
17522         memcpy: Move AC_LIBOBJ invocations to module description.
17523         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
17524         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
17525         here...
17526         * modules/memcpy (configure.ac): ... to here.
17527
17528 2011-05-21  Bruno Haible  <bruno@clisp.org>
17529
17530         memcmp: Simplify autoconf macro.
17531         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
17532         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
17533         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
17534
17535 2011-05-21  Bruno Haible  <bruno@clisp.org>
17536
17537         memcmp: Move AC_LIBOBJ invocations to module description.
17538         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
17539         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
17540         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
17541         * modules/memcmp (configure.ac): ... to here.
17542         (Depends-on): Update conditions.
17543
17544 2011-05-21  Bruno Haible  <bruno@clisp.org>
17545
17546         memchr: Respect rules for use of AC_LIBOBJ.
17547         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
17548         invocations from here...
17549         * modules/memchr (configure.ac): ... to here.
17550
17551 2011-05-21  Bruno Haible  <bruno@clisp.org>
17552
17553         mbtowc: Move AC_LIBOBJ invocations to module description.
17554         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
17555         invocations from here...
17556         * modules/mbtowc (configure.ac): ... to here.
17557
17558 2011-05-21  Bruno Haible  <bruno@clisp.org>
17559
17560         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
17561         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
17562         gl_PREREQ_MBSRTOWCS invocations from here...
17563         * modules/mbsrtowcs (configure.ac): ... to here.
17564
17565 2011-05-21  Bruno Haible  <bruno@clisp.org>
17566
17567         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
17568         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
17569         gl_PREREQ_MBSNRTOWCS invocations from here...
17570         * modules/mbsnrtowcs (configure.ac): ... to here.
17571
17572 2011-05-21  Bruno Haible  <bruno@clisp.org>
17573
17574         mbsinit: Move AC_LIBOBJ invocations to module description.
17575         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
17576         invocations from here...
17577         * modules/mbsinit (configure.ac): ... to here.
17578
17579 2011-05-21  Bruno Haible  <bruno@clisp.org>
17580
17581         mbrlen: Move AC_LIBOBJ invocations to module description.
17582         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
17583         invocations from here...
17584         * modules/mbrlen (configure.ac): ... to here.
17585
17586 2011-05-21  Bruno Haible  <bruno@clisp.org>
17587
17588         mbrtowc: Respect rules for use of AC_LIBOBJ.
17589         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
17590         invocations from here...
17591         * modules/mbrtowc (configure.ac): ... to here.
17592
17593 2011-05-21  Bruno Haible  <bruno@clisp.org>
17594
17595         malloc-*: Move AC_LIBOBJ invocations to module description.
17596         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
17597         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
17598         AC_LIBOBJ invocations from here...
17599         * modules/malloc-gnu (configure.ac): ... to here.
17600         * modules/malloc-posix (configure.ac): ... and here.
17601
17602 2011-05-21  Bruno Haible  <bruno@clisp.org>
17603
17604         lstat, openat: Respect rules for use of AC_LIBOBJ.
17605         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
17606         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
17607         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
17608         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
17609         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
17610         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
17611         here.
17612         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
17613
17614 2011-05-21  Bruno Haible  <bruno@clisp.org>
17615
17616         lseek: Move AC_LIBOBJ invocations to module description.
17617         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
17618         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17619         * modules/lseek (configure.ac): ... to here.
17620
17621 2011-05-21  Bruno Haible  <bruno@clisp.org>
17622
17623         linkat: Move AC_LIBOBJ invocations to module description.
17624         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
17625         here...
17626         * modules/linkat (configure.ac): ... to here.
17627
17628 2011-05-21  Bruno Haible  <bruno@clisp.org>
17629
17630         link: Respect rules for use of AC_LIBOBJ.
17631         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
17632         * modules/link (configure.ac): ... to here.
17633
17634 2011-05-21  Bruno Haible  <bruno@clisp.org>
17635
17636         lchown: Move AC_LIBOBJ invocations to module description.
17637         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17638         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17639         * modules/lchown (configure.ac): ... to here.
17640
17641 2011-05-21  Bruno Haible  <bruno@clisp.org>
17642
17643         iswctype: Move AC_LIBOBJ invocations to module description.
17644         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
17645         here...
17646         * modules/iswctype (configure.ac): ... to here.
17647
17648 2011-05-21  Bruno Haible  <bruno@clisp.org>
17649
17650         iswblank: Move AC_LIBOBJ invocations to module description.
17651         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
17652         here...
17653         * modules/iswblank (configure.ac): ... to here.
17654
17655 2011-05-21  Bruno Haible  <bruno@clisp.org>
17656
17657         atanl: Move AC_LIBOBJ invocations to module description.
17658         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
17659         * modules/atanl (configure.ac): ... to here.
17660
17661 2011-05-21  Bruno Haible  <bruno@clisp.org>
17662
17663         acosl: Move AC_LIBOBJ invocations to module description.
17664         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
17665         * modules/acosl (configure.ac): ... to here.
17666
17667 2011-05-21  Bruno Haible  <bruno@clisp.org>
17668
17669         asinl: Respect rules for use of AC_LIBOBJ.
17670         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
17671         * modules/asinl (configure.ac): ... to here.
17672
17673 2011-05-21  Bruno Haible  <bruno@clisp.org>
17674
17675         tanl: Move AC_LIBOBJ invocations to module description.
17676         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
17677         * modules/tanl (configure.ac): ... to here.
17678
17679 2011-05-21  Bruno Haible  <bruno@clisp.org>
17680
17681         cosl: Move AC_LIBOBJ invocations to module description.
17682         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
17683         * modules/cosl (configure.ac): ... to here.
17684
17685 2011-05-21  Bruno Haible  <bruno@clisp.org>
17686
17687         sinl: Move AC_LIBOBJ invocations to module description.
17688         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
17689         * modules/sinl (configure.ac): ... to here.
17690
17691 2011-05-21  Bruno Haible  <bruno@clisp.org>
17692
17693         logl: Move AC_LIBOBJ invocations to module description.
17694         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
17695         * modules/logl (configure.ac): ... to here.
17696
17697 2011-05-21  Bruno Haible  <bruno@clisp.org>
17698
17699         expl: Move AC_LIBOBJ invocations to module description.
17700         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
17701         * modules/expl (configure.ac): ... to here.
17702
17703 2011-05-21  Bruno Haible  <bruno@clisp.org>
17704
17705         roundl: Move AC_LIBOBJ invocations to module description.
17706         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
17707         * modules/roundl (configure.ac): ... to here.
17708
17709 2011-05-21  Bruno Haible  <bruno@clisp.org>
17710
17711         round: Move AC_LIBOBJ invocations to module description.
17712         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
17713         * modules/round (configure.ac): ... to here.
17714
17715 2011-05-21  Bruno Haible  <bruno@clisp.org>
17716
17717         roundf: Move AC_LIBOBJ invocations to module description.
17718         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
17719         * modules/roundf (configure.ac): ... to here.
17720
17721 2011-05-21  Bruno Haible  <bruno@clisp.org>
17722
17723         truncl: Move AC_LIBOBJ invocations to module description.
17724         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
17725         * modules/truncl (configure.ac): ... to here.
17726
17727 2011-05-21  Bruno Haible  <bruno@clisp.org>
17728
17729         trunc: Move AC_LIBOBJ invocations to module description.
17730         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
17731         * modules/trunc (configure.ac): ... to here.
17732
17733 2011-05-21  Bruno Haible  <bruno@clisp.org>
17734
17735         truncf: Move AC_LIBOBJ invocations to module description.
17736         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
17737         * modules/truncf (configure.ac): ... to here.
17738
17739 2011-05-21  Bruno Haible  <bruno@clisp.org>
17740
17741         ceill: Move AC_LIBOBJ invocations to module description.
17742         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
17743         * modules/ceill (configure.ac): ... to here.
17744
17745 2011-05-21  Bruno Haible  <bruno@clisp.org>
17746
17747         ceil: Move AC_LIBOBJ invocations to module description.
17748         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
17749         * modules/ceil (configure.ac): ... to here.
17750
17751 2011-05-21  Bruno Haible  <bruno@clisp.org>
17752
17753         ceilf: Move AC_LIBOBJ invocations to module description.
17754         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
17755         * modules/ceilf (configure.ac): ... to here.
17756
17757 2011-05-21  Bruno Haible  <bruno@clisp.org>
17758
17759         floorl: Respect rules for use of AC_LIBOBJ.
17760         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
17761         * modules/floorl (configure.ac): ... to here.
17762
17763 2011-05-21  Bruno Haible  <bruno@clisp.org>
17764
17765         floor: Respect rules for use of AC_LIBOBJ.
17766         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
17767         * modules/floor (configure.ac): ... to here.
17768
17769 2011-05-21  Bruno Haible  <bruno@clisp.org>
17770
17771         floorf: Move AC_LIBOBJ invocations to module description.
17772         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
17773         * modules/floorf (configure.ac): ... to here.
17774
17775 2011-05-20  Bruno Haible  <bruno@clisp.org>
17776
17777         sqrtl: Respect rules for use of AC_LIBOBJ.
17778         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
17779         * modules/sqrtl (configure.ac): ... to here.
17780
17781 2011-05-20  Bruno Haible  <bruno@clisp.org>
17782
17783         ldexpl: Respect rules for use of AC_LIBOBJ.
17784         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
17785         * modules/ldexpl (configure.ac): ... to here.
17786
17787 2011-05-20  Bruno Haible  <bruno@clisp.org>
17788
17789         frexpl*: Respect rules for use of AC_LIBOBJ.
17790         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
17791         invocation from here...
17792         * modules/frexpl (configure.ac): ... to here.
17793         * modules/frexpl-nolibm (configure.ac): ... and here.
17794
17795 2011-05-20  Bruno Haible  <bruno@clisp.org>
17796
17797         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
17798         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
17799         invocation from here...
17800         * modules/frexp (configure.ac): ... to here.
17801         * modules/frexp-nolibm (configure.ac): ... and here.
17802
17803 2011-05-20  Bruno Haible  <bruno@clisp.org>
17804
17805         isnan: Respect rules for use of AC_LIBOBJ.
17806         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
17807         invocations here.
17808         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
17809         REPLACE_ISNAN.
17810         * modules/isnand (configure.ac): Likewise.
17811         * modules/isnanl (configure.ac): Likewise.
17812
17813 2011-05-20  Bruno Haible  <bruno@clisp.org>
17814
17815         isnanl*: Respect rules for use of AC_LIBOBJ.
17816         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
17817         invocation from here...
17818         * modules/isnanl (configure.ac): ... to here.
17819         * modules/isnanl-nolibm (configure.ac): ... and here.
17820
17821 2011-05-20  Bruno Haible  <bruno@clisp.org>
17822
17823         isnand*: Move AC_LIBOBJ invocations to module description.
17824         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
17825         invocation from here...
17826         * modules/isnand (configure.ac): ... to here.
17827         * modules/isnand-nolibm (configure.ac): ... and here.
17828
17829 2011-05-20  Bruno Haible  <bruno@clisp.org>
17830
17831         isnanf*: Move AC_LIBOBJ invocations to module description.
17832         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
17833         invocation from here...
17834         * modules/isnanf (configure.ac): ... to here.
17835         * modules/isnanf-nolibm (configure.ac): ... and here.
17836
17837 2011-05-20  Bruno Haible  <bruno@clisp.org>
17838
17839         isnan*: Separate the AC_LIBOBJ invocations.
17840         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
17841         AC_LIBOBJ invocation.
17842         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
17843         here.
17844         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
17845         AC_LIBOBJ invocation.
17846         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
17847         here.
17848         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
17849         AC_LIBOBJ invocation.
17850         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
17851         here.
17852         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
17853
17854 2011-05-08  Bruno Haible  <bruno@clisp.org>
17855
17856         isinf: Move AC_LIBOBJ invocations to module description.
17857         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
17858         * modules/isinf (configure.ac): ... to here.
17859
17860 2011-05-08  Bruno Haible  <bruno@clisp.org>
17861
17862         isfinite: Move AC_LIBOBJ invocations to module description.
17863         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
17864         * modules/isfinite (configure.ac): ... to here.
17865
17866 2011-05-08  Bruno Haible  <bruno@clisp.org>
17867
17868         isblank: Move AC_LIBOBJ invocations to module description.
17869         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
17870         here...
17871         * modules/isblank (configure.ac): ... to here.
17872
17873 2011-05-08  Bruno Haible  <bruno@clisp.org>
17874
17875         isapipe: Move AC_LIBOBJ invocations to module description.
17876         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
17877         gl_PREREQ_ISAPIPE invocations from here...
17878         * modules/isapipe (configure.ac): ... to here.
17879         (Depends-on): Update condition.
17880
17881 2011-05-08  Bruno Haible  <bruno@clisp.org>
17882
17883         ioctl: Move AC_LIBOBJ invocations to module description.
17884         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
17885         invocations from here...
17886         * modules/ioctl (configure.ac): ... to here.
17887         (Depends-on): Update condition.
17888
17889 2011-05-08  Bruno Haible  <bruno@clisp.org>
17890
17891         imaxdiv: Move AC_LIBOBJ invocations to module description.
17892         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
17893         invocations from here...
17894         * modules/imaxdiv (configure.ac): ... to here.
17895
17896 2011-05-08  Bruno Haible  <bruno@clisp.org>
17897
17898         imaxabs: Move AC_LIBOBJ invocations to module description.
17899         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
17900         invocations from here...
17901         * modules/imaxabs (configure.ac): ... to here.
17902
17903 2011-05-08  Bruno Haible  <bruno@clisp.org>
17904
17905         getaddrinfo: Move AC_LIBOBJ invocations to module description.
17906         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
17907         AC_LIBOBJ invocations from here...
17908         * modules/getaddrinfo (configure.ac): ... to here.
17909         (Depends-on): Add conditions.
17910
17911 2011-05-08  Bruno Haible  <bruno@clisp.org>
17912
17913         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17914         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
17915         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17916         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
17917         (gl_PREREQ_INET_PTON): ... from here.
17918         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
17919         gl_PREREQ_INET_PTON here.
17920         (Depends-on): Update condition.
17921
17922 2011-05-08  Bruno Haible  <bruno@clisp.org>
17923
17924         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17925         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
17926         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17927         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
17928         (gl_PREREQ_INET_NTOP): ... from here.
17929         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
17930         gl_PREREQ_INET_NTOP here.
17931         (Depends-on): Update condition.
17932
17933 2011-05-08  Bruno Haible  <bruno@clisp.org>
17934
17935         iconv_open: Move AC_LIBOBJ invocations to module description.
17936         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
17937         AC_LIBOBJ invocations from here...
17938         * modules/iconv_open (configure.ac): ... to here.
17939
17940 2011-05-08  Bruno Haible  <bruno@clisp.org>
17941
17942         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
17943         If module 'iconv_open' is among the main modules and module
17944         'iconv_open-utf' is among the tests dependencies, then
17945         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
17946         return the special iconv_t values. Therefore iconv() and iconv_close()
17947         must support these special iconv_t values, already in lib, not only in
17948         tests.
17949         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
17950         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
17951         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
17952         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
17953         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
17954         (Depends-on): Add the dependencies of iconv_open-utf.
17955         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
17956         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
17957         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
17958
17959 2011-05-08  Bruno Haible  <bruno@clisp.org>
17960
17961         group-member: Move AC_LIBOBJ invocations to module description.
17962         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
17963         gl_PREREQ_GROUP_MEMBER invocations from here...
17964         * modules/group-member (configure.ac): ... to here.
17965
17966 2011-05-08  Bruno Haible  <bruno@clisp.org>
17967
17968         grantpt: Move AC_LIBOBJ invocations to module description.
17969         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
17970         invocations from here...
17971         * modules/grantpt (configure.ac): ... to here.
17972
17973 2011-05-08  Bruno Haible  <bruno@clisp.org>
17974
17975         glob: Move AC_LIBOBJ invocations to module description.
17976         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
17977         from here...
17978         * modules/glob (configure.ac): ... to here.
17979
17980 2011-05-08  Bruno Haible  <bruno@clisp.org>
17981
17982         getusershell: Move AC_LIBOBJ invocations to module description.
17983         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
17984         Move AC_LIBOBJ invocation from here...
17985         * modules/getusershell (configure.ac): ... to here.
17986         (Depends-on): Update condition.
17987
17988 2011-05-08  Bruno Haible  <bruno@clisp.org>
17989
17990         gettimeofday: Move AC_LIBOBJ invocations to module description.
17991         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17992         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
17993         gl_PREREQ_GETTIMEOFDAY invocations from here...
17994         * modules/gettimeofday (configure.ac): ... to here.
17995
17996 2011-05-08  Bruno Haible  <bruno@clisp.org>
17997
17998         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
17999         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
18000         just gl_FUNC_TZSET.
18001         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
18002         (gl_FUNC_TZSET_CLOBBER): Remove actions.
18003         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
18004         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
18005
18006 2011-05-08  Bruno Haible  <bruno@clisp.org>
18007
18008         getsubopt: Move AC_LIBOBJ invocations to module description.
18009         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
18010         gl_PREREQ_GETSUBOPT invocations from here...
18011         * modules/getsubopt (configure.ac): ... to here.
18012
18013 2011-05-08  Bruno Haible  <bruno@clisp.org>
18014
18015         getpass-gnu: Move AC_LIBOBJ invocations to module description.
18016         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
18017         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
18018         * modules/getpass-gnu (configure.ac): ... to here.
18019
18020 2011-05-08  Bruno Haible  <bruno@clisp.org>
18021
18022         getpass: Move AC_LIBOBJ invocations to module description.
18023         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
18024         gl_PREREQ_GETPASS invocations from here...
18025         * modules/getpass (configure.ac): ... to here.
18026
18027 2011-05-08  Bruno Haible  <bruno@clisp.org>
18028
18029         getpagesize: Move AC_LIBOBJ invocations to module description.
18030         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
18031         from here...
18032         * modules/getpagesize (configure.ac): ... to here.
18033
18034 2011-05-08  Bruno Haible  <bruno@clisp.org>
18035
18036         getopt: Move AC_LIBOBJ invocations to module description.
18037         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
18038         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
18039         invocations from here...
18040         * modules/getopt-gnu (configure.ac): ... to here.
18041         * modules/getopt-posix (configure.ac): ... and here.
18042         (Depends-on): Update condition.
18043
18044 2011-05-08  Bruno Haible  <bruno@clisp.org>
18045
18046         getopt, argp: Respect rules for use of AC_LIBOBJ.
18047         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
18048         (gl_REPLACE_GETOPT_ALWAYS): New macro.
18049         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
18050         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
18051
18052 2011-05-08  Bruno Haible  <bruno@clisp.org>
18053
18054         getlogin_r: Move AC_LIBOBJ invocations to module description.
18055         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
18056         gl_PREREQ_GETLOGIN_R invocations from here...
18057         * modules/getlogin_r (configure.ac): ... to here.
18058
18059 2011-05-08  Bruno Haible  <bruno@clisp.org>
18060
18061         getlogin: Move AC_LIBOBJ invocations to module description.
18062         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
18063         here...
18064         * modules/getlogin (configure.ac): ... to here.
18065
18066 2011-05-08  Bruno Haible  <bruno@clisp.org>
18067
18068         getloadavg: Move AC_LIBOBJ invocations to module description.
18069         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
18070         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
18071         * modules/getloadavg (configure.ac): ... to here.
18072
18073 2011-05-08  Bruno Haible  <bruno@clisp.org>
18074
18075         gethrxtime: Move AC_LIBOBJ invocations to module description.
18076         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
18077         LIB_GETHRXTIME from here...
18078         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
18079         invocations from here...
18080         * modules/gethrxtime (configure.ac): ... to here.
18081
18082 2011-05-08  Bruno Haible  <bruno@clisp.org>
18083
18084         gethostname: Move AC_LIBOBJ invocations to module description.
18085         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
18086         gl_PREREQ_GETHOSTNAME invocations from here...
18087         * modules/gethostname (configure.ac): ... to here.
18088
18089 2011-05-08  Bruno Haible  <bruno@clisp.org>
18090
18091         getgroups: Move AC_LIBOBJ invocations to module description.
18092         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
18093         here...
18094         * modules/getgroups (configure.ac): ... to here.
18095
18096 2011-05-08  Bruno Haible  <bruno@clisp.org>
18097
18098         getdtablesize: Move AC_LIBOBJ invocations to module description.
18099         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
18100         invocation from here...
18101         * modules/getdtablesize (configure.ac): ... to here.
18102
18103 2011-05-08  Bruno Haible  <bruno@clisp.org>
18104
18105         getdomainname: Move AC_LIBOBJ invocations to module description.
18106         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
18107         gl_PREREQ_GETDOMAINNAME invocations from here...
18108         * modules/getdomainname (configure.ac): ... to here.
18109
18110 2011-05-08  Bruno Haible  <bruno@clisp.org>
18111
18112         getline: Move AC_LIBOBJ invocations to module description.
18113         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
18114         invocations from here...
18115         * modules/getline (configure.ac): ... to here.
18116
18117 2011-05-08  Bruno Haible  <bruno@clisp.org>
18118
18119         getline: Simplify.
18120         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
18121         It's already handled through the module dependency.
18122
18123 2011-05-08  Bruno Haible  <bruno@clisp.org>
18124
18125         getdelim: Move AC_LIBOBJ invocations to module description.
18126         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
18127         and gl_PREREQ_GETDELIM invocations from here...
18128         * modules/getdelim (configure.ac): ... to here.
18129         (Depends-on): Fix condition.
18130
18131 2011-05-08  Bruno Haible  <bruno@clisp.org>
18132
18133         getcwd: Move AC_LIBOBJ invocations to module description.
18134         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
18135         invocations from here...
18136         * modules/getcwd (configure.ac): ... to here.
18137
18138 2011-05-08  Bruno Haible  <bruno@clisp.org>
18139
18140         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
18141         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
18142         here...
18143         * modules/getcwd-lgpl (configure.ac): ... to here.
18144
18145 2011-05-07  Bruno Haible  <bruno@clisp.org>
18146
18147         crypto/gc: Move AC_LIBOBJ invocations to module description.
18148         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
18149         * modules/crypto/gc (configure.ac): ... to here.
18150
18151 2011-05-07  Bruno Haible  <bruno@clisp.org>
18152
18153         fwriting: Move AC_LIBOBJ invocations to module description.
18154         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
18155         here...
18156         * modules/fwriting (configure.ac): ... to here.
18157
18158 2011-05-07  Bruno Haible  <bruno@clisp.org>
18159
18160         fwritable: Move AC_LIBOBJ invocations to module description.
18161         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
18162         here...
18163         * modules/fwritable (configure.ac): ... to here.
18164
18165 2011-05-07  Bruno Haible  <bruno@clisp.org>
18166
18167         futimens: Move AC_LIBOBJ invocations to module description.
18168         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
18169         here...
18170         * modules/futimens (configure.ac): ... to here.
18171
18172 2011-05-07  Bruno Haible  <bruno@clisp.org>
18173
18174         ftruncate: Move AC_LIBOBJ invocations to module description.
18175         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
18176         gl_PREREQ_FTRUNCATE invocations from here...
18177         * modules/ftruncate (configure.ac): ... to here.
18178
18179 2011-05-07  Bruno Haible  <bruno@clisp.org>
18180
18181         fsync: Move AC_LIBOBJ invocations to module description.
18182         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
18183         invocations from here...
18184         * modules/fsync (configure.ac): ... to here.
18185
18186 2011-05-07  Bruno Haible  <bruno@clisp.org>
18187
18188         fsusage: Move AC_LIBOBJ invocations to module description.
18189         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
18190         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
18191         * modules/fsusage (configure.ac): ... to here.
18192
18193 2011-05-07  Bruno Haible  <bruno@clisp.org>
18194
18195         freopen: Move AC_LIBOBJ invocations to module description.
18196         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
18197         invocations from here...
18198         * modules/freopen (configure.ac): ... to here.
18199
18200 2011-05-07  Bruno Haible  <bruno@clisp.org>
18201
18202         free: Move AC_LIBOBJ invocations to module description.
18203         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
18204         invocations from here...
18205         * modules/free (configure.ac): ... to here.
18206
18207 2011-05-07  Bruno Haible  <bruno@clisp.org>
18208
18209         freadable: Move AC_LIBOBJ invocations to module description.
18210         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
18211         here...
18212         * modules/freadable (configure.ac): ... to here.
18213
18214 2011-05-07  Bruno Haible  <bruno@clisp.org>
18215
18216         fpurge: Move AC_LIBOBJ invocations to module description.
18217         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
18218         invocations from here...
18219         * modules/fpurge (configure.ac): ... to here.
18220
18221 2011-05-07  Bruno Haible  <bruno@clisp.org>
18222
18223         fpending: Move AC_LIBOBJ invocations to module description.
18224         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
18225         gl_FUNC_FPENDING.
18226         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
18227         invocations from here...
18228         * modules/fpending (configure.ac): ... to here.
18229
18230 2011-05-07  Bruno Haible  <bruno@clisp.org>
18231
18232         fopen: Move AC_LIBOBJ invocations to module description.
18233         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
18234         invocations from here...
18235         * modules/fopen (configure.ac): ... to here.
18236
18237 2011-05-07  Bruno Haible  <bruno@clisp.org>
18238
18239         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
18240         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
18241         gl_FUNC_FNMATCH_POSIX.
18242         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
18243         invocations from here...
18244         * modules/fnmatch (configure.ac): ... to here.
18245         * modules/fnmatch-gnu (configure.ac): ... and here.
18246
18247 2011-05-07  Bruno Haible  <bruno@clisp.org>
18248
18249         flock: Move AC_LIBOBJ invocations to module description.
18250         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
18251         invocations from here...
18252         * modules/flock (configure.ac): ... to here.
18253
18254 2011-05-07  Bruno Haible  <bruno@clisp.org>
18255
18256         fileblocks: Move AC_LIBOBJ invocations to module description.
18257         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
18258         gl_PREREQ_FILEBLOCKS invocations from here...
18259         * modules/fileblocks (configure.ac): ... to here.
18260
18261 2011-05-06  Bruno Haible  <bruno@clisp.org>
18262
18263         fflush: Move AC_LIBOBJ invocations to module description.
18264         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
18265         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
18266         invocations from here...
18267         * modules/fflush (configure.ac): ... to here.
18268
18269 2011-05-06  Bruno Haible  <bruno@clisp.org>
18270
18271         fdopendir: Move AC_LIBOBJ invocations to module description.
18272         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
18273         here...
18274         * modules/fdopendir (configure.ac): ... to here.
18275         (Depends-on): Improve conditions.
18276
18277 2011-05-06  Bruno Haible  <bruno@clisp.org>
18278
18279         _Exit: Move AC_LIBOBJ invocations to module description.
18280         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
18281         invocations from here...
18282         * modules/_Exit (configure.ac): ... to here.
18283
18284 2011-05-21  Bruno Haible  <bruno@clisp.org>
18285
18286         euidaccess: Respect rules for use of AC_LIBOBJ.
18287         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18288         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
18289         from here...
18290         * modules/euidaccess (configure.ac): ... to here.
18291
18292 2011-05-06  Bruno Haible  <bruno@clisp.org>
18293
18294         error: Move AC_LIBOBJ invocations to module description.
18295         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
18296         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
18297         invocations from here...
18298         * modules/error (configure.ac): ... to here.
18299
18300 2011-05-06  Bruno Haible  <bruno@clisp.org>
18301
18302         duplocale: Move AC_LIBOBJ invocations to module description.
18303         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
18304         gl_PREREQ_DUPLOCALE invocations from here...
18305         * modules/duplocale (configure.ac): ... to here.
18306
18307 2011-05-05  Bruno Haible  <bruno@clisp.org>
18308
18309         dirfd: Move AC_LIBOBJ invocations to module description.
18310         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
18311         gl_FUNC_DIRFD.
18312         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
18313         here...
18314         * modules/dirfd (configure.ac): ... to here.
18315         (Depends-on): Fix condition.
18316
18317 2011-05-05  Bruno Haible  <bruno@clisp.org>
18318
18319         chown: Respect rules for use of AC_LIBOBJ.
18320         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
18321         * modules/chown (configure.ac): ... to here.
18322
18323 2011-05-05  Bruno Haible  <bruno@clisp.org>
18324
18325         chdir-long: Move AC_LIBOBJ invocations to module description.
18326         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
18327         gl_PREREQ_CHDIR_LONG invocations from here...
18328         * modules/chdir-long (configure.ac): ... to here.
18329
18330 2011-05-05  Bruno Haible  <bruno@clisp.org>
18331
18332         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
18333         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
18334         from here...
18335         * modules/canonicalize-lgpl (configure.ac): ... to here.
18336
18337 2011-05-05  Bruno Haible  <bruno@clisp.org>
18338
18339         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
18340         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
18341         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
18342         REPLACE_CALLOC.
18343         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
18344         * modules/calloc-gnu (configure.ac): Likewise.
18345
18346 2011-05-05  Bruno Haible  <bruno@clisp.org>
18347
18348         btowc: Move AC_LIBOBJ invocations to module description.
18349         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
18350         invocations from here...
18351         * modules/btowc (configure.ac): ... to here.
18352
18353 2011-05-21  Bruno Haible  <bruno@clisp.org>
18354
18355         atexit: Move AC_LIBOBJ invocations to module description.
18356         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
18357         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
18358         here...
18359         * modules/atexit (configure.ac): ... to here.
18360
18361 2011-05-05  Bruno Haible  <bruno@clisp.org>
18362
18363         atoll: Move AC_LIBOBJ invocations to module description.
18364         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
18365         invocations from here...
18366         * modules/atoll (configure.ac): ... to here.
18367
18368 2011-05-05  Bruno Haible  <bruno@clisp.org>
18369
18370         argz: Move AC_LIBOBJ invocations to module description.
18371         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
18372         * modules/argz (configure.ac): ... to here.
18373
18374 2011-05-05  Bruno Haible  <bruno@clisp.org>
18375
18376         alphasort: Move AC_LIBOBJ invocations to module description.
18377         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
18378         gl_PREREQ_ALPHASORT invocations from here...
18379         * modules/alphasort (configure.ac): ... to here.
18380
18381 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18382
18383         verify: new macro verify_expr; verify_true deprecated
18384         * NEWS: Mention this.
18385         * doc/verify.texi (Compile-time Assertions): Document this.
18386         * lib/verify.h (verify_true): Deprecate.
18387         (verify_expr): New macro.
18388         * tests/test-verify.c (function): Test verify_expr.
18389
18390 2011-06-14  Jim Meyering  <meyering@redhat.com>
18391
18392         init.sh: give more portable redirection-related advice in a comment
18393         * tests/init.sh (stderr_fileno_): Update the advice in comments.
18394         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
18395         for lots of discussion.  Stefano Lattarini suggested the solution
18396         of putting "9>&2" after the command.  Reported by Bruno Haible.
18397
18398 2011-06-13  Bruno Haible  <bruno@clisp.org>
18399
18400         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
18401         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
18402         'none'.
18403
18404 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
18405
18406         ftoastr: use strtof only if HAVE_STRTOF
18407         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
18408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
18409         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
18410         * modules/ftoastr (configure.ac): Check for strtof.
18411
18412 2011-06-13  Bruno Haible  <bruno@clisp.org>
18413
18414         gnulib-tool: Addendum to 2011-06-08 commit.
18415         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
18416         and --witness-c-macro have been given, augment AM_CPPFLAGS.
18417
18418 2011-06-13  Bruno Haible  <bruno@clisp.org>
18419
18420         fseeko: Provide a non-inline replacement of fseek().
18421         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
18422         * modules/fseeko (Depends-on): Add fseek.
18423         * modules/fseek (License): Change to LGPLv2+.
18424
18425 2011-06-13  Bruno Haible  <bruno@clisp.org>
18426
18427         ftello: Provide a non-inline replacement of ftell().
18428         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
18429         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
18430         not have ftello() (such as on mingw).
18431         * modules/ftello (Depends-on): Add ftell.
18432         * modules/ftell (License): Change to LGPLv2+.
18433
18434 2011-05-07  Bruno Haible  <bruno@clisp.org>
18435
18436         ftell: Move AC_LIBOBJ invocations to module description.
18437         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
18438         * modules/ftell (configure.ac): ... to here.
18439
18440 2011-05-07  Bruno Haible  <bruno@clisp.org>
18441
18442         ftello: Respect rules for use of AC_LIBOBJ.
18443         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
18444         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
18445         here...
18446         * modules/ftello (configure.ac): ... to here.
18447
18448 2011-05-07  Bruno Haible  <bruno@clisp.org>
18449
18450         fseeko: Simplify.
18451         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
18452         (gl_FUNC_FSEEKO): Inline it here.
18453
18454 2011-05-07  Bruno Haible  <bruno@clisp.org>
18455
18456         fseek: Move AC_LIBOBJ invocations to module description.
18457         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
18458         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18459         * modules/fseek (configure.ac): ... to here.
18460
18461 2011-05-07  Bruno Haible  <bruno@clisp.org>
18462
18463         fseek: Respect rules for use of AC_LIBOBJ.
18464         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
18465         here...
18466         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
18467
18468 2011-05-07  Bruno Haible  <bruno@clisp.org>
18469
18470         fseeko: Respect rules for use of AC_LIBOBJ.
18471         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
18472         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
18473         here...
18474         * modules/fseeko (configure.ac): ... to here.
18475
18476 2011-06-13  Bruno Haible  <bruno@clisp.org>
18477
18478         gnulib-tool: Allow comments in the 'Depends-on' section.
18479         * doc/gnulib.texi (Module description): Mention comment syntax in the
18480         Depends-on section.
18481         * gnulib-tool (func_get_dependencies): Filter out comment lines.
18482
18483 2011-06-13  Bruno Haible  <bruno@clisp.org>
18484
18485         file-set.h: guard __attibute__ use, now that it's not always defined
18486         * lib/file-set.h (record_file): Use __attribute__ only with compiler
18487         versions that support it.  This fixes a coreutils build failure with
18488         the vendor cc on HP-UX 11.31.
18489
18490 2011-06-12  Bruno Haible  <bruno@clisp.org>
18491
18492         acl: Add support for HP-UX >= 11.11 JFS ACLs.
18493         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
18494         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
18495         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
18496         (acl, aclsort): New declarations.
18497         (aclv_nontrivial): New declaration.
18498         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
18499         (file_has_acl): Read also the second kind of HP-UX ACLs.
18500         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
18501         kind of HP-UX ACLs if the first kind fails.
18502         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
18503         second kind of HP-UX ACLs.
18504         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
18505         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
18506         agree.
18507         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18508         hpuxjfs.
18509         Handle hpuxjfs.
18510         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18511         hpuxjfs.
18512         Handle hpuxjfs.
18513         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18514         (func_test_same_acls): Use both lsacl and getacl.
18515         Handle hpuxjfs.
18516         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18517         (func_test_same_acls): Use both lsacl and getacl.
18518         Handle hpuxjfs.
18519
18520 2011-06-12  Bruno Haible  <bruno@clisp.org>
18521
18522         acl: Complete the 2010-08-10 fix.
18523         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
18524         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
18525         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
18526         explicitly.
18527         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
18528         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
18529
18530 2011-06-12  Bruno Haible  <bruno@clisp.org>
18531
18532         spawn-pipe tests: Comments.
18533         * tests/test-spawn-pipe-child.c (main): Update comment.
18534         Reported by James Youngman <jay@gnu.org>.
18535
18536 2011-06-11  James Youngman  <jay@gnu.org>
18537
18538         New module 'stat-size'.
18539         * modules/stat-size: New module.  Provides macros for accessing
18540         file size information in instances of struct stat.  Depends on the
18541         fileblocks module because it calls st_blocks.
18542         * lib/stat-size.h: New file, adapted from coreutils' system.h.
18543         * doc/gnulib.texi: Include stat-size.texi.
18544         * doc/stat-size.texi: Documentation for this module.
18545         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
18546         * m4/fileblocks.m4: Mention that stat-size depends on the call to
18547         AC_STRUCT_ST_BLOCKS.
18548
18549 2011-06-09  Bruno Haible  <bruno@clisp.org>
18550
18551         thread: Support pthreads-win32.
18552         * lib/glthread/thread.h (gl_thread_self): Define differently on
18553         pthreads-win32.
18554         (gl_null_thread): New declaration.
18555         (gl_thread_self_pointer): New macro.
18556         * lib/glthread/thread.c (gl_null_thread): New constant.
18557         * tests/test-lock.c: Use gl_thread_self_pointer instead of
18558         gl_thread_self.
18559         * tests/test-tls.c: Likewise.
18560         Suggested by Paul Eggert. Reported by Eric Blake.
18561
18562 2011-06-09  Bruno Haible  <bruno@clisp.org>
18563
18564         thread: Fix confusion between NULL and 0.
18565         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
18566         Reported by Paul Eggert.
18567
18568 2011-06-09  Bruno Haible  <bruno@clisp.org>
18569
18570         spawn-pipe tests: Avoid test failure on HP-UX 11.
18571         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
18572         is closed.
18573
18574 2011-06-09  Bruno Haible  <bruno@clisp.org>
18575
18576         acl tests: Fix compilation error on HP-UX 11.
18577         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
18578
18579 2011-06-09  Bruno Haible  <bruno@clisp.org>
18580
18581         rmdir: Avoid test failure on HP-UX 10.20.
18582         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
18583         EEXIST.
18584
18585 2011-06-08  Eric Blake  <eblake@redhat.com>
18586
18587         perror: fix test on mingw
18588         * modules/perror-tests (Depends-on): Add dup2.
18589
18590         strerror_r-posix: fix on MacOS
18591         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
18592         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
18593         logic bug.
18594         * lib/strerror_r.c (strerror_r): Fix the bug.
18595         * lib/strerror.c (strerror): Likewise.
18596         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
18597         problem.
18598         * doc/posix-functions/strerror.texi (strerror): Likewise.
18599         * doc/posix-functions/perror.texi (perror): Likewise.
18600         * tests/test-strerror.c (main): Enhance test.
18601         * tests/test-strerror_r.c (main): Likewise.
18602
18603 2011-06-08  Bruno Haible  <bruno@clisp.org>
18604
18605         gnulib-tool: Better isolation between different gnulib-tool invocations.
18606         * gnulib-tool: New option --witness-c-macro.
18607         (witness_c_macro): New variable.
18608         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
18609         AM_CPPFLAGS define it as a C macro.
18610         (func_emit_tests_Makefile_am): Likewise.
18611         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
18612         read it from there.
18613         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
18614         m4_define, not AC_DEFUN.
18615         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
18616         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
18617         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
18618         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
18619         s|...|...|, to substitute the values of the GNULIB_* module indicator
18620         variables.
18621         * modules/dirent (Makefile.am): Likewise.
18622         * modules/fcntl-h (Makefile.am): Likewise.
18623         * modules/iconv-h (Makefile.am): Likewise.
18624         * modules/langinfo (Makefile.am): Likewise.
18625         * modules/locale (Makefile.am): Likewise.
18626         * modules/math (Makefile.am): Likewise.
18627         * modules/netdb (Makefile.am): Likewise.
18628         * modules/poll-h (Makefile.am): Likewise.
18629         * modules/pty (Makefile.am): Likewise.
18630         * modules/search (Makefile.am): Likewise.
18631         * modules/signal (Makefile.am): Likewise.
18632         * modules/spawn (Makefile.am): Likewise.
18633         * modules/stdio (Makefile.am): Likewise.
18634         * modules/stdlib (Makefile.am): Likewise.
18635         * modules/string (Makefile.am): Likewise.
18636         * modules/sys_ioctl (Makefile.am): Likewise.
18637         * modules/sys_select (Makefile.am): Likewise.
18638         * modules/sys_socket (Makefile.am): Likewise.
18639         * modules/sys_stat (Makefile.am): Likewise.
18640         * modules/sys_times (Makefile.am): Likewise.
18641         * modules/sys_utsname (Makefile.am): Likewise.
18642         * modules/sys_wait (Makefile.am): Likewise.
18643         * modules/termios (Makefile.am): Likewise.
18644         * modules/time (Makefile.am): Likewise.
18645         * modules/unistd (Makefile.am): Likewise.
18646         * modules/wchar (Makefile.am): Likewise.
18647
18648 2011-06-08  Eric Blake  <eblake@redhat.com>
18649
18650         strerror: simplify replacement
18651         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
18652         * modules/strerror (configure.ac): No prereqs needed here...
18653         * modules/strerror-override (configure.ac): ...but this needs it.
18654         (Files): Add file for needed prereq macro.
18655
18656 2011-06-08  Bruno Haible  <bruno@clisp.org>
18657
18658         strerror_r-posix: Tweaks.
18659         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
18660         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
18661         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
18662         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
18663         (gl_FUNC_STRERROR_R): ... to here.
18664         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
18665
18666 2011-06-07  Eric Blake  <eblake@redhat.com>
18667
18668         perror: document fixed bugs
18669         * doc/posix-functions/perror.texi (perror): Document recent
18670         patches.
18671
18672 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
18673
18674         stat-time: get_stat_birthtime failure is better-defined
18675         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
18676         return a timestamp whose tv_sec and tv_nsec values are both -1.
18677         Previously, the spec said only that the tv_nsec value was negative.
18678         This upward-compatible change simplifies GNU tar a bit.
18679
18680 2011-06-07  Eric Blake  <eblake@redhat.com>
18681
18682         strerror_r-posix: work around cygwin 1.7.9
18683         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
18684         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
18685         bug without replacing strerror_r.
18686         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
18687         strerror_r is buggy, but without requiring strerror_r compilation.
18688         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
18689
18690         test-perror: relax test to ignore cygwin bug
18691         * tests/test-perror2.c (main): Relax test on requiring detection
18692         of stream errors, and use unbuffered stream.
18693         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
18694         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
18695         * doc/posix-functions/fputc.texi (fputc): Likewise.
18696         * doc/posix-functions/fputs.texi (fputs): Likewise.
18697         * doc/posix-functions/fputws.texi (fputws): Likewise.
18698         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
18699         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
18700         * doc/posix-functions/getopt.texi (getopt): Likewise.
18701         * doc/posix-functions/perror.texi (perror): Likewise.
18702         * doc/posix-functions/printf.texi (printf): Likewise.
18703         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
18704         * doc/posix-functions/psignal.texi (psignal): Likewise.
18705         * doc/posix-functions/putc.texi (putc): Likewise.
18706         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
18707         Likewise.
18708         * doc/posix-functions/putchar.texi (putchar): Likewise.
18709         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
18710         Likewise.
18711         * doc/posix-functions/puts.texi (puts): Likewise.
18712         * doc/posix-functions/putwc.texi (putwc): Likewise.
18713         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
18714         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
18715         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18716         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
18717         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18718         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
18719         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18720         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
18721
18722 2011-05-22  Bruno Haible  <bruno@clisp.org>
18723
18724         strerror: Move AC_LIBOBJ invocations to module description.
18725         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
18726         gl_PREREQ_STRERROR invocations from here...
18727         * modules/strerror (configure.ac): ... to here.
18728
18729 2011-05-21  Bruno Haible  <bruno@clisp.org>
18730
18731         perror: Use common idiom.
18732         * modules/perror (configure.ac): Reorder statements.
18733
18734 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18735
18736         tests: fix usage message in 'mktempd_'
18737         * tests/init.sh (mktempd_): In the usage message, use literal
18738         'mktempd_', not '$ME' (which is even undefined), as the name of
18739         the subroutine.
18740
18741 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18742
18743         tests init: new function 'fatal_', for hard errors
18744         Before this patch, the only way offered by tests/init.sh to
18745         properly signal a hard error was the `framework_failure_'
18746         function.  But the error message issued by that function,
18747         as its name would suggest, refers to a set-up failure in the
18748         testsuite, while hard errors can obviously also be due to
18749         other reasons.  The best way to fix this inconsistency is to
18750         introduce a new function with a more general error message.
18751         * tests/init.sh (fatal_): New function.
18752
18753 2011-06-06  Eric Blake  <eblake@redhat.com>
18754
18755         canonicalize-lgpl: use common idiom
18756         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
18757         over newer POSIX -Rf.
18758         Reported by Bruno Haible.
18759
18760         canonicalize-lgpl: work around AIX realpath bug
18761         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
18762         * doc/posix-functions/realpath.texi (realpath): Document it.
18763         Reported by Bruno Haible.
18764
18765         strerror: work around FreeBSD bug
18766         * lib/strerror.c (strerror): Special case 0.
18767         Reported by Bruno Haible.
18768
18769         strerror-override: avoid bloating errno module
18770         * modules/errno (Files, configure.ac): Move replacement strings...
18771         * modules/strerror-override: ...to new module.
18772         * modules/strerror (Depends-on): Add strerror-override.
18773         * modules/strerror_r-posix (Depends-on): Likewise.
18774         * MODULES.html.sh: Document new module.
18775         Reported by Bruno Haible.
18776
18777 2011-06-06  Bruno Haible  <bruno@clisp.org>
18778
18779         spawn-pipe tests: Rename program.
18780         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
18781         * tests/test-spawn-pipe-child.c: Update comment.
18782         * tests/test-spawn-pipe.sh: Update.
18783         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
18784
18785         spawn-pipe tests: Link the child program only against libc.
18786         * tests/test-spawn-pipe-child.c: New file, extracted from
18787         tests/test-spawn-pipe.c.
18788         (main): Expect only one argument.
18789         (is_open): New function, copied from tests/test-pipe.c.
18790         * tests/test-spawn-pipe.c: Don't include <errno.h>.
18791         (child_main): Remove function.
18792         (test_pipe): Pass only one argument to the child program.
18793         (main): Remove child process code. Expect the child program's name as
18794         first argument.
18795         * tests/test-spawn-pipe.sh: Pass the child program's name as first
18796         argument.
18797         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
18798         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
18799         test-spawn-pipe-child against no libraries.
18800
18801 2011-06-06  Bruno Haible  <bruno@clisp.org>
18802
18803         careadlinkat: Avoid mismatch between ssize_t and int.
18804         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
18805         * lib/careadlinkat.c (careadlinkatcwd): Define always.
18806
18807 2011-06-06  Jim Meyering  <meyering@redhat.com>
18808
18809         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
18810         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
18811         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
18812
18813 2011-06-05  Bruno Haible  <bruno@clisp.org>
18814
18815         ansi-c++-opt: Interoperability with libtool.
18816         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
18817         set the variable to "no", not to ":".
18818         * NEWS: Mention the change.
18819
18820 2011-06-05  Bruno Haible  <bruno@clisp.org>
18821
18822         acl: Fix test failure on AIX 7.
18823         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
18824         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
18825
18826 2011-06-05  Bruno Haible  <bruno@clisp.org>
18827
18828         pipe-filter-ii: Fix test failure on AIX and IRIX.
18829         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
18830         with EAGAIN, retry with a smaller buffer size.
18831
18832 2011-06-05  Bruno Haible  <bruno@clisp.org>
18833
18834         localename: Fix link dependencies.
18835         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
18836         * modules/localename-tests (Makefile.am): Link test-localename with
18837         $(LIBTHREAD).
18838
18839 2011-06-05  Bruno Haible  <bruno@clisp.org>
18840
18841         error: Avoid gcc warning.
18842         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
18843
18844 2011-06-05  Bruno Haible  <bruno@clisp.org>
18845
18846         unsetenv: Avoid gcc warning.
18847         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
18848
18849 2011-06-05  Bruno Haible  <bruno@clisp.org>
18850
18851         setenv: Avoid gcc warning.
18852         * lib/setenv.c (setenv): Provide declaration if system lacks it.
18853
18854 2011-06-05  Bruno Haible  <bruno@clisp.org>
18855
18856         sys_select: Ensure memset is declared also on AIX 7.
18857         * lib/sys_select.in.h: Include <string.h> also on AIX.
18858         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
18859         self-contained also on AIX 7.1.
18860
18861 2011-06-04  Jim Meyering  <meyering@redhat.com>
18862
18863         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
18864         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
18865         function name, "error".
18866         (_gl_translatable_diag_func_re): New configurable variable.
18867
18868 2011-06-04  Bruno Haible  <bruno@clisp.org>
18869
18870         getopt: Avoid gcc warning.
18871         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
18872
18873 2011-06-04  Bruno Haible  <bruno@clisp.org>
18874
18875         strerror_r: Fix comments.
18876         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
18877         commit.
18878
18879 2011-06-04  Bruno Haible  <bruno@clisp.org>
18880
18881         perror: Fix compilation error.
18882         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
18883         Undefine fprintf, not sprintf.
18884         * modules/perror (Depends-on): Remove intprops, verify.
18885
18886 2011-06-04  Bruno Haible  <bruno@clisp.org>
18887
18888         setlocale: Enable replacement on Cygwin 1.5.
18889         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
18890         Cygwin 1.5.x.
18891         * doc/posix-functions/setlocale.texi: Mention that the problem with the
18892         LC_CTYPE category also exists on Cygwin 1.5.x.
18893
18894 2011-06-04  Bruno Haible  <bruno@clisp.org>
18895
18896         strerror-override: Don't disable symbol renamings.
18897         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
18898         * lib/strerror-override.c: Include config.h.
18899         (strerror_override): Don't undefine.
18900
18901 2011-06-03  Bruno Haible  <bruno@clisp.org>
18902
18903         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
18904         * lib/localename.h: Update copyright header.
18905         * lib/localename.c: Likewise.
18906         * lib/relocatable.h: Likewise.
18907         * lib/relocatable.c: Likewise.
18908
18909 2011-06-02  Bruno Haible  <bruno@clisp.org>
18910
18911         doc: Fix a module name.
18912         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
18913
18914 2011-06-02  Bruno Haible  <bruno@clisp.org>
18915
18916         pipe2: Remove dependency on 'nonblocking' module.
18917         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
18918         O_NONBLOCK is defined by gnulib.
18919         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
18920         is zero.
18921         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
18922         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
18923         defined by gnulib.
18924         (get_nonblocking_flag): New function.
18925         (main): Test O_NONBLOCK flag only if it is nonzero.
18926         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
18927
18928 2011-06-03  Jim Meyering  <meyering@redhat.com>
18929
18930         maint: three new prohibit-header-without-use rules
18931         Prohibit use of cloexec.h, posixver.h, same.h without use.
18932         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
18933         (sc_prohibit_posixver_without_use): Likewise.
18934         (sc_prohibit_same_without_use): Likewise.
18935
18936 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18937
18938         allocator: 'die' routine is now given requested size
18939         * lib/allocator.h (struct allocator.die): New size arg.
18940         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
18941         If the actual problem is an ssize_t limitation, not a size_t or
18942         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
18943
18944 2011-06-01  Eric Blake  <eblake@redhat.com>
18945
18946         strerror: drop strerror_r dependency
18947         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
18948         * lib/strerror-override.c (strerror_override): ...to new file.
18949         * lib/strerror-override.h: Add prototype.
18950         * lib/strerror-impl.h: Delete.
18951         * lib/strerror.c (strerror): New implementation.
18952         * modules/errno (Files): Add new files.
18953         (configure.ac): Compile new file as appropriate.
18954         * modules/strerror (Files): Drop unused file.
18955         (Depends-on): Drop strerror_r-posix.
18956         * MODULES.html.sh: Document strerror_r-posix.
18957         Requested by Sam Steingold.
18958
18959         perror: call strerror_r directly
18960         * modules/perror (Files): Drop strerror-impl.h.
18961         * lib/perror.c (perror): Use our own stack buffer, rather than
18962         calling a wrapper that uses static storage.
18963         * doc/posix-functions/perror.texi (perror): Document a limitation
18964         of our replacement.
18965
18966         strerror_r: fix includes for FreeBSD
18967         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
18968         since we use abort on some platforms.
18969         Reported by Matthias Bolte.
18970
18971 2011-05-31  Bruno Haible  <bruno@clisp.org>
18972
18973         Fix link errors in tests: openat-die uses gettext-h.
18974         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
18975         against $(LIBINTL).
18976         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
18977         against $(LIBINTL).
18978         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
18979         $(LIBINTL).
18980         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
18981         against $(LIBINTL).
18982         * modules/linkat-tests (Makefile.am): Link test-linkat against
18983         $(LIBINTL).
18984         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
18985         $(LIBINTL).
18986         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
18987         against $(LIBINTL).
18988         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
18989         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
18990         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
18991         $(LIBINTL).
18992         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
18993         $(LIBINTL).
18994         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
18995         $(LIBINTL).
18996         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18997
18998 2011-05-31  Bruno Haible  <bruno@clisp.org>
18999
19000         Fix link errors in tests: wait-process uses gettext-h.
19001         * modules/nonblocking-pipe-tests (Makefile.am): Set
19002         test_nonblocking_pipe_main_LDADD.
19003         * modules/nonblocking-socket-tests (Makefile.am): Link
19004         test-nonblocking-socket-main against $(LIBINTL).
19005         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19006
19007 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
19008
19009         assert-h: work around 'verify' incompatibility
19010         * lib/verify.h: Use @...@ directives, not ifdef.
19011         * modules/assert-h (assert.h): Implement the directives.
19012         (assert.h): Substitute the symbol-prefix more consistently.
19013
19014 2011-05-29  Jim Meyering  <meyering@redhat.com>
19015
19016         trim: remove three superfluous assignments
19017         * lib/trim.c (trim2): Remove three superfluous assignments
19018         and correct brace positioning.
19019
19020 2011-05-29  Bruno Haible  <bruno@clisp.org>
19021
19022         wctype-h: Avoid namespace pollution on Solaris 2.6.
19023         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
19024         identifiers.
19025         * doc/posix-headers/wctype.texi: Mention the problem.
19026         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19027
19028 2011-05-28  Jim Meyering  <meyering@redhat.com>
19029
19030         parse-datetime.y: accommodate -Wstrict-overflow
19031         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
19032         placate -Wstrict-overflow.
19033
19034         trim: avoid a warning from -O2 -Wstrict-overflow
19035         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
19036
19037 2011-05-29  Bruno Haible  <bruno@clisp.org>
19038
19039         gnulib-tool: Fix bug in yesterday's commit.
19040         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
19041         twice.
19042
19043 2011-05-29  Bruno Haible  <bruno@clisp.org>
19044
19045         Allow multiple gnulib generated include files to be combined.
19046         * gnulib-tool (func_compute_include_guard_prefix): New function.
19047         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
19048         ${gl_include_guard_prefix} references.
19049         (func_import, func_create_testdir): Invoke
19050         func_compute_include_guard_prefix.
19051         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
19052         * lib/ctype.in.h: Likewise.
19053         * lib/dirent.in.h: Likewise.
19054         * lib/errno.in.h: Likewise.
19055         * lib/fcntl.in.h: Likewise.
19056         * lib/float.in.h: Likewise.
19057         * lib/getopt.in.h: Likewise.
19058         * lib/iconv.in.h: Likewise.
19059         * lib/langinfo.in.h: Likewise.
19060         * lib/locale.in.h: Likewise.
19061         * lib/math.in.h: Likewise.
19062         * lib/netdb.in.h: Likewise.
19063         * lib/netinet_in.in.h: Likewise.
19064         * lib/poll.in.h: Likewise.
19065         * lib/pthread.in.h: Likewise.
19066         * lib/pty.in.h: Likewise.
19067         * lib/sched.in.h: Likewise.
19068         * lib/se-selinux.in.h: Likewise.
19069         * lib/search.in.h: Likewise.
19070         * lib/signal.in.h: Likewise.
19071         * lib/spawn.in.h: Likewise.
19072         * lib/stdarg.in.h: Likewise.
19073         * lib/stddef.in.h: Likewise.
19074         * lib/stdint.in.h: Likewise.
19075         * lib/stdio.in.h: Likewise.
19076         * lib/stdlib.in.h: Likewise.
19077         * lib/string.in.h: Likewise.
19078         * lib/strings.in.h: Likewise.
19079         * lib/sys_file.in.h: Likewise.
19080         * lib/sys_ioctl.in.h: Likewise.
19081         * lib/sys_select.in.h: Likewise.
19082         * lib/sys_socket.in.h: Likewise.
19083         * lib/sys_stat.in.h: Likewise.
19084         * lib/sys_time.in.h: Likewise.
19085         * lib/sys_times.in.h: Likewise.
19086         * lib/sys_uio.in.h: Likewise.
19087         * lib/sys_utsname.in.h: Likewise.
19088         * lib/sys_wait.in.h: Likewise.
19089         * lib/sysexits.in.h: Likewise.
19090         * lib/termios.in.h: Likewise.
19091         * lib/time.in.h: Likewise.
19092         * lib/unistd.in.h: Likewise.
19093         * lib/wchar.in.h: Likewise.
19094         * lib/wctype.in.h: Likewise.
19095         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
19096         * modules/ctype (Makefile.am): Likewise.
19097         * modules/dirent (Makefile.am): Likewise.
19098         * modules/errno (Makefile.am): Likewise.
19099         * modules/fcntl-h (Makefile.am): Likewise.
19100         * modules/float (Makefile.am): Likewise.
19101         * modules/getopt-posix (Makefile.am): Likewise.
19102         * modules/iconv-h (Makefile.am): Likewise.
19103         * modules/langinfo (Makefile.am): Likewise.
19104         * modules/locale (Makefile.am): Likewise.
19105         * modules/math (Makefile.am): Likewise.
19106         * modules/netdb (Makefile.am): Likewise.
19107         * modules/netinet_in (Makefile.am): Likewise.
19108         * modules/poll-h (Makefile.am): Likewise.
19109         * modules/pthread (Makefile.am): Likewise.
19110         * modules/pty (Makefile.am): Likewise.
19111         * modules/sched (Makefile.am): Likewise.
19112         * modules/search (Makefile.am): Likewise.
19113         * modules/selinux-h (Makefile.am): Likewise.
19114         * modules/signal (Makefile.am): Likewise.
19115         * modules/spawn (Makefile.am): Likewise.
19116         * modules/stdarg (Makefile.am): Likewise.
19117         * modules/stddef (Makefile.am): Likewise.
19118         * modules/stdint (Makefile.am): Likewise.
19119         * modules/stdio (Makefile.am): Likewise.
19120         * modules/stdlib (Makefile.am): Likewise.
19121         * modules/string (Makefile.am): Likewise.
19122         * modules/strings (Makefile.am): Likewise.
19123         * modules/sys_file (Makefile.am): Likewise.
19124         * modules/sys_ioctl (Makefile.am): Likewise.
19125         * modules/sys_select (Makefile.am): Likewise.
19126         * modules/sys_socket (Makefile.am): Likewise.
19127         * modules/sys_stat (Makefile.am): Likewise.
19128         * modules/sys_time (Makefile.am): Likewise.
19129         * modules/sys_times (Makefile.am): Likewise.
19130         * modules/sys_uio (Makefile.am): Likewise.
19131         * modules/sys_utsname (Makefile.am): Likewise.
19132         * modules/sys_wait (Makefile.am): Likewise.
19133         * modules/sysexits (Makefile.am): Likewise.
19134         * modules/termios (Makefile.am): Likewise.
19135         * modules/time (Makefile.am): Likewise.
19136         * modules/unistd (Makefile.am): Likewise.
19137         * modules/wchar (Makefile.am): Likewise.
19138         * modules/wctype-h (Makefile.am): Likewise.
19139         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
19140
19141 2011-05-29  Bruno Haible  <bruno@clisp.org>
19142
19143         assert-h: Allow multiple gnulib generated replacements to coexist.
19144         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
19145
19146 2011-05-29  Bruno Haible  <bruno@clisp.org>
19147
19148         argp: Allow coexistence with strerror_r-posix module.
19149         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
19150         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
19151         by gnulib's <string.h> replacement), assume it has the POSIX signature,
19152         not the glibc signature.
19153
19154 2011-05-28  Bruno Haible  <bruno@clisp.org>
19155
19156         gnulib-tool: Alternative structure of testdirs, similar to --import.
19157         * gnulib-tool: New option --single-configure.
19158         (func_usage): Document it.
19159         (single_configure): New variable.
19160         (func_modules_transitive_closure_separately,
19161         func_modules_transitive_closure_separately,
19162         func_determine_use_libtests, func_modules_add_dummy_separately,
19163         func_modules_to_filelist_separately): New functions, extracted from
19164         func_import.
19165         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
19166         (func_import): Use the new functions.
19167         (func_create_testdir): Set final_modules. Handle $single_configure =
19168         true case.
19169
19170 2011-05-28  Bruno Haible  <bruno@clisp.org>
19171
19172         getloadavg: Remove an unreliable safety check.
19173         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
19174         getloadavg.c is in place.
19175         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
19176         Reported by Sam Steingold <sds@gnu.org>.
19177
19178 2011-05-28  Bruno Haible  <bruno@clisp.org>
19179
19180         doc: Cleanup yet another file produced by texinfo.tex.
19181         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
19182
19183 2011-05-28  Bruno Haible  <bruno@clisp.org>
19184
19185         Finish the conditional dependencies mechanism.
19186         * gnulib-tool: New option --no-conditional-dependencies.
19187         (func_usage): Document it. Don't mark --conditional-dependencies as
19188         experimental.
19189         (cond_dependencies): The possible values can now be true, false, empty.
19190         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
19191         (func_import): Store setting in gnulib-cache.m4 and read it from there.
19192         * doc/gnulib-tool.texi (Conditional dependencies): New section.
19193
19194 2011-05-28  Bruno Haible  <bruno@clisp.org>
19195
19196         doc: Use a recent texinfo.tex.
19197         * doc/Makefile (tex_opts): New variable.
19198         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
19199
19200 2011-05-28  Jim Meyering  <meyering@redhat.com>
19201
19202         intprops.h: adjust comment to match code change
19203         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
19204         only once, it *may* have side effects.  Also fix an unrelated typo.
19205         (_GL_INT_SIGNED): Likewise.
19206
19207 2011-05-26  Simon Josefsson  <simon@josefsson.org>
19208
19209         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
19210
19211 2011-05-26  Bruno Haible  <bruno@clisp.org>
19212
19213         mbsrchr: Avoid collision with system function on Interix.
19214         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
19215         Reported by Markus Duft <mduft@gentoo.org>.
19216
19217 2011-05-15  James Youngman  <jay@gnu.org>
19218
19219         getopt: for ambiguous options, enumerate the possibilities.
19220         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
19221         the ambiguous options when an ambiguous prefix is given. This was
19222         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
19223         glibc change was
19224         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
19225
19226 2011-05-25  Eric Blake  <eblake@redhat.com>
19227
19228         getcwd: work around mingw bug
19229         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
19230         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19231         Reported by Matthias Bolte.
19232
19233 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
19234
19235         test-intprops: disable -Wtype-limits diagnostics
19236         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
19237         diagnostics.  Otherwise, the integer overflow macros generate many
19238         diagnostics.  Reported by Jim Meyering in
19239         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19240
19241         intprops: shorten, to pacify gcc -Woverlength-strings
19242         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
19243         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
19244         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
19245         likely to run afoul of C compiler limits for string constant lengths.
19246         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19247
19248 2011-05-24  Eric Blake  <eblake@redhat.com>
19249
19250         docs: document recently fixed glibc printf bug
19251         * doc/posix-functions/fprintf.texi (fprintf): Document it.
19252         * doc/posix-functions/printf.texi (printf): Likewise.
19253         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19254         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19255
19256         closein-tests: convert to init.sh
19257         * modules/closein-tests (Files): Add init.sh
19258         * tests/test-closein.sh Use it.
19259
19260         yesno-tests: convert to init.sh
19261         * modules/yesno-tests (Files): Add init.sh.
19262         * tests/test-yesno.sh: Use it.
19263
19264         atexit-tests: ensure reliable exit status
19265         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
19266         Reported by Bruno Haible.
19267
19268 2011-05-24  Bruno Haible  <bruno@clisp.org>
19269
19270         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
19271         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
19272         gl_PREREQ_STRERROR_R invocations from here...
19273         * modules/strerror_r-posix (configure.ac): ... to here.
19274
19275 2011-05-24  Eric Blake  <eblake@redhat.com>
19276
19277         strerror_r: fix missing header
19278         * lib/strerror_r.c: Avoid compiler warning about snprintf.
19279
19280         strerror_r: fix AIX test failures
19281         * lib/strerror_r.c (strerror_r): Convert silent truncation to
19282         ERANGE failure.
19283
19284         strerror_r: fix Solaris test failures
19285         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
19286         failures.
19287         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19288
19289         strerror_r: enforce POSIX recommendations
19290         * lib/strerror_r.c (safe_copy): New helper method.
19291         (strerror_r): Guarantee a non-empty string.
19292         * tests/test-strerror_r.c (main): Enhance tests to incorporate
19293         recent POSIX rulings and to match our strerror guarantees.
19294         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19295
19296 2011-05-24  Jim Meyering  <meyering@redhat.com>
19297
19298         test-perror2.c: avoid warning about unused variable
19299         * tests/test-perror2.c (main): Remove declaration of unused "fp".
19300
19301 2011-05-24  Eric Blake  <eblake@redhat.com>
19302
19303         perror: avoid spurious test failure on HP-UX
19304         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
19305
19306         tests: fix logic bug in init.sh
19307         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
19308         shell.
19309
19310 2011-05-24  Jim Meyering  <meyering@redhat.com>
19311
19312         utimensat: do not reference an out-of-scope buffer
19313         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
19314         declared in an inner scope, yet "times" would be dereferenced outside
19315         the scope in which "ts" was valid.
19316         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
19317         of ts[2] "out/up", so that the use of aliased "times" (via
19318         "times = ts;") does not end up referencing an out-of-scope "ts"
19319
19320         opendir-safer.c: don't clobber errno; don't close negative FD
19321         * lib/opendir-safer.c (opendir_safer):
19322         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
19323         file descriptor, and more importantly, don't clobber the
19324         offending errno value with EINVAL.  Before, upon failure
19325         of dup_safer, we would pass the negative file descriptor to
19326         fdopendir, which would clobber errno.
19327
19328 2011-05-23  Bruno Haible  <bruno@clisp.org>
19329
19330         idcache: Fix module description.
19331         * modules/idcache (Include): Set to "idcache.h".
19332
19333 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19334
19335         gnulib-tool: fix portability problem with MacOS sed
19336         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
19337         before the "}".  Problem reported by Leo in
19338         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
19339         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
19340         sed_extract_condition1, sed_extract_condition2.
19341
19342 2011-05-23  Bruno Haible  <bruno@clisp.org>
19343
19344         hash: Simplify autoconf macro.
19345         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
19346
19347 2011-05-23  Bruno Haible  <bruno@clisp.org>
19348
19349         getugroups: Fix module description.
19350         * modules/getugroups (Include): Set to "getugroups.h".
19351
19352 2011-05-23  Bruno Haible  <bruno@clisp.org>
19353
19354         linkat: Simplify autoconf macro.
19355         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
19356
19357 2011-05-23  Bruno Haible  <bruno@clisp.org>
19358             Eric Blake  <eblake@redhat.com>
19359
19360         linkat, renameat: Update dependencies.
19361         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
19362         * modules/linkat (Depends-on): Likewise. Remove also readlink,
19363         symlinkat.
19364
19365 2011-05-23  Jim Meyering  <meyering@redhat.com>
19366
19367         maint.mk: more tight_scope improvements
19368         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
19369         (_gl_TS_headers): Define only in if-0'd block.
19370         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
19371         sometimes we must *not* use it.  Adjust uses accordingly.
19372         (sc_tight_scope): Use much simpler grep-based test to determine
19373         whether we skip this rule.
19374
19375         maint.mk: generalize/improve the tight-scope rule
19376         * top/maint.mk: Emit a warning when the test is skipped.
19377         (_gl_TS_dir): Add $(srcdir)/ prefix.
19378         (_gl_TS_function_match): Simplify, rather than trying
19379         to enumerate common types.  Otherwise, it would fail to match an
19380         "extern unsigned char const *" declaration in idutils.
19381         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
19382         a way to support use of that type of macro.
19383         (_gl_TS_var_match): Simplify regexp.
19384         (_gl_TS_obj_files): New configurable variable.
19385         (_gl_TS_headers): Likewise.
19386
19387 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19388
19389         verify: fix bug when gnulib <assert.h> is also included
19390         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
19391         is defined, not if _GL_STATIC_ASSERT_H is not defined.
19392         Perhaps there's a better way, but this fixes the immediate problem.
19393         Problem reported by Bruno Haible in
19394         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
19395
19396 2011-05-22  Bruno Haible  <bruno@clisp.org>
19397
19398         xgetcwd: Simplify autoconf macro.
19399         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
19400
19401 2011-05-22  Bruno Haible  <bruno@clisp.org>
19402
19403         New module 'mktime-internal'.
19404         * modules/mktime-internal: New file.
19405         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
19406         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
19407         mktime_internal as a C macro if libc has __mktime_internal.
19408         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
19409         conditions.
19410         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
19411
19412 2011-05-22  Bruno Haible  <bruno@clisp.org>
19413
19414         timegm: Correct mktime replacement statements.
19415         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
19416         defining mktime as a C macro. This completes a 2009-07-28 commit.
19417
19418 2011-05-22  Bruno Haible  <bruno@clisp.org>
19419
19420         timegm: Simplify autoconf macro.
19421         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
19422
19423 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19424
19425         clock-time: change to LGPLv2+.
19426         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
19427         BSD-like but we have no mark for that; this is good enough for now.
19428
19429 2011-05-21  Bruno Haible  <bruno@clisp.org>
19430
19431         strerror_r: Fix comments.
19432         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
19433
19434 2011-05-21  Bruno Haible  <bruno@clisp.org>
19435
19436         relocatable-prog-wrapper: Fix possible link error.
19437         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
19438         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
19439         (gl_FUNC_SETENV): ... to here.
19440         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
19441         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
19442
19443 2011-05-21  Bruno Haible  <bruno@clisp.org>
19444
19445         relocatable-prog-wrapper: Assume strerror() exists.
19446         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
19447         m4/strerror.m4.
19448         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
19449         * lib/relocwrapper.c: Remove mention of strerror module.
19450         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
19451         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
19452         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
19453         C macro.
19454
19455 2011-05-21  Bruno Haible  <bruno@clisp.org>
19456
19457         select: Simplify replacement idiom.
19458         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
19459         Win32 platforms.
19460         * lib/sys_select.in.h (select): Simplify accordingly.
19461         * modules/select (Depends-on): Likewise.
19462
19463 2011-05-21  Bruno Haible  <bruno@clisp.org>
19464
19465         mkdir-p: Simplify autoconf macro.
19466         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
19467         gl_FUNC_LCHOWN.
19468
19469 2011-05-21  Eric Blake  <eblake@redhat.com>
19470
19471         strerror_r: avoid clobbering strerror on cygwin
19472         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
19473         fall back instead to sys_errlist.
19474         * modules/strerror (configure.ac): Add witness.
19475         * tests/test-strerror_r.c (main): Enhance test.
19476         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19477         * tests/test-perror2.c (main): Free memory before exit.
19478
19479 2011-05-21  Bruno Haible  <bruno@clisp.org>
19480
19481         mkdtemp: Use gnulib naming conventions.
19482         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
19483         * modules/mkdtemp (configure.ac): Update.
19484
19485 2011-05-20  Eric Blake  <eblake@redhat.com>
19486
19487         strerror_r: avoid corrupting errno on Solaris
19488         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
19489         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19490
19491         strerror_r: avoid compiler warning
19492         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
19493
19494         strerror_r: simplify AIX code
19495         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
19496
19497         test-perror: avoid spurious failure on FreeBSD
19498         * modules/perror-tests (Depends-on): Add strerror, now that
19499         strerror_r no longer pulls it in.
19500
19501 2011-05-20  Bruno Haible  <bruno@clisp.org>
19502
19503         strerror_r-posix: Remove unused dependencies.
19504         * modules/strerror_r-posix (Depends-on): Remove strerror.
19505         Reported by Eric Blake.
19506
19507 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19508
19509         intprops: remove assumption about A|B representation
19510         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
19511         is a valid integer if both A and B are.  Although this is true for
19512         all known practical hosts, the C standard doesn't guarantee it,
19513         and the code need not assume it.  Also, this change may work around
19514         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
19515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
19516
19517 2011-05-20  Eric Blake  <eblake@redhat.com>
19518
19519         perror: work around FreeBSD bug
19520         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
19521         is broken.  Move AC_LIBOBJ...
19522         * modules/perror (configure.ac): Here.
19523         * doc/posix-functions/perror.texi (perror): Document this.
19524         * tests/test-perror2.c (main): Enhance test.
19525
19526         test-perror: check for strerror interactions
19527         * tests/macros.h (STREQ): Add macro.
19528         * modules/perror-tests (Files): Add second test.
19529         * tests/test-perror2.c (main): New file.
19530         * doc/posix-functions/perror.texi (perror): Document glibc bug.
19531
19532         test-perror: rewrite to use init script
19533         * modules/perror-tests (Files): Add init.sh.
19534         * tests/test-perror.sh: Use temporary directory.
19535
19536 2011-05-20  Jim Meyering  <meyering@redhat.com>
19537
19538         maint: replace misused "a" with "an"
19539         * doc/intprops.texi: "a integer"
19540         * doc/regex.texi: "a explanation"
19541         * lib/alignof.h: "a object"
19542         * lib/argmatch.h: "a explanation"
19543         * lib/argp-help.c: "a option" and "a OPTION_DOC"
19544         * lib/stdint.in.h: "a integer"
19545         * lib/userspec.c: "a owner"
19546         * doc/gnulib.texi: Fix "a idea", and reword.
19547
19548 2011-05-19  Jim Meyering  <meyering@redhat.com>
19549
19550         maint: correct misuse of "a" and "an"
19551         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
19552         * lib/argp-help.c: "an docum...": s/an/a/
19553         * lib/argp-parse.c: "An vector": s/An/A/
19554         * lib/execute.c: "an native": s/an/a/
19555         * lib/spawn-pipe.c: Likewise.
19556         * lib/gc.h: "an Gc_rc": s/an/a/
19557         * lib/unigbrk.in.h: "an grapheme": s/an/a/
19558         * lib/fts.c: "an stat.st_dev": s/an/a/
19559
19560 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19561
19562         intprops-tests: work around HP-UX 11.23 cc bug with constants
19563         * tests/test-intprops.c (VERIFY): New macro.
19564         (main): Use it, instead of verify, to work around the compiler bug; see
19565         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19566
19567         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
19568         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
19569         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
19570         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
19571         (_GL_REMAINDER_OVERFLOW): Use it.
19572
19573         intprops-tests: revert unsigned part of previous change
19574         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
19575         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
19576         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
19577         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
19578
19579 2011-05-19  Bruno Haible  <bruno@clisp.org>
19580
19581         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
19582         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
19583         strerror_r() returned without filling the buffer.
19584         Reported by Eric Blake.
19585
19586 2011-05-19  Eric Blake  <eblake@redhat.com>
19587
19588         strerror_r: guarantee unchanged errno
19589         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
19590         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
19591         failure.
19592         * tests/test-strerror_r.c (main): Enhance test.
19593
19594 2011-05-19  Bruno Haible  <bruno@clisp.org>
19595
19596         strerror_r: Reorder #if blocks.
19597         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
19598         for consistency with the previous commit.
19599
19600 2011-05-19  Bruno Haible  <bruno@clisp.org>
19601
19602         perror: Avoid clobbering the strerror buffer when possible.
19603         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
19604         * lib/strerror.c: Include it.
19605         * modules/strerror (Files): Add lib/strerror-impl.h.
19606         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
19607         (my_strerror): New function, defined through lib/strerror-impl.h.
19608         (perror): Use it instead of strerror.
19609         * modules/perror (Files): Add lib/strerror-impl.h.
19610         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
19611
19612 2011-05-19  Eric Blake  <eblake@redhat.com>
19613
19614         strerror_r: fix on newer cygwin
19615         * lib/strerror_r.c (strerror_r): Cygwin now has
19616         __xpg_strerror_r, use it.
19617
19618 2011-05-19  Bruno Haible  <bruno@clisp.org>
19619
19620         strerror_r: Avoid clobbering the strerror buffer when possible.
19621         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
19622         (sys_nerr, sys_errlist): New declarations.
19623         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
19624         HP-UX, native Win32, IRIX, and 32-bit Solaris.
19625         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
19626
19627 2011-05-19  Bruno Haible  <bruno@clisp.org>
19628
19629         strerror_r: Fix test failure on mingw.
19630         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
19631         EXTEND_STRERROR_R.
19632         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
19633         macros from errno.in.h instead.
19634
19635 2011-05-19  Eric Blake  <eblake@redhat.com>
19636
19637         strerror: relax test for Solaris
19638         * tests/test-strerror.c (main): Permit Solaris behavior.
19639         * tests/test-strerror_r.c (main): Likewise.
19640
19641         strerror: enforce POSIX ruling on strerror(0)
19642         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
19643         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19644         * lib/strerror_r.c (rpl_strerror_r): Work around it.
19645         * doc/posix-functions/strerror.texi (strerror): Document it.
19646         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
19647         * tests/test-strerror.c (main): Strengthen test.
19648         * tests/test-strerror_r.c (main): Likewise.
19649
19650 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19651
19652         intprop-tests: port to older and more-pedantic compilers
19653         * modules/intprops-tests (Files): Add tests/macros.h.
19654         * tests/test-intprops.c: Include macros.h.
19655         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
19656         it's no longer documented to expand to an integer constant expression.
19657         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
19658         argument is floating point, as it's no longer documented to expand
19659         to an integer constant expression in that case.
19660         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
19661         compiler bugs reported by Bruno Haible.  See
19662         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19663         (U0, U1): New constants, to work around the same bugs.  Also,
19664         in tests, use e.g., "(unsigned int) 39" rather than "39u".
19665
19666         intprops: work around C compiler bugs
19667         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
19668         bug in Sun C 5.11 2010/08/13 and other compilers; see
19669         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19670
19671         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
19672         * doc/intprops.texi (Integer Type Determination): Fix
19673         documentation for TYPE_IS_INTEGER: it returns an constant
19674         expression, not an integer constant expression.  Fix doc for
19675         TYPE_SIGNED: it returns an integer constant expression only if its
19676         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
19677         hardly worth documented that way....)
19678
19679 2011-05-18  Bruno Haible  <bruno@clisp.org>
19680
19681         strerror_r: Avoid clobbering the strerror buffer when possible.
19682         * lib/strerror_r.c (strerror_r): Merge the three implementations.
19683         Handle gnulib defined errno values here. When strerror() returns NULL
19684         or an empty string, return EINVAL.
19685         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
19686         gnulib defined errno values here.
19687         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
19688
19689 2011-05-18  Eric Blake  <eblake@redhat.com>
19690
19691         fnmatch: avoid compiler warning
19692         * lib/fnmatch_loop.c (FCT): Use correct type.
19693         Reported by Matthias Bolte.
19694
19695 2011-05-13  Jim Meyering  <meyering@redhat.com>
19696
19697         maint.mk: three new prohibit_<HDR>_without_use rules
19698         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
19699         (sc_prohibit_stdio-safer_without_use): Likewise.
19700         (sc_prohibit_xfreopen_without_use): Likewise.
19701
19702 2011-05-17  Jim Meyering  <meyering@redhat.com>
19703
19704         announce-gen: fail if the NEWS delta is empty
19705         If there's nothing noteworthy in NEWS, then either you forgot
19706         or you shouldn't be releasing.
19707         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
19708
19709 2011-05-17  Pádraig Brady <P@draigBrady.com>
19710
19711         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
19712         reserved symbols starting with double underscore from the check.
19713
19714 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
19715
19716         intprops: add doc
19717         * doc/intprops.texi: New file, documenting intprops.
19718         * doc/gnulib.texi (Particular Modules): Include it.
19719
19720         verify: add doc to gnulib manual and fix example
19721         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
19722         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
19723         (Compile-time Assertions): Fix example so it can't overflow.
19724
19725 2011-05-17  Jim Meyering  <meyering@redhat.com>
19726
19727         warnings.m4: don't usurp save_CPPFLAGS variable name
19728         * m4/warnings.m4: Prefix local temporary variable name with gl_.
19729
19730         doc: fix typo
19731         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
19732
19733 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19734             Bruno Haible  <bruno@clisp.org>
19735
19736         doc: Tweak recent change.
19737         * README (Portability guidelines): Tweak new text.
19738         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
19739         Interix 6.1.
19740
19741 2011-05-16  Eric Blake  <eblake@redhat.com>
19742
19743         inttypes: avoid autoconf warning
19744         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
19745         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19746
19747 2011-05-16  Sam Steingold <sds@gnu.org>
19748         and Eric Blake  <eblake@redhat.com>
19749
19750         vc-list-files: accept multiple directory operands
19751         * build-aux/vc-list-files: Iterate over all remaining operands.
19752
19753 2011-05-16  Bruno Haible  <bruno@clisp.org>
19754
19755         Fix confusion regarding deprecated modules.
19756         * modules/calloc (Status, Notice): Mark module as deprecated, not
19757         obsolete.
19758         * modules/fnmatch-posix (Status, Notice): Likewise.
19759         * modules/getdate (Status, Notice): Likewise.
19760         * modules/getopt (Status, Notice): Likewise.
19761         * modules/malloc (Status, Notice): Likewise.
19762         * modules/pipe (Status, Notice): Likewise.
19763         * modules/realloc (Status, Notice): Likewise.
19764         * modules/rename-dest-slash (Status, Notice): Likewise.
19765         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
19766         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
19767         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
19768         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
19769         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
19770
19771 2011-05-16  Bruno Haible  <bruno@clisp.org>
19772
19773         doc: List the target platforms.
19774         * doc/gnulib-intro.texi (Target Platforms): New section.
19775         * doc/gnulib.texi (Introduction): Update menu.
19776         * README (Portability guidelines): Refer to the new section. Update
19777         statement about oldest supported environment. Remove rationale why
19778         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
19779         unportable C89 function.
19780         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
19781         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
19782
19783 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19784
19785         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
19786
19787 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19788
19789         intprops-tests: new module
19790         * modules/intprops-tests, tests/test-intprops.c: New files.
19791
19792         intprops: add safe, portable integer overflow checking
19793         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
19794         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
19795         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
19796         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
19797         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
19798         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
19799         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
19800         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
19801         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
19802         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
19803         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
19804
19805 2011-05-12  James Youngman  <jay@gnu.org>
19806
19807         Add a test for glibc's Bugzilla bug #12378.
19808         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
19809         doesn't allow the literal matching of a lone "[" (which is
19810         required by POSIX).
19811         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
19812
19813 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19814
19815         Sync glibc change fixing Bugzilla bug #12378.
19816         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
19817         beginning and fall back to matching as normal character if the
19818         string ends before the matching ']' is found.  This is what POSIX
19819         requires.
19820
19821 2011-05-13  Eric Blake  <eblake@redhat.com>
19822
19823         getcwd-lgpl: relax test for FreeBSD
19824         * doc/posix-functions/getcwd.texi (getcwd): Document portability
19825         issue.
19826         * tests/test-getcwd-lgpl.c (main): Relax test.
19827         Reported by Matthias Bolte.
19828
19829 2011-05-11  Eric Blake  <eblake@redhat.com>
19830
19831         test-fflush: silence compiler warning
19832         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
19833
19834 2011-05-11  Bruno Haible  <bruno@clisp.org>
19835
19836         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
19837         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
19838         * modules/canonicalize (Depends-on): Add 'nocrash'.
19839         * modules/canonicalize-lgpl (Depends-on): Likewise.
19840         * doc/posix-functions/realpath.texi: Update platforms list.
19841         Reported by Ryan Schmidt <ryandesign@macports.org>.
19842
19843 2011-05-11  Bruno Haible  <bruno@clisp.org>
19844
19845         group-member: Declare function in <unistd.h>.
19846         * lib/unistd.in.h (group_member): New declaration.
19847         * lib/group-member.h: Remove file.
19848         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
19849         * tests/test-unistd-c++.cc: Check signature of group_member.
19850         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
19851         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
19852         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
19853         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
19854         HAVE_GROUP_MEMBER.
19855         * modules/group-member (Files): Remove lib/group-member.h.
19856         (Depends-on): Add unistd. Specify conditions.
19857         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19858         (Include): Change to <unistd.h>.
19859         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
19860         HAVE_GROUP_MEMBER.
19861         * NEWS: Mention the change.
19862         * lib/euidaccess.c: Don't include group-member.h.
19863
19864 2011-05-11  Bruno Haible  <bruno@clisp.org>
19865
19866         group-member: Document module.
19867         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
19868         module.
19869
19870 2011-05-11  Bruno Haible  <bruno@clisp.org>
19871
19872         fclose: Fix mistake earlier today.
19873         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
19874
19875 2011-05-11  Eric Blake  <eblake@redhat.com>
19876
19877         fclose: preserve fflush errors
19878         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
19879         Reported by Jim Meyering.
19880
19881         bootstrap: support a prereq of 'rpcgen -' on RHEL5
19882         * build-aux/bootstrap (check_versions): When no specific version
19883         is required, merely check that the app produces an exit status
19884         that indicates its existence.
19885
19886         maint.mk: drop redundant check
19887         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
19888         the same but better.
19889
19890 2011-05-11  Bruno Haible  <bruno@clisp.org>
19891
19892         fclose: Fix possible link error.
19893         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
19894         unregister_shadow_fd. Improve comments.
19895         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
19896         Eric Blake.
19897
19898 2011-05-11  Jim Meyering  <meyering@redhat.com>
19899
19900         maint.mk: improve "can not" detection and generalize rule name
19901         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
19902         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
19903         Use the same technique as in sc_prohibit_doubled_word, so that
19904         we recognize "can not" also when the words are separated by a newline.
19905         Suggested by Eric Blake.
19906         (perl_filename_lineno_text_): Define.  Factored out of...
19907         (prohibit_doubled_word_): ...here.  Use the new definition.
19908         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
19909         (prohibit_undesirable_word_seq_RE_): New overridable variable.
19910         (ignore_undesirable_word_sequence_RE_): New overridable variable.
19911
19912 2011-05-10  Eric Blake  <eblake@redhat.com>
19913
19914         fclose: avoid double close race when possible
19915         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
19916         all but WINDOWS_SOCKETS.
19917
19918 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
19919
19920         openat: correct new comment
19921         * lib/openat-proc.c (openat_proc_name): Correct the comment.
19922
19923 2011-05-10  Jim Meyering  <meyering@redhat.com>
19924
19925         openat: add comments
19926         * lib/openat-proc.c (openat_proc_name): Add comments,
19927         mostly from Eric Blake.
19928
19929 2011-05-09  Eric Blake  <eblake@redhat.com>
19930
19931         openat: reduce syscalls in first probe of /proc
19932         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
19933         be a directory.  Simplify the probe for .. bugs.
19934         * modules/openat (Depends-on): Drop same-inode.
19935         Reported by Bastien ROUCARIES.
19936
19937 2011-05-09  Jim Meyering  <meyering@redhat.com>
19938
19939         maint.mk: change semantics/name of tight_scope variables
19940         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
19941         Rename variables to align with semantics that make them more useful.
19942
19943         maint.mk: tweak new rule's name not to impinge
19944         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
19945         (sc_tight_scope): Use new rule name rather than $@-0.
19946
19947         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
19948         * top/maint.mk (sc_tight_scope): New rule.
19949         (sc_tight_scope-0): New rule, ifdef'd out.
19950         (_gl_TS_dir): Default.
19951         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
19952         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
19953
19954 2011-05-09  Simon Josefsson  <simon@josefsson.org>
19955
19956         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
19957         Haible <bruno@clisp.org>.
19958
19959 2011-05-08  Bruno Haible  <bruno@clisp.org>
19960
19961         Comments.
19962         * m4/isnanf.m4: Add comment.
19963         * m4/isnanl.m4: Likewise.
19964
19965 2011-05-08  Bruno Haible  <bruno@clisp.org>
19966
19967         glob: Remove obsolete macro.
19968         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
19969
19970 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19971
19972         intprops: Sun C 5.11 supports __typeof__
19973         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
19974         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
19975         which is new.
19976         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
19977
19978         intprops: switch to usual gnulib indenting and naming
19979         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
19980         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
19981
19982         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
19983
19984 2011-05-08  Jim Meyering  <meyering@redhat.com>
19985
19986         maint.mk: suppress "Entering/Leaving directory" diag in announcement
19987         * top/maint.mk (release-prep): Use make's --no-print-directory
19988         option when generating the announcement.  This eliminates the
19989         pesky "make[2]: Entering/Leaving directory" diagnostics in the
19990         generated announcement template.
19991
19992 2011-05-08  Bruno Haible  <bruno@clisp.org>
19993
19994         tzset: Fix gettimeofday wrapper on Solaris 2.6.
19995         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
19996         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
19997
19998 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19999
20000         ignore-value, verify: Omit include files from lib_SOURCES.
20001         * modules/ignore-value, modules/verify (Makefile.am):
20002         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
20003         that leads Automake to duplicate use of am__objects_... variables
20004         in Makefile.in.  See
20005         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
20006
20007 2011-05-07  Bruno Haible  <bruno@clisp.org>
20008
20009         fclose: Simplify autoconf macro.
20010         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
20011         defined.
20012
20013 2011-05-07  Bruno Haible  <bruno@clisp.org>
20014
20015         canonicalize-lgpl: Fix autoconf macro ordering bug.
20016         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
20017         gl_STDLIB_H_DEFAULTS.
20018
20019 2011-05-06  Eric Blake  <eblake@redhat.com>
20020
20021         maintainer-makefile: make sc_po_check easier to tune
20022         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
20023         to probe for strings, such as an alternate location for gnulib.
20024
20025         fclose: guarantee behavior on seekable stdin
20026         * modules/fclose (Depends-on): Add fflush.
20027         * doc/posix-functions/fclose.texi (fclose): Document this.
20028         * tests/test-fclose.c (main): Make test for this unconditional.
20029
20030 2011-05-06  Bruno Haible  <bruno@clisp.org>
20031
20032         fflush, fpurge: Relicense under LGPLv2+.
20033         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
20034         * modules/fpurge (License): Likewise.
20035         With permission from Eric Blake and Jim Meyering.
20036         Suggested by Eric Blake.
20037
20038 2011-05-06  Karl Berry  <karl@gnu.org>
20039
20040         * MODULES.html.sh (func_all_modules): remove exit.
20041
20042 2011-05-06  Jim Meyering  <meyering@redhat.com>
20043
20044         maint.mk: use info-gnu@ as the default only for a stable release
20045         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
20046         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
20047         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
20048         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
20049
20050 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20051
20052         assert-h: new module, which supports C1X-style static_assert
20053         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
20054         * lib/verify.h: Revamp so that this can be copied into assert.h,
20055         while retaining the ability to use it standalone as before.
20056         Rename private identifiers so as not to encroach on the
20057         standard C namespace, since this is now used by assert.h.
20058         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
20059         the old verify_true.
20060         (_GL_VERIFY_TRUE): New macro, with much of the contents of
20061         the old verify_true.  Use _GL_VERIFY_TYPE.
20062         (_GL_VERIFY): New macro, with much of the contents of the old verify.
20063         (static_assert): New macro, if _GL_STATIC_ASSERT_H
20064         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
20065         defined when this file is copied into the replacement assert.h.
20066         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
20067         and _Static_assert is not built in.
20068         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
20069         defined, and use the new macros mentioned above.
20070         * doc/posix-headers/assert.texi: Document this.
20071
20072 2011-05-05  Bruno Haible  <bruno@clisp.org>
20073
20074         fclose, fflush: Respect rules for use of AC_LIBOBJ.
20075         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
20076         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
20077         gl_REPLACE_FCLOSE here.
20078         * modules/fflush (Depends-on): Remove fclose.
20079         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
20080         combination with module 'fclose'.
20081
20082 2011-05-05  Bruno Haible  <bruno@clisp.org>
20083
20084         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
20085         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
20086         gl_FUNC_FFLUSH.
20087         (gl_FUNC_FFLUSH): Use it.
20088         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
20089         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
20090         gl_REPLACE_FSEEKO here.
20091
20092 2011-05-05  Bruno Haible  <bruno@clisp.org>
20093
20094         tzset: Relicense under LGPL.
20095         * modules/tzset (License): Change to LGPL.
20096         No agreement needed; it's a no-op.
20097
20098         strtoimax, strtoumax: Relicense under LGPL.
20099         * modules/strtoimax (License): Change to LGPL.
20100         * modules/strtoumax (License): Likewise.
20101         With permission from Jim Meyering, Paul Eggert:
20102         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
20103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
20104
20105         getgroups: Relicense under LGPL.
20106         * modules/getgroups (License): Change to LGPL.
20107         With permission from Jim Meyering, Paul Eggert, Eric Blake:
20108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20109         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20111
20112         nanosleep: Relicense under LGPL.
20113         * modules/nanosleep (License): Change to LGPL.
20114         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
20115         Haible:
20116         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20118         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20119         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20120
20121         futimens: Relicense under LGPL.
20122         * modules/futimens (License): Change to LGPL.
20123         With permission from Eric Blake:
20124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20125
20126         fflush: Relicense under LGPL.
20127         * modules/fflush (License): Change to LGPL.
20128         With permission from Eric Blake, Bruno Haible, Jim Meyering:
20129         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20130         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20131         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
20132
20133         tmpfile: Relicense under LGPL.
20134         * modules/tmpfile (License): Change to LGPL.
20135         With permission from Ben Pfaff:
20136         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20137
20138         isfinite: Relicense under LGPL.
20139         * modules/isfinite (License): Change to LGPL.
20140         With permission from Ben Pfaff, Bruno Haible:
20141         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20142         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
20143
20144         acosl..tanl: Relicense under LGPL.
20145         * modules/acosl (License): Change to LGPL.
20146         * modules/asinl (License): Likewise.
20147         * modules/atanl (License): Likewise.
20148         * modules/cosl (License): Likewise.
20149         * modules/expl (License): Likewise.
20150         * modules/logl (License): Likewise.
20151         * modules/sinl (License): Likewise.
20152         * modules/sqrtl (License): Likewise.
20153         * modules/tanl (License): Likewise.
20154         Source code originally from glibc and Paolo Bonzini. Agreements:
20155         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
20156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
20157
20158 2011-05-05  Bruno Haible  <bruno@clisp.org>
20159
20160         signal: Define sighandler_t.
20161         * lib/signal.in.h (sighandler_t): New type.
20162         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
20163         whether sighandler_t is defined.
20164         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
20165         * modules/signal (Depends-on): Add extensions.
20166         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
20167         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
20168         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
20169
20170 2011-05-05  Eric Blake  <eblake@redhat.com>
20171
20172         maint: remove useless REPLACE_*_H macros
20173         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
20174         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20175         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20176         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
20177         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20178         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20179         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
20180         * m4/btowc.m4: Update callers.
20181         * m4/dirfd.m4: Likewise.
20182         * m4/duplocale.m4: Likewise.
20183         * m4/fchdir.m4: Likewise.
20184         * m4/fdopendir.m4: Likewise.
20185         * m4/inet_ntop.m4: Likewise.
20186         * m4/inet_pton.m4: Likewise.
20187         * m4/ioctl.m4: Likewise.
20188         * m4/mbrlen.m4: Likewise.
20189         * m4/mbrtowc.m4: Likewise.
20190         * m4/mbsinit.m4: Likewise.
20191         * m4/mbsnrtowcs.m4: Likewise.
20192         * m4/mbsrtowcs.m4: Likewise.
20193         * m4/poll.m4: Likewise.
20194         * m4/setlocale.m4: Likewise.
20195         * m4/wcrtomb.m4: Likewise.
20196         * m4/wcsnrtombs.m4: Likewise.
20197         * m4/wcsrtombs.m4: Likewise.
20198         * m4/wctob.m4: Likewise.
20199         * m4/wcwidth.m4: Likewise.
20200         * modules/posix_spawn: Likewise.
20201         * modules/posix_spawn_file_actions_addclose: Likewise.
20202         * modules/posix_spawn_file_actions_adddup2: Likewise.
20203         * modules/posix_spawn_file_actions_addopen: Likewise.
20204         * modules/posix_spawn_file_actions_destroy: Likewise.
20205         * modules/posix_spawn_file_actions_init: Likewise.
20206         * modules/posix_spawnattr_destroy: Likewise.
20207         * modules/posix_spawnattr_getflags: Likewise.
20208         * modules/posix_spawnattr_getpgroup: Likewise.
20209         * modules/posix_spawnattr_getschedparam: Likewise.
20210         * modules/posix_spawnattr_getschedpolicy: Likewise.
20211         * modules/posix_spawnattr_getsigdefault: Likewise.
20212         * modules/posix_spawnattr_getsigmask: Likewise.
20213         * modules/posix_spawnattr_init: Likewise.
20214         * modules/posix_spawnattr_setflags: Likewise.
20215         * modules/posix_spawnattr_setpgroup: Likewise.
20216         * modules/posix_spawnattr_setschedparam: Likewise.
20217         * modules/posix_spawnattr_setschedpolicy: Likewise.
20218         * modules/posix_spawnattr_setsigdefault: Likewise.
20219         * modules/posix_spawnattr_setsigmask: Likewise.
20220         * modules/posix_spawnp: Likewise.
20221
20222 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
20223
20224         Add option to do-release-commit-and-tag to specify branch.
20225         * build-aux/do-release-commit-and-tag: Add --branch.
20226
20227 2011-05-03  Bruno Haible  <bruno@clisp.org>
20228
20229         Avoid unnecessary compilation units, through conditional dependencies.
20230         * modules/accept (Depends-on): Add conditions to the dependencies.
20231         * modules/acosl (Depends-on): Likewise.
20232         * modules/argz (Depends-on): Likewise.
20233         * modules/asinl (Depends-on): Likewise.
20234         * modules/atanl (Depends-on): Likewise.
20235         * modules/atoll (Depends-on): Likewise.
20236         * modules/bind (Depends-on): Likewise.
20237         * modules/btowc (Depends-on): Likewise.
20238         * modules/canonicalize-lgpl (Depends-on): Likewise.
20239         * modules/ceil (Depends-on): Likewise.
20240         * modules/ceilf (Depends-on): Likewise.
20241         * modules/ceill (Depends-on): Likewise.
20242         * modules/chdir-long (Depends-on): Likewise.
20243         * modules/chown (Depends-on): Likewise.
20244         * modules/close (Depends-on): Likewise.
20245         * modules/connect (Depends-on): Likewise.
20246         * modules/cosl (Depends-on): Likewise.
20247         * modules/dirfd (Depends-on): Likewise.
20248         * modules/dprintf (Depends-on): Likewise.
20249         * modules/dprintf-posix (Depends-on): Likewise.
20250         * modules/error (Depends-on): Likewise.
20251         * modules/euidaccess (Depends-on): Likewise.
20252         * modules/expl (Depends-on): Likewise.
20253         * modules/faccessat (Depends-on): Likewise.
20254         * modules/fchdir (Depends-on): Likewise.
20255         * modules/fclose (Depends-on): Likewise.
20256         * modules/fcntl (Depends-on): Likewise.
20257         * modules/fdopendir (Depends-on): Likewise.
20258         * modules/fflush (Depends-on): Likewise.
20259         * modules/floor (Depends-on): Likewise.
20260         * modules/floorf (Depends-on): Likewise.
20261         * modules/floorl (Depends-on): Likewise.
20262         * modules/fnmatch (Depends-on): Likewise.
20263         * modules/fopen (Depends-on): Likewise.
20264         * modules/fprintf-posix (Depends-on): Likewise.
20265         * modules/frexp (Depends-on): Likewise.
20266         * modules/frexp-nolibm (Depends-on): Likewise.
20267         * modules/frexpl (Depends-on): Likewise.
20268         * modules/frexpl-nolibm (Depends-on): Likewise.
20269         * modules/fseek (Depends-on): Likewise.
20270         * modules/fsusage (Depends-on): Likewise.
20271         * modules/ftell (Depends-on): Likewise.
20272         * modules/ftello (Depends-on): Likewise.
20273         * modules/futimens (Depends-on): Likewise.
20274         * modules/getcwd (Depends-on): Likewise.
20275         * modules/getcwd-lgpl (Depends-on): Likewise.
20276         * modules/getdelim (Depends-on): Likewise.
20277         * modules/getdomainname (Depends-on): Likewise.
20278         * modules/getgroups (Depends-on): Likewise.
20279         * modules/gethostname (Depends-on): Likewise.
20280         * modules/getline (Depends-on): Likewise.
20281         * modules/getlogin_r (Depends-on): Likewise.
20282         * modules/getopt-posix (Depends-on): Likewise.
20283         * modules/getpeername (Depends-on): Likewise.
20284         * modules/getsockname (Depends-on): Likewise.
20285         * modules/getsockopt (Depends-on): Likewise.
20286         * modules/getsubopt (Depends-on): Likewise.
20287         * modules/getusershell (Depends-on): Likewise.
20288         * modules/glob (Depends-on): Likewise.
20289         * modules/grantpt (Depends-on): Likewise.
20290         * modules/iconv_open (Depends-on): Likewise.
20291         * modules/iconv_open-utf (Depends-on): Likewise.
20292         * modules/inet_ntop (Depends-on): Likewise.
20293         * modules/inet_pton (Depends-on): Likewise.
20294         * modules/ioctl (Depends-on): Likewise.
20295         * modules/isapipe (Depends-on): Likewise.
20296         * modules/isfinite (Depends-on): Likewise.
20297         * modules/isinf (Depends-on): Likewise.
20298         * modules/lchown (Depends-on): Likewise.
20299         * modules/ldexpl (Depends-on): Likewise.
20300         * modules/link (Depends-on): Likewise.
20301         * modules/linkat (Depends-on): Likewise.
20302         * modules/listen (Depends-on): Likewise.
20303         * modules/logl (Depends-on): Likewise.
20304         * modules/lstat (Depends-on): Likewise.
20305         * modules/mbrlen (Depends-on): Likewise.
20306         * modules/mbrtowc (Depends-on): Likewise.
20307         * modules/mbsinit (Depends-on): Likewise.
20308         * modules/mbsnrtowcs (Depends-on): Likewise.
20309         * modules/mbsrtowcs (Depends-on): Likewise.
20310         * modules/mbtowc (Depends-on): Likewise.
20311         * modules/memcmp (Depends-on): Likewise.
20312         * modules/mkdir (Depends-on): Likewise.
20313         * modules/mkdtemp (Depends-on): Likewise.
20314         * modules/mkfifo (Depends-on): Likewise.
20315         * modules/mkfifoat (Depends-on): Likewise.
20316         * modules/mknod (Depends-on): Likewise.
20317         * modules/mkostemp (Depends-on): Likewise.
20318         * modules/mkostemps (Depends-on): Likewise.
20319         * modules/mkstemp (Depends-on): Likewise.
20320         * modules/mkstemps (Depends-on): Likewise.
20321         * modules/mktime (Depends-on): Likewise.
20322         * modules/nanosleep (Depends-on): Likewise.
20323         * modules/open (Depends-on): Likewise.
20324         * modules/openat (Depends-on): Likewise.
20325         * modules/perror (Depends-on): Likewise.
20326         * modules/poll (Depends-on): Likewise.
20327         * modules/popen (Depends-on): Likewise.
20328         * modules/posix_spawn (Depends-on): Likewise.
20329         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
20330         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20331         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20332         * modules/posix_spawnp (Depends-on): Likewise.
20333         * modules/pread (Depends-on): Likewise.
20334         * modules/printf-posix (Depends-on): Likewise.
20335         * modules/ptsname (Depends-on): Likewise.
20336         * modules/putenv (Depends-on): Likewise.
20337         * modules/pwrite (Depends-on): Likewise.
20338         * modules/readline (Depends-on): Likewise.
20339         * modules/readlink (Depends-on): Likewise.
20340         * modules/readlinkat (Depends-on): Likewise.
20341         * modules/recv (Depends-on): Likewise.
20342         * modules/recvfrom (Depends-on): Likewise.
20343         * modules/regex (Depends-on): Likewise.
20344         * modules/remove (Depends-on): Likewise.
20345         * modules/rename (Depends-on): Likewise.
20346         * modules/renameat (Depends-on): Likewise.
20347         * modules/rmdir (Depends-on): Likewise.
20348         * modules/round (Depends-on): Likewise.
20349         * modules/roundf (Depends-on): Likewise.
20350         * modules/roundl (Depends-on): Likewise.
20351         * modules/rpmatch (Depends-on): Likewise.
20352         * modules/select (Depends-on): Likewise.
20353         * modules/send (Depends-on): Likewise.
20354         * modules/sendto (Depends-on): Likewise.
20355         * modules/setenv (Depends-on): Likewise.
20356         * modules/setlocale (Depends-on): Likewise.
20357         * modules/setsockopt (Depends-on): Likewise.
20358         * modules/shutdown (Depends-on): Likewise.
20359         * modules/sigaction (Depends-on): Likewise.
20360         * modules/signbit (Depends-on): Likewise.
20361         * modules/sigprocmask (Depends-on): Likewise.
20362         * modules/sinl (Depends-on): Likewise.
20363         * modules/sleep (Depends-on): Likewise.
20364         * modules/snprintf (Depends-on): Likewise.
20365         * modules/snprintf-posix (Depends-on): Likewise.
20366         * modules/socket (Depends-on): Likewise.
20367         * modules/sprintf-posix (Depends-on): Likewise.
20368         * modules/sqrtl (Depends-on): Likewise.
20369         * modules/stat (Depends-on): Likewise.
20370         * modules/strchrnul (Depends-on): Likewise.
20371         * modules/strdup-posix (Depends-on): Likewise.
20372         * modules/strerror (Depends-on): Likewise.
20373         * modules/strerror_r-posix (Depends-on): Likewise.
20374         * modules/strndup (Depends-on): Likewise.
20375         * modules/strnlen (Depends-on): Likewise.
20376         * modules/strptime (Depends-on): Likewise.
20377         * modules/strsep (Depends-on): Likewise.
20378         * modules/strsignal (Depends-on): Likewise.
20379         * modules/strstr-simple (Depends-on): Likewise.
20380         * modules/strtod (Depends-on): Likewise.
20381         * modules/strtoimax (Depends-on): Likewise.
20382         * modules/strtok_r (Depends-on): Likewise.
20383         * modules/strtoumax (Depends-on): Likewise.
20384         * modules/symlink (Depends-on): Likewise.
20385         * modules/symlinkat (Depends-on): Likewise.
20386         * modules/tanl (Depends-on): Likewise.
20387         * modules/tcgetsid (Depends-on): Likewise.
20388         * modules/tmpfile (Depends-on): Likewise.
20389         * modules/trunc (Depends-on): Likewise.
20390         * modules/truncf (Depends-on): Likewise.
20391         * modules/truncl (Depends-on): Likewise.
20392         * modules/uname (Depends-on): Likewise.
20393         * modules/unlink (Depends-on): Likewise.
20394         * modules/unlockpt (Depends-on): Likewise.
20395         * modules/unsetenv (Depends-on): Likewise.
20396         * modules/usleep (Depends-on): Likewise.
20397         * modules/utimensat (Depends-on): Likewise.
20398         * modules/vasprintf (Depends-on): Likewise.
20399         * modules/vdprintf (Depends-on): Likewise.
20400         * modules/vdprintf-posix (Depends-on): Likewise.
20401         * modules/vfprintf-posix (Depends-on): Likewise.
20402         * modules/vprintf-posix (Depends-on): Likewise.
20403         * modules/vsnprintf (Depends-on): Likewise.
20404         * modules/vsnprintf-posix (Depends-on): Likewise.
20405         * modules/vsprintf-posix (Depends-on): Likewise.
20406         * modules/wcrtomb (Depends-on): Likewise.
20407         * modules/wcscasecmp (Depends-on): Likewise.
20408         * modules/wcscspn (Depends-on): Likewise.
20409         * modules/wcsdup (Depends-on): Likewise.
20410         * modules/wcsncasecmp (Depends-on): Likewise.
20411         * modules/wcsnrtombs (Depends-on): Likewise.
20412         * modules/wcspbrk (Depends-on): Likewise.
20413         * modules/wcsrtombs (Depends-on): Likewise.
20414         * modules/wcsspn (Depends-on): Likewise.
20415         * modules/wcsstr (Depends-on): Likewise.
20416         * modules/wcstok (Depends-on): Likewise.
20417         * modules/wcswidth (Depends-on): Likewise.
20418         * modules/wctob (Depends-on): Likewise.
20419         * modules/wctomb (Depends-on): Likewise.
20420         * modules/wctype (Depends-on): Likewise.
20421         * modules/wcwidth (Depends-on): Likewise.
20422         * modules/write (Depends-on): Likewise.
20423
20424 2011-05-03  Bruno Haible  <bruno@clisp.org>
20425
20426         Support for conditional dependencies.
20427         * doc/gnulib.texi (Module description): Document the syntax of
20428         conditional dependencies.
20429         * gnulib-tool: New option --conditional-dependencies.
20430         (func_usage): Document it.
20431         (cond_dependencies): New variable.
20432         (func_get_automake_snippet_conditional,
20433         func_get_automake_snippet_unconditional): New functions, extracted from
20434         func_get_automake_snippet.
20435         (func_get_automake_snippet): Use them.
20436         (sed_first_32_chars): New variable.
20437         (func_module_shellfunc_name): New function.
20438         (func_module_shellvar_name): New function.
20439         (func_module_conditional_name): New function.
20440         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
20441         func_cond_module_condition): New functions.
20442         (func_modules_transitive_closure): Add support for conditional
20443         dependencies.
20444         (func_emit_lib_Makefile_am): For a conditional module, enclose the
20445         conditional automake snippet in an automake conditional.
20446         (func_emit_autoconf_snippets): Emit shell functions that contain the
20447         code for conditional modules.
20448         (func_import, func_create_testdir): Update specification.
20449
20450 2011-05-03  Eric Blake  <eblake@redhat.com>
20451
20452         test-getaddrinfo: report error information
20453         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
20454
20455 2011-05-03  Jim Meyering  <meyering@redhat.com>
20456
20457         bootstrap: avoid build failure when $GZIP is set
20458         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
20459         program name.  If defined at all, it is supposed to list gzip options.
20460         Reported by Alan Curry in http://debbugs.gnu.org/8609
20461
20462 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
20463
20464         readme-release: new module with release instructions
20465         * modules/readme-release: New module.
20466         * top/README-release: New file, from coreutils, grep, diffutils.
20467         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20468
20469 2011-05-02  Eric Blake  <eblake@redhat.com>
20470
20471         fflush: also replace fclose when fixing fflush
20472         * modules/fflush (Depends-on): Add fclose.
20473         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
20474         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
20475         memstreams with no backing fd.
20476         * doc/posix-functions/fclose.texi (fclose): Document the use of
20477         fflush module to fix the bug.
20478         * tests/test-fclose.c (main): Relax test when fclose is used in
20479         isolation.
20480
20481         fclose: add some tests
20482         * modules/fclose-tests: New test module.
20483         * tests/test-fclose.c: New file.
20484         * doc/posix-functions/fclose.texi (fclose): Document the bug.
20485
20486         fclose: reduced dependencies
20487         * modules/fclose (Depends-on): Switch from fflush/fseeko to
20488         simpler lseek.
20489         * lib/fclose.c (rpl_fclose): Likewise.
20490         Reported by Simon Josefsson.
20491
20492         exit: drop remaining clients
20493         * modules/argmatch (Depends-on): Replace exit with stdlib.
20494         * modules/copy-file (Depends-on): Likewise.
20495         * modules/execute (Depends-on): Likewise.
20496         * modules/exitfail (Depends-on): Likewise.
20497         * modules/obstack (Depends-on): Likewise.
20498         * modules/pagealign_alloc (Depends-on): Likewise.
20499         * modules/pipe-filter-gi (Depends-on): Likewise.
20500         * modules/pipe-filter-ii (Depends-on): Likewise.
20501         * modules/savewd (Depends-on): Likewise.
20502         * modules/spawn-pipe (Depends-on): Likewise.
20503         * modules/wait-process (Depends-on): Likewise.
20504         * modules/xsetenv (Depends-on): Likewise.
20505         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
20506         * modules/git-merge-changelog (Depends-on): Likewise.
20507         * modules/long-options (Depends-on): Likewise.
20508         * modules/pt_chown (Depends-on): Likewise.
20509         * modules/sysexits (Depends-on): Likewise.
20510
20511         freading: relax license from LGPLv3+ to LGPLv2+
20512         * modules/freading (License): Relax LGPL version.
20513
20514 2011-05-02  Bruno Haible  <bruno@clisp.org>
20515
20516         fchdir: Remove unused dependencies.
20517         * modules/fchdir (Depends-on): Remove include_next.
20518
20519 2011-05-02  Bruno Haible  <bruno@clisp.org>
20520
20521         gnulib-tool: Refactor.
20522         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
20523         from func_emit_autoconf_snippets.
20524         (func_emit_autoconf_snippets): Use it.
20525
20526 2011-05-02  Simon Josefsson  <simon@josefsson.org>
20527
20528         * NEWS: Document removal of 'exit'.
20529         * modules/exit: Remove file.
20530
20531 2011-05-01  Bruno Haible  <bruno@clisp.org>
20532
20533         Update DEPENDENCIES.
20534         * DEPENDENCIES (gettext): Recommend the newest release.
20535         Reported by Simon Josefsson.
20536
20537 2011-05-01  Bruno Haible  <bruno@clisp.org>
20538
20539         gnulib-tool: Reduce code duplication.
20540         * gnulib-tool (func_emit_autoconf_snippets): New function.
20541         (func_import, func_create_testdir): Use it.
20542
20543 2011-04-30  Eric Blake  <eblake@redhat.com>
20544
20545         fclose: don't fail on non-seekable input stream
20546         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
20547         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
20548         since fflush is allowed to fail in that case.
20549
20550 2011-04-30  Bruno Haible  <bruno@clisp.org>
20551
20552         dup3: cleanup
20553         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
20554
20555 2011-04-30  Bruno Haible  <bruno@clisp.org>
20556
20557         netdb: Make it work in C++ mode.
20558         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
20559         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
20560         module.
20561         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
20562         gl_MODULE_INDICATOR_FOR_TESTS.
20563         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
20564         * modules/netdb-c++-tests: New file.
20565         * tests/test-netdb-c++.cc: New file.
20566
20567 2011-04-30  Bruno Haible  <bruno@clisp.org>
20568
20569         New modules 'vfscanf', 'vscanf'.
20570         * modules/vfscanf: New file.
20571         * modules/vscanf: New file.
20572         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
20573         here.
20574         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
20575         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
20576
20577 2011-04-30  Bruno Haible  <bruno@clisp.org>
20578
20579         passfd: Add comments.
20580         * lib/passfd.c: Add comments about platforms.
20581
20582 2011-04-30  Bruno Haible  <bruno@clisp.org>
20583
20584         sys_uio: Make <sys/uio.h> self-contained.
20585         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
20586         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
20587
20588 2011-04-30  Bruno Haible  <bruno@clisp.org>
20589
20590         sys_socket: Ensure 'struct iovec' definition.
20591         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
20592         <sys/socket.h>.
20593         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
20594
20595 2011-04-30  Bruno Haible  <bruno@clisp.org>
20596
20597         sys_uio: Protect definition of 'struct iovec'.
20598         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
20599         it as a C struct.
20600
20601 2011-04-30  Bruno Haible  <bruno@clisp.org>
20602
20603         manywarnings: fix indentation
20604         * m4/manywarnings.m4: Indent by 2 spaces consistently.
20605
20606 2011-04-30  Pádraig Brady <P@draigBrady.com>
20607
20608         manywarnings: add -Wno-missing-field-initializers if needed.
20609         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
20610         option if it's needed to allow initialization with { 0, }
20611
20612 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
20613
20614         announce-gen: cosmetic improvement
20615         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
20616
20617 2011-04-29  Jim Meyering  <meyering@redhat.com>
20618
20619         vc-list-files: indent with spaces, not TABs
20620         * build-aux/vc-list-files: Convert leading TABs to spaces,
20621         to match the style of most other files in gnulib.
20622
20623         announce-gen: indent with spaces, not TABs
20624         * build-aux/announce-gen: Convert all TABs to spaces, to match
20625         the style of most other files in gnulib.
20626
20627 2011-04-29  Eric Blake  <eblake@redhat.com>
20628
20629         quotearg: avoid uninitialized variable use
20630         * lib/quotearg.c (quoting_options_from_style): Initialize
20631         remaining fields, and ensure that custom styles are only used via
20632         quoting_options rather than quoting_style.
20633
20634 2011-04-29  Jim Meyering  <meyering@redhat.com>
20635
20636         maint.mk: remove unused VC-tag variable
20637         * top/maint.mk (VC-tag): Remove unused variable.
20638
20639 2011-04-29  Bruno Haible  <bruno@clisp.org>
20640
20641         netdb: fix gai_strerror replacements
20642         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
20643         * modules/netdb: Substitute it.
20644
20645 2011-04-29  Jim Meyering  <meyering@redhat.com>
20646
20647         test-getcwd.c: avoid new set-but-not-used warning
20648         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
20649         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
20650         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
20651         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
20652
20653         test-hash.c: avoid a new shadowing warning
20654         * tests/test-hash.c (main): Don't shadow "dup".
20655
20656 2011-04-28  Eric Blake  <eblake@redhat.com>
20657
20658         getaddrinfo: fix gai_strerror signature
20659         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
20660         and work around mingw with UNICODE defined.
20661         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
20662         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
20663         * modules/netdb (Makefile.am): Substitute it.
20664         * lib/netdb.in.h (gai_strerror): Declare replacement.
20665         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
20666         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
20667         the fix.
20668
20669         getsockopt: avoid compiler warning
20670         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
20671         Reported by Matthias Bolte.
20672
20673         tests: drop unused link dependency
20674         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
20675         * modules/dirent-safer-tests (Makefile.am): Likewise.
20676         * modules/fdopendir-tests (Makefile.am): Likewise.
20677         * modules/mkfifoat-tests (Makefile.am): Likewise.
20678         * modules/openat-safer-tests (Makefile.am): Likewise.
20679         * modules/openat-tests (Makefile.am): Likewise.
20680         * modules/readlinkat-tests (Makefile.am): Likewise.
20681         * modules/symlinkat-tests (Makefile.am): Likewise.
20682         * modules/linkat-tests (Makefile.am): Likewise.
20683         (Depends-on): Switch to filenamecat-lgpl.
20684         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
20685         LIBINTL.
20686         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
20687         * tests/test-linkat.c (main): Don't require xalloc.
20688
20689         hash, mgetgroups: drop xalloc dependency
20690         * lib/hash.c (includes): Adjust includes.
20691         * lib/mgetgroups.c (includes): Likewise.
20692         (xgetgroups): Move...
20693         * lib/xgetgroups.c: ...to new file.
20694         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
20695         * modules/xgetgroups: New file, split from...
20696         * modules/mgetgroups: ...here.
20697         (Depends-on): Add xalloc-oversized.
20698         * modules/hash (Depends-on): Likewise.
20699         * modules/hash-tests (Depends-on): Drop xalloc.
20700         (test_hash_LDADD): Drop unused library.
20701         * tests/test-hash.c (main): Break xalloc dependency.
20702         (includes): Drop unused include.
20703
20704         xalloc-oversized: new module
20705         * modules/xalloc-oversized: New module.
20706         * modules/xalloc (Depends-on): Add it.
20707         * lib/xalloc.h (xalloc_oversized): Move...
20708         * lib/xalloc-oversized.h: ...into new file.
20709
20710         utimecmp: drop dependency on xmalloc
20711         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
20712         due to memory pressure.
20713         * modules/utimecmp (Depends-on): Drop xalloc.
20714
20715 2011-04-27  Eric Blake  <eblake@redhat.com>
20716
20717         getcwd: fix mingw bugs
20718         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
20719         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
20720         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
20721
20722 2011-04-27  Bruno Haible  <bruno@clisp.org>
20723
20724         mkstemps: Ensure declaration on MacOS X 10.5.
20725         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
20726         * doc/glibc-functions/mkstemps.texi: Document header file problem on
20727         MacOS X.
20728
20729 2011-04-27  Bruno Haible  <bruno@clisp.org>
20730
20731         mkstemp: More documentation.
20732         * doc/posix-functions/mkstemp.texi: Document header file problem on
20733         MacOS X.
20734
20735 2011-04-27  Bruno Haible  <bruno@clisp.org>
20736
20737         mkstemp: Tweak configure message when cross-compiling.
20738         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
20739         result as a guess.
20740
20741 2011-04-27  Bruno Haible  <bruno@clisp.org>
20742
20743         clean-temp: Clarify what it does.
20744         * lib/clean-temp.h: Add more comments.
20745         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
20746         module.
20747         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
20748         * doc/glibc-functions/mkstemps.texi: Likewise.
20749         * doc/glibc-functions/mkostemps.texi: Likewise.
20750
20751 2011-04-27  Eric Blake  <eblake@redhat.com>
20752
20753         fchdir: avoid extra chdir and fix test
20754         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
20755         getcwd-lgpl.
20756         * lib/fchdir.c (get_name): Any absolute name will do; it does not
20757         have to be canonical.
20758         (canonicalize_file_name): Drop unused macro.
20759         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
20760
20761         filenamecat-lgpl: fix licence
20762         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
20763         when it was first created.
20764
20765         linkat, renameat: add missing dependency
20766         * modules/linkat (Depends-on): Require getcwd-lgpl.
20767         * modules/renameat (Depends-on): Likewise.
20768
20769         tests: reduce dependencies
20770         * tests/test-linkat.c (main): Use lighter-weight getcwd.
20771         * tests/test-renameat.c (main): Likewise.
20772         * modules/linkat-tests (Depends-on): Relax dependency.
20773         * modules/renameat-tests (Depends-on): Likewise.
20774         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
20775         dependency explicit.
20776
20777         save-cwd: reduce default dependency
20778         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
20779         * lib/save-cwd.c: Update comments.
20780         * NEWS: Document the semantic change.
20781
20782         getcwd: enhance tests
20783         * tests/test-getcwd-lgpl.c: New file, taken from...
20784         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
20785         repeat long path stress tests from m4 probe.
20786         * modules/getcwd-lgpl-tests: New module.
20787         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
20788         * m4/getcwd-abort-bug.m4: Update comment.
20789         * m4/getcwd-path-max.m4: Likewise.
20790
20791         getcwd-lgpl: new module
20792         * modules/getcwd-lgpl: New module.
20793         * lib/getcwd-lgpl.c: New file.
20794         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20795         * MODULES.html.sh (lacking POSIX:2008): Likewise.
20796         * modules/getcwd (configure.ac): Set C witness.
20797         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
20798
20799         getcwd: tweak comments
20800         * m4/getcwd-abort-bug.m4: Fix comments.
20801         * m4/getcwd-path-max.m4: Likewise.
20802         * m4/getcwd.m4: Likewise.
20803
20804 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20805         and Eric Blake  <eblake@redhat.com>
20806
20807         mkstemp: replace if system version uses wrong permissions
20808         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
20809         read/write mode bits set in file created by mkstemp.
20810         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
20811
20812 2011-04-27  Eric Blake  <eblake@redhat.com>
20813
20814         passfd: avoid compiler warning
20815         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
20816         Reported by Laine Stump.
20817
20818 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
20819
20820         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
20821         required by the NetBSD (and perhaps other 4.4BSD derived) join.
20822
20823 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20824         and Eric Blake  <eblake@redhat.com>
20825
20826         mkstemp: mention clean-temp module
20827         * lib/mkstemp.c: Add comment.
20828         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
20829
20830 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20831
20832         inttypes: also provide default values for 32-bit tests
20833         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
20834         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
20835
20836 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20837
20838         strtoumax: remove dependency on strtoimax
20839         This is like the strtoull change of yesterday.
20840         * modules/strtoumax (Files): Add lib/strtoimax.c.
20841         (Depends-on): Remove strtoimax and add verify.
20842
20843         inttypes-incomplete: new module
20844         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
20845         all but the PRI* and SCN* parts of gl_INTTYPES_H.
20846         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
20847         of gl_INTTYPES_H.
20848         (gl_INTTYPES_H): Rewrite in terms of these new macros.
20849         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
20850         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
20851         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
20852         * modules/strtoumax, modules/xstrtol (Depends-on):
20853         Depend on inttypes-incomplete, not inttypes.
20854         * modules/inttypes-incomplete: New module, containing the contents
20855         of the old modules/inttypes module, except that the Files: section
20856         omits m4/inttypes-pri.m4, and the configure.ac section invokes
20857         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
20858         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
20859         (Depends-on): Depend only on inttypes-incomplete.
20860         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
20861
20862         inttypes: omit now-redundant strtoimax and strtoumax work
20863         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
20864         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
20865
20866         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
20867         This supports apps that need pointers to strtoimax and strtoumax,
20868         and ports to HP-UX 11.00 64.bit, which has macros that expand to
20869         nonexistent functions.  See
20870         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
20871         et seq.
20872         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
20873         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
20874         a macro.
20875         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20876
20877 2011-04-25  Simon Josefsson  <simon@josefsson.org>
20878
20879         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
20880
20881 2011-04-25  Bruno Haible  <bruno@clisp.org>
20882
20883         strtol, strtoul: Mark modules as obsolete.
20884         * modules/strtol (Status, Notice): New sections.
20885         * modules/strtoul (Status, Notice): New sections.
20886
20887 2011-04-25  Bruno Haible  <bruno@clisp.org>
20888
20889         strtod: Remove check for strtod, unless supporting old platforms.
20890         * modules/strtod-obsolete: New file.
20891         * m4/strtod-obsolete.m4: New file.
20892         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
20893         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
20894         * modules/strtod (Depends-on): Add strtod-obsolete.
20895         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
20896
20897 2011-04-25  Bruno Haible  <bruno@clisp.org>
20898
20899         strcase: Make module obsolete.
20900         * modules/strcase (Status, Notice): New sections.
20901
20902 2011-04-25  Bruno Haible  <bruno@clisp.org>
20903
20904         dup2: Remove check for dup2, unless supporting old obsolete platforms.
20905         * modules/dup2-obsolete: New file.
20906         * m4/dup2-obsolete.m4: New file.
20907         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
20908         gl_FUNC_DUP2_OBSOLETE is not also defined.
20909         * modules/dup2 (Depends-on): Add dup2-obsolete.
20910         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
20911
20912 2011-04-25  Bruno Haible  <bruno@clisp.org>
20913
20914         strnlen: Avoid memchr related link error on old obsolete platforms.
20915         * modules/memchr-obsolete: New file.
20916         * m4/memchr-obsolete.m4: New file.
20917         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
20918         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
20919         * modules/memchr (Depends-on): Add memchr-obsolete.
20920         * modules/strnlen (Depends-on): Likewise.
20921         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
20922
20923 2011-04-25  Jim Meyering  <meyering@redhat.com>
20924
20925         maint.mk: makefile_at_at_check extend and clean up
20926         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
20927         in addition to */Makefile.am.
20928         Exempt legitimate uses of @VAR@ notation, e.g.,
20929         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
20930         Remove obsolete coreutils-specific comment.
20931         Prompted by discussion here:
20932         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
20933
20934 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20935
20936         strtoul: remove dependency on strtol
20937         This is so that 'configure' need not check for strtol merely because
20938         the application needs strtoul.
20939         * modules/strtoul (Files): Add lib/strtol.c.
20940         (Depends-on): Remove strtol.
20941
20942         strtoull: remove dependency on strtoul
20943         This is like the strtoll change.
20944         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
20945         (Depends-on): Remove strtoul.
20946
20947         strtoll: remove dependency on strtol
20948         This is so that 'configure' need not check for strtol merely because
20949         the application needs strtoll.
20950         * modules/strtoll (Files): Add lib/strtol.c.
20951         (Depends-on): Remove strtol.
20952
20953 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20954
20955         inttypes: Move some configure check to module 'imaxdiv'.
20956         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
20957         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
20958         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
20959
20960 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20961
20962         inttypes: Move some configure check to module 'imaxabs'.
20963         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
20964         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
20965         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
20966
20967 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20968
20969         inttypes: Remove configure tests that are not needed since 2009-12-31.
20970         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
20971         gl_cv_header_working_inttypes_h.
20972
20973 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20974
20975         * modules/strnlen (Depends-on): Remove memchr.
20976         The strnlen implementation doesn't need the memchr module's fixes; see
20977         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
20978
20979         strtol: remove dependency on wchar
20980         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
20981         * modules/strtol (Depends-on): Remove wchar.
20982
20983 2011-04-21  Eric Blake  <eblake@redhat.com>
20984
20985         passfd: fix test regression on Linux
20986         * modules/passfd-tests (configure.ac): Correct socketpair check.
20987
20988         passfd: speed up configure and drop unused code
20989         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
20990         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
20991         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
20992         Instead of probing at configure for unix_scm_rights_bsd44_way,
20993         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
20994         check to a struct member probe.
20995         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
20996         (sendfd, recvfd): Update preprocessor checks.
20997         * modules/passfd (Files): Reflect rename, and drop unused file.
20998         (Depends-on): Drop unused dependency.
20999
21000         passfd: allow compilation on mingw
21001         * modules/sys_socket (Depends-on): Add sys_uio.
21002         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
21003         iovec and a minimal struct msghdr.
21004         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
21005         * tests/test-sys_socket.c (main): Enhance test.
21006         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
21007         guaranteed to provide what we need.
21008         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
21009         * modules/passfd-tests (Depends-on): Add sys_wait.
21010         * tests/test-passfd.c (main): Skip test on mingw, for now.
21011         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
21012         partial 'struct msghdr' implementation.
21013
21014         sys_uio: new module
21015         * modules/sys_uio: New module.
21016         * modules/sys_uio-tests: Likewise.
21017         * lib/sys_uio.in.h: New file.
21018         * m4/sys_uio_h.m4: Likewise.
21019         * tests/test-sys_uio.c: Likewise.
21020         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
21021         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
21022
21023 2011-04-20  Jim Meyering  <meyering@redhat.com>
21024
21025         useless-if-before-free: avoid false-positive
21026         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
21027         disjunct so that it too requires a terminating ";".  Without that,
21028         this script would identify as useless one statement from gcc that
21029         was not:
21030           if (aligned_ptr)
21031             free (((void **) aligned_ptr) [-1]);
21032
21033 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
21034
21035         doc: update users.txt.
21036         * users.txt: Add barcode.
21037
21038 2011-04-19  Bruno Haible  <bruno@clisp.org>
21039
21040         ioctl: Remove link dependency on native Windows.
21041         * lib/fd-hook.h: Renamed from lib/close-hook.h.
21042         (gl_close_fn, gl_ioctl_fn): New types.
21043         (struct fd_hook): Renamed from struct close_hook. Change type of
21044         private_close_fn field. Add private_ioctl_fn field.
21045         (close_hook_fn): Add parameter for primary close method.
21046         (execute_close_hooks, execute_all_close_hooks): Likewise.
21047         (ioctl_hook_fn): New type.
21048         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
21049         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21050         argument.
21051         (unregister_fd_hook): Renamed from unregister_close_hook.
21052         * lib/fd-hook.c: Renamed from lib/close-hook.c.
21053         Don't include <unistd.h>.
21054         (close): Remove undef.
21055         (anchor): Update.
21056         (execute_close_hooks): Add argument for primary close method.
21057         (execute_all_close_hooks): Likewise.
21058         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
21059         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21060         argument. Allow each argument to be NULL.
21061         (unregister_fd_hook): Renamed from unregister_close_hook.
21062         * lib/close.c (rpl_close): Pass 'close' function pointer to
21063         execute_all_close_hooks.
21064         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
21065         (primary_ioctl): New function.
21066         (ioctl): Don't call ioctlsocket here. Instead, call
21067         execute_all_ioctl_hooks.
21068         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
21069         close method.
21070         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
21071         (fd_sockets_hook): Renamed from close_sockets_hook.
21072         (gl_sockets_startup, gl_sockets_cleanup): Update.
21073         * modules/fd-hook: Renamed from modules/close-hook. Update.
21074         * modules/close (Depends-on): Add fd-hook, remove close-hook.
21075         * modules/sockets (Depends-on): Likewise.
21076         * modules/ioctl (Depends-on): Add fd-hook.
21077         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
21078         GNULIB_SOCKET.
21079
21080 2011-04-19  Bruno Haible  <bruno@clisp.org>
21081
21082         Move the support of O_NONBLOCK in open() to the 'open' module.
21083         * modules/nonblocking (Depends-on): Remove 'open'.
21084         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
21085         gl_cv_have_open_O_NONBLOCK.
21086         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
21087         O_NONBLOCK support.
21088         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
21089
21090 2011-04-17  Bruno Haible  <bruno@clisp.org>
21091
21092         pipe2: Simplify code.
21093         * lib/pipe2.c (pipe2): Reduce code duplication.
21094
21095 2011-04-17  Bruno Haible  <bruno@clisp.org>
21096
21097         nonblocking: Add comment.
21098         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
21099
21100 2011-04-17  Bruno Haible  <bruno@clisp.org>
21101
21102         nonblocking: Add tests for sockets.
21103         * tests/test-nonblocking-socket.sh: New file.
21104         * tests/test-nonblocking-socket-main.c: New file.
21105         * tests/test-nonblocking-socket-child.c: New file.
21106         * tests/test-nonblocking-socket.h: New file.
21107         * tests/socket-server.h: New file.
21108         * tests/socket-client.h: New file.
21109         * modules/nonblocking-socket-tests: New file.
21110         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
21111
21112 2011-04-17  Bruno Haible  <bruno@clisp.org>
21113
21114         nonblocking: Add tests for pipes.
21115         * tests/test-nonblocking-pipe.sh: New file.
21116         * tests/test-nonblocking-pipe-main.c: New file.
21117         * tests/test-nonblocking-pipe-child.c: New file.
21118         * tests/test-nonblocking-pipe.h: New file.
21119         * tests/test-nonblocking-writer.h: New file.
21120         * tests/test-nonblocking-reader.h: New file.
21121         * tests/test-nonblocking-misc.h: New file.
21122         * modules/nonblocking-pipe-tests: New file.
21123         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
21124
21125 2011-04-16  Bruno Haible  <bruno@clisp.org>
21126
21127         gettext: Clarify the needed programmer actions.
21128         * modules/gettext (Notice): New field.
21129         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
21130
21131 2011-04-16  Bruno Haible  <bruno@clisp.org>
21132
21133         strchrnul: Tweak last commit.
21134         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
21135         bug.
21136         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
21137         as in _GL_FUNCDECL_SYS.
21138         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
21139         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
21140
21141 2011-04-15  Eric Blake  <eblake@redhat.com>
21142
21143         strchrnul: work around cygwin bug
21144         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
21145         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
21146         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
21147         * modules/string (Makefile.am): Substitute it.
21148         * lib/string.in.h (strchrnul): Use it.
21149
21150 2011-04-15  Bruno Haible  <bruno@clisp.org>
21151
21152         Don't require lib/stdio-write.c when only module 'stdio' is used.
21153         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
21154         invocation.
21155         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
21156
21157 2011-04-14  Bruno Haible  <bruno@clisp.org>
21158
21159         Support non-blocking pipe I/O in read() on native Windows.
21160         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
21161         (read): New declaration.
21162         * lib/read.c: New file.
21163         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
21164         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
21165         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
21166         vscanf): New declarations.
21167         * lib/stdio-read.c: New file.
21168         * m4/read.m4: New file.
21169         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
21170         REPLACE_READ.
21171         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
21172         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21173         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
21174         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
21175         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
21176         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21177         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21178         * modules/read: New file.
21179         * modules/nonblocking (Files): Add lib/stdio-read.c.
21180         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
21181         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
21182         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21183         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21184         * modules/pread (Depends-on): Add read.
21185         * modules/safe-read (Depends-on): Likewise.
21186         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
21187         gets, scanf, vfscanf, vscanf): Verify signatures.
21188         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
21189         problem with non-blocking pipes.
21190         * doc/posix-functions/fgetc.texi: Likewise.
21191         * doc/posix-functions/fgets.texi: Likewise.
21192         * doc/posix-functions/fread.texi: Likewise.
21193         * doc/posix-functions/fscanf.texi: Likewise.
21194         * doc/posix-functions/getc.texi: Likewise.
21195         * doc/posix-functions/getchar.texi: Likewise.
21196         * doc/posix-functions/gets.texi: Likewise.
21197         * doc/posix-functions/scanf.texi: Likewise.
21198         * doc/posix-functions/vfscanf.texi: Likewise.
21199         * doc/posix-functions/vscanf.texi: Likewise.
21200
21201 2011-04-14  Bruno Haible  <bruno@clisp.org>
21202
21203         Support non-blocking pipe I/O in write() on native Windows.
21204         * lib/write.c (rpl_write): Split a write request that failed merely
21205         because the byte count was larger than the pipe buffer's size.
21206         * doc/posix-functions/write.texi: Mention the problem with large byte
21207         counts.
21208
21209 2011-04-14  Bruno Haible  <bruno@clisp.org>
21210
21211         wchar: Ensure that wchar_t gets defined on uClibc.
21212         * lib/wchar.in.h: On uClibc, include <stddef.h>.
21213         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
21214
21215 2011-04-13  Bruno Haible  <bruno@clisp.org>
21216
21217         safe-write, full-read: Avoid unnecessary compilation units.
21218         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
21219         (Depends-on): Remove safe-read. Add ssize_t.
21220         * modules/full-read (Files): Add lib/full-write.c.
21221         (Depends-on): Add full-write.
21222
21223 2011-04-13  Bruno Haible  <bruno@clisp.org>
21224
21225         Support non-blocking pipe I/O and SIGPIPE in pwrite().
21226         * modules/pwrite (Depends-on): Add 'write'.
21227
21228 2011-04-13  Bruno Haible  <bruno@clisp.org>
21229
21230         Support non-blocking pipe I/O in write() on native Windows.
21231         * lib/unistd.in.h (write): Enable replacement also if
21232         GNULIB_UNISTD_H_NONBLOCKING is 1.
21233         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
21234         (rpl_write): When failing to write on a non-blocking pipe, change
21235         errno from ENOSPC to EAGAIN.
21236         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
21237         putchar, puts, vfprintf, vprintf): Enable replacement also if
21238         GNULIB_STDIO_H_NONBLOCKING is 1.
21239         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
21240         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
21241         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
21242         CALL_WITH_SIGPIPE_EMULATION.
21243         (CALL_WITH_SIGPIPE_EMULATION): Use them.
21244         * m4/nonblocking.m4: New file.
21245         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
21246         for non-blocking I/O support.
21247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21248         GNULIB_UNISTD_H_NONBLOCKING.
21249         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
21250         required for non-blocking I/O support.
21251         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
21252         * modules/nonblocking (Files): Add m4/nonblocking.m4,
21253         lib/stdio-write.c, m4/asm-underscore.m4.
21254         (Depends-on): Add stdio, unistd.
21255         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
21256         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
21257         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
21258         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
21259         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
21260         problem with non-blocking pipes.
21261         * doc/posix-functions/fputc.texi: Likewise.
21262         * doc/posix-functions/fputs.texi: Likewise.
21263         * doc/posix-functions/fwrite.texi: Likewise.
21264         * doc/posix-functions/printf.texi: Likewise.
21265         * doc/posix-functions/putc.texi: Likewise.
21266         * doc/posix-functions/putchar.texi: Likewise.
21267         * doc/posix-functions/puts.texi: Likewise.
21268         * doc/posix-functions/vfprintf.texi: Likewise.
21269         * doc/posix-functions/vprintf.texi: Likewise.
21270         * doc/posix-functions/write.texi: Likewise.
21271
21272 2011-04-10  Jim Meyering  <meyering@redhat.com>
21273
21274         maint.mk: prohibit doubled words
21275         Detect them also when they're separated by a newline.
21276         There are 3 ways to customize it:
21277           - disable the test on a per file basis, as usual with rules using
21278             $(VC_LIST_EXCEPT)
21279           - replace the default doubled-word-selecting regexp (affects all files)
21280           - ignore a particular file-vs-doubled-word match
21281         I nearly used that last one to ignore the "is is" match in
21282         coreutils' NEWS file, since the text was "ls -is is ..."
21283         To do that, I would have added this line to cfg.mk:
21284           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
21285         but it would have ignored any "is is" match in NEWS.
21286         Low probability, but still...
21287         Instead, I changed the text, slightly:
21288           -  ls -is is now consistent with ls -lis in ignoring values returned
21289           +  "ls -is" is now consistent with ls -lis in ignoring values returned
21290         * top/maint.mk (prohibit_double_word_RE_): Provide default.
21291         (prohibit_doubled_word_): Define.
21292         (sc_prohibit_doubled_word): New rule.
21293         (sc_prohibit_the_the): Remove.  Subsumed by the above.
21294
21295 2011-04-10  Jim Meyering  <meyering@redhat.com>
21296
21297         maint: fix doubled-word typo in comment
21298         * m4/gethostname.m4: s/is is/it is/
21299         * m4/getdomainname.m4: Likewise.
21300
21301 2011-04-10  Jim Meyering  <meyering@redhat.com>
21302
21303         maint: remove doubled word: s/it it/it/
21304         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
21305
21306 2011-04-10  Jim Meyering  <meyering@redhat.com>
21307
21308         maint.mk: remove useless semicolon and backslash
21309         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
21310         semicolon and backslash.
21311
21312 2011-04-10  Bruno Haible  <bruno@clisp.org>
21313
21314         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
21315         * modules/stdint-tests (Depends-on): Add wchar.
21316
21317 2011-04-10  Jim Meyering  <meyering@redhat.com>
21318
21319         maint: remove doubled words in comments, e.g., s/a a/a/
21320         * lib/strptime.c (day_of_the_week): s/the the/the/
21321         * tests/test-chown.h (test_chown): s/a a/a/
21322
21323         test-chown.h: correct a cast
21324         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
21325         when the destination is a stat.st_gid.
21326
21327 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
21328
21329         getaddrinfo: Fix test for sa_len member.
21330         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
21331         include <sys/types.h> before <sys/socket.h>.
21332
21333 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21334
21335         maint: change "can not" to "cannot"
21336         * doc/posix-functions/iconv.texi (iconv): This one crossed line
21337         boundaries.
21338
21339 2011-04-09  Jim Meyering  <meyering@redhat.com>
21340
21341         maint: change "a a" to "a"
21342         * tests/test-lchown.h (test_lchown): s/a a/a/
21343
21344         maint.mk: prohibit \<the the\>
21345         * top/maint.mk (sc_prohibit_the_the): New rule.
21346
21347         maint: fix "the the" in comment
21348         * lib/count-one-bits.h: s/the the/the/
21349
21350         maint: change "can not" to "cannot"
21351         But do not change the occurrences in maintain.texi or in
21352         build-aux/po/Makefile.in.in, which I presume comes from gettext.
21353         * doc/gnulib-tool.texi: s/can not/cannot/
21354         * doc/posix-functions/accept.texi (accept): Likewise.
21355         * doc/posix-functions/socket.texi (socket): Likewise.
21356         * lib/mbrtowc.c: Likewise.
21357
21358         maint.mk: prohibit use of "can not"
21359         * top/maint.mk (sc_prohibit_can_not): New rule.
21360         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
21361
21362 2011-04-09  Bruno Haible  <bruno@clisp.org>
21363
21364         careadlinkat: Guard against misuse of careadlinkatcwd.
21365         * lib/careadlinkat.c: Include <stdlib.h>.
21366         (careadlinkatcwd): Check that the fd argument is as expected.
21367
21368 2011-04-09  Bruno Haible  <bruno@clisp.org>
21369
21370         careadlinkat: Use common coding style.
21371         * lib/careadlinkat.c: Move gnulib includes after system includes.
21372
21373 2011-04-09  Bruno Haible  <bruno@clisp.org>
21374
21375         careadlinkat: Clarify specification.
21376         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
21377         (careadlinkatcwd): Add comment.
21378         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
21379
21380 2011-04-09  Bruno Haible  <bruno@clisp.org>
21381
21382         areadlinkat: Avoid link error on many platforms.
21383         * modules/areadlinkat (Depends-on): Add areadlink.
21384
21385 2011-04-09  Bruno Haible  <bruno@clisp.org>
21386
21387         allocator, careadlinkat: Fix double-inclusion guard.
21388         * lib/allocator.h: Fix double-inclusion guard.
21389         * lib/careadlinkat.h: Likewise.
21390
21391 2011-04-09  Bruno Haible  <bruno@clisp.org>
21392
21393         relocatable-prog-wrapper: Update after module 'areadlink' changed.
21394         * lib/relocwrapper.c: Update dependencies hierarchy.
21395         * build-aux/install-reloc: Update list of files to be compiled.
21396         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
21397         lib/allocator.[hc].
21398
21399 2011-04-08  Eric Blake  <eblake@redhat.com>
21400
21401         strftime: silence gnulib-tool warning
21402         * modules/strftime-tests (Depends-on): Drop automatic dependency.
21403
21404 2011-04-08  Bruno Haible  <bruno@clisp.org>
21405
21406         verify: Fix syntax error with GCC 4.6 in C++ mode.
21407         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
21408         (HAVE_STATIC_ASSERT): New macro.
21409         (verify_true, verify): Use 'static_assert' if it is supported and
21410         '_Static_assert' is not supported.
21411
21412 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21413
21414         allocator: New module.
21415         * modules/allocator, lib/allocator.c: New files.
21416         * lib/allocator.h (stdlib_allocator): New decl.
21417         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
21418         Remove.  Do not include <stdlib.h>.
21419         (careadlinkat): Use stdlib_allocator instead of rolling our own.
21420         * modules/careadlinkat (Files): Remove lib/allocator.h.
21421         (Depends-on): Add allocator.
21422
21423         stdlib: let modules use system malloc, realloc
21424         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
21425         if !_GL_USE_STDLIB_ALLOC.
21426         (malloc, realloc): Limit this change to a smaller scope.
21427
21428         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
21429         (malloc, realloc): Don't #undef; no longer needed.
21430         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21431         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21432         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21433         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21434         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21435         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21436         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21437         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21438
21439         careadlinkat: rename members to avoid problem
21440         * lib/allocator.h (struct allocator): Rename members from
21441         malloc/realloc to allocate/reallocate, to avoid problems if malloc
21442         and realloc are #define'd.  Reported by Eric Blake in
21443         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
21444         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
21445
21446 2011-04-08  Eric Blake  <eblake@redhat.com>
21447
21448         nonblocking: reduce dependency
21449         * tests/test-nonblocking.c: Only test sockets when in use.
21450         * modules/nonblocking-tests (Depends-on): Drop socket.
21451         (Makefile.am): Link even if sockets are not present.
21452         * modules/pipe2-tests (Makefile.am): Likewise.
21453         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
21454
21455         pipe2: fix O_NONBLOCK support on mingw
21456         * modules/pipe2 (Depends-on): Add nonblocking.
21457         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
21458         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
21459         * tests/test-nonblocking.c (main): Likewise.
21460         * modules/pipe2-tests (Makefile.am): Avoid link failure.
21461
21462         fcntl-h: fix O_ACCMODE on cygwin
21463         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
21464         * lib/fcntl.in.h (O_ACCMODE): Fix it.
21465
21466         pipe-filter: drop O_NONBLOCK workarounds
21467         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
21468         * modules/pipe-filter-ii (Depends-on): Likewise.
21469         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
21470
21471         nonblocking: provide O_NONBLOCK for mingw
21472         * modules/nonblocking (Depends-on): Add open.
21473         (configure.ac): Set new witness macro.
21474         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
21475         * modules/fcntl-h (Makefile.am): Substitute it.
21476         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
21477         nonblocking module is in use.
21478         * lib/nonblocking.c: Adjust portability test.
21479         * lib/open.c (open): Don't let native open see gnulib flag.
21480         * tests/test-fcntl-h.c (main): Enhance test.
21481         * tests/test-open.h (test_open): Likewise.
21482         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
21483
21484         careadlinkat: fix compilation error on mingw
21485         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
21486         within struct allocator.
21487
21488 2011-04-06  Eric Blake  <eblake@redhat.com>
21489
21490         binary-io: relicense under LGPLv2+
21491         * modules/binary-io (License): Relax to LGPLv2+.
21492         Requested for libvirt, and required by pipe2.
21493
21494 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21495
21496         verify: use _Static_assert if available
21497         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
21498         (verify_true, verify): Use it if available.  This generates better
21499         diagnostics with GCC 4.6.0 and later.
21500
21501 2011-04-05  Bruno Haible  <bruno@clisp.org>
21502
21503         Remove leftover generated .h files after config.status changed.
21504
21505         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
21506         GL_GENERATE_ALLOCA_H.
21507         * modules/alloca-opt (Makefile.am): Remove alloca.h if
21508         GL_GENERATE_ALLOCA_H evaluates to false.
21509
21510         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
21511         GL_GENERATE_ARGZ_H.
21512         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
21513         evaluates to false.
21514
21515         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
21516         GL_GENERATE_BYTESWAP_H.
21517         * modules/byteswap (Makefile.am): Remove byteswap.h if
21518         GL_GENERATE_BYTESWAP_H evaluates to false.
21519
21520         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
21521         GL_GENERATE_ERRNO_H.
21522         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
21523         evaluates to false.
21524
21525         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
21526         GL_GENERATE_FLOAT_H.
21527         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
21528         evaluates to false.
21529
21530         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
21531         GL_GENERATE_FNMATCH_H.
21532         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
21533         GL_GENERATE_FNMATCH_H evaluates to false.
21534
21535         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
21536         GL_GENERATE_GLOB_H.
21537         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
21538         evaluates to false.
21539
21540         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
21541         automake conditional GL_GENERATE_ICONV_H.
21542         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
21543         evaluates to false.
21544
21545         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
21546         GL_GENERATE_NETINET_IN_H.
21547         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
21548         GL_GENERATE_NETINET_IN_H evaluates to false.
21549
21550         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
21551         conditional GL_GENERATE_PTHREAD_H.
21552         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
21553         * modules/pthread (Makefile.am): Remove pthread.h if
21554         GL_GENERATE_PTHREAD_H evaluates to false.
21555
21556         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
21557         GL_GENERATE_SCHED_H.
21558         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
21559         evaluates to false.
21560
21561         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
21562         conditional GL_GENERATE_SELINUX_CONTEXT_H.
21563         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
21564         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
21565
21566         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
21567         GL_GENERATE_STDARG_H.
21568         * modules/stdarg (Makefile.am): Remove stdarg.h if
21569         GL_GENERATE_STDARG_H evaluates to false.
21570
21571         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
21572         GL_GENERATE_STDBOOL_H.
21573         * modules/stdbool (Makefile.am): Remove stdbool.h if
21574         GL_GENERATE_STDBOOL_H evaluates to false.
21575
21576         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
21577         conditional GL_GENERATE_STDDEF_H.
21578         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
21579         * modules/stddef (Makefile.am): Remove stddef.h if
21580         GL_GENERATE_STDDEF_H evaluates to false.
21581
21582         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
21583         GL_GENERATE_STDINT_H.
21584         * modules/stdint (Makefile.am): Remove stdint.h if
21585         GL_GENERATE_STDINT_H evaluates to false.
21586
21587         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
21588         GL_GENERATE_SYSEXITS_H.
21589         * modules/sysexits (Makefile.am): Remove sysexits.h if
21590         GL_GENERATE_SYSEXITS_H evaluates to false.
21591
21592         Reported by Karl Berry and Ralf Wildenhues.
21593
21594 2011-04-05  Bruno Haible  <bruno@clisp.org>
21595
21596         Ensure to rebuild generated .h files when config.status has changed.
21597         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
21598         config.status.
21599         * modules/ctype (Makefile.am): Likewise.
21600         * modules/dirent (Makefile.am): Likewise.
21601         * modules/errno (Makefile.am): Likewise.
21602         * modules/fcntl-h (Makefile.am): Likewise.
21603         * modules/float (Makefile.am): Likewise.
21604         * modules/getopt-posix (Makefile.am): Likewise.
21605         * modules/glob (Makefile.am): Likewise.
21606         * modules/iconv-h (Makefile.am): Likewise.
21607         * modules/inttypes (Makefile.am): Likewise.
21608         * modules/langinfo (Makefile.am): Likewise.
21609         * modules/locale (Makefile.am): Likewise.
21610         * modules/math (Makefile.am): Likewise.
21611         * modules/netdb (Makefile.am): Likewise.
21612         * modules/netinet_in (Makefile.am): Likewise.
21613         * modules/poll-h (Makefile.am): Likewise.
21614         * modules/pthread (Makefile.am): Likewise.
21615         * modules/pty (Makefile.am): Likewise.
21616         * modules/sched (Makefile.am): Likewise.
21617         * modules/search (Makefile.am): Likewise.
21618         * modules/selinux-h (Makefile.am): Likewise.
21619         * modules/signal (Makefile.am): Likewise.
21620         * modules/spawn (Makefile.am): Likewise.
21621         * modules/stdarg (Makefile.am): Likewise.
21622         * modules/stdbool (Makefile.am): Likewise.
21623         * modules/stddef (Makefile.am): Likewise.
21624         * modules/stdint (Makefile.am): Likewise.
21625         * modules/stdio (Makefile.am): Likewise.
21626         * modules/stdlib (Makefile.am): Likewise.
21627         * modules/string (Makefile.am): Likewise.
21628         * modules/strings (Makefile.am): Likewise.
21629         * modules/sys_file (Makefile.am): Likewise.
21630         * modules/sys_ioctl (Makefile.am): Likewise.
21631         * modules/sys_select (Makefile.am): Likewise.
21632         * modules/sys_socket (Makefile.am): Likewise.
21633         * modules/sys_stat (Makefile.am): Likewise.
21634         * modules/sys_time (Makefile.am): Likewise.
21635         * modules/sys_times (Makefile.am): Likewise.
21636         * modules/sys_utsname (Makefile.am): Likewise.
21637         * modules/sys_wait (Makefile.am): Likewise.
21638         * modules/sysexits (Makefile.am): Likewise.
21639         * modules/termios (Makefile.am): Likewise.
21640         * modules/time (Makefile.am): Likewise.
21641         * modules/unistd (Makefile.am): Likewise.
21642         * modules/wchar (Makefile.am): Likewise.
21643         * modules/wctype-h (Makefile.am): Likewise.
21644         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
21645
21646 2011-04-05  Bruno Haible  <bruno@clisp.org>
21647
21648         pipe2: Relicense under LGPLv2+.
21649         * modules/pipe2 (License): Change to LGPLv2+.
21650         Requested by Eric Blake, for libvirt.
21651
21652 2011-04-05  Bruce Korb  <bkorb@gnu.org>
21653
21654         bootstrap: compute gnulib_extra_files after updating build_aux
21655         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
21656         change build_aux or also supply gnulib_extra_files.  Handle correctly.
21657
21658 2011-04-05  Eric Blake  <eblake@redhat.com>
21659
21660         bootstrap: preserve git whitelist item sorting
21661         * build-aux/bootstrap (sort_patterns): New function.
21662         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
21663
21664 2011-04-05  Simon Josefsson  <simon@josefsson.org>
21665
21666         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
21667         sc_space_tab check.
21668
21669 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
21670
21671         areadlink, areadlinkat: rewrite in terms of careadlinkat
21672         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
21673         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
21674         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
21675         (malloc, realloc): Remove #undefs.
21676         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
21677         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
21678         readlink, ssize_t, stdint, unistd.
21679         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
21680         areadlink, stdint.
21681
21682         careadlinkat: new module
21683         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
21684         * modules/careadlinkat: New files, written by me with
21685         a review and feedback from Ben Pfaff in
21686         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
21687
21688 2011-04-01  Bruno Haible  <bruno@clisp.org>
21689
21690         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
21691         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
21692         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
21693         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
21694         Reported by Bruce Korb <bruce.korb@gmail.com>.
21695
21696 2011-04-01  Bruno Haible  <bruno@clisp.org>
21697
21698         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
21699         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
21700         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
21701         * modules/wcpcpy (Depends-on): Add extensions.
21702         * modules/wcpncpy (Depends-on): Likewise.
21703         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
21704         systems.
21705         * doc/posix-functions/wcpncpy.texi: Likewise.
21706         * doc/posix-functions/wcwidth.texi: Likewise.
21707
21708 2011-03-31  Eric Blake  <eblake@redhat.com>
21709
21710         nonblocking: fix mingw test failures
21711         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
21712         non-blocking flag on regular file.
21713         (get_nonblocking_flag): Set errno on invalid fd.
21714         * tests/test-nonblocking.c (main): Avoid test failure on
21715         directories if fchdir is not active.
21716         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
21717
21718 2011-03-31  Bruno Haible  <bruno@clisp.org>
21719
21720         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
21721         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
21722         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
21723         Reported by Simon Josefsson <simon@josefsson.org>.
21724
21725 2011-03-31  Bruno Haible  <bruno@clisp.org>
21726         and Eric Blake  <eblake@redhat.com>
21727
21728         nonblocking: new module
21729         * modules/nonblocking: New module.
21730         * modules/nonblocking-tests: Likewise.
21731         * lib/nonblocking.h: New file.
21732         * lib/nonblocking.c: Likewise.
21733         * tests/test-nonblocking.c: New test.
21734         * lib/ioctl.c (ioctl) [mingw]: Update comment.
21735
21736 2011-03-30  Bruno Haible  <bruno@clisp.org>
21737
21738         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
21739         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
21740         instead of 'printf' format for GCC >= 4.4.
21741         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
21742         (fprintf, printf, vfprintf, vprintf): Declare with
21743         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
21744         the system's vfprintf() function.
21745         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
21746
21747 2011-03-30  Eric Blake  <eblake@redhat.com>
21748
21749         passfd: fix scoping bug
21750         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
21751         before sendmsg/recvmsg.
21752
21753         passfd: standardize coding conventions
21754         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
21755         can be learned at compile time.
21756         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
21757         ifdefs.
21758         (sendfd, recvfd): Follow gnulib code conventions.
21759
21760         passfd: fix incorrect sendmsg arguments
21761         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
21762         incorrect msg_controllen value.
21763         * modules/passfd-tests (Depends-on): Check for alarm.
21764         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
21765         Reported by Bastien ROUCARIES.
21766
21767 2011-03-30  Bruno Haible  <bruno@clisp.org>
21768
21769         c-strcasestr: Relicense under LGPLv2+.
21770         * modules/c-strcasestr (License): Change to LGPLv2+.
21771         Requested by Eric Blake, for libvirt.
21772
21773 2011-03-30  Simon Josefsson  <simon@josefsson.org>
21774
21775         * users.txt: Add libidn2.  Fix libtasn1 link.
21776
21777 2011-03-30  Jim Meyering  <meyering@redhat.com>
21778
21779         tests: readlink* ("",... fails with EINVAL on newer kernels
21780         readlink and readlinkat have typically failed with ENOENT for
21781         the invalid, empty file name,  "".  However, with the advent
21782         of linux-2.6.39, they fail with EINVAL.
21783         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
21784         when operating on the empty file name.
21785         * tests/test-readlink.h (test_readlink): Likewise.
21786
21787 2011-03-29  Bruno Haible  <bruno@clisp.org>
21788
21789         Relicense some modules under LGPLv2+, for libidn2.
21790         * modules/array-mergesort (License): Change to LGPLv2+.
21791         * modules/c-strcaseeq (License): Likewise.
21792         * modules/striconveh (License): Likewise.
21793         * modules/striconveha (License): Likewise.
21794         * modules/uniconv/base (License): Likewise.
21795         * modules/uniconv/u8-conv-from-enc (License): Likewise.
21796         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
21797         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
21798         * modules/unictype/base (License): Likewise.
21799         * modules/unictype/bidiclass-of (License): Likewise.
21800         * modules/unictype/category-M (License): Likewise.
21801         * modules/unictype/category-none (License): Likewise.
21802         * modules/unictype/category-of (License): Likewise.
21803         * modules/unictype/category-test (License): Likewise.
21804         * modules/unictype/category-test-withtable (License): Likewise.
21805         * modules/unictype/combining-class (License): Likewise.
21806         * modules/unictype/joiningtype-of (License): Likewise.
21807         * modules/unictype/scripts (License): Likewise.
21808         * modules/uninorm/base (License): Likewise.
21809         * modules/uninorm/canonical-decomposition (License): Likewise.
21810         * modules/uninorm/composition (License): Likewise.
21811         * modules/uninorm/decompose-internal (License): Likewise.
21812         * modules/uninorm/decomposition-table (License): Likewise.
21813         * modules/uninorm/nfc (License): Likewise.
21814         * modules/uninorm/nfd (License): Likewise.
21815         * modules/uninorm/u32-normalize (License): Likewise.
21816         * modules/unistr/base (License): Likewise.
21817         * modules/unistr/u32-cpy (License): Likewise.
21818         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
21819         * modules/unistr/u32-to-u8 (License): Likewise.
21820         * modules/unistr/u32-uctomb (License): Likewise.
21821         * modules/unistr/u8-check (License): Likewise.
21822         * modules/unistr/u8-mblen (License): Likewise.
21823         * modules/unistr/u8-mbtouc (License): Likewise.
21824         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
21825         * modules/unistr/u8-mbtoucr (License): Likewise.
21826         * modules/unistr/u8-prev (License): Likewise.
21827         * modules/unistr/u8-strlen (License): Likewise.
21828         * modules/unistr/u8-to-u32 (License): Likewise.
21829         * modules/unistr/u8-uctomb (License): Likewise.
21830         * modules/unitypes (License): Likewise.
21831         Requested by Simon Josefsson.
21832
21833 2011-03-29  Simon Josefsson  <simon@josefsson.org>
21834
21835         lib-symbol-visibility: Add a notice.
21836         * modules/lib-symbol-visibility (Notice): New field.
21837
21838 2011-03-29  Bruno Haible  <bruno@clisp.org>
21839
21840         getaddrinfo: Doc fix.
21841         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
21842         section "fixed in Gnulib".
21843
21844 2011-03-28  Simon Josefsson  <simon@josefsson.org>
21845
21846         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
21847         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
21848
21849 2011-03-26  Bruno Haible  <bruno@clisp.org>
21850
21851         unictype/property-byname: Reduce the number of load-time relocations.
21852         * lib/unictype/pr_byname.c: Include <stdlib.h>.
21853         (UC_PROPERTY_INDEX_*): New enumeration values.
21854         (uc_property_byname): Convert an index from the lookup table to an
21855         uc_property_t.
21856         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
21857         values.
21858
21859 2011-03-26  Bruno Haible  <bruno@clisp.org>
21860
21861         unictype/property-byname: Allow omitted word separators and aliases.
21862         * lib/unictype/pr_byname.gperf: Add property names without word
21863         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
21864         for 'space'.
21865
21866 2011-03-26  Bruno Haible  <bruno@clisp.org>
21867
21868         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
21869         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
21870         also hyphens to space.
21871         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
21872         without spaces.
21873         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
21874
21875 2011-03-26  Bruno Haible  <bruno@clisp.org>
21876
21877         unictype/joiningtype-byname: Recognize long names as well.
21878         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
21879         a long name.
21880         * lib/unictype/joiningtype_byname.c: Include <string.h>,
21881         unictype/joiningtype_byname.h.
21882         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
21883         * lib/unictype/joiningtype_byname.gperf: New file.
21884         * modules/unictype/joiningtype-byname (Files): Add
21885         lib/unictype/joiningtype_byname.gperf.
21886         (Depends-on): Add gperf.
21887         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
21888         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
21889         long names.
21890
21891         Tests for module 'unictype/joiningtype-longname'.
21892         * modules/unictype/joiningtype-longname-tests: New file.
21893         * tests/unictype/test-joiningtype_longname.c: New file.
21894
21895         New module 'unictype/joiningtype-longname'.
21896         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
21897         * lib/unictype/joiningtype_longname.c: New file.
21898         * modules/unictype/joiningtype-longname: New file.
21899         * modules/unictype/joiningtype-all (Depends-on): Add
21900         unictype/joiningtype-longname.
21901
21902 2011-03-26  Bruno Haible  <bruno@clisp.org>
21903
21904         unictype/bidiclass-byname: Recognize long names as well.
21905         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
21906         name.
21907         * lib/unictype/bidi_byname.c: Include <string.h>,
21908         unictype/bidi_byname.h.
21909         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
21910         * lib/unictype/bidi_byname.gperf: New file.
21911         * modules/unictype/bidiclass-byname (Files): Add
21912         lib/unictype/bidi_byname.gperf.
21913         (Depends-on): Add gperf.
21914         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
21915         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
21916         long names.
21917
21918         Tests for module 'unictype/bidiclass-longname'.
21919         * modules/unictype/bidiclass-longname-tests: New file.
21920         * tests/unictype/test-bidi_longname.c: New file.
21921
21922         New module 'unictype/bidiclass-longname'.
21923         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
21924         * lib/unictype/bidi_longname.c: New file.
21925         * modules/unictype/bidiclass-longname: New file.
21926         * modules/unictype/bidiclass-all (Depends-on): Add
21927         unictype/bidiclass-longname.
21928
21929 2011-03-26  Bruno Haible  <bruno@clisp.org>
21930
21931         unictype/bidi*: Rename modules.
21932         * modules/unictype/bidiclass-all: Renamed from
21933         modules/unictype/bidicategory-all.
21934         * modules/unictype/bidiclass-name: Renamed from
21935         modules/unictype/bidiclass-name.
21936         (Description): Update.
21937         * modules/unictype/bidiclass-name-tests: Renamed from
21938         modules/unictype/bidicategory-name-tests.
21939         * modules/unictype/bidiclass-byname: Renamed from
21940         modules/unictype/bidicategory-byname.
21941         (Description): Update.
21942         * modules/unictype/bidiclass-byname-tests: Renamed from
21943         modules/unictype/bidicategory-byname-tests.
21944         * modules/unictype/bidiclass-of: Renamed from
21945         modules/unictype/bidicategory-of.
21946         (Description): Update.
21947         * modules/unictype/bidiclass-of-tests: Renamed from
21948         modules/unictype/bidicategory-of-tests.
21949         * modules/unictype/bidiclass-test: Renamed from
21950         modules/unictype/bidicategory-test.
21951         (Description): Update.
21952         * modules/unictype/bidiclass-test-tests: Renamed from
21953         modules/unictype/bidicategory-test-tests.
21954         * modules/unictype/bidicategory-all: New file, a simple redirection.
21955         * modules/unictype/bidicategory-name: Likewise.
21956         * modules/unictype/bidicategory-byname: Likewise.
21957         * modules/unictype/bidicategory-of: Likewise.
21958         * modules/unictype/bidicategory-test: Likewise.
21959         * modules/unictype/property-bidi-* (Dependencies): Update.
21960         * lib/unictype/bidi_*.c: Update comment.
21961
21962 2011-03-26  Bruno Haible  <bruno@clisp.org>
21963
21964         unictype/bidi*: Rename functions, part 2.
21965         * modules/unictype/bidicategory-name (configure.ac): Update required
21966         libunistring version.
21967         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
21968
21969 2011-03-25  Bruno Haible  <bruno@clisp.org>
21970
21971         New module 'unictype/combining-class-all'.
21972         * modules/unictype/combining-class-all: New file.
21973
21974         Tests for module 'unictype/combining-class-byname'.
21975         * modules/unictype/combining-class-byname-tests: New file.
21976         * tests/unictype/test-combiningclass_byname.c: New file.
21977
21978         New module 'unictype/combining-class-byname'.
21979         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
21980         * lib/unictype/combiningclass_byname.c: New file.
21981         * lib/unictype/combiningclass_byname.gperf: New file.
21982         * modules/unictype/combining-class-byname: New file.
21983
21984         Tests for module 'unictype/combining-class-longname'.
21985         * modules/unictype/combining-class-longname-tests: New file.
21986         * tests/unictype/test-combiningclass_longname.c: New file.
21987
21988         New module 'unictype/combining-class-longname'.
21989         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
21990         * lib/unictype/combiningclass_longname.c: New file.
21991         * modules/unictype/combining-class-longname: New file.
21992
21993         Tests for module 'unictype/combining-class-name'.
21994         * modules/unictype/combining-class-name-tests: New file.
21995         * tests/unictype/test-combiningclass_name.c: New file.
21996
21997         New module 'unictype/combining-class-name'.
21998         * lib/unictype.in.h (uc_combining_class_name): New declaration.
21999         * lib/unictype/combiningclass_name.c: New file.
22000         * modules/unictype/combining-class-name: New file.
22001
22002 2011-03-25  Bruno Haible  <bruno@clisp.org>
22003
22004         unictype/combining-class: Rename source files.
22005         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
22006         of unictype/combining.h.
22007         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
22008         Update.
22009         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
22010         * modules/unictype/combining-class (Description): Fix.
22011         (Files, Makefile.am): Update.
22012         * tests/unictype/test-combiningclass.c: Renamed from
22013         tests/unictype/test-combining.c.
22014         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
22015
22016 2011-03-25  Bruno Haible  <bruno@clisp.org>
22017
22018         unictype: Update list of canonical combining classes.
22019         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
22020
22021 2011-03-25  Bruno Haible  <bruno@clisp.org>
22022
22023         unictype/category-byname: Recognize long names as well.
22024         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
22025         a long name.
22026         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
22027         unictype/categ_byname.h.
22028         (UC_CATEGORY_INDEX_*): New enumeration values.
22029         (uc_general_category_byname): Use uc_general_category_lookup and
22030         convert from index to value.
22031         * lib/unictype/categ_byname.gperf: New file.
22032         * modules/unictype/category-byname (Files): Add
22033         lib/unictype/categ_byname.gperf.
22034         (Depends-on): Add gperf.
22035         (Makefile.am): Add rule for generating unictype/categ_byname.h.
22036         * tests/unictype/test-categ_byname.c (main): Test the recognition of
22037         long names.
22038
22039         Tests for module 'unictype/category-longname'.
22040         * modules/unictype/category-longname-tests: New file.
22041         * tests/unictype/test-categ_longname.c: New file.
22042
22043         New module 'unictype/category-longname'.
22044         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
22045         * lib/unictype/categ_longname.c: New file.
22046         * modules/unictype/category-longname: New file.
22047         * modules/unictype/category-all (Depends-on): Add it.
22048
22049 2011-03-25  Bruno Haible  <bruno@clisp.org>
22050
22051         Tests for module 'unictype/category-LC'.
22052         * modules/unictype/category-LC-tests: New file.
22053         * tests/unictype/test-categ_LC.c: New file, automatically generated.
22054
22055         New module 'unictype/category-LC'.
22056         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
22057         (UC_CATEGORY_LC): New declaration.
22058         (UC_CASED_LETTER): New macro.
22059         * lib/gen-uni-tables.c (is_category_LC): New function.
22060         (output_categories): Also handle category LC.
22061         (UC_CATEGORY_MASK_LC): New enumeration value.
22062         (general_category_byname): Also handle category LC.
22063         * lib/unictype/categ_LC.c: New file.
22064         * lib/unictype/categ_LC.h: New file, automatically generated.
22065         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
22066         category LC.
22067         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
22068         * modules/unictype/category-LC: New file.
22069         * modules/unictype/category-byname (Depends-on): Add
22070         unictype/category-LC.
22071         * modules/unictype/category-all (Depends-on): Likewise.
22072
22073 2011-03-25  Eric Blake  <eblake@redhat.com>
22074
22075         xmalloc: revert yesterday's regression
22076         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
22077         realloc's underlying behavior (allowing allocation of zero-size
22078         objects, especially if malloc-gnu is also in use).
22079
22080 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
22081
22082         maint.mk: add missing version to VC-tag
22083         * top/maint.mk: git tag was missing actual tag name; add it.
22084
22085         valgrind: do leak checking, and exit with code 1 on error (not 0)
22086         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
22087         to VALGRIND.
22088
22089 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
22090
22091         posix-modules: say what it does.
22092         * posix-modules: Add a line to the --help output saying what it does.
22093
22094 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
22095
22096         xmalloc: Do not leak if underlying realloc is C99 compatible.
22097         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
22098         This avoids a leak on C99-based systems.  See
22099         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
22100
22101 2011-03-24  Eric Blake  <eblake@redhat.com>
22102
22103         realloc: document portability problem
22104         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
22105         passing 0 size to realloc.
22106
22107 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
22108
22109         doc: update users.txt
22110         * users.txt: Add cvsps, tmpwatch
22111
22112 2011-03-23  Matt Rice  <ratmice@gmail.com>
22113
22114         doc: update users.txt
22115         * users.txt: Add gdb.
22116
22117 2011-03-23  Jim Meyering  <meyering@redhat.com>
22118
22119         doc: update users.txt
22120         Looking through matches up to the following URL (there are still
22121         several more pages), I found several projects that use gnulib:
22122         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
22123         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
22124         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
22125
22126 2011-03-22  Bruno Haible  <bruno@clisp.org>
22127
22128         unictype/bidi*: Rename functions.
22129         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
22130         uc_bidi_class, uc_is_bidi_class): New declarations.
22131         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
22132         uc_bidi_category_byname.
22133         (uc_bidi_category_byname): New function.
22134         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
22135         u_bidi_category_name.
22136         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
22137         (uc_bidi_category_name): New function.
22138         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
22139         uc_bidi_category.
22140         (uc_bidi_category): New function.
22141         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
22142         uc_is_bidi_category. Invoke uc_bidi_class.
22143         (uc_is_bidi_category): New function.
22144         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
22145         instead of uc_bidi_category_byname.
22146         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
22147         instead of uc_bidi_category_name.
22148         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
22149         uc_bidi_category.
22150         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
22151         instead of uc_is_bidi_category.
22152
22153 2011-03-21  Bruno Haible  <bruno@clisp.org>
22154
22155         New module 'unictype/joininggroup-all'.
22156         * modules/unictype/joininggroup-all: New file.
22157
22158         Tests for module 'unictype/joininggroup-of'.
22159         * modules/unictype/joininggroup-of-tests: New file.
22160         * tests/unictype/test-joininggroup_of.c: New file.
22161         * tests/unictype/test-joininggroup_of.h: New file, automatically
22162         generated by gen-uni-tables.
22163
22164         New module 'unictype/joininggroup-of'.
22165         * modules/unictype/joininggroup-of: New file.
22166         * lib/unictype/joininggroup_of.c: New file.
22167         * lib/unictype/joininggroup_of.h: New file, automatically generated by
22168         gen-uni-tables.
22169
22170         Tests for module 'unictype/joininggroup-byname'.
22171         * modules/unictype/joininggroup-byname-tests: New file.
22172         * tests/unictype/test-joininggroup_byname.c: New file.
22173
22174         New module 'unictype/joininggroup-byname'.
22175         * modules/unictype/joininggroup-byname: New file.
22176         * lib/unictype/joininggroup_byname.c: New file.
22177         * lib/unictype/joininggroup_byname.gperf: New file.
22178
22179         Tests for module 'unictype/joininggroup-name'.
22180         * modules/unictype/joininggroup-name-tests: New file.
22181         * tests/unictype/test-joininggroup_name.c: New file.
22182
22183         New module 'unictype/joininggroup-name'.
22184         * modules/unictype/joininggroup-name: New file.
22185         * lib/unictype/joininggroup_name.c: New file.
22186         * lib/unictype/joininggroup_name.h: New file.
22187
22188         New module 'unictype/joiningtype-all'.
22189         * modules/unictype/joiningtype-all: New file.
22190
22191         Tests for module 'unictype/joiningtype-of'.
22192         * modules/unictype/joiningtype-of-tests: New file.
22193         * tests/unictype/test-joiningtype_of.c: New file.
22194         * tests/unictype/test-joiningtype_of.h: New file, automatically
22195         generated by gen-uni-tables.
22196
22197         New module 'unictype/joiningtype-of'.
22198         * modules/unictype/joiningtype-of: New file.
22199         * lib/unictype/joiningtype_of.c: New file.
22200         * lib/unictype/joiningtype_of.h: New file, automatically generated by
22201         gen-uni-tables.
22202
22203         Tests for module 'unictype/joiningtype-byname'.
22204         * modules/unictype/joiningtype-byname-tests: New file.
22205         * tests/unictype/test-joiningtype_byname.c: New file.
22206
22207         New module 'unictype/joiningtype-byname'.
22208         * modules/unictype/joiningtype-byname: New file.
22209         * lib/unictype/joiningtype_byname.c: New file.
22210
22211         Tests for module 'unictype/joiningtype-name'.
22212         * modules/unictype/joiningtype-name-tests: New file.
22213         * tests/unictype/test-joiningtype_name.c: New file.
22214
22215         New module 'unictype/joiningtype-name'.
22216         * modules/unictype/joiningtype-name: New file.
22217         * lib/unictype/joiningtype_name.c: New file.
22218
22219         unictype: Add support for Arabic shaping properties.
22220         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
22221         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
22222         declarations.
22223         (UC_JOINING_GROUP_*): New enumeration values.
22224         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
22225         declarations.
22226         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
22227         (unicode_joining_type): New variable.
22228         (UC_JOINING_GROUP_*): New enumeration values.
22229         (unicode_joining_group): New variable.
22230         (fill_arabicshaping, joining_type_as_c_identifier,
22231         output_joining_type_test, output_joining_type,
22232         joining_group_as_c_identifier, output_joining_group_test,
22233         output_joining_group): New functions.
22234         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
22235         fill_arabicshaping and output_joining_type_test, output_joining_type,
22236         output_joining_group_test, output_joining_group.
22237         Reported by Simon Josefsson.
22238
22239 2011-03-21  Jim Meyering  <meyering@redhat.com>
22240
22241         strftime: fix a bug in yesterday's change
22242         * lib/strftime.c (add): Accommodate width's initial value of -1.
22243         Otherwise, nstrftime would copy uninitialized data into
22244         the result buffer.
22245
22246 2011-03-21  Jim Meyering  <meyering@redhat.com>
22247
22248         tests: add strftime-tests module
22249         * tests/test-strftime.c: New file.
22250         * modules/strftime-tests: New module.
22251
22252 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22253
22254         strftime: don't assume a byte count fits in 'int'
22255         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
22256         found this problem by static analysis, using gcc -Wstrict-overflow
22257         (GCC 4.5.2, x86-64).  This reported an optimization that depended
22258         on an integer overflow having undefined behavior, but it turns out
22259         that the argument is a size, which might not fit in 'int' anyway,
22260
22261 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22262
22263         stdio: don't require ignore_value around fwrite
22264
22265         This patch works around libc bug 11959
22266         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
22267         Without this patch, applications must often write
22268         ignore_value (fwrite (...)) even though the ignore_value is
22269         not helpful here.  It's common to write many objects, using
22270         fwrite/printf/etc., and then use ferror to detect output error.
22271
22272         I considered making this patch optional, but decided against it,
22273         because libc is obviously being inconsistent here: there is no
22274         reason libc should insist that user code must inspect fwrite
22275         return's value without also insisting that it inspect printf's,
22276         putchar's, etc.  If user code wants to have a strict style where
22277         all these functions' values are checked (so that ferror need not
22278         be checked), we could add support for that style in a new gnulib
22279         module, but in the meantime it's better to be consistent and to
22280         support common usage.
22281
22282         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
22283         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
22284         that we are compiling in checking mode, and if not C++, and
22285         if not already wrapping fwrite for some other reason.
22286         (fwrite): #define to rpl_fwrite if the latter is defined.
22287
22288 2011-03-20  Bruno Haible  <bruno@clisp.org>
22289
22290         verror: Fix compilation error introduced on 2011-02-13.
22291         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
22292         instead of __attribute__.
22293         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22294
22295 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22296             Bruno Haible  <bruno@clisp.org>
22297
22298         socklen: do not depend on sys_socket
22299         While trying to modify Emacs to use gnulib's socklen module,
22300         I discovered a circular dependency: socklen depends on sys_socket
22301         and vice versa.  Emacs can use socklen, but it does not need
22302         sys_socket because it has its own substitute for sys/socket.h.
22303         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
22304         gl_TYPE_SOCKLEN_T.
22305         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
22306         gl_PREREQ_SYS_H_SOCKET.
22307         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
22308         gl_PREREQ_SYS_H_SOCKET.
22309         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
22310         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
22311         * modules/socklen (Depends-on): Do not depend on sys_socket.
22312         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
22313
22314 2011-03-20  Jim Meyering  <meyering@redhat.com>
22315
22316         maint.mk: sort file names *after* new transformation
22317         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
22318         prefix would have led to an unwarranted failure in GNU parted.
22319         Sort after that transformation.
22320
22321 2011-03-19  Jim Meyering  <meyering@redhat.com>
22322
22323         maint.mk: fix po-file syntax-check rule
22324         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
22325         Patch by Bruno Haible.
22326
22327 2011-03-19  Bruno Haible  <bruno@clisp.org>
22328
22329         socklen: Update comment.
22330         * m4/socklen.m4: Update comment about platforms.
22331
22332 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22333             Bruno Haible  <bruno@clisp.org>
22334
22335         inet_ntop, inet_pton: Simplify.
22336         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
22337         documented to provide socklen_t and we already depend on sys_socket.
22338         * modules/inet_pton (Depends-on): Likewise.
22339         * lib/arpa_inet.in.h: Adjust comment.
22340
22341 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22342             Bruno Haible  <bruno@clisp.org>
22343
22344         netdb: Simplify.
22345         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
22346         documented to provide socklen_t and we already depend on sys_socket.
22347         * lib/netdb.in.h: Adjust comment.
22348
22349 2011-03-19  Bruno Haible  <bruno@clisp.org>
22350
22351         sys_socket, netdb: Document problem with socklen_t.
22352         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
22353         platforms.
22354         * doc/posix-headers/netdb.texi: Likewise.
22355
22356 2011-03-18  Eric Blake  <eblake@redhat.com>
22357
22358         maint.mk: let po check work in VPATH build
22359         * top/maint.mk (po_file): Allow cfg.mk override.
22360         (sc_po_check): Allow VPATH use.
22361         Reported by Jiri Denemark.
22362
22363 2011-03-16  Jim Meyering  <meyering@redhat.com>
22364
22365         maint.mk: allow fine-grained syntax-check exclusion via Make variables
22366         Before, you would have had to create one .x-sc_ file per rule in order
22367         to exempt offending files.  Now, you may instead use a Make variable --
22368         usually defined in cfg.mk -- whose name identifies the affected rule.
22369         * top/maint.mk (_sc_excl): Define.
22370         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
22371         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
22372
22373 2011-03-13  Bruno Haible  <bruno@clisp.org>
22374
22375         ignore-value tests: Avoid warnings.
22376         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
22377         empty for gcc < 3.4.
22378
22379 2011-03-13  Bruno Haible  <bruno@clisp.org>
22380
22381         passfd: Fix link error on Solaris.
22382         * modules/passfd (Description): Correct.
22383         (Depends-on): Add socketlib.
22384         (Link): New section.
22385         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
22386
22387 2011-03-13  Bruno Haible  <bruno@clisp.org>
22388
22389         passfd: Fix link error on AIX 5.2.
22390         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
22391
22392 2011-03-13  Bruno Haible  <bruno@clisp.org>
22393
22394         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
22395         * lib/sys_socket.in.h: Include <stddef.h>.
22396         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
22397         CMSG_FIRSTHDR. Remove unused variable.
22398
22399 2011-03-13  Bruno Haible  <bruno@clisp.org>
22400
22401         passfd: Fix compilation error on OpenBSD.
22402         * lib/passfd.c: Include <sys/uio.h>.
22403
22404 2011-03-13  Bruno Haible  <bruno@clisp.org>
22405
22406         passfd test: Fix warnings.
22407         * tests/test-passfd.c: Include <sys/wait.h>.
22408         (main): Fix typo.
22409
22410 2011-03-13  Bruno Haible  <bruno@clisp.org>
22411
22412         passfd module, part 4, tweaks.
22413         * tests/test-passfd.c: Reorder includes.
22414         (main): Fix perror and printf calls.
22415
22416 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22417
22418         passfd module, part 4.
22419         * modules/passfd-tests: New file.
22420         * tests/test-passfd.c: New file.
22421
22422 2011-03-13  Jim Meyering  <meyering@redhat.com>
22423
22424         Makefile: rely on GNU make; derive syntax-check rule names
22425         Rather than requiring that each sc_ rule be listed as a dependent
22426         of "check", use features of GNU make to derive the list.
22427         * Makefile (syntax-check-rules): Define.
22428         (check): Depend on the new variable, not the hard-coded list.
22429
22430 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
22431             Bruno Haible  <bruno@clisp.org>
22432
22433         passfd module, part 3.
22434         * lib/passfd.h (recvfd): Add a flags argument.
22435         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
22436         (recvfd): Add a flags argument.
22437         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
22438         exists.
22439         * modules/passfd (Depends-on): Add cloexec.
22440         Suggested by Eric Blake.
22441
22442 2011-03-13  Bruno Haible  <bruno@clisp.org>
22443
22444         passfd module, part 2, tweaks.
22445         * modules/passfd (Files): Reorder.
22446         (Depends-on): Remove errno.
22447         (Include): Remove <sys/socket.h>, <sys/un.h>.
22448         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
22449         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
22450         specification header. Include <sys/socket.h> always. Don't include
22451         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
22452         (sendfd): Clarify that it sets errno when it fails.
22453         (recvfd): Fix specification.
22454
22455 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22456
22457         passfd module, part 2.
22458         * modules/passfd: New file.
22459         * lib/passfd.h: New file.
22460         * lib/passfd.c: New file.
22461
22462 2011-03-12  Bruno Haible  <bruno@clisp.org>
22463
22464         wcswidth, mbswidth: Avoid integer overflow.
22465         * lib/wcswidth.c: Include <limits.h>.
22466         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
22467         * lib/mbswidth.c: Include <limits.h>.
22468         (mbsnwidth): Avoid 'int' overflow.
22469         Reported by Jim Meyering.
22470
22471 2011-03-12  Bruno Haible  <bruno@clisp.org>
22472
22473         futimens, utimensat: Avoid endless recursion on Solaris 10.
22474         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
22475         Solaris.
22476         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
22477         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
22478
22479 2011-03-11  Jim Meyering  <meyering@redhat.com>
22480
22481         maint.mk: relax a regexp to accommodate other formatting styles
22482         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
22483         between "ngettext" and the following "(".
22484
22485 2011-03-11  Pádraig Brady <P@draigBrady.com>
22486
22487         maint.mk: suppress a false positive warning
22488         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
22489         diagnostics are marked with ngettext.
22490
22491 2011-03-10  Eric Blake  <eblake@redhat.com>
22492
22493         wchar: add explicit dependencies, for Tru64
22494         * modules/mbmemcasecoll (Depends-on): Add wchar.
22495         * modules/mbtowc (Depends-on): Likewise.
22496         * modules/vasnprintf (Depends-on): Likewise.
22497         * modules/unistdio/u-printf-args (Depends-on): Likewise.
22498         * modules/wctomb (Depends-on): Likewise.
22499         Reported by Peter O'Gorman.
22500
22501 2011-03-08  Bruno Haible  <bruno@clisp.org>
22502
22503         passfd module, part 1, tweaks.
22504         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
22505         Improve indentation. Improve AC_MSG_CHECKING messages.
22506         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
22507         gl_SOCKET_FAMILIES.
22508
22509 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22510
22511         passfd module, part 1.
22512         * m4/afunix.m4: New file.
22513         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
22514         sockets.
22515
22516 2011-03-08  Bruno Haible  <bruno@clisp.org>
22517
22518         regex-quote: New API.
22519         * lib/regex-quote.h: Include <stdbool.h>.
22520         (struct regex_quote_spec): New type.
22521         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22522         New declarations.
22523         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22524         'const struct regex_quote_spec *' argument.
22525         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
22526         (pcre_special): New constant.
22527         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22528         New functions.
22529         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22530         'const struct regex_quote_spec *' argument.
22531         * modules/regex-quote (Depends-on): Add stdbool.
22532         * tests/test-regex-quote.c (check): Update for new API. Add test for
22533         anchored results.
22534         * NEWS: Mention the API change.
22535         Reported by Reuben Thomas and Eric Blake.
22536
22537 2011-03-06  Bruno Haible  <bruno@clisp.org>
22538
22539         regex-quote: Fix creation of POSIX extended regular expressions.
22540         * lib/regex-quote.c (ere_special): Add grouping and alternation
22541         operators.
22542
22543 2011-03-05  Bruno Haible  <bruno@clisp.org>
22544
22545         doc: Improve doc regarding autopoint vs. gnulib.
22546         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
22547         disable autopoint while running autoreconf.
22548         Suggested by Ralf Wildenhues.
22549
22550 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22551
22552         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
22553         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
22554
22555 2011-03-03  Bruce Korb  <bkorb@gnu.org>
22556
22557         parse-duration: remove xalloc.h dependency
22558         * lib/parse-duration.c (parse_period): handle NULL return from
22559         strdup instead of calling xstrdup().
22560         * modules/parse-duration: remove "xalloc" dependency
22561
22562 2011-03-03  Matthew Booth  <mbooth@redhat.com>
22563
22564         bootstrap: honor m4_base when running aclocal
22565         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
22566
22567 2011-03-02  Jim Meyering  <meyering@redhat.com>
22568
22569         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
22570         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
22571         on request from Matt Booth.
22572
22573 2011-03-01  Eric Blake  <eblake@redhat.com>
22574
22575         test-link: work on Hurd
22576         * tests/test-link.h (test_link): Hurd rejects linking directories
22577         with EISDIR instead of the POSIX-mandated EPERM.
22578
22579 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
22580
22581         stdio: simplify by moving files to printf-posix, sigpipe
22582         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
22583         since this symbol is needed only if printf is replaced.
22584         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
22585         Require gl_ASM_SYMBOL_PREFIX.
22586         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
22587         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
22588         (Depends-on): Add 'raise'.
22589         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
22590         * modules/stdio (Files): Remove lib/stdio-write.c,
22591         m4/asm-underscore.m4.
22592         (Depends-on): Remove 'raise'.
22593
22594         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
22595         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
22596         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
22597         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
22598
22599 2011-02-28  Bruno Haible  <bruno@clisp.org>
22600
22601         localcharset: Assume ANSI C behaviour of free().
22602         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
22603         calling free().
22604         Suggested by Simon Josefsson <simon@josefsson.org>.
22605
22606 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
22607             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
22608             Bruno Haible  <bruno@clisp.org>  (tiny change)
22609
22610         On Cygwin, use /proc file system instead of win32 API.
22611         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
22612         Win32 file names.
22613         (DllMain): Simplify by removing Cygwin specific code.
22614         (find_shared_library_fullname): Use Linux specific implementation also
22615         for Cygwin.
22616         (get_shared_library_fullname): Update accordingly.
22617         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
22618         Win32 file names.
22619         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
22620         Cygwin specific code.
22621
22622 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
22623             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
22624
22625         Fix OpenMP flag detection for various Fortran compilers.
22626         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
22627         OpenMP-conditional compilation construct, to force compile
22628         failure with missing OpenMP flag.
22629         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
22630
22631 2011-02-25  Eric Blake  <eblake@redhat.com>
22632
22633         strstr: expand test coverage
22634         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
22635         compilation.
22636         * tests/test-memmem.c (main): Duplicate tests.
22637         * tests/test-strcasestr.c (main): Likewise.
22638         * tests/test-c-strcasestr.c (main): Likewise.
22639
22640 2011-02-25  Jim Meyering  <meyering@redhat.com>
22641
22642         maint.mk: detect missing-NL-at-EOF, too
22643         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
22644         it also detects when a file lacks a newline at EOF.
22645         (require_exactly_one_NL_at_EOF_): Renamed from
22646         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
22647         since people may well have .x-sc_... file names tied to the
22648         existing name.  Suggested by Eric Blake.
22649
22650 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22651
22652         dirname: move m4/dos.m4 functionality into lib/dosname.h
22653
22654         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
22655         extracts symbols from it, puts them into config.h; but it's much
22656         easier to use the symbols directly.  filename.h already does this,
22657         but it disagrees with dos.m4 in some respects.  This patch
22658         introduces a different include file dosname.h that packages up
22659         dos.m4, and then later we can work on merging filename.h and
22660         dosname.h.  Applications that need only the easy-to-configure
22661         symbols should consider including dosname.h rather than dirname.h.
22662         * NEWS: Mention incompatible changes.
22663         * m4/dos.m4: Remove.
22664         * lib/dosname.h, modules/dosname: New files.
22665         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
22666         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
22667         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
22668         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
22669         Include dosname.h, not dirname.h.
22670         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
22671         Include dosname.h, for definitions of symbols like ISSLASH
22672         that used to be in config.h.
22673         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
22674         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22675         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22676         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22677         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
22678         * modules/rmdir (Files): Likewise.
22679         * modules/stat (Files): Likewise.
22680         * modules/unlink (Files): Likewise.
22681         * modules/dirname-lgpl (Depends-on): Add dosname.
22682         * modules/lstat (Depends-on): Likewise.
22683         * modules/openat (Depends-on): Likewise.
22684         * modules/rmdir (Depends-on): Likewise.
22685         * modules/savewd (Depends-on): Likewise.
22686         * modules/stat (Depends-on): Likewise.
22687         * modules/unlink (Depends-on): Likewise.
22688         * modules/openat (Depends-on): Remove dirname-lgpl.
22689         * modules/savewd (Depends-on): Likewise.
22690         * tests/test-dirname.c: Do not use removed symbols like
22691         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
22692         the remaining symbols, e.g., ISSLASH ('\\').
22693
22694 2011-02-25  Eric Blake  <eblake@redhat.com>
22695
22696         strstr: revert patches that introduced bug and pessimization
22697         * lib/str-two-way.h: Add another reference.
22698         (two_way_short_needle, two_way_long_needle): Revert changes from
22699         2011-02-24; they pessimize search speed.
22700         (critical_factorization): Partially revert changes from
22701         2010-06-22; they violate the requirement that the left half of the
22702         needle be smaller than the period of the needle.
22703
22704 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22705
22706         filenamecat: remove unnecessary dependency on dirname-lgpl
22707         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
22708         is no direct dependency, just an indirect one via filenamecat-lgpl.
22709
22710         remove: remove unnecessary use of m4/dos.m4
22711         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
22712         * modules/remove (FILES): Remove m4/dos.m4.
22713
22714         * lib/openat-proc.c: Don't include dirname.h; not needed.
22715
22716         backupfile: remove unnecessary use of m4/dos.m4
22717         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
22718         of its symbols are used by the backupfile code.  backupfile.c does
22719         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
22720         for the rare case of programs that want all their backup file
22721         names to live within 8+3 limits, and dos.m4 doesn't address that.
22722         * modules/backupfile (Files): Remove m4/dos.m4.
22723
22724 2011-02-24  Jim Meyering  <meyering@redhat.com>
22725
22726         strstr: fix a bug whereby strstr would mistakenly return NULL
22727         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
22728         in period calculation.
22729         (two_way_long_needle): Likewise.
22730         The original problem was reported by Mike Stump in
22731         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
22732         Ralf Wildenhues provided the short needle and haystack.
22733         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
22734         Add a more involved test to trigger the bug in two_way_long_needle.
22735
22736 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22737
22738         gnulib-tool: remove use of bold display in help screen
22739         * gnulib-tool (func_usage): Do not use bold display anymore in the
22740         help screen.  That was just meant to be a temporary emphasis for a
22741         backward-incompatible change.
22742
22743 2011-02-23  Bruno Haible  <bruno@clisp.org>
22744
22745         Fix misindentation of preprocessor directives.
22746         * lib/argp-namefrob.h: Reindent preprocessor directives.
22747         * lib/getopt_int.h (struct _getopt_data): Likewise.
22748         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
22749         * lib/vasnprintf.c (decode_long_double): Likewise.
22750         * tests/test-argmatch.c: Insert blank lines, for clarity.
22751         * tests/test-exclude.c: Likewise.
22752
22753 2011-02-22  Bruno Haible  <bruno@clisp.org>
22754
22755         ioctl: Fix for MacOS X in 64-bit mode.
22756         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
22757         value.
22758         Suggested by Eric Blake.
22759         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
22760
22761 2011-02-22  Jim Meyering  <meyering@redhat.com>
22762
22763         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
22764         * Makefile (sc_cpp_indent_check): Don't limit the check to files
22765         in lib/.
22766
22767 2011-02-22  Eric Blake  <eblake@redhat.com>
22768
22769         maint: avoid any CDPATH issue
22770         * Makefile (sc_cpp_indent_check): Anchor cd argument.
22771
22772         maint: adjust cpp indentation for my modules, as well
22773         * Makefile (sc_cpp_indent_check): Add my name.
22774         * lib/fbufmode.c: Filter through cppi.
22775         * lib/fpurge.c: Likewise.
22776         * lib/freadable.c: Likewise.
22777         * lib/freading.c: Likewise.
22778         * lib/fwritable.c: Likewise.
22779         * lib/fwriting.c: Likewise.
22780         * lib/sigaction.c: Likewise.
22781
22782 2011-02-22  Jim Meyering  <meyering@redhat.com>
22783
22784         maint: adjust cpp indentation to reflect nesting depth
22785         I.e., in a block of code that begins with an unnested "#if",
22786         put one space between the "#" in column 1 and following token.
22787         For example,
22788         -#include <sys/vfs.h>
22789         +# include <sys/vfs.h>
22790         Do this only in .c files that are part of a module I maintain.
22791         * lib/linkat.c: Filter through cppi.
22792         * lib/nanosleep.c: Likewise.
22793         * lib/openat.c: Likewise.
22794         * lib/openat-die.c: Likewise.
22795         * lib/dup3.c: Likewise.
22796         * lib/fchownat.c: Likewise.
22797         * lib/flock.c: Likewise.
22798         * lib/fsync.c: Likewise.
22799         * lib/fts.c: Likewise.
22800         * lib/getpass.c: Likewise.
22801         * lib/gettimeofday.c: Likewise.
22802         * lib/userspec.c: Likewise.
22803         * Makefile (sc_cpp_indent_check): New rule, to check this.
22804
22805 2011-02-22  Bruno Haible  <bruno@clisp.org>
22806
22807         New module 'wctomb'.
22808         * lib/stdlib.in.h (wctomb): New declaration.
22809         * lib/wctomb.c: New file.
22810         * lib/wctomb-impl.h: New file.
22811         * m4/wctomb.m4: New file.
22812         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
22813         REPLACE_WCTOMB.
22814         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
22815         REPLACE_WCTOMB.
22816         * modules/wctomb: New file.
22817         * tests/test-stdlib-c++.cc: Test signature of wctomb.
22818         * doc/posix-functions/wctomb.texi: Mention the new module.
22819         * modules/wctob (Depends-on): Add wctomb.
22820
22821 2011-02-22  Bruno Haible  <bruno@clisp.org>
22822
22823         New module 'mbtowc'.
22824         * lib/stdlib.in.h (mbtowc): New declaration.
22825         * lib/mbtowc.c: New file.
22826         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
22827         * m4/mbtowc.m4: New file.
22828         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
22829         REPLACE_MBTOWC.
22830         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
22831         REPLACE_MBTOWC.
22832         * modules/mbtowc: New file.
22833         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
22834         * doc/posix-functions/mbtowc.texi: Mention the new module.
22835         * modules/btowc (Depends-on): Add mbtowc.
22836
22837 2011-02-22  Bruno Haible  <bruno@clisp.org>
22838
22839         wcrtomb: Add more tests for native Windows platforms.
22840         * tests/test-wcrtomb-w32-1.sh: New file.
22841         * tests/test-wcrtomb-w32-2.sh: New file.
22842         * tests/test-wcrtomb-w32-3.sh: New file.
22843         * tests/test-wcrtomb-w32-4.sh: New file.
22844         * tests/test-wcrtomb-w32-5.sh: New file.
22845         * tests/test-wcrtomb-w32.c: New file.
22846         * modules/wcrtomb-tests (Files): Add them.
22847         (Makefile.am): Arrange to run these tests.
22848         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
22849         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
22850
22851 2011-02-20  Bruno Haible  <bruno@clisp.org>
22852
22853         wcrtomb: Enhance test.
22854         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
22855
22856 2011-02-20  Bruno Haible  <bruno@clisp.org>
22857
22858         mbrtowc: Tiny optimization.
22859         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
22860
22861 2011-02-20  Jim Meyering  <meyering@redhat.com>
22862
22863         test-exclude.c: remove unmatched #endif
22864         * tests/test-exclude.c: Remove stray #endif, left over from
22865         the change of a week ago.
22866
22867 2011-02-19  Jim Meyering  <meyering@redhat.com>
22868
22869         git-version-gen: skip "-dirty" check when appropriate
22870         * build-aux/git-version-gen: Don't run any git commands when the
22871         version string comes from .tarball-version.  Prior to this, we
22872         would run git update-index --refresh even from a just-unpacked
22873         tarball directory, and that could affect a .git/ directory in a
22874         parent of the build directory.  Reported by Mike Frysinger.
22875
22876 2011-02-19  Bruno Haible  <bruno@clisp.org>
22877
22878         unictype/property-byname: Reduce the size of the 'data' segment.
22879         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
22880
22881 2011-02-19  Bruno Haible  <bruno@clisp.org>
22882
22883         unictype/scripts: Reduce the size of the 'data' segment.
22884         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
22885         '%pic'.
22886         * lib/unictype/scripts_byname.gperf: Regenerated.
22887
22888 2011-02-19  Bruno Haible  <bruno@clisp.org>
22889
22890         stdint: Update documentation.
22891         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
22892
22893 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
22894
22895         stdint: omit redundant check for wchar.h
22896         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
22897         always tests whether wchar.h exists, so remove the now-redundant test.
22898
22899 2011-02-18  Bruno Haible  <bruno@clisp.org>
22900
22901         stdint: Cut dependency to module 'wchar'.
22902         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
22903         include the necessary prerequisites.
22904         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
22905         * modules/stdint (Depends-on): Remove wchar.
22906         (Makefile.am): Substitute HAVE_WCHAR_H.
22907         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
22908
22909 2011-02-18  Eric Blake  <eblake@redhat.com>
22910
22911         longlong: skip, rather than fail, on cross-compilation
22912         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
22913         when cross-compiling; regression from 2011-02-16.
22914
22915 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22916
22917         * NEWS: Mention 2011-02-08 change to stdlib.
22918
22919 2011-02-17  Bruno Haible  <bruno@clisp.org>
22920
22921         getloadavg: Add comments about platforms.
22922         * m4/getloadavg.m4: Add comment.
22923         * lib/getloadavg.c: Likewise.
22924
22925 2011-02-17  Bruno Haible  <bruno@clisp.org>
22926
22927         getloadavg: Fix link error on Solaris 2.6.
22928         * modules/getloadavg (Link): New section.
22929         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
22930         linking test-getloadavg.
22931         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
22932         getloadavg.
22933
22934 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22935
22936         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
22937         It was 'int', but this doesn't match the IRIX 6.5 manual.
22938         Suggested by Bruno Haible in
22939         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
22940
22941 2011-02-17  Bruno Haible  <bruno@clisp.org>
22942
22943         havelib: Fix comments.
22944         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
22945         change.
22946
22947 2011-02-17  Bruno Haible  <bruno@clisp.org>
22948
22949         havelib: Update config.rpath.
22950         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
22951
22952 2011-02-17  Bruno Haible  <bruno@clisp.org>
22953
22954         getloadavg test: Add some plausibility checks.
22955         * tests/test-getloadavg.c (check_avg): Print a warning when the value
22956         is improbable.
22957
22958 2011-02-16  Eric Blake  <eblake@redhat.com>
22959
22960         maintainer-makefile: make syntax-check a no-op from tarballs
22961         * top/maint.mk (no-vc-detected): New rule.
22962         (local-checks-available): Use it to avoid hanging if someone tries
22963         'make syntax-check' from a tarball.  Also append to any non-syntax
22964         checks already defined in cfg.mk.
22965
22966 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22967
22968         longlong: tune, particularly for common case of c99
22969
22970         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
22971         or running anything if c99, or if unsigned long long int does not
22972         work.  In either case, we know the answer without further tests.
22973         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
22974         it at most once, and use its results for both long long int and
22975         unsigned long long int.  This is more likely to be efficient in
22976         the common case where the program wants to check for both long
22977         long int and unsigned long long int.
22978         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
22979         since the answer is already known.
22980
22981 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
22982
22983         getloadavg: set errno
22984         * lib/getloadavg.c: Set errno when returning -1.  If no other
22985         error number looks appropriate, set it to ENOSYS if the getloadavg
22986         looks like it can't possibly ever work, ENOTSUP otherwise.
22987         Suggested by Bruno Haible in
22988         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
22989
22990         getloadavg: trim unused parts and speed up 'configure'
22991         * NEWS: Document this.
22992         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
22993         always compiled if getloadavg is absent.
22994         Move test code to ...
22995         * tests/test-getloadavg.c: New file, containing previous
22996         contents of test from lib/getloadavg.c.  It also contains
22997         suggestions by Bruno Haible in
22998         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
22999         * modules/getloadavg-tests: New file.
23000         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
23001         Do tests in the same order as they're needed for getloadavg.c.
23002         Omit setgid-related tests that generate symbols KMEM_GROUP,
23003         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
23004         Do only the tests that are needed to see whether the system has
23005         getloadavg, moving the other tests into ...
23006         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
23007         NLIST_NAME_UNION; nobody should be using it.  Do not define
23008         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
23009         relevant, as the user of this module shouldn't care how getloadavg
23010         is implemented.
23011
23012         getloadavg: omit unused var
23013         * lib/getloadavg.c (getloadavg): Omit unused local variable.
23014
23015 2011-02-15  Jim Meyering  <meyering@redhat.com>
23016
23017         doc: update users.txt
23018         * users.txt: Update iwhd's URL.
23019
23020 2011-02-13  Bruno Haible  <bruno@clisp.org>
23021
23022         Consistent macro naming for macros that use GCC __attribute__.
23023         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
23024         _ATTRIBUTE_NONNULL_.
23025         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
23026         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
23027         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
23028         ATTRIBUTE_DEPRECATED.
23029         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
23030         ATTRIBUTE_NORETURN.
23031         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23032         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23033         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23034         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23035         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
23036         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
23037         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
23038         ATTRIBUTE_SENTINEL.
23039         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
23040         ATTRIBUTE_RETURN_CHECK.
23041         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
23042         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
23043         ATTRIBUTE_NORETURN.
23044         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
23045         Reported by Paul Eggert.
23046
23047 2011-02-13  Bruno Haible  <bruno@clisp.org>
23048
23049         Don't interfere with a program's definition of __attribute__.
23050         * lib/argp.h (__attribute__): Remove definition.
23051         (_GL_ATTRIBUTE_FORMAT): New macro.
23052         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
23053         * lib/argp-fmtstream.h (__attribute__): Remove definition.
23054         (_GL_ATTRIBUTE_FORMAT): New macro.
23055         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
23056         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
23057         GCC 3 or newer.
23058         * lib/error.h (__attribute__): Remove definition.
23059         (_GL_ATTRIBUTE_FORMAT): New macro.
23060         (error, error_at_line): Use it.
23061         * lib/hash.h (__attribute__): Remove definition.
23062         (ATTRIBUTE_WUR): Update definition. Define always.
23063         * lib/openat.h (__attribute__): Remove definition.
23064         (ATTRIBUTE_NORETURN): Update definition. Define always.
23065         * lib/sigpipe-die.h (__attribute__): Remove definition.
23066         (ATTRIBUTE_NORETURN): Update definition. Define always.
23067         * lib/vasnprintf.h (__attribute__): Remove definition.
23068         (_GL_ATTRIBUTE_FORMAT): New macro.
23069         (asnprintf, vasnprintf): Use it.
23070         * lib/xalloc.h (__attribute__): Remove definition.
23071         (ATTRIBUTE_NORETURN): Update definition. Define always.
23072         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
23073         * lib/xmemdup0.h (__attribute__): Remove definition.
23074         (ATTRIBUTE_NORETURN): Update definition. Define always.
23075         * lib/xprintf.h (__attribute__): Remove definition.
23076         (_GL_ATTRIBUTE_FORMAT): New macro.
23077         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
23078         * lib/xstrtol.h (__attribute__): Remove definition.
23079         (ATTRIBUTE_NORETURN): Update definition. Define always.
23080         * lib/xvasprintf.h (__attribute__): Remove definition.
23081         (_GL_ATTRIBUTE_FORMAT): New macro.
23082         (xasprintf, xvasprintf): Use it.
23083         * tests/test-argmatch.c (__attribute__): Remove definition.
23084         (ATTRIBUTE_NORETURN): Update definition. Define always.
23085         * tests/test-exclude.c (__attribute__): Remove definition.
23086         (ATTRIBUTE_NORETURN): Update definition. Define always.
23087         Reported by Paul Eggert.
23088
23089 2011-02-13  Bruno Haible  <bruno@clisp.org>
23090
23091         mbrtowc: Add more tests for native Windows platforms.
23092         * tests/test-mbrtowc-w32-1.sh: New file.
23093         * tests/test-mbrtowc-w32-2.sh: New file.
23094         * tests/test-mbrtowc-w32-3.sh: New file.
23095         * tests/test-mbrtowc-w32-4.sh: New file.
23096         * tests/test-mbrtowc-w32-5.sh: New file.
23097         * tests/test-mbrtowc-w32.c: New file.
23098         * modules/mbrtowc-tests (Files): Add them.
23099         (Makefile.am): Arrange to run these tests.
23100         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
23101         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
23102
23103 2011-02-13  Bruno Haible  <bruno@clisp.org>
23104
23105         mbrtowc: Work around native Windows bug.
23106         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
23107         guess when no suitable locale for testing was found.
23108         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
23109
23110 2011-02-13  Bruno Haible  <bruno@clisp.org>
23111
23112         mbsinit: Work around mingw bug.
23113         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
23114         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
23115         Windows.
23116         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
23117
23118 2011-02-13  Bruno Haible  <bruno@clisp.org>
23119
23120         mbsinit: Don't crash for a NULL argument.
23121         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
23122         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
23123
23124 2011-02-13  Bruno Haible  <bruno@clisp.org>
23125
23126         Don't interfere with a program's definition of __attribute__.
23127         * lib/stdio.in.h (__attribute__): Remove definition.
23128         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
23129         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
23130         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
23131         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
23132         * lib/string.in.h (__attribute__): Remove definition.
23133         Reported by Paul Eggert.
23134
23135 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23136
23137         stdlib: don't get in the way of non-GCC __attribute__
23138         See thread starting at
23139         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
23140         Revert previous stdlib change, installing the following instead:
23141         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
23142         to get in the way of a non-GCC compiler that supports __attribute__.
23143         (_GL_ATTRIBUTE_RETURN): New macro.
23144         (_Exit): Use it instead of __attribute__.
23145
23146 2011-02-12  Bruno Haible  <bruno@clisp.org>
23147
23148         quotearg test: Avoid test failure on mingw.
23149         * tests/test-quotearg.sh: Convert the locale identifier from native
23150         Windows syntax to Unix syntax.
23151
23152 2011-02-12  Bruno Haible  <bruno@clisp.org>
23153
23154         setlocale: Prefer gnulib's override over libintl's override.
23155         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
23156         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
23157         GNULIB_defined_setlocale is set.
23158
23159 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23160
23161         stdlib: support non-GCC __attribute__
23162
23163         Fix a serious and tricky problem encountered when attempting to
23164         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
23165         5.5, but it crashed due to memory corruption on Solaris 10 with
23166         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
23167         bits that are otherwise zero.  This tagging is optional inside
23168         Emacs but is preferred and is used when __attribute__ ((__aligned
23169         (8))) works, as it does with both recent-enough GCC and with Sun C
23170         5.11.  However, Sun C 5.11 is not GCC and does not #define
23171         __GNUC__ and __GNUC_MINOR__.
23172
23173         When I added the getloadavg module to Emacs, it brought in
23174         stdlib.in.h, which contained this fragment:
23175
23176            #ifndef __attribute__
23177            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
23178            #  define __attribute__(Spec)   /* empty */
23179            # endif
23180            #endif
23181
23182         When files that include <stdlib.h> were compiled with Sun C 5.11,
23183         the above code disabled __attribute__ ((__aligned (8))), which
23184         caused variables to not be properly aligned, which eventually led
23185         to the pointer corruption mentioned above.  (This was a bit hard
23186         to diagnose, unfortunately.)
23187
23188         Several "#define __attribute__(X) /* empty */" code snippets need
23189         to be eradicated from Gnulib to work with non-GCC compilers that
23190         support __attribute__.  The Autoconf way to do this is to test for
23191         each kind of attribute that we want support for, and selectively
23192         enable that in source code.
23193
23194         Fix this problem just for stdlib.h, by adding a test for the
23195         __noreturn__ attribute, and change stdlib.in.h to use that test
23196         when needed.  This technique can be easily generalized to the
23197         other *.in.h files and attributes, and a similar technique can be
23198         used for *.h and *.c files.  This patch is enough to solve the
23199         problem for Emacs + getloadavg, and I thought I'd publish it for
23200         feedback before undertaking further, similar fixes in other
23201         modules.
23202
23203         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
23204         because it's not needed for stdlib.h.  It merely substitutes the
23205         value directly into stdlib.h.  We may well need to #define it, or
23206         similar symbols, for other modules, but it's nice to also have an
23207         option to not #define it for applications like Emacs that do not
23208         need it.
23209
23210         * lib/stdlib.in.h (__attribute__): Do not #define.
23211         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
23212         be defined only if the _Exit module is also used.
23213         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
23214         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
23215         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
23216         platforms.
23217         * modules/_Exit (Files): Add m4/attribute.m4.
23218         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
23219         * m4/attribute.m4: New file.
23220
23221 2011-02-12  Bruno Haible  <bruno@clisp.org>
23222
23223         wcsrtombs: Work around bug on native Windows.
23224         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
23225         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
23226         instead of len.
23227         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
23228
23229 2011-02-12  Bruno Haible  <bruno@clisp.org>
23230
23231         mbsrtowcs: Work around bug on native Windows.
23232         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
23233         against mingw bug.
23234         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
23235
23236 2011-02-12  Bruno Haible  <bruno@clisp.org>
23237
23238         Avoid setlocale bugs in tests.
23239         * modules/btowc (Dependencies): Add setlocale.
23240         * modules/c-strcase (Dependencies): Likewise.
23241         * modules/mbmemcasecmp (Dependencies): Likewise.
23242         * modules/mbmemcasecoll (Dependencies): Likewise.
23243         * modules/mbrtowc (Dependencies): Likewise.
23244         * modules/mbscasecmp (Dependencies): Likewise.
23245         * modules/mbscasestr (Dependencies): Likewise.
23246         * modules/mbschr (Dependencies): Likewise.
23247         * modules/mbscspn (Dependencies): Likewise.
23248         * modules/mbsinit (Dependencies): Likewise.
23249         * modules/mbsncasecmp (Dependencies): Likewise.
23250         * modules/mbsnrtowcs (Dependencies): Likewise.
23251         * modules/mbspbrk (Dependencies): Likewise.
23252         * modules/mbspcasecmp (Dependencies): Likewise.
23253         * modules/mbsrchr (Dependencies): Likewise.
23254         * modules/mbsrtowcs (Dependencies): Likewise.
23255         * modules/mbsspn (Dependencies): Likewise.
23256         * modules/mbsstr (Dependencies): Likewise.
23257         * modules/nl_langinfo (Dependencies): Likewise.
23258         * modules/quotearg (Dependencies): Likewise.
23259         * modules/unicase/locale-language (Dependencies): Likewise.
23260         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
23261         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
23262         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
23263         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
23264         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
23265         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
23266         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
23267         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
23268         * modules/vasnprintf-posix (Dependencies): Likewise.
23269         * modules/wcrtomb (Dependencies): Likewise.
23270         * modules/wcsnrtombs (Dependencies): Likewise.
23271         * modules/wcsrtombs (Dependencies): Likewise.
23272
23273 2011-02-12  Bruno Haible  <bruno@clisp.org>
23274
23275         setlocale: Workaround native Windows bug.
23276         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
23277         succeeds but sets LC_CTYPE to "C", report a failure.
23278         * tests/test-setlocale2.sh: New file.
23279         * tests/test-setlocale2.c: New file.
23280         * modules/setlocale-tests (Files): Add the new files.
23281         (Makefile.am): Enable test-setlocale2.sh test.
23282         * doc/posix-functions/setlocale.texi: Mention workaround.
23283
23284 2011-02-11  Bruno Haible  <bruno@clisp.org>
23285
23286         Tests for module 'setlocale'.
23287         * modules/setlocale-tests: New file.
23288         * tests/test-setlocale1.sh: New file.
23289         * tests/test-setlocale1.c: New file.
23290
23291         New module 'setlocale'.
23292         * lib/locale.in.h (setlocale): New declaration.
23293         * lib/setlocale.c: New file, based on
23294         gettext/gettext-runtime/intl/setlocale.c.
23295         * m4/setlocale.m4: New file.
23296         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
23297         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
23298         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
23299         REPLACE_SETLOCALE.
23300         * modules/setlocale: New file.
23301         * tests/test-locale-c++.cc: Test the declaration of setlocale.
23302         * doc/posix-functions/setlocale.texi: Mention the new module.
23303
23304 2011-02-11  Bruno Haible  <bruno@clisp.org>
23305
23306         Prepare for locale dependent tests on mingw.
23307         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
23308         because it has the wrong locale encoding.
23309         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
23310         French_France.1252 instead of "fr".
23311         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
23312         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
23313         because it has the wrong locale encoding.
23314         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
23315         native Windows, try Turkish_Turkey.65001.
23316         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
23317         Chinese_China.54936.
23318
23319         Prepare for locale dependent tests on mingw.
23320         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
23321         differently.
23322         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
23323         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
23324         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23325         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23326
23327 2011-02-11  Eric Blake  <eblake@redhat.com>
23328
23329         strptime: avoid compiler warnings
23330         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
23331         compiler warnings about dead code.
23332         Reported by Daniel P. Berrange.
23333
23334 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
23335
23336         doc: update users.txt
23337         * users.txt: Add rcs.
23338
23339 2011-02-10  John W. Eaton  <jwe@gnu.org>
23340
23341         doc: update users.txt
23342         * users.txt: Add octave.
23343
23344 2011-02-10  Jim Meyering  <meyering@redhat.com>
23345
23346         doc: update users.txt
23347         * users.txt: Add iwhd.
23348
23349 2011-02-09  Bruno Haible  <bruno@clisp.org>
23350
23351         gnulib-tool: Make copyright notice adjustment more robust.
23352         * gnulib-tool (func_import): In sed_transform_main_lib_file,
23353         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
23354         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
23355         License".
23356         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
23357
23358 2011-02-06  Bruno Haible  <bruno@clisp.org>
23359
23360         New module 'towctrans'.
23361         * modules/towctrans: New file.
23362         * lib/wctype.in.h (towctrans): New declaration.
23363         * lib/towctrans.c: New file.
23364         * lib/towctrans-impl.h: New file.
23365         * m4/towctrans.m4: New file.
23366         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
23367         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
23368         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
23369         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
23370         * doc/posix-functions/towctrans.texi: Mention the new module.
23371
23372 2011-02-06  Bruno Haible  <bruno@clisp.org>
23373
23374         New module 'wctrans'.
23375         * modules/wctrans: New file.
23376         * lib/wctype.in.h (wctrans): New declaration.
23377         * lib/wctrans.c: New file.
23378         * lib/wctrans-impl.h: New file.
23379         * m4/wctrans.m4: New file.
23380         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
23381         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
23382         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
23383         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
23384         * doc/posix-functions/wctrans.texi: Mention the new module.
23385
23386 2011-02-06  Bruno Haible  <bruno@clisp.org>
23387
23388         New module 'iswctype'.
23389         * modules/iswctype: New file.
23390         * lib/wctype.in.h (iswctype): New declaration.
23391         * lib/iswctype.c: New file.
23392         * lib/iswctype-impl.h: New file.
23393         * m4/iswctype.m4: New file.
23394         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
23395         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
23396         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
23397         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
23398         * doc/posix-functions/iswctype.texi: Mention the new module and the
23399         HP-UX 11.00 problem.
23400
23401 2011-02-06  Bruno Haible  <bruno@clisp.org>
23402
23403         New module 'wctype'.
23404         * modules/wctype: Change to represent the wctype() substitute.
23405         * lib/wctype.in.h (wctype): New declaration.
23406         * lib/wctype.c: New file.
23407         * lib/wctype-impl.h: New file.
23408         * m4/wctype.m4: New file.
23409         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
23410         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
23411         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
23412         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
23413         * doc/posix-functions/wctype.texi: Mention the new module and the
23414         HP-UX 11.00 problem.
23415
23416 2011-02-06  Bruno Haible  <bruno@clisp.org>
23417
23418         wctype-h: Ensure wctype_t and wctrans_t are defined.
23419         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
23420         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23421         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23422         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
23423         HAVE_WCTRANS_T.
23424         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
23425
23426 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
23427
23428         flock: fix license typo
23429
23430         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
23431         omitted.
23432
23433 2011-02-08  Bruno Haible  <bruno@clisp.org>
23434
23435         Split large sed scripts, for HP-UX sed.
23436         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
23437         to avoid HP-UX limit of 99 commands, in the near future.
23438         * modules/stdlib (Makefile.am): Likewise.
23439         * modules/unistd (Makefile.am): Likewise.
23440         * modules/wchar (Makefile.am): Likewise.
23441         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23442         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
23443         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
23444
23445 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23446             Bruno Haible  <bruno@clisp.org>
23447
23448         stdlib: improve random_r modularization
23449         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
23450         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
23451         you also need the random_r module to get this material right.
23452         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
23453         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
23454         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
23455
23456 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23457
23458         stdlib: don't depend on stdint
23459         * lib/stdlib.in.h: Don't include <stdint.h> merely because
23460         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
23461         be independent of whether stdint.h is needed.
23462         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
23463         here, instead of ...
23464         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
23465         struct random_data should be using the random_r module, not just
23466         the stdlib module (which wouldn't make sense: what package needs
23467         just struct random_data without also needing random_r?).
23468         * modules/stdlib (Depends-on): Remove stdint.
23469
23470         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
23471         See the thread rooted at
23472         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
23473         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
23474         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
23475         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
23476         __VMS)); previously it was always included (via fcntl--.h).
23477         (getloadavg): Do not use c_strtod.  Instead, approximate it by
23478         hand; this is good enough for load averages.  Also, do not use
23479         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
23480         flags directly if available and don't bother otherwise.  (Packages
23481         that need the extra reliability should use the modules that define
23482         these flags on older platforms that lack them.)
23483         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
23484         fcntl-safer.
23485
23486 2011-02-08  Jim Meyering  <meyering@redhat.com>
23487
23488         di-set.h, ino-map.h: add multiple-inclusion guard
23489         Technically, the guard is required only for ino-map.h, due to its
23490         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
23491         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
23492         * lib/ino-map.h: Likewise.
23493
23494 2011-02-06  Bruno Haible  <bruno@clisp.org>
23495
23496         iswblank: Ensure declaration on glibc systems.
23497         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
23498         * modules/iswblank (Dependencies): Add 'extensions'.
23499         * doc/posix-functions/iswblank.texi: Document the glibc problem.
23500
23501 2011-02-06  Bruno Haible  <bruno@clisp.org>
23502
23503         New module 'iswblank'.
23504         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
23505         * modules/iswblank: New file.
23506         * modules/wctype-h (Files): Remove lib/iswblank.c.
23507         (Makefile.am): Substitute GNULIB_ISWBLANK.
23508         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
23509         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
23510         (gl_WCTYPE_H_DEFAULTS): New macro.
23511         (gl_WCTYPE_H): Require it. Remove iswblank related code.
23512         * modules/iswblank-tests: New file.
23513         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
23514         * tests/test-wctype-h.c (main): Remove iswblank tests.
23515         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
23516         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
23517         of 'wctype-h'.
23518         * NEWS: Mention the change.
23519         * modules/mbchar (Depends-on): Add iswblank.
23520
23521 2011-02-08  Bruno Haible  <bruno@clisp.org>
23522
23523         di-set tests: Refactor.
23524         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
23525         unnecessary includes.
23526         (ASSERT): Remove macro.
23527         (main): Make C90 compliant by avoiding variable declaration after
23528         statement.
23529         * modules/di-set-tests (Files): Add tests/macros.h.
23530
23531 2011-02-08  Bruno Haible  <bruno@clisp.org>
23532
23533         ino-map tests: Refactor.
23534         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
23535         unnecessary includes.
23536         (ASSERT): Remove macro.
23537         (main): Make C90 compliant by avoiding variable declaration after
23538         statement.
23539         * modules/ino-map-tests (Files): Add tests/macros.h.
23540
23541 2011-02-08  Jim Meyering  <meyering@redhat.com>
23542
23543         di-set: add "const" to a cast
23544         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
23545         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
23546
23547 2011-02-06  Bruno Haible  <bruno@clisp.org>
23548
23549         Rename module 'wctype' to 'wctype-h'.
23550         * modules/wctype-h: Renamed from modules/wctype.
23551         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
23552         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
23553         (Files, Depends-on, Makefile.am): Update.
23554         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
23555         (Files, Makefile.am): Update.
23556         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
23557         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
23558         * doc/posix-headers/wctype.texi: Update.
23559         * doc/posix-functions/iswalnum.texi: Update.
23560         * doc/posix-functions/iswalpha.texi: Update.
23561         * doc/posix-functions/iswblank.texi: Update.
23562         * doc/posix-functions/iswcntrl.texi: Update.
23563         * doc/posix-functions/iswdigit.texi: Update.
23564         * doc/posix-functions/iswgraph.texi: Update.
23565         * doc/posix-functions/iswlower.texi: Update.
23566         * doc/posix-functions/iswprint.texi: Update.
23567         * doc/posix-functions/iswpunct.texi: Update.
23568         * doc/posix-functions/iswspace.texi: Update.
23569         * doc/posix-functions/iswupper.texi: Update.
23570         * doc/posix-functions/iswxdigit.texi: Update.
23571         * doc/posix-functions/towlower.texi: Update.
23572         * doc/posix-functions/towupper.texi: Update.
23573         * NEWS: Mention the change.
23574         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
23575         * modules/mbchar (Dependencies): Likewise.
23576         * modules/mbswidth (Dependencies): Likewise.
23577         * modules/quotearg (Dependencies): Likewise.
23578         * modules/regex (Dependencies): Likewise.
23579         * modules/wcscasecmp (Dependencies): Likewise.
23580         * modules/wcsncasecmp (Dependencies): Likewise.
23581         * modules/wcwidth (Dependencies): Likewise.
23582
23583 2011-02-06  Bruno Haible  <bruno@clisp.org>
23584
23585         New module 'wcswidth'.
23586         * modules/wcswidth: New file.
23587         * lib/wchar.in.h (wcswidth): New declaration.
23588         * lib/wcswidth.c: New file.
23589         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
23590         * m4/wcswidth.m4: New file.
23591         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
23592         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
23593         REPLACE_WCSWIDTH.
23594         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
23595         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
23596         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
23597         * doc/posix-functions/wcswidth.texi: Mention the new module.
23598
23599 2011-02-06  Bruno Haible  <bruno@clisp.org>
23600
23601         New module 'wcstok'.
23602         * modules/wcstok: New file.
23603         * lib/wchar.in.h (wcstok): New declaration.
23604         * lib/wcstok.c: New file.
23605         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
23606         * m4/wcstok.m4: New file.
23607         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
23608         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
23609         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
23610         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
23611         * doc/posix-functions/wcstok.texi: Mention the new module.
23612
23613 2011-02-06  Bruno Haible  <bruno@clisp.org>
23614
23615         New module 'wcsstr'.
23616         * modules/wcsstr: New file.
23617         * lib/wchar.in.h (wcsstr): New declaration.
23618         * lib/wcsstr.c: New file.
23619         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
23620         * m4/wcsstr.m4: New file.
23621         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
23622         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
23623         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
23624         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
23625         * doc/posix-functions/wcsstr.texi: Mention the new module.
23626
23627 2011-02-06  Bruno Haible  <bruno@clisp.org>
23628
23629         New module 'wcspbrk'.
23630         * modules/wcspbrk: New file.
23631         * lib/wchar.in.h (wcspbrk): New declaration.
23632         * lib/wcspbrk.c: New file.
23633         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
23634         * m4/wcspbrk.m4: New file.
23635         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
23636         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
23637         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
23638         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
23639         * doc/posix-functions/wcspbrk.texi: Mention the new module.
23640
23641 2011-02-06  Bruno Haible  <bruno@clisp.org>
23642
23643         New module 'wcsspn'.
23644         * modules/wcsspn: New file.
23645         * lib/wchar.in.h (wcsspn): New declaration.
23646         * lib/wcsspn.c: New file.
23647         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
23648         * m4/wcsspn.m4: New file.
23649         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
23650         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
23651         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
23652         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
23653         * doc/posix-functions/wcsspn.texi: Mention the new module.
23654
23655 2011-02-06  Bruno Haible  <bruno@clisp.org>
23656
23657         New module 'wcscspn'.
23658         * modules/wcscspn: New file.
23659         * lib/wchar.in.h (wcscspn): New declaration.
23660         * lib/wcscspn.c: New file.
23661         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
23662         * m4/wcscspn.m4: New file.
23663         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
23664         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
23665         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
23666         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
23667         * doc/posix-functions/wcscspn.texi: Mention the new module.
23668
23669 2011-02-06  Bruno Haible  <bruno@clisp.org>
23670
23671         New module 'wcsrchr'.
23672         * modules/wcsrchr: New file.
23673         * lib/wchar.in.h (wcsrchr): New declaration.
23674         * lib/wcsrchr.c: New file.
23675         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
23676         * m4/wcsrchr.m4: New file.
23677         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
23678         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
23679         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
23680         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
23681         * doc/posix-functions/wcsrchr.texi: Mention the new module.
23682
23683 2011-02-06  Bruno Haible  <bruno@clisp.org>
23684
23685         New module 'wcschr'.
23686         * modules/wcschr: New file.
23687         * lib/wchar.in.h (wcschr): New declaration.
23688         * lib/wcschr.c: New file.
23689         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
23690         * m4/wcschr.m4: New file.
23691         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
23692         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
23693         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
23694         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
23695         * doc/posix-functions/wcschr.texi: Mention the new module.
23696
23697 2011-02-06  Bruno Haible  <bruno@clisp.org>
23698
23699         New module 'wcsdup'.
23700         * modules/wcsdup: New file.
23701         * lib/wchar.in.h (wcsdup): New declaration.
23702         * lib/wcsdup.c: New file.
23703         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
23704         * m4/wcsdup.m4: New file.
23705         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
23706         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
23707         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
23708         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
23709         * doc/posix-functions/wcsdup.texi: Mention the new module.
23710
23711 2011-02-06  Bruno Haible  <bruno@clisp.org>
23712
23713         New module 'wcsxfrm'.
23714         * modules/wcsxfrm: New file.
23715         * lib/wchar.in.h (wcsxfrm): New declaration.
23716         * lib/wcsxfrm.c: New file.
23717         * lib/wcsxfrm-impl.h: New file.
23718         * m4/wcsxfrm.m4: New file.
23719         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
23720         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
23721         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
23722         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
23723         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
23724
23725 2011-02-06  Bruno Haible  <bruno@clisp.org>
23726
23727         New module 'wcscoll'.
23728         * modules/wcscoll: New file.
23729         * lib/wchar.in.h (wcscoll): New declaration.
23730         * lib/wcscoll.c: New file.
23731         * lib/wcscoll-impl.h: New file.
23732         * m4/wcscoll.m4: New file.
23733         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
23734         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
23735         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
23736         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
23737         * doc/posix-functions/wcscoll.texi: Mention the new module.
23738
23739 2011-02-06  Bruno Haible  <bruno@clisp.org>
23740
23741         New module 'wcsncasecmp'.
23742         * modules/wcsncasecmp: New file.
23743         * lib/wchar.in.h (wcsncasecmp): New declaration.
23744         * lib/wcsncasecmp.c: New file.
23745         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
23746         * m4/wcsncasecmp.m4: New file.
23747         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
23748         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
23749         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
23750         HAVE_WCSNCASECMP.
23751         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
23752         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
23753
23754 2011-02-06  Bruno Haible  <bruno@clisp.org>
23755
23756         New module 'wcscasecmp'.
23757         * modules/wcscasecmp: New file.
23758         * lib/wchar.in.h (wcscasecmp): New declaration.
23759         * lib/wcscasecmp.c: New file.
23760         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
23761         * m4/wcscasecmp.m4: New file.
23762         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
23763         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
23764         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
23765         HAVE_WCSCASECMP.
23766         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
23767         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
23768
23769 2011-02-05  Bruno Haible  <bruno@clisp.org>
23770
23771         New module 'wcsncmp'.
23772         * modules/wcsncmp: New file.
23773         * lib/wchar.in.h (wcsncmp): New declaration.
23774         * lib/wcsncmp.c: New file.
23775         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
23776         * m4/wcsncmp.m4: New file.
23777         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
23778         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
23779         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
23780         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
23781         * doc/posix-functions/wcsncmp.texi: Mention the new module.
23782
23783 2011-02-05  Bruno Haible  <bruno@clisp.org>
23784
23785         New module 'wcscmp'.
23786         * modules/wcscmp: New file.
23787         * lib/wchar.in.h (wcscmp): New declaration.
23788         * lib/wcscmp.c: New file.
23789         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
23790         * m4/wcscmp.m4: New file.
23791         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
23792         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
23793         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
23794         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
23795         * doc/posix-functions/wcscmp.texi: Mention the new module.
23796
23797 2011-02-05  Bruno Haible  <bruno@clisp.org>
23798
23799         New module 'wcsncat'.
23800         * modules/wcsncat: New file.
23801         * lib/wchar.in.h (wcsncat): New declaration.
23802         * lib/wcsncat.c: New file.
23803         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
23804         * m4/wcsncat.m4: New file.
23805         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
23806         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
23807         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
23808         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
23809         * doc/posix-functions/wcsncat.texi: Mention the new module.
23810
23811 2011-02-05  Bruno Haible  <bruno@clisp.org>
23812
23813         New module 'wcscat'.
23814         * modules/wcscat: New file.
23815         * lib/wchar.in.h (wcscat): New declaration.
23816         * lib/wcscat.c: New file.
23817         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
23818         * m4/wcscat.m4: New file.
23819         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
23820         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
23821         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
23822         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
23823         * doc/posix-functions/wcscat.texi: Mention the new module.
23824
23825 2011-02-05  Bruno Haible  <bruno@clisp.org>
23826
23827         New module 'wcpncpy'.
23828         * modules/wcpncpy: New file.
23829         * lib/wchar.in.h (wcpncpy): New declaration.
23830         * lib/wcpncpy.c: New file.
23831         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
23832         * m4/wcpncpy.m4: New file.
23833         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
23834         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
23835         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
23836         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
23837         * doc/posix-functions/wcpncpy.texi: Mention the new module.
23838
23839 2011-02-05  Bruno Haible  <bruno@clisp.org>
23840
23841         New module 'wcsncpy'.
23842         * modules/wcsncpy: New file.
23843         * lib/wchar.in.h (wcsncpy): New declaration.
23844         * lib/wcsncpy.c: New file.
23845         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
23846         * m4/wcsncpy.m4: New file.
23847         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
23848         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
23849         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
23850         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
23851         * doc/posix-functions/wcsncpy.texi: Mention the new module.
23852
23853 2011-02-05  Bruno Haible  <bruno@clisp.org>
23854
23855         New module 'wcpcpy'.
23856         * modules/wcpcpy: New file.
23857         * lib/wchar.in.h (wcpcpy): New declaration.
23858         * lib/wcpcpy.c: New file.
23859         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
23860         * m4/wcpcpy.m4: New file.
23861         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
23862         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
23863         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
23864         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
23865         * doc/posix-functions/wcpcpy.texi: Mention the new module.
23866
23867 2011-02-05  Bruno Haible  <bruno@clisp.org>
23868
23869         New module 'wcscpy'.
23870         * modules/wcscpy: New file.
23871         * lib/wchar.in.h (wcscpy): New declaration.
23872         * lib/wcscpy.c: New file.
23873         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
23874         * m4/wcscpy.m4: New file.
23875         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
23876         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
23877         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
23878         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
23879         * doc/posix-functions/wcscpy.texi: Mention the new module.
23880
23881 2011-02-05  Bruno Haible  <bruno@clisp.org>
23882
23883         New module 'wcsnlen'.
23884         * modules/wcsnlen: New file.
23885         * lib/wchar.in.h (wcsnlen): New declaration.
23886         * lib/wcsnlen.c: New file.
23887         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
23888         * m4/wcsnlen.m4: New file.
23889         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
23890         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
23891         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
23892         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
23893         * doc/posix-functions/wcsnlen.texi: Mention the new module.
23894
23895 2011-02-05  Bruno Haible  <bruno@clisp.org>
23896
23897         New module 'wcslen'.
23898         * modules/wcslen: New file.
23899         * lib/wchar.in.h (wcslen): New declaration.
23900         * lib/wcslen.c: New file.
23901         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
23902         * m4/wcslen.m4: New file.
23903         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
23904         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
23905         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
23906         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
23907         * doc/posix-functions/wcslen.texi: Mention the new module.
23908
23909 2011-02-05  Bruno Haible  <bruno@clisp.org>
23910
23911         New module 'wmemset'.
23912         * modules/wmemset: New file.
23913         * lib/wchar.in.h (wmemset): New declaration.
23914         * lib/wmemset.c: New file.
23915         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
23916         * m4/wmemset.m4: New file.
23917         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
23918         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
23919         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
23920         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
23921         * doc/posix-functions/wmemset.texi: Mention the new module.
23922
23923 2011-02-05  Bruno Haible  <bruno@clisp.org>
23924
23925         New module 'wmemmove'.
23926         * modules/wmemmove: New file.
23927         * lib/wchar.in.h (wmemmove): New declaration.
23928         * lib/wmemmove.c: New file.
23929         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
23930         * m4/wmemmove.m4: New file.
23931         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
23932         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
23933         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
23934         HAVE_WMEMMOVE.
23935         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
23936         * doc/posix-functions/wmemmove.texi: Mention the new module.
23937
23938 2011-02-05  Bruno Haible  <bruno@clisp.org>
23939
23940         New module 'wmemcpy'.
23941         * modules/wmemcpy: New file.
23942         * lib/wchar.in.h (wmemcpy): New declaration.
23943         * lib/wmemcpy.c: New file.
23944         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
23945         * m4/wmemcpy.m4: New file.
23946         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
23947         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
23948         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
23949         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
23950         * doc/posix-functions/wmemcpy.texi: Mention the new module.
23951
23952 2011-02-05  Bruno Haible  <bruno@clisp.org>
23953
23954         New module 'wmemcmp'.
23955         * modules/wmemcmp: New file.
23956         * lib/wchar.in.h (wmemcmp): New declaration.
23957         * lib/wmemcmp.c: New file.
23958         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
23959         * m4/wmemcmp.m4: New file.
23960         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
23961         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
23962         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
23963         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
23964         * doc/posix-functions/wmemcmp.texi: Mention the new module.
23965
23966 2011-02-07  Jim Meyering  <meyering@redhat.com>
23967
23968         di-set, ino-map: new modules, from coreutils
23969         * lib/di-set.c: New file.
23970         * lib/di-set.h: Likewise.
23971         * lib/ino-map.c: Likewise.
23972         * lib/ino-map.h: Likewise.
23973         * modules/di-set: Likewise.
23974         * modules/di-set-tests: Likewise.
23975         * modules/ino-map: Likewise.
23976         * modules/ino-map-tests: Likewise.
23977         * tests/test-di-set.c: Likewise.
23978         * tests/test-ino-map.c: Likewise.
23979
23980 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
23981
23982         getloadavg: merge minor changes from Emacs
23983
23984         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
23985         (getloadavg): Use memset, not bzero.
23986
23987         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
23988         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
23989         clash (bug#86).
23990
23991 2010-11-14  Bruno Haible  <bruno@clisp.org>
23992
23993         Allow multiple gnulib generated replacements to coexist.
23994         * lib/getopt.in.h (struct option): Avoid identical redefinition.
23995         * lib/inttypes.in.h (imaxdiv_t): Likewise.
23996         * lib/langinfo.in.h (nl_item): Likewise.
23997         * lib/math.in.h (_NaN, NAN): Likewise.
23998         * lib/netdb.in.h (struct addrinfo): Likewise.
23999         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
24000         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
24001         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
24002         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
24003         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
24004         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
24005         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
24006         pthread_mutexattr_init, pthread_mutexattr_settype,
24007         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
24008         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
24009         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
24010         pthread_spin_trylock, pthread_spin_unlock): Likewise.
24011         * lib/sched.in.h (struct sched_param): Likewise.
24012         * lib/se-selinux.in.h (security_class_t, security_context_t,
24013         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
24014         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
24015         lsetfilecon, fsetfilecon, security_check_context,
24016         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
24017         Likewise.
24018         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
24019         Likewise.
24020         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
24021         _gl_function_taking_int_returning_void_t, union sigval,
24022         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
24023         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
24024         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24025         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
24026         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
24027         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
24028         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
24029         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
24030         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
24031         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
24032         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
24033         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
24034         socklen_t, rpl_fd_isset): Likewise.
24035         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
24036         * lib/sys_time.in.h (struct timeval): Likewise.
24037         * lib/sys_times.in.h (struct tms): Likewise.
24038         * lib/sys_utsname.in.h (struct utsname):
24039         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
24040         * lib/unistd.in.h (getpagesize): Likewise.
24041         * lib/wchar.in.h (mbstate_t): Likewise.
24042         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24043         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
24044         towlower, towupper): Likewise.
24045         Reported by Sam Steingold <sds@gnu.org>.
24046
24047 2011-02-05  Eric Blake  <eblake@redhat.com>
24048
24049         unsetenv: work around Haiku issues
24050         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
24051         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
24052
24053 2010-12-30  Bruce Korb  <bkorb@gnu.org>
24054
24055         libposix: avoid calling error() within libposix
24056         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
24057         is defined.
24058
24059 2011-02-05  Eric Blake  <eblake@redhat.com>
24060
24061         strerror_r-posix: port to cygwin
24062         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
24063         implementation.
24064         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
24065         * tests/test-strerror_r.c (main): Fix test.
24066         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
24067         issue.
24068
24069 2011-02-05  Bruno Haible  <bruno@clisp.org>
24070
24071         New module 'wmemchr'.
24072         * modules/wmemchr: New file.
24073         * lib/wchar.in.h (wmemchr): New declaration.
24074         * lib/wmemchr.c: New file.
24075         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
24076         * m4/wmemchr.m4: New file.
24077         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
24078         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
24079         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
24080         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
24081         * doc/posix-functions/wmemchr.texi: Mention the new module.
24082
24083 2011-02-04  Eric Blake  <eblake@redhat.com>
24084
24085         fdopendir: detect FreeBSD bug
24086         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
24087         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
24088
24089 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24090
24091         stdbool: do not define HAVE_STDBOOL_H
24092         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
24093         AC_HEADER_STDBOOL.  All uses changed.  Do not define
24094         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
24095         imported from the latest Autoconf git.  It was motivated by Emacs,
24096         which uses gnulib but does not need HAVE_STDBOOL_H.
24097
24098 2011-02-04  Bruno Haible  <bruno@clisp.org>
24099
24100         wcsnrtombs: Prepare for new module wwcsnrtombs.
24101         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
24102         * lib/wcsnrtombs.c: Include it.
24103         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
24104
24105         wcsrtombs: Prepare for new module wwcsrtombs.
24106         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
24107         * lib/wcsrtombs.c: Include it.
24108         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
24109
24110         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
24111         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
24112         * lib/mbsnrtowcs.c: Include it.
24113         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
24114
24115         mbsrtowcs: Prepare for new module mbsrtowwcs.
24116         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
24117         * lib/mbsrtowcs.c: Include it.
24118         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
24119
24120 2011-02-04  Bruno Haible  <bruno@clisp.org>
24121
24122         vasnprintf: Reduce use of malloc for small format strings.
24123         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
24124         (arguments): Add room for the first 7 arguments.
24125         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
24126         (char_directives, u8_directives, u16_directives, u32_directives): Add
24127         room for the first 7 directives.
24128         * lib/printf-parse.c: Include <string.h>.
24129         (PRINTF_PARSE): Change memory handling code so that it uses the first
24130         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
24131         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
24132         Reported by Pádraig Brady <P@draigbrady.com>.
24133
24134 2011-01-31  Eric Blake  <eblake@redhat.com>
24135
24136         dup2: work around Haiku bug
24137         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
24138         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
24139         * doc/posix-functions/dup2.texi (dup2): Document the bug.
24140         * tests/test-dup2.c (main): Enhance test.
24141
24142 2011-01-31  Simon Josefsson  <simon@josefsson.org>
24143
24144         doc: off_t is not available in eglibc 2.11.2 stdio.h.
24145         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
24146         declared by eglibc 2.11.2.
24147         * lib/stdio.in.h: Likewise.
24148
24149 2011-01-31  Eric Blake  <eblake@redhat.com>
24150
24151         ignore-value: add missing test dependency
24152         * tests/test-ignore-value.c: Revert previous change; stdio.h
24153         provides off_t.
24154         * modules/ignore-value-tests (Depends-on): Add missing dependency.
24155
24156 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24157
24158         mktime: clarify long_int width checking
24159         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
24160         the top level, to make it clearer that the assumption about
24161         long_int width is being checked.  See
24162         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
24163
24164 2011-01-30  Simon Josefsson  <simon@josefsson.org>
24165
24166         ignore-value: Fix self-test.
24167         * tests/test-ignore-value.c: Include sys/types.h for off_t.
24168
24169 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24170
24171         TYPE_MAXIMUM: avoid theoretically undefined behavior
24172         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
24173         negative number, which the C Standard says has undefined behavior.
24174         In practice this is not a problem, but might as well do it by the book.
24175         Reported by Rich Felker and Eric Blake; see
24176         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
24177         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
24178         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24179         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24180         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
24181         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24182         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
24183
24184         mktime: #undef mktime before #defining it
24185         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
24186
24187         mktime: systematically normalize tm_isdst comparisons
24188         * lib/mktime.c (isdst_differ): New function.
24189         (__mktime_internal): Use it systematically for all isdst comparisons.
24190         This completes the fix for libc BZ #6723, and removes the need for
24191         normalizing tm_isdst.  See
24192         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
24193         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
24194
24195         mktime: fix some integer overflow issues and sidestep the rest
24196
24197         This was prompted by a bug report by Benjamin Lindner for MinGW
24198         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
24199         His bug is due to signed integer overflow (0 - INT_MIN), and I
24200         I scanned through mktime.c looking for other integer overflow
24201         problems, fixing all the bugs I found.
24202
24203         Although the C Standard says the resulting code is still not safe
24204         in the presence of integer overflow, in practice it should be good
24205         enough for all real-world two's-complement implementations, except
24206         for debugging environments that deliberately trap on integer
24207         overflow (e.g., gcc -ftrapv).
24208
24209         * lib/mktime.c (WRAPV): New macro.
24210         (SHR): Also check that long_int and time_t shift right in the
24211         usual way, before using the fast-but-unportable method.
24212         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
24213         used.  The code already assumed two's complement, so there's
24214         no need to test for alternatives.  All uses removed.
24215         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
24216         the C standard.  Problem reported by Rich Felker in
24217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
24218         (twos_complement_arithmetic): Also check long_int and time_t.
24219         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
24220         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
24221         (__mktime_internal): Avoid integer overflow with unary subtraction
24222         in two instances where -1 - X is an adequate replacement for -X,
24223         since the calculations are approximate.
24224
24225 2011-01-29  Eric Blake  <eblake@redhat.com>
24226
24227         mktime: avoid infinite loop
24228         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
24229         type; behavior is still undefined but portable to all known targets.
24230         Reported by Rich Felker.
24231
24232 2011-01-29  Simon Josefsson  <simon@josefsson.org>
24233
24234         rename, unlink, same-inode: Relicense.
24235         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
24236         * modules/unlink (License): Likewise.
24237         * modules/same-inode (License): Likewise.
24238
24239 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24240
24241         mktime: avoid problems on NetBSD 5 / i386
24242         * lib/mktime.c (long_int): New type.  This works around a problem
24243         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
24244         but time_t is 64 bits, and where I expect the existing code is
24245         wrong in some cases.
24246         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
24247         (ydhms_diff): Bring back the compile-time check for wide-enough
24248         year and yday.
24249
24250         mktime: fix misspelling in comment
24251         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
24252         This merges all recent glibc changes of importance.
24253
24254 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24255
24256         move-if-change: cope with concurrent mv of identical file.
24257         * build-aux/move-if-change (CMPPROG): Accept environment
24258         variable as an override for `cmp'.
24259         (usage): Document CMPPROG.
24260         Adjust comparison to drop stdout.  Cope with failure of mv if
24261         the target file exists and is identical to the source, for
24262         parallel builds.
24263         Report from H.J. Lu against binutils in PR binutils/12283.
24264
24265 2011-01-28  Bruce Korb  <bkorb@gnu.org>
24266
24267         * users.txt: Mention sharutils.
24268
24269 2011-01-28  Simon Josefsson  <simon@josefsson.org>
24270
24271         * users.txt: Mention OATH Toolkit.
24272
24273 2011-01-27  Bruno Haible  <bruno@clisp.org>
24274
24275         Prepare for supporting FreeBSD 10.
24276         * build-aux/config.libpath: Remove handling of freebsd1*.
24277
24278 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
24279
24280         Prepare for supporting FreeBSD 10.
24281         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
24282         match FreeBSD 10.0.
24283
24284 2011-01-27  Bruno Haible  <bruno@clisp.org>
24285
24286         vma-iter, get-rusage-as: Add OpenBSD support.
24287         * modules/vma-iter (configure.ac): Test for mquery.
24288         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
24289         * lib/vma-iter.c: Include <sys/mman.h>.
24290         (vma_iterate): Add an implementation based on mquery().
24291         * lib/resource-ext.h (get_rusage_as): Update comments.
24292         * lib/get-rusage-as.c: Likewise.
24293         * lib/get-rusage-data.c: Likewise.
24294
24295 2011-01-26  Karl Berry  <karl@gnu.org>
24296
24297         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
24298         variables to make it easier to override the makeinfo program used.
24299
24300 2011-01-26  Eric Blake  <eblake@redhat.com>
24301
24302         fcntl: work around Haiku F_DUPFD bugs
24303         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
24304         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
24305         cloexec bit on duplication.
24306         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
24307
24308 2011-01-26  Bruno Haible  <bruno@clisp.org>
24309
24310         Enable memory leak tests on AIX.
24311         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
24312         * tests/test-fprintf-posix3.c (main): Likewise.
24313
24314 2011-01-26  Bruno Haible  <bruno@clisp.org>
24315
24316         Tests for module 'get-rusage-data'.
24317         * modules/get-rusage-data-tests: New file.
24318         * tests/test-get-rusage-data.c: New file.
24319
24320         New module 'get-rusage-data'.
24321         * lib/resource-ext.h (get_rusage_data): New declaration.
24322         * lib/get-rusage-data.c: New file.
24323         * modules/get-rusage-data: New file.
24324
24325 2011-01-25  Bruno Haible  <bruno@clisp.org>
24326
24327         get-rusage-as: Allow for easier testing.
24328         * lib/resource-ext.h (get_rusage_as): Add comment.
24329         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
24330         (main): New function for interactive testing.
24331
24332 2011-01-25  Bruno Haible  <bruno@clisp.org>
24333
24334         vma-iter: Treat Haiku like BeOS.
24335         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
24336         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
24337
24338 2011-01-25  Eric Blake  <eblake@redhat.com>
24339
24340         c-stack: fix regression on cygwin when libsigsegv is present
24341         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
24342
24343 2011-01-24  Bruno Haible  <bruno@clisp.org>
24344
24345         vma-iter: Avoid empty intervals.
24346         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
24347         on an empty interval.
24348
24349 2011-01-24  Jim Meyering  <meyering@redhat.com>
24350
24351         u64: remove unnecessary #include
24352         * lib/u64.h: Don't include <stddef.h>.  It was not used.
24353
24354 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24355
24356         Allow the user to avoid the HAVE_RAW_DECL_* macros.
24357         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
24358
24359 2011-01-23  Bruno Haible  <bruno@clisp.org>
24360
24361         New module 'vma-iter'.
24362         * lib/vma-iter.h: New file.
24363         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
24364         * modules/vma-iter: New file.
24365         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
24366         for get_rusage_as_via_iterator.
24367         (vma_iterate_callback): New function.
24368         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
24369         * modules/get-rusage-as (Depends-on): Add vma-iter.
24370
24371 2011-01-23  Bruno Haible  <bruno@clisp.org>
24372
24373         uninorm: Tweak includes.
24374         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
24375         Reported by Jim Meyering.
24376
24377 2011-01-23  Bruno Haible  <bruno@clisp.org>
24378
24379         get-rusage-as: Improve on NetBSD.
24380         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
24381         /proc, like on FreeBSD.
24382
24383 2011-01-23  Jim Meyering  <meyering@redhat.com>
24384
24385         xreadlink.h: remove unnecessary #include
24386         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
24387
24388         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
24389         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
24390
24391 2011-01-23  Bruno Haible  <bruno@clisp.org>
24392
24393         get-rusage-as: Fix bug.
24394         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
24395         original limit when aborting the first loop.
24396
24397 2011-01-23  Bruno Haible  <bruno@clisp.org>
24398
24399         wctype: Ensure valid C syntax.
24400         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
24401         unconditionally, instead of gl_NEXT_HEADERS conditionally.
24402
24403 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
24404
24405         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
24406         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
24407         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
24408         as they are needed only for configure's test case.
24409         This removes two unnecessary symbols from config.h.
24410
24411         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
24412         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
24413         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
24414         AC_CHECK_HEADERS_ONCE on a header that we also invoke
24415         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
24416         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
24417         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
24418         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
24419         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24420         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24421         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24422         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24423         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24424         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24425         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
24426         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24427         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24428         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24429
24430 2011-01-21  Eric Blake  <eblake@redhat.com>
24431
24432         maintainer-makefile: work with older git for submodule check
24433         * top/maint.mk (public-submodule-commit): Rewrite to avoid
24434         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
24435         Reported by Matthias Bolte.
24436
24437         bootstrap: minor portability fixes
24438         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
24439         (usage): Omit leading capital and trailing . on help phrases, per
24440         GNU Coding Standards.
24441         (check_versions, top level): Prefix messages with script name.
24442
24443 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
24444
24445         bootstrap: support --no-git option
24446         * build-aux/bootstrap: Add --no-git option, to be used when
24447         --gnulib-srcdir points to the exact desired checkout.
24448
24449 2011-01-21  Eric Blake  <eblake@redhat.com>
24450
24451         strerror_r-posix: work with glibc 2.13
24452         * lib/strerror_r.c (strerror_r): Fix return type.
24453
24454 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24455             Bruno Haible  <bruno@clisp.org>
24456
24457         uN_strstr: New unit tests.
24458         * modules/unistr/u8-strstr-tests: New file.
24459         * modules/unistr/u16-strstr-tests: New file.
24460         * modules/unistr/u32-strstr-tests: New file.
24461         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
24462         * tests/unistr/test-u8-strstr.c: New file.
24463         * tests/unistr/test-u16-strstr.c: New file.
24464         * tests/unistr/test-u32-strstr.c: New file.
24465
24466 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24467             Bruno Haible  <bruno@clisp.org>
24468
24469         Make uN_strstr functions O(n) worst-case.
24470         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
24471         16-bit and 32-bit unit cases, use the unibyte algorithm from
24472         lib/mbsstr.c.
24473         * lib/unistr/u8-strstr.c: Include <string.h>.
24474         (UNIT_IS_UINT8_T): New macro.
24475         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
24476         (U_STRLEN, U_STRNLEN): New macros.
24477         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
24478         (U_STRLEN, U_STRNLEN): New macros.
24479         * modules/unistr/u8-strstr (Depends-on): Add strstr.
24480         (configure.ac): Update required libunistring version.
24481         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
24482         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
24483         malloca.
24484         (configure.ac): Update required libunistring version.
24485         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
24486         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
24487         malloca.
24488         (configure.ac): Update required libunistring version.
24489
24490 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24491             Bruno Haible  <bruno@clisp.org>
24492
24493         Prepare for faster uN_strstr functions.
24494         * lib/str-kmp.h: Support definable UNITs.
24495         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
24496         needle_len argument.
24497         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
24498         * lib/mbscasestr.c (mbscasestr): Likewise.
24499
24500 2011-01-21  Pádraig Brady <P@draigBrady.com>
24501
24502         malloca-tests: make faster by unsetting MALLOC_PERTURB_
24503         * tests/test-malloca.c (main): Unset the environment variable
24504         to greatly speed up the test.
24505         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
24506         * modules/malloca-tests: Depend on unsetenv.
24507
24508 2011-01-21  Pádraig Brady <P@draigBrady.com>
24509
24510         ignore-value: remove stdint dependency
24511         * lib/ignore-value.h: Remove <stdint.h>
24512         * modules/ignore-value: Remove stdint dependency.
24513
24514 2011-01-21  Jim Meyering  <meyering@redhat.com>
24515
24516         maint.mk: adjust variable name to be consistent with other gl_ vars
24517         * top/maint.mk (gl_public_submodule_commit): Rename the variable
24518         to be lower case.
24519
24520 2011-01-20  Jim Meyering  <meyering@redhat.com>
24521
24522         maint.mk: make "check" depend on public-submodule-commit by default
24523         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
24524
24525 2011-01-20  Bruno Haible  <bruno@clisp.org>
24526
24527         mbfile, mbiter: Complete change from 2008-12-21.
24528         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
24529         * m4/mbiter.m4 (gl_MBITER): Likewise.
24530
24531 2011-01-20  Jim Meyering  <meyering@redhat.com>
24532
24533         init.sh: insert space between each function name and "()"
24534         * tests/init.sh: Make it a little easier to see that a function's
24535         name is "warn_", and not "warn" when looking at the first part of
24536         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
24537
24538 2011-01-20  Jim Meyering  <meyering@redhat.com>
24539
24540         mountlist: clean up code formatting
24541         * lib/mountlist.c (read_file_system_list): Split a long line,
24542         correct bracing style, use NULL in place of "(struct statfs *)0",
24543         don't parenthesize return value, add spaces around "=" and after
24544         ";-in-for-stmt".
24545
24546 2011-01-14  Markus Duft <mduft@gentoo.org>
24547
24548         mountlist: add support for Interix
24549         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
24550         Apply statvfs to all entries of /dev/fs.
24551         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
24552         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
24553
24554 2011-01-20  Jim Meyering  <meyering@redhat.com>
24555
24556         maint.mk: improve the public-submodule-commit rule
24557         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
24558         to suppress printing of its commands... unless V=1.
24559         Add git submodule's --quiet option to suppress printing of e.g.,
24560         "Entering gnulib" output.
24561         "cd" into $(srcdir) before running git submodule.
24562
24563 2011-01-20  Bruno Haible  <bruno@clisp.org>
24564
24565         include_next: Fix bug introduced on 2011-01-18.
24566         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
24567         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
24568         ac_cv_header_... variable if the second argument is not 'check'.
24569         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
24570         gl_NEXT_HEADERS_INTERNAL.
24571
24572 2011-01-20  Bruno Haible  <bruno@clisp.org>
24573
24574         Allow the user to avoid the GNULIB_TEST_* macros.
24575         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
24576         Suggested by Paul Eggert.
24577
24578 2011-01-14  Jim Meyering  <meyering@redhat.com>
24579
24580         bootstrap: avoid failure when there is no .gitmodules file
24581         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
24582         has been assigned to, even when its value is the empty string.
24583         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
24584         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
24585         Reported by John W. Eaton <jwe@gnu.org>.
24586
24587 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
24588
24589         assume <ctype.h>, ..., <time.h> exist
24590         For years gnulib has been assuming the existence of the headers
24591         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
24592         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
24593         them, since they don't appear to be needed.
24594         * README (Portability guidelines): Document this.
24595         * lib/flock.c: Assume <fcntl.h> exists.
24596         * lib/regex_internal.h: Assume <locale.h> exists.
24597         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
24598         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
24599         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
24600         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
24601         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
24602         * m4/regex.m4 (gl_REGEX): Likewise.
24603         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
24604         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
24605         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
24606         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
24607         * tests/test-argp.c: Likewise.
24608         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
24609
24610         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
24611         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
24612         AA_APPLE_UNIVERSAL_BUILD.  See
24613         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
24614         * NEWS: Document this.
24615
24616 2011-01-19  Eric Blake  <eblake@redhat.com>
24617
24618         c-stack: assume stack overflow if SA_SIGINFO unsupported
24619         * lib/c-stack.c (SIGACTION_WORKS): Rename...
24620         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
24621         sigaction will work.
24622         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
24623         behavior match Linux.
24624         * tests/test-c-stack.c (main): Prefer NULL for pointers.
24625
24626         stdbool-tests: accommodate Haiku
24627         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
24628
24629         binary-io: fix O_TEXT on Haiku
24630         * modules/binary-io (Depends-on): Add fcntl-h.
24631         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
24632         than blindly undefining O_TEXT.
24633         Reported by Scott McCreary.
24634
24635 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24636
24637         include_next: do not check for standard headers like stddef.h
24638
24639         I found this problem when modifying Emacs to use gnulib.
24640         I noticed that it added HAVE_STDDEF_H to config.h, even though
24641         gnulib always assumes <stddef.h> exists as per README and this
24642         symbol is unnecessary.
24643         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
24644         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
24645         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
24646         faster for headers like stddef.h that are known to exist.
24647         (gl_CHECK_NEXT_HEADERS): Use it.
24648         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
24649         rather than gl_CHECK_NEXT_HEADERS.
24650         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
24651         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
24652
24653 2011-01-18  Eric Blake  <eblake@redhat.com>
24654
24655         ansi-c++-opt: skip C++ dependency style if C++ is unused
24656         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
24657         tests when we know C++ compilation is not desired.
24658         Reported by Scott McCreary.
24659
24660 2011-01-18  Bruno Haible  <bruno@clisp.org>
24661
24662         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
24663         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
24664         (main): Perform test also when getrlimit and setrlimit don't exist or
24665         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
24666         limiting the address space size using setrlimit, compare the address
24667         space size before and after the the test.
24668         * tests/test-dprintf-posix2.c: Likewise.
24669         * tests/test-fprintf-posix3.sh: Update skip messages.
24670         * tests/test-dprintf-posix2.sh: Likewise.
24671         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
24672         * modules/dprintf-posix-tests (Depends-on): Likewise.
24673         Reported by Bruce Korb <bkorb@gnu.org> and
24674         Gary V. Vaughan <gary@gnu.org>.
24675
24676 2011-01-18  Bruno Haible  <bruno@clisp.org>
24677
24678         get-rusage-as: Improvement for Cygwin.
24679         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
24680         areas that are merely reserved.
24681
24682 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24683
24684         strftime: remove dependencies on multibyte modules
24685
24686         strftime depended on mbrlen, mbsinit, and wchar, but these modules
24687         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
24688         only if __osf__ is defined, and I suspect OSF doesn't need these
24689         other modules.  If my guess is wrong, we'll need to come up with a
24690         variant of strftime that doesn't need the multibyte modules.
24691
24692         I discovered this problem when attempting modify Emacs to use the
24693         strftime module.  With the previous gnulib, this caused Emacs to
24694         need 31 new files, ranging from lib/config.charset to
24695         m4/wint_t.m4.  This was overkill and I expect would be offputting
24696         to the Emacs maintainers.  After this change, only 6 new files are
24697         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
24698         stdbool.m4, and tm_gmtoff.m4.
24699
24700         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
24701         Suggested by Bruno Haible in
24702         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
24703         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
24704         and do not check for wchar.h.
24705         * modules/strftime (Files): Remove m4/mbstate_t.m4.
24706         (Depends-on): Remove mbrlen, mbsinit, wchar.
24707
24708 2011-01-18  Bruno Haible  <bruno@clisp.org>
24709
24710         Tests for module 'get-rusage-as'.
24711         * modules/get-rusage-as-tests: New file.
24712         * tests/test-get-rusage-as.c: New file.
24713
24714         New module 'get-rusage-as'.
24715         * modules/get-rusage-as: New file.
24716         * lib/resource-ext.h: New file.
24717         * lib/get-rusage-as.c: New file.
24718
24719 2011-01-17  Eric Blake  <eblake@redhat.com>
24720
24721         sigaction: relax license from LGPLv3+ to LGPLv2+
24722         * modules/sigaction (License): Relax to LGPLv2+.
24723
24724 2011-01-14  Bruno Haible  <bruno@clisp.org>
24725
24726         filemode: Make function declarations usable in C++ mode.
24727         * lib/filemode.h: Enclose function declarations in extern "C" block.
24728         Reported by John W. Eaton <jwe@gnu.org>.
24729
24730 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
24731
24732         save-cwd: no longer include "xgetcwd.h"
24733         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
24734         This avoids a compilation failure in projects that use save-cwd
24735         without also using the xgetcwd module.
24736
24737 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24738
24739         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
24740         This is so that a program like Emacs, which needs only dtoastr,
24741         does not have to bother with distributing and compiling ftoastr
24742         and ldtoastr.
24743         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
24744         * modules/dtoastr, modules/ldtoastr: New files.
24745         * modules/ftoastr: Now works just for 'float'.
24746         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
24747         (Makefile.am): Remove ftoastr.h (not needed and no effect),
24748         dtoastr.c, ldtoastr.c.
24749
24750 2011-01-11  Jim Meyering  <meyering@redhat.com>
24751
24752         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
24753         There is no need to work around the lack of the fchdir function,
24754         since gnulib can now provide a replacement when required.
24755         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
24756         * modules/save-cwd (Depends-on): Add fchdir.
24757
24758 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24759
24760         openat, save-cwd: avoid xmalloc
24761
24762         This removes a direct (but undocumented) dependency of openat on
24763         xalloc, along with an indirect dependency via save-cwd.  It also
24764         removes a dependency of save-cwd on xgetcwd, and thereby
24765         indirectly on xalloc.  This change causes the openat substitute
24766         to fall back on save_cwd when memory is tight, and for save_cwd to
24767         fail instead of dying when memory is tight, but that's good enough.
24768         Problem and initial idea for fix reported by Bastien Roucaries in
24769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
24770
24771         * lib/openat-proc.c: Include stdlib.h (for malloc), not
24772         xalloc.h (for xmalloc).
24773         (openat_proc_name): Use malloc, not xmalloc.
24774         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
24775         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
24776
24777         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
24778         This avoids heap allocation for file names whose lengths are in
24779         the range 512..1023, with the upper bound increasing to at most
24780         4031 depending on the platform's PATH_MAX.  (We do not want
24781         pathmax.h here as it might supply a non-constant PATH_MAX.)
24782         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
24783         Perhaps they should be moved to malloca.h?
24784         (OPENAT_BUFFER_SIZE): Use them.
24785
24786 2011-01-10  Bruno Haible  <bruno@clisp.org>
24787
24788         doc: Update users.txt.
24789         * users.txt: Add recutils.
24790
24791 2011-01-09  Karl Berry  <karl@gnu.org>
24792
24793         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
24794
24795         * doc/configmake.texi: New file.
24796         * doc/gnulib.texi: Include it.
24797         * modules/configmake: Move documentation from here.
24798
24799 2011-01-09  Bruno Haible  <bruno@clisp.org>
24800
24801         Update to Unicode 6.0.0.
24802         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
24803         (get_lbp): Update for Unicode 6.0.0.
24804         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
24805         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
24806         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
24807         U+11001, U+11038..U+11046. Remove U+06DE.
24808         (uc_width): Fix bounds of planes.
24809         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24810         lib/uniwidth/width.c.
24811         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
24812         trailing whitespace removed.
24813         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
24814         without comments, but with the original copyright notice.
24815         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
24816         * lib/unicase/ignorable.h: Likewise.
24817         * lib/unicase/tocasefold.h: Likewise.
24818         * lib/unicase/tolower.h: Likewise.
24819         * lib/unicase/totitle.h: Likewise.
24820         * lib/unicase/toupper.h: Likewise.
24821         * lib/unictype/bidi_of.h: Likewise.
24822         * lib/unictype/blocks.h: Likewise.
24823         * lib/unictype/categ_C.h: Likewise.
24824         * lib/unictype/categ_Cn.h: Likewise.
24825         * lib/unictype/categ_L.h: Likewise.
24826         * lib/unictype/categ_Ll.h: Likewise.
24827         * lib/unictype/categ_Lm.h: Likewise.
24828         * lib/unictype/categ_Lo.h: Likewise.
24829         * lib/unictype/categ_Lu.h: Likewise.
24830         * lib/unictype/categ_M.h: Likewise.
24831         * lib/unictype/categ_Mc.h: Likewise.
24832         * lib/unictype/categ_Me.h: Likewise.
24833         * lib/unictype/categ_Mn.h: Likewise.
24834         * lib/unictype/categ_N.h: Likewise.
24835         * lib/unictype/categ_Nd.h: Likewise.
24836         * lib/unictype/categ_No.h: Likewise.
24837         * lib/unictype/categ_P.h: Likewise.
24838         * lib/unictype/categ_Po.h: Likewise.
24839         * lib/unictype/categ_S.h: Likewise.
24840         * lib/unictype/categ_Sc.h: Likewise.
24841         * lib/unictype/categ_Sk.h: Likewise.
24842         * lib/unictype/categ_Sm.h: Likewise.
24843         * lib/unictype/categ_So.h: Likewise.
24844         * lib/unictype/categ_of.h: Likewise.
24845         * lib/unictype/combining.h: Likewise.
24846         * lib/unictype/ctype_alnum.h: Likewise.
24847         * lib/unictype/ctype_alpha.h: Likewise.
24848         * lib/unictype/ctype_graph.h: Likewise.
24849         * lib/unictype/ctype_lower.h: Likewise.
24850         * lib/unictype/ctype_print.h: Likewise.
24851         * lib/unictype/ctype_punct.h: Likewise.
24852         * lib/unictype/ctype_upper.h: Likewise.
24853         * lib/unictype/decdigit.h: Likewise.
24854         * lib/unictype/digit.h: Likewise.
24855         * lib/unictype/numeric.h: Likewise.
24856         * lib/unictype/pr_alphabetic.h: Likewise.
24857         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24858         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24859         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24860         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24861         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24862         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24863         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24864         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24865         * lib/unictype/pr_case_ignorable.h: Likewise.
24866         * lib/unictype/pr_cased.h: Likewise.
24867         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
24868         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
24869         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
24870         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
24871         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
24872         * lib/unictype/pr_combining.h: Likewise.
24873         * lib/unictype/pr_composite.h: Likewise.
24874         * lib/unictype/pr_currency_symbol.h: Likewise.
24875         * lib/unictype/pr_decimal_digit.h: Likewise.
24876         * lib/unictype/pr_deprecated.h: Likewise.
24877         * lib/unictype/pr_format_control.h: Likewise.
24878         * lib/unictype/pr_grapheme_base.h: Likewise.
24879         * lib/unictype/pr_grapheme_extend.h: Likewise.
24880         * lib/unictype/pr_grapheme_link.h: Likewise.
24881         * lib/unictype/pr_id_continue.h: Likewise.
24882         * lib/unictype/pr_id_start.h: Likewise.
24883         * lib/unictype/pr_ideographic.h: Likewise.
24884         * lib/unictype/pr_lowercase.h: Likewise.
24885         * lib/unictype/pr_math.h: Likewise.
24886         * lib/unictype/pr_numeric.h: Likewise.
24887         * lib/unictype/pr_other_alphabetic.h: Likewise.
24888         * lib/unictype/pr_other_id_continue.h: Likewise.
24889         * lib/unictype/pr_other_math.h: Likewise.
24890         * lib/unictype/pr_punctuation.h: Likewise.
24891         * lib/unictype/pr_sentence_terminal.h: Likewise.
24892         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24893         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24894         * lib/unictype/pr_unified_ideograph.h: Likewise.
24895         * lib/unictype/pr_uppercase.h: Likewise.
24896         * lib/unictype/pr_xid_continue.h: Likewise.
24897         * lib/unictype/pr_xid_start.h: Likewise.
24898         * lib/unictype/scripts.h: Likewise.
24899         * lib/unictype/scripts_byname.gperf: Likewise.
24900         * lib/unictype/sy_java_ident.h: Likewise.
24901         * lib/unigbrk/gbrkprop.h: Likewise.
24902         * lib/unilbrk/lbrkprop1.h: Likewise.
24903         * lib/unilbrk/lbrkprop2.h: Likewise.
24904         * lib/uninorm/decomposition-table2.h: Likewise.
24905         * lib/uniwbrk/wbrkprop.h: Likewise.
24906         * tests/unicase/test-cased.c: Likewise.
24907         * tests/unicase/test-ignorable.c: Likewise.
24908         * tests/unicase/test-uc_tolower.c: Likewise.
24909         * tests/unicase/test-uc_totitle.c: Likewise.
24910         * tests/unicase/test-uc_toupper.c: Likewise.
24911         * tests/unictype/test-categ_C.c: Likewise.
24912         * tests/unictype/test-categ_Cn.c: Likewise.
24913         * tests/unictype/test-categ_L.c: Likewise.
24914         * tests/unictype/test-categ_Ll.c: Likewise.
24915         * tests/unictype/test-categ_Lm.c: Likewise.
24916         * tests/unictype/test-categ_Lo.c: Likewise.
24917         * tests/unictype/test-categ_Lu.c: Likewise.
24918         * tests/unictype/test-categ_M.c: Likewise.
24919         * tests/unictype/test-categ_Mc.c: Likewise.
24920         * tests/unictype/test-categ_Me.c: Likewise.
24921         * tests/unictype/test-categ_Mn.c: Likewise.
24922         * tests/unictype/test-categ_N.c: Likewise.
24923         * tests/unictype/test-categ_Nd.c: Likewise.
24924         * tests/unictype/test-categ_No.c: Likewise.
24925         * tests/unictype/test-categ_P.c: Likewise.
24926         * tests/unictype/test-categ_Po.c: Likewise.
24927         * tests/unictype/test-categ_S.c: Likewise.
24928         * tests/unictype/test-categ_Sc.c: Likewise.
24929         * tests/unictype/test-categ_Sk.c: Likewise.
24930         * tests/unictype/test-categ_Sm.c: Likewise.
24931         * tests/unictype/test-categ_So.c: Likewise.
24932         * tests/unictype/test-ctype_alnum.c: Likewise.
24933         * tests/unictype/test-ctype_alpha.c: Likewise.
24934         * tests/unictype/test-ctype_graph.c: Likewise.
24935         * tests/unictype/test-ctype_lower.c: Likewise.
24936         * tests/unictype/test-ctype_print.c: Likewise.
24937         * tests/unictype/test-ctype_punct.c: Likewise.
24938         * tests/unictype/test-ctype_upper.c: Likewise.
24939         * tests/unictype/test-decdigit.h: Likewise.
24940         * tests/unictype/test-digit.h: Likewise.
24941         * tests/unictype/test-numeric.h: Likewise.
24942         * tests/unictype/test-pr_alphabetic.c: Likewise.
24943         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24944         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
24945         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
24946         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24947         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24948         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24949         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24950         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24951         * tests/unictype/test-pr_case_ignorable.c: Likewise.
24952         * tests/unictype/test-pr_cased.c: Likewise.
24953         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
24954         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
24955         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
24956         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
24957         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
24958         * tests/unictype/test-pr_combining.c: Likewise.
24959         * tests/unictype/test-pr_composite.c: Likewise.
24960         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24961         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24962         * tests/unictype/test-pr_deprecated.c: Likewise.
24963         * tests/unictype/test-pr_format_control.c: Likewise.
24964         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24965         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24966         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24967         * tests/unictype/test-pr_id_continue.c: Likewise.
24968         * tests/unictype/test-pr_id_start.c: Likewise.
24969         * tests/unictype/test-pr_ideographic.c: Likewise.
24970         * tests/unictype/test-pr_lowercase.c: Likewise.
24971         * tests/unictype/test-pr_math.c: Likewise.
24972         * tests/unictype/test-pr_numeric.c: Likewise.
24973         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24974         * tests/unictype/test-pr_other_id_continue.c: Likewise.
24975         * tests/unictype/test-pr_other_math.c: Likewise.
24976         * tests/unictype/test-pr_punctuation.c: Likewise.
24977         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24978         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24979         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24980         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24981         * tests/unictype/test-pr_uppercase.c: Likewise.
24982         * tests/unictype/test-pr_xid_continue.c: Likewise.
24983         * tests/unictype/test-pr_xid_start.c: Likewise.
24984         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24985         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24986         changes.
24987         * lib/unictype/categ_Cc.h: Likewise.
24988         * lib/unictype/categ_Cf.h: Likewise.
24989         * lib/unictype/categ_Co.h: Likewise.
24990         * lib/unictype/categ_Cs.h: Likewise.
24991         * lib/unictype/categ_Lt.h: Likewise.
24992         * lib/unictype/categ_Nl.h: Likewise.
24993         * lib/unictype/categ_Pc.h: Likewise.
24994         * lib/unictype/categ_Pd.h: Likewise.
24995         * lib/unictype/categ_Pe.h: Likewise.
24996         * lib/unictype/categ_Pf.h: Likewise.
24997         * lib/unictype/categ_Pi.h: Likewise.
24998         * lib/unictype/categ_Ps.h: Likewise.
24999         * lib/unictype/categ_Z.h: Likewise.
25000         * lib/unictype/categ_Zl.h: Likewise.
25001         * lib/unictype/categ_Zp.h: Likewise.
25002         * lib/unictype/categ_Zs.h: Likewise.
25003         * lib/unictype/ctype_blank.h: Likewise.
25004         * lib/unictype/ctype_cntrl.h: Likewise.
25005         * lib/unictype/ctype_digit.h: Likewise.
25006         * lib/unictype/ctype_space.h: Likewise.
25007         * lib/unictype/ctype_xdigit.h: Likewise.
25008         * lib/unictype/mirror.h: Likewise.
25009         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25010         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25011         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25012         * lib/unictype/pr_bidi_control.h: Likewise.
25013         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25014         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25015         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25016         * lib/unictype/pr_bidi_pdf.h: Likewise.
25017         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25018         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25019         * lib/unictype/pr_dash.h: Likewise.
25020         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25021         * lib/unictype/pr_diacritic.h: Likewise.
25022         * lib/unictype/pr_extender.h: Likewise.
25023         * lib/unictype/pr_hex_digit.h: Likewise.
25024         * lib/unictype/pr_hyphen.h: Likewise.
25025         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25026         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25027         * lib/unictype/pr_ignorable_control.h: Likewise.
25028         * lib/unictype/pr_iso_control.h: Likewise.
25029         * lib/unictype/pr_join_control.h: Likewise.
25030         * lib/unictype/pr_left_of_pair.h: Likewise.
25031         * lib/unictype/pr_line_separator.h: Likewise.
25032         * lib/unictype/pr_logical_order_exception.h: Likewise.
25033         * lib/unictype/pr_non_break.h: Likewise.
25034         * lib/unictype/pr_not_a_character.h: Likewise.
25035         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25036         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25037         * lib/unictype/pr_other_id_start.h: Likewise.
25038         * lib/unictype/pr_other_lowercase.h: Likewise.
25039         * lib/unictype/pr_other_uppercase.h: Likewise.
25040         * lib/unictype/pr_paired_punctuation.h: Likewise.
25041         * lib/unictype/pr_paragraph_separator.h: Likewise.
25042         * lib/unictype/pr_pattern_syntax.h: Likewise.
25043         * lib/unictype/pr_pattern_white_space.h: Likewise.
25044         * lib/unictype/pr_private_use.h: Likewise.
25045         * lib/unictype/pr_quotation_mark.h: Likewise.
25046         * lib/unictype/pr_radical.h: Likewise.
25047         * lib/unictype/pr_soft_dotted.h: Likewise.
25048         * lib/unictype/pr_space.h: Likewise.
25049         * lib/unictype/pr_titlecase.h: Likewise.
25050         * lib/unictype/pr_variation_selector.h: Likewise.
25051         * lib/unictype/pr_white_space.h: Likewise.
25052         * lib/unictype/pr_zero_width.h: Likewise.
25053         * lib/unictype/sy_c_ident.h: Likewise.
25054         * lib/unictype/sy_c_whitespace.h: Likewise.
25055         * lib/unictype/sy_java_whitespace.h: Likewise.
25056         * lib/uninorm/composition-table.gperf: Likewise.
25057         * lib/uninorm/decomposition-table1.h: Likewise.
25058         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
25059         LB8.
25060         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25061         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25062         * modules/unictype/*: Bump version number of expected libunistring
25063         version.
25064
25065 2011-01-09  Bruno Haible  <bruno@clisp.org>
25066
25067         Update to Unicode 5.2.0.
25068         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
25069         trailing whitespace removed.
25070
25071 2011-01-09  Bruno Haible  <bruno@clisp.org>
25072
25073         New Unicode character properties, from Unicode 5.2.0.
25074         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
25075         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
25076         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
25077         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
25078         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
25079         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
25080         uc_is_property_cased, uc_is_property_case_ignorable,
25081         uc_is_property_changes_when_lowercased,
25082         uc_is_property_changes_when_uppercased,
25083         uc_is_property_changes_when_titlecased,
25084         uc_is_property_changes_when_casefolded,
25085         uc_is_property_changes_when_casemapped): New declarations.
25086         * lib/unictype/pr_byname.gperf: Add the new properties.
25087         * modules/unictype/property-byname (Depends-on): Depend on the new
25088         properties modules.
25089         * modules/unictype/property-all (Depends-on): Likewise.
25090         * MODULES.html.sh (Unicode string functions): Add
25091         unictype/property-case-ignorable, unictype/property-cased,
25092         unictype/property-changes-when-casefolded,
25093         unictype/property-changes-when-casemapped,
25094         unictype/property-changes-when-lowercased,
25095         unictype/property-changes-when-titlecased,
25096         unictype/property-changes-when-uppercased.
25097
25098         New module 'unictype/property-changes-when-casemapped'.
25099         * modules/unictype/property-changes-when-casemapped: New file.
25100         * lib/unictype/pr_changes_when_casemapped.c: New file.
25101         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
25102         generated by gen-uni-tables.
25103         * modules/unictype/property-changes-when-casemapped-tests: New file.
25104         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
25105         automatically generated by gen-uni-tables.
25106
25107         New module 'unictype/property-changes-when-casefolded'.
25108         * modules/unictype/property-changes-when-casefolded: New file.
25109         * lib/unictype/pr_changes_when_casefolded.c: New file.
25110         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
25111         generated by gen-uni-tables.
25112         * modules/unictype/property-changes-when-casefolded-tests: New file.
25113         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
25114         automatically generated by gen-uni-tables.
25115
25116         New module 'unictype/property-changes-when-titlecased'.
25117         * modules/unictype/property-changes-when-titlecased: New file.
25118         * lib/unictype/pr_changes_when_titlecased.c: New file.
25119         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
25120         generated by gen-uni-tables.
25121         * modules/unictype/property-changes-when-titlecased-tests: New file.
25122         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
25123         automatically generated by gen-uni-tables.
25124
25125         New module 'unictype/property-changes-when-uppercased'.
25126         * modules/unictype/property-changes-when-uppercased: New file.
25127         * lib/unictype/pr_changes_when_uppercased.c: New file.
25128         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
25129         generated by gen-uni-tables.
25130         * modules/unictype/property-changes-when-uppercased-tests: New file.
25131         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
25132         automatically generated by gen-uni-tables.
25133
25134         New module 'unictype/property-changes-when-lowercased'.
25135         * modules/unictype/property-changes-when-lowercased: New file.
25136         * lib/unictype/pr_changes_when_lowercased.c: New file.
25137         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
25138         generated by gen-uni-tables.
25139         * modules/unictype/property-changes-when-lowercased-tests: New file.
25140         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
25141         automatically generated by gen-uni-tables.
25142
25143         New module 'unictype/property-case-ignorable'.
25144         * modules/unictype/property-case-ignorable: New file.
25145         * lib/unictype/pr_case_ignorable.c: New file.
25146         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
25147         by gen-uni-tables.
25148         * modules/unictype/property-case-ignorable-tests: New file.
25149         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
25150         generated by gen-uni-tables.
25151
25152         New module 'unictype/property-cased'.
25153         * modules/unictype/property-cased: New file.
25154         * lib/unictype/pr_cased.c: New file.
25155         * lib/unictype/pr_cased.h: New file, automatically generated by
25156         gen-uni-tables.
25157         * modules/unictype/property-cased-tests: New file.
25158         * tests/unictype/test-pr_cased.c: New file, automatically generated by
25159         gen-uni-tables.
25160
25161 2011-01-09  Bruno Haible  <bruno@clisp.org>
25162
25163         Update to Unicode 5.2.0.
25164         * lib/gen-uni-tables.c (output_predicate, output_category,
25165         output_combclass, output_bidi_category, output_decimal_digit_test,
25166         output_decimal_digit, output_digit_test, output_digit,
25167         output_numeric_test, output_numeric, output_mirror, output_scripts,
25168         output_scripts_byname, output_blocks, output_ident_category): Fix
25169         comment header.
25170         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
25171         get_wbp.
25172         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
25173         items.
25174         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
25175         Changes_When_Lowercased, Changes_When_Uppercased,
25176         Changes_When_Titlecased, Changes_When_Casefolded,
25177         Changes_When_Casemapped.
25178         (is_property_alphabetic, is_property_default_ignorable_code_point):
25179         Update for Unicode 5.2.0.
25180         (is_property_cased, is_property_case_ignorable,
25181         is_property_changes_when_lowercased,
25182         is_property_changes_when_uppercased,
25183         is_property_changes_when_titlecased,
25184         is_property_changes_when_casefolded,
25185         is_property_changes_when_casemapped): New functions.
25186         (output_properties): Output also the properties cased, case_ignorable,
25187         changes_when_lowercased, changes_when_uppercased,
25188         changes_when_titlecased, changes_when_casefolded,
25189         changes_when_casemapped.
25190         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
25191         Unicode TR#11 revision 17 -> 19.
25192         (LBP_CP): New enumeration value.
25193         (LBP_*): Adjust values accordingly.
25194         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25195         TR#14 revision 22 -> 24.
25196         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
25197         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
25198         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25199         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
25200         is_WBP_MIDLETTER.
25201         (output_composition_tables): Allow for 24 bits instead of 16 bits in
25202         the code1 and code2 of each composition rule.
25203         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
25204         * lib/unicase/ignorable.h: Likewise.
25205         * lib/unicase/tocasefold.h: Likewise.
25206         * lib/unicase/tolower.h: Likewise.
25207         * lib/unicase/totitle.h: Likewise.
25208         * lib/unicase/toupper.h: Likewise.
25209         * lib/unictype/bidi_of.h: Likewise.
25210         * lib/unictype/blocks.h: Likewise.
25211         * lib/unictype/categ_C.h: Likewise.
25212         * lib/unictype/categ_Cf.h: Likewise.
25213         * lib/unictype/categ_Cn.h: Likewise.
25214         * lib/unictype/categ_L.h: Likewise.
25215         * lib/unictype/categ_Ll.h: Likewise.
25216         * lib/unictype/categ_Lm.h: Likewise.
25217         * lib/unictype/categ_Lo.h: Likewise.
25218         * lib/unictype/categ_Lu.h: Likewise.
25219         * lib/unictype/categ_M.h: Likewise.
25220         * lib/unictype/categ_Mc.h: Likewise.
25221         * lib/unictype/categ_Mn.h: Likewise.
25222         * lib/unictype/categ_N.h: Likewise.
25223         * lib/unictype/categ_Nd.h: Likewise.
25224         * lib/unictype/categ_Nl.h: Likewise.
25225         * lib/unictype/categ_No.h: Likewise.
25226         * lib/unictype/categ_P.h: Likewise.
25227         * lib/unictype/categ_Pd.h: Likewise.
25228         * lib/unictype/categ_Po.h: Likewise.
25229         * lib/unictype/categ_S.h: Likewise.
25230         * lib/unictype/categ_Sc.h: Likewise.
25231         * lib/unictype/categ_So.h: Likewise.
25232         * lib/unictype/categ_of.h: Likewise.
25233         * lib/unictype/combining.h: Likewise.
25234         * lib/unictype/ctype_alnum.h: Likewise.
25235         * lib/unictype/ctype_alpha.h: Likewise.
25236         * lib/unictype/ctype_graph.h: Likewise.
25237         * lib/unictype/ctype_lower.h: Likewise.
25238         * lib/unictype/ctype_print.h: Likewise.
25239         * lib/unictype/ctype_punct.h: Likewise.
25240         * lib/unictype/ctype_upper.h: Likewise.
25241         * lib/unictype/decdigit.h: Likewise.
25242         * lib/unictype/digit.h: Likewise.
25243         * lib/unictype/numeric.h: Likewise.
25244         * lib/unictype/pr_alphabetic.h: Likewise.
25245         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25246         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25247         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25248         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25249         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25250         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25251         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25252         * lib/unictype/pr_combining.h: Likewise.
25253         * lib/unictype/pr_composite.h: Likewise.
25254         * lib/unictype/pr_currency_symbol.h: Likewise.
25255         * lib/unictype/pr_dash.h: Likewise.
25256         * lib/unictype/pr_decimal_digit.h: Likewise.
25257         * lib/unictype/pr_deprecated.h: Likewise.
25258         * lib/unictype/pr_diacritic.h: Likewise.
25259         * lib/unictype/pr_extender.h: Likewise.
25260         * lib/unictype/pr_grapheme_base.h: Likewise.
25261         * lib/unictype/pr_grapheme_extend.h: Likewise.
25262         * lib/unictype/pr_grapheme_link.h: Likewise.
25263         * lib/unictype/pr_id_continue.h: Likewise.
25264         * lib/unictype/pr_id_start.h: Likewise.
25265         * lib/unictype/pr_ideographic.h: Likewise.
25266         * lib/unictype/pr_ignorable_control.h: Likewise.
25267         * lib/unictype/pr_logical_order_exception.h: Likewise.
25268         * lib/unictype/pr_lowercase.h: Likewise.
25269         * lib/unictype/pr_numeric.h: Likewise.
25270         * lib/unictype/pr_other_alphabetic.h: Likewise.
25271         * lib/unictype/pr_punctuation.h: Likewise.
25272         * lib/unictype/pr_sentence_terminal.h: Likewise.
25273         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25274         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25275         * lib/unictype/pr_unified_ideograph.h: Likewise.
25276         * lib/unictype/pr_uppercase.h: Likewise.
25277         * lib/unictype/pr_xid_continue.h: Likewise.
25278         * lib/unictype/pr_xid_start.h: Likewise.
25279         * lib/unictype/pr_zero_width.h: Likewise.
25280         * lib/unictype/scripts.h: Likewise.
25281         * lib/unictype/scripts_byname.gperf: Likewise.
25282         * lib/unictype/sy_java_ident.h: Likewise.
25283         * lib/unigbrk/gbrkprop.h: Likewise.
25284         * lib/unilbrk/lbrkprop1.h: Likewise.
25285         * lib/unilbrk/lbrkprop2.h: Likewise.
25286         * lib/unilbrk/lbrktables.h: Likewise.
25287         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
25288         LBP_CP. Implement rule LB30.
25289         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
25290         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
25291         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
25292         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
25293         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
25294         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
25295         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
25296         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
25297         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
25298         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
25299         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
25300         bits instead of 16 bits in the code1 and code2 of each composition
25301         rule.
25302         (uc_composition): Update for Unicode 5.2.0.
25303         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
25304         * lib/uninorm/decomposition-table2.h: Likewise.
25305         * lib/uniwbrk/wbrkprop.h: Likewise.
25306         * tests/unicase/test-cased.c: Likewise.
25307         * tests/unicase/test-ignorable.c: Likewise.
25308         * tests/unicase/test-uc_tolower.c: Likewise.
25309         * tests/unicase/test-uc_totitle.c: Likewise.
25310         * tests/unicase/test-uc_toupper.c: Likewise.
25311         * tests/unictype/test-categ_C.c: Likewise.
25312         * tests/unictype/test-categ_Cf.c: Likewise.
25313         * tests/unictype/test-categ_Cn.c: Likewise.
25314         * tests/unictype/test-categ_L.c: Likewise.
25315         * tests/unictype/test-categ_Ll.c: Likewise.
25316         * tests/unictype/test-categ_Lm.c: Likewise.
25317         * tests/unictype/test-categ_Lo.c: Likewise.
25318         * tests/unictype/test-categ_Lu.c: Likewise.
25319         * tests/unictype/test-categ_M.c: Likewise.
25320         * tests/unictype/test-categ_Mc.c: Likewise.
25321         * tests/unictype/test-categ_Mn.c: Likewise.
25322         * tests/unictype/test-categ_N.c: Likewise.
25323         * tests/unictype/test-categ_Nd.c: Likewise.
25324         * tests/unictype/test-categ_Nl.c: Likewise.
25325         * tests/unictype/test-categ_No.c: Likewise.
25326         * tests/unictype/test-categ_P.c: Likewise.
25327         * tests/unictype/test-categ_Pd.c: Likewise.
25328         * tests/unictype/test-categ_Po.c: Likewise.
25329         * tests/unictype/test-categ_S.c: Likewise.
25330         * tests/unictype/test-categ_Sc.c: Likewise.
25331         * tests/unictype/test-categ_So.c: Likewise.
25332         * tests/unictype/test-ctype_alnum.c: Likewise.
25333         * tests/unictype/test-ctype_alpha.c: Likewise.
25334         * tests/unictype/test-ctype_graph.c: Likewise.
25335         * tests/unictype/test-ctype_lower.c: Likewise.
25336         * tests/unictype/test-ctype_print.c: Likewise.
25337         * tests/unictype/test-ctype_punct.c: Likewise.
25338         * tests/unictype/test-ctype_upper.c: Likewise.
25339         * tests/unictype/test-decdigit.h: Likewise.
25340         * tests/unictype/test-digit.h: Likewise.
25341         * tests/unictype/test-numeric.h: Likewise.
25342         * tests/unictype/test-pr_alphabetic.c: Likewise.
25343         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25344         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25345         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25346         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25347         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25348         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25349         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25350         * tests/unictype/test-pr_combining.c: Likewise.
25351         * tests/unictype/test-pr_composite.c: Likewise.
25352         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25353         * tests/unictype/test-pr_dash.c: Likewise.
25354         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25355         * tests/unictype/test-pr_deprecated.c: Likewise.
25356         * tests/unictype/test-pr_diacritic.c: Likewise.
25357         * tests/unictype/test-pr_extender.c: Likewise.
25358         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25359         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25360         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25361         * tests/unictype/test-pr_id_continue.c: Likewise.
25362         * tests/unictype/test-pr_id_start.c: Likewise.
25363         * tests/unictype/test-pr_ideographic.c: Likewise.
25364         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25365         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25366         * tests/unictype/test-pr_lowercase.c: Likewise.
25367         * tests/unictype/test-pr_numeric.c: Likewise.
25368         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25369         * tests/unictype/test-pr_punctuation.c: Likewise.
25370         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25371         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25372         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25373         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25374         * tests/unictype/test-pr_uppercase.c: Likewise.
25375         * tests/unictype/test-pr_xid_continue.c: Likewise.
25376         * tests/unictype/test-pr_xid_start.c: Likewise.
25377         * tests/unictype/test-pr_zero_width.c: Likewise.
25378         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25379         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
25380         changed behaviour: line breaking is now disallowed between a letter
25381         or '=' and '('.
25382         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25383         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25384         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25385         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
25386         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25387         lib/uniwidth/width.c.
25388         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
25389         without comments, but with the original copyright notice.
25390         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25391         changes.
25392         * lib/unictype/categ_Cc.h: Likewise.
25393         * lib/unictype/categ_Co.h: Likewise.
25394         * lib/unictype/categ_Cs.h: Likewise.
25395         * lib/unictype/categ_Lt.h: Likewise.
25396         * lib/unictype/categ_Me.h: Likewise.
25397         * lib/unictype/categ_Pc.h: Likewise.
25398         * lib/unictype/categ_Pe.h: Likewise.
25399         * lib/unictype/categ_Pf.h: Likewise.
25400         * lib/unictype/categ_Pi.h: Likewise.
25401         * lib/unictype/categ_Ps.h: Likewise.
25402         * lib/unictype/categ_Sk.h: Likewise.
25403         * lib/unictype/categ_Sm.h: Likewise.
25404         * lib/unictype/categ_Z.h: Likewise.
25405         * lib/unictype/categ_Zl.h: Likewise.
25406         * lib/unictype/categ_Zp.h: Likewise.
25407         * lib/unictype/categ_Zs.h: Likewise.
25408         * lib/unictype/ctype_blank.h: Likewise.
25409         * lib/unictype/ctype_cntrl.h: Likewise.
25410         * lib/unictype/ctype_digit.h: Likewise.
25411         * lib/unictype/ctype_space.h: Likewise.
25412         * lib/unictype/ctype_xdigit.h: Likewise.
25413         * lib/unictype/mirror.h: Likewise.
25414         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25415         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25416         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25417         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25418         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25419         * lib/unictype/pr_bidi_control.h: Likewise.
25420         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25421         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25422         * lib/unictype/pr_bidi_pdf.h: Likewise.
25423         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25424         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25425         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25426         * lib/unictype/pr_format_control.h: Likewise.
25427         * lib/unictype/pr_hex_digit.h: Likewise.
25428         * lib/unictype/pr_hyphen.h: Likewise.
25429         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25430         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25431         * lib/unictype/pr_iso_control.h: Likewise.
25432         * lib/unictype/pr_join_control.h: Likewise.
25433         * lib/unictype/pr_left_of_pair.h: Likewise.
25434         * lib/unictype/pr_line_separator.h: Likewise.
25435         * lib/unictype/pr_math.h: Likewise.
25436         * lib/unictype/pr_non_break.h: Likewise.
25437         * lib/unictype/pr_not_a_character.h: Likewise.
25438         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25439         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25440         * lib/unictype/pr_other_id_continue.h: Likewise.
25441         * lib/unictype/pr_other_id_start.h: Likewise.
25442         * lib/unictype/pr_other_lowercase.h: Likewise.
25443         * lib/unictype/pr_other_math.h: Likewise.
25444         * lib/unictype/pr_other_uppercase.h: Likewise.
25445         * lib/unictype/pr_paired_punctuation.h: Likewise.
25446         * lib/unictype/pr_paragraph_separator.h: Likewise.
25447         * lib/unictype/pr_pattern_syntax.h: Likewise.
25448         * lib/unictype/pr_pattern_white_space.h: Likewise.
25449         * lib/unictype/pr_private_use.h: Likewise.
25450         * lib/unictype/pr_quotation_mark.h: Likewise.
25451         * lib/unictype/pr_radical.h: Likewise.
25452         * lib/unictype/pr_soft_dotted.h: Likewise.
25453         * lib/unictype/pr_space.h: Likewise.
25454         * lib/unictype/pr_titlecase.h: Likewise.
25455         * lib/unictype/pr_variation_selector.h: Likewise.
25456         * lib/unictype/pr_white_space.h: Likewise.
25457         * lib/unictype/sy_c_ident.h: Likewise.
25458         * lib/unictype/sy_c_whitespace.h: Likewise.
25459         * lib/unictype/sy_java_whitespace.h: Likewise.
25460         * modules/uni*/*: Bump version number of expected libunistring version.
25461         Reported by Simon Josefsson.
25462
25463 2011-01-09  Karl Heuer  <kwzh@gnu.org>
25464
25465         useless-if-before-free: fix typo in --help and make the internal,
25466         automatic version date update process work once again.
25467         --help output contained a NUL character instead of the
25468         backslash-zero that was intended.  Also, the "must lie within
25469         the first 8 lines" line is on line 9, and hence not getting
25470         automatically updated.
25471         * build-aux/useless-if-before-free: Fix the former by adding a
25472         backslash, and the latter by condensing the three lines of what-it-does
25473         to a single line, leaving one line of slack for the future.
25474
25475 2011-01-09  Bruno Haible  <bruno@clisp.org>
25476
25477         uniwidth/width: Fix width of U+1D173..U+1D17A.
25478         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
25479         symbolic_width, output_width_property_test): New functions.
25480         (main): Invoke output_nonspacing_property, output_width_property_test.
25481         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
25482         U+1D173..U+1D17A.
25483         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
25484         1.
25485         * modules/uniwidth/*: Bump version number of expected libunistring
25486         version.
25487         * modules/unilbrk/*: Likewise.
25488
25489 2011-01-08  Bruno Haible  <bruno@clisp.org>
25490
25491         uninorm tests: Preserve copyright of Unicode data file.
25492         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
25493         Mention modifications.
25494
25495 2011-01-08  Bruno Haible  <bruno@clisp.org>
25496
25497         gen-uni-tables: Prepare for Unicode 5.2.0.
25498         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
25499         (debug_output_lbp, output_lbp): Update.
25500
25501 2011-01-08  Bruno Haible  <bruno@clisp.org>
25502
25503         unilbrk: Clarify gen-uni-tables.c code.
25504         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
25505         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
25506         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
25507
25508 2011-01-07  Bruno Haible  <bruno@clisp.org>
25509
25510         strtod: Restore errno when successfully parsing Infinity or NaN.
25511         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
25512         restore the original errno.
25513
25514 2011-01-07  Bruno Haible  <bruno@clisp.org>
25515
25516         remove test: Avoid failure on HP-UX 11.
25517         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
25518
25519 2011-01-07  Bruno Haible  <bruno@clisp.org>
25520
25521         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
25522         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
25523         error code.
25524
25525 2011-01-07  Pádraig Brady <P@draigBrady.com>
25526
25527         ignore-value: fixup comments, and add Eric Blake
25528         as an author since he rewrote the macros.
25529         * lib/ignore-value.h (ignore_value):  State that
25530         we now support aggregates.  Also specify exactly
25531         when the GCC warn_unused_result feature was added.
25532
25533 2011-01-06  Eric Blake  <eblake@redhat.com>
25534
25535         ignore-value: support aggregate types
25536         * lib/ignore-value.h (ignore_value): Provide separate gcc
25537         definition.
25538         * modules/ignore-value-tests: New test module.
25539         * tests/test-ignore-value.c: New test.
25540
25541         maint.mk: improve sc_prohibit_strcmp regex
25542         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
25543         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
25544         definition of STRNEQ.
25545
25546         signal: work around Haiku issue with SIGBUS
25547         * lib/siglist.h: Add comment.
25548         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
25549         strsignal's favoring of SIGSEGV.
25550         * tests/test-signal.c (main): Avoid test failure.
25551         * doc/posix-headers/signal.texi (signal.h): Document the issue.
25552         Reported by Scott McCreary.
25553
25554         maint.mk: add pre-release check to ensure submodule commits are public
25555         * top/maint.mk (public-submodule-commit): New rule.
25556         (submodule-checks): New variable.
25557         (alpha beta stable): Depend on the variable.
25558
25559 2011-01-05  Pádraig Brady <P@draigBrady.com>
25560         and Jim Meyering  <meyering@redhat.com>
25561
25562         ignore-value: make ignore_value more generic; deprecate ignore_ptr
25563         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
25564         (ATTRIBUTE_DEPRECATED): Define.
25565         (_ignore_case): New function.
25566         (ignore_value): New macro, to replace the old function.
25567         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
25568         * modules/ignore-value (Depends-on): Add stdint.
25569
25570 2011-01-04  Eric Blake  <eblake@redhat.com>
25571
25572         doc: regenerate INSTALL
25573         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
25574         @firstparagraphindent support, now that autoconf dropped it.
25575         (INSTALL_PRELUDE): Reinstate old macro.
25576         * doc/install.texi: Resync from autoconf.
25577         * doc/INSTALL: Reflect recent autoconf update.
25578         * doc/INSTALL.ISO: Likewise.
25579         * doc/INSTALL.UTF-8: Likewise.
25580         Reported by Karl Berry.
25581
25582 2011-01-04  Bruce Korb  <address@hidden>
25583
25584         git-version-gen: avoid a sub-shell
25585         * build-aux/git-version-gen: Redirect stderr in `...` via
25586         "exec 2>...", rather than via an added sub-shell.
25587
25588 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
25589
25590         git-version-gen: use (...) rather than sh -c '...'
25591         * build-aux/git-version-gen: Rather than hard-coding a shell's name
25592         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
25593
25594 2011-01-03  Jim Meyering  <meyering@redhat.com>
25595
25596         git-version-gen: convert leading TABs to spaces
25597         * build-aux/git-version-gen: Expand leading TABs.
25598
25599         git-version-gen: handle failed "git rev-list"
25600         * build-aux/git-version-gen: Rather than leaking a "fatal" error
25601         from git and proceeding as if it had succeeded but printed no SHA1
25602         checksums, suppress the diagnostic and handle the failure.
25603         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
25604
25605         git-version-gen: include command name in one more diagnostic
25606         * build-aux/git-version-gen: When the required .tarball-version file
25607         was missing or unreadable, you might see the diagnostic from "cat",
25608         but no trace of the name of the invoking script.  Now, you still see
25609         the diagnostic from cat, but also get one from "git-version-gen: ".
25610         Inspired by a patch from Bruce Korb.
25611
25612         update-copyright: adjust test to match changed code
25613         * tests/test-update-copyright.sh: Change test's expected output
25614         to match new actual output.
25615
25616 2011-01-02  Bruno Haible  <bruno@clisp.org>
25617
25618         getlogin_r: Avoid test failure on HP-UX 11.
25619         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
25620         ERANGE when the second argument is zero.
25621         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
25622         portability problem.
25623
25624 2011-01-02  Bruce Korb  <bkorb@gnu.org>
25625
25626         * build-aux/update-copyright: doc Simon's changes
25627
25628 2011-01-02  Simon Josefsson  <simon@josefsson.org>
25629
25630         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
25631         environment variable.
25632
25633 2011-01-02  Bruno Haible  <bruno@clisp.org>
25634
25635         unigbrk: Avoid gcc warnings.
25636         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
25637         unused variable.
25638         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
25639         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
25640         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
25641         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
25642         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
25643         Change type of first argument to 'const char *'.
25644         (main): Remove unused variable.
25645         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
25646         type of first argument to 'const char *'.
25647         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
25648         Likewise.
25649         (main): Change type of variable 's'.
25650         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
25651         to 'int'.
25652
25653 2011-01-02  Bruno Haible  <bruno@clisp.org>
25654
25655         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
25656         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
25657         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
25658         bug.
25659         * lib/pwrite.c: Undo 2010-12-31 patch.
25660         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
25661
25662 2011-01-02  Bruno Haible  <bruno@clisp.org>
25663
25664         pread: Fix test whether it works.
25665         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
25666
25667 2011-01-02  Bruno Haible  <bruno@clisp.org>
25668
25669         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
25670         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
25671         ends in "6". Don't require a specific month name. Try also the locale
25672         names found on HP-UX 11 and Solaris 7.
25673
25674 2011-01-02  Bruno Haible  <bruno@clisp.org>
25675
25676         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
25677         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
25678         C linkage.
25679         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
25680
25681 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25682
25683         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
25684         for consistency, since the "cluster" term is not used elsewhere.
25685         * lib/unigbrk.in.h: Update name.
25686         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
25687         * lib/unigbrk/u16-grapheme-next.c: Update name.
25688         * lib/unigbrk/u16-grapheme-prev.c: Update name.
25689         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
25690         * lib/unigbrk/u32-grapheme-next.c: Update name.
25691         * lib/unigbrk/u32-grapheme-prev.c: Update name.
25692         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
25693         * lib/unigbrk/u8-grapheme-next.c: Update name.
25694         * lib/unigbrk/u8-grapheme-prev.c: Update name.
25695         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
25696         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
25697         Suggested by Bruno Haible.
25698
25699 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25700
25701         Remove module 'u8-grapheme-len' as too redundant with
25702         'u8-grapheme-next'.
25703         * modules/unigbrk/u8-grapheme-len: Delete file.
25704         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
25705         * lib/unigbrk.in.h: Remove prototype for deleted function.
25706         * lib/unigbrk/u8-grapheme-len.c: Delete file.
25707         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
25708
25709         Remove module 'u16-grapheme-len' as too redundant with
25710         'u16-grapheme-next'.
25711         * modules/unigbrk/u16-grapheme-len: Delete file.
25712         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
25713         * lib/unigbrk.in.h: Remove prototype for deleted function.
25714         * lib/unigbrk/u16-grapheme-len.c: Delete file.
25715         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
25716
25717         Remove module 'u32-grapheme-len' as too redundant with
25718         'u32-grapheme-next'.
25719         * modules/unigbrk/u32-grapheme-len: Delete file.
25720         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
25721         * lib/unigbrk.in.h: Remove prototype for deleted function.
25722         * lib/unigbrk/u32-grapheme-len.c: Delete file.
25723         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
25724
25725         Suggested by Bruno Haible.
25726
25727 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25728
25729         * unigbrk.in.h: Fix typo: "ben" => "been".
25730         Reported by Bruno Haible.
25731
25732 2011-01-01  Jim Meyering  <meyering@redhat.com>
25733
25734         maint: update almost all copyright ranges to include 2011
25735         Run the new "make update-copyright" rule.
25736
25737 2011-01-01  Jim Meyering  <meyering@redhat.com>
25738
25739         maint: update-copyright: exempt doc/INSTALL*
25740         * Makefile (update-copyright): Also exclude doc/INSTALL*,
25741         since they are generated.  Suggested by Bruno Haible.
25742
25743 2011-01-01  Jim Meyering  <meyering@redhat.com>
25744
25745         maint: refine the update-copyright rule
25746         * Makefile (update-copyright): Also exclude any file that includes
25747         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
25748         code that merely generates the comment.
25749
25750 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25751
25752         New module 'u8-grapheme-len'.
25753         * modules/unigbrk/u8-grapheme-len: New file.
25754         * modules/unigbrk/u8-grapheme-len-tests: New file.
25755         * lib/unigbrk.in.h: Add prototype for new function.
25756         * lib/unigbrk/u8-grapheme-len.c: New file.
25757         * tests/unigbrk/test-u8-grapheme-len.c: New file.
25758
25759         New module 'u16-grapheme-len'.
25760         * modules/unigbrk/u16-grapheme-len: New file.
25761         * modules/unigbrk/u16-grapheme-len-tests: New file.
25762         * lib/unigbrk.in.h: Add prototype for new function.
25763         * lib/unigbrk/u16-grapheme-len.c: New file.
25764         * tests/unigbrk/test-u16-grapheme-len.c: New file.
25765
25766         New module 'u32-grapheme-len'.
25767         * modules/unigbrk/u32-grapheme-len: New file.
25768         * modules/unigbrk/u32-grapheme-len-tests: New file.
25769         * lib/unigbrk.in.h: Add prototype for new function.
25770         * lib/unigbrk/u32-grapheme-len.c: New file.
25771         * tests/unigbrk/test-u32-grapheme-len.c: New file.
25772
25773         New module 'u8-grapheme-next'.
25774         * modules/unigbrk/u8-grapheme-next: New file.
25775         * modules/unigbrk/u8-grapheme-next-tests: New file.
25776         * lib/unigbrk.in.h: Add prototype for new function.
25777         * lib/unigbrk/u8-grapheme-next.c: New file.
25778         * tests/unigbrk/test-u8-grapheme-next.c: New file.
25779
25780         New module 'u16-grapheme-next'.
25781         * modules/unigbrk/u16-grapheme-next: New file.
25782         * modules/unigbrk/u16-grapheme-next-tests: New file.
25783         * lib/unigbrk.in.h: Add prototype for new function.
25784         * lib/unigbrk/u16-grapheme-next.c: New file.
25785         * tests/unigbrk/test-u16-grapheme-next.c: New file.
25786
25787         New module 'u32-grapheme-next'.
25788         * modules/unigbrk/u32-grapheme-next: New file.
25789         * modules/unigbrk/u32-grapheme-next-tests: New file.
25790         * lib/unigbrk.in.h: Add prototype for new function.
25791         * lib/unigbrk/u32-grapheme-next.c: New file.
25792         * tests/unigbrk/test-u32-grapheme-next.c: New file.
25793
25794         New module 'u8-grapheme-prev'.
25795         * modules/unigbrk/u8-grapheme-prev: New file.
25796         * modules/unigbrk/u8-grapheme-prev-tests: New file.
25797         * lib/unigbrk.in.h: Add prototype for new function.
25798         * lib/unigbrk/u8-grapheme-prev.c: New file.
25799         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
25800
25801         New module 'u16-grapheme-prev'.
25802         * modules/unigbrk/u16-grapheme-prev: New file.
25803         * modules/unigbrk/u16-grapheme-prev-tests: New file.
25804         * lib/unigbrk.in.h: Add prototype for new function.
25805         * lib/unigbrk/u16-grapheme-prev.c: New file.
25806         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
25807
25808         New module 'u32-grapheme-prev'.
25809         * modules/unigbrk/u32-grapheme-prev: New file.
25810         * modules/unigbrk/u32-grapheme-prev-tests: New file.
25811         * lib/unigbrk.in.h: Add prototype for new function.
25812         * lib/unigbrk/u32-grapheme-prev.c: New file.
25813         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
25814
25815         New module 'u8-grapheme-breaks'.
25816         * modules/unigbrk/u8-grapheme-breaks: New file.
25817         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
25818         * lib/unigbrk.in.h: Add prototype for new function.
25819         * lib/unigbrk/u8-grapheme-breaks.c: New file.
25820         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
25821
25822         New module 'u16-grapheme-breaks'.
25823         * modules/unigbrk/u16-grapheme-breaks: New file.
25824         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
25825         * lib/unigbrk.in.h: Add prototype for new function.
25826         * lib/unigbrk/u16-grapheme-breaks.c: New file.
25827         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
25828
25829         New module 'u32-grapheme-breaks'.
25830         * modules/unigbrk/u32-grapheme-breaks: New file.
25831         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
25832         * lib/unigbrk.in.h: Add prototype for new function.
25833         * lib/unigbrk/u32-grapheme-breaks.c: New file.
25834         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
25835
25836         New module 'ulc-grapheme-breaks'.
25837         * modules/unigbrk/ulc-grapheme-breaks: New file.
25838         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
25839         * m4/locale-ar.m4: New file.
25840         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
25841         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
25842         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
25843
25844 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25845
25846         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
25847         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
25848         modified how this file was generated before I initially submitted
25849         the module, but failed to regenerate it.  This meant that several
25850         of the level2 entries were wrong.
25851         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
25852         Remove the division-by-2 that is folded into the table now that
25853         gbrkprop.h has been regenerated properly.  Now -1 entries are
25854         handled correctly.
25855
25856         New module 'unigbrk/uc-gbrk-prop-tests'.
25857         * modules/unigbrk/uc-gbrk-prop-tests: New file.
25858         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
25859         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
25860         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
25861
25862 2011-01-01  Bruno Haible  <bruno@clisp.org>
25863
25864         Avoid use of hexadecimal escapes.
25865         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
25866         instead of hexadecimal escapes.
25867
25868 2011-01-01  Jim Meyering  <meyering@redhat.com>
25869
25870         maint: new rule to update copyright year ranges
25871         * Makefile (update-copyright): New rule.
25872
25873         maint: indent with TABs in Makefile
25874         * Makefile: Expand leading sequences of spaces to TABs
25875
25876         version-etc: update the copyright year it reports
25877         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
25878
25879 2010-12-31  Bruno Haible  <bruno@clisp.org>
25880
25881         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
25882         * lib/isfinite.c (zerof, zerod, zerol): New variables.
25883         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
25884         zero.
25885
25886 2010-12-31  Bruno Haible  <bruno@clisp.org>
25887
25888         pwrite: Work around HP-UX 11.11 bug.
25889         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
25890         works and set REPLACE_PWRITE if not.
25891         * lib/pwrite.c (pwrite): Add an implementation that uses the system
25892         function.
25893         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
25894
25895 2010-12-31  Bruno Haible  <bruno@clisp.org>
25896
25897         pread: Work around HP-UX 11 bugs.
25898         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
25899         and set REPLACE_PREAD if not.
25900         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
25901
25902 2010-12-31  Eric Blake  <eblake@redhat.com>
25903
25904         nl_langinfo: fix YESEXPR on Irix 6.5
25905         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
25906         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
25907         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
25908         it.
25909
25910 2010-12-31  Bruno Haible  <bruno@clisp.org>
25911
25912         iconv: Document HP-UX 11 bug.
25913         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
25914
25915 2010-12-31  Bruno Haible  <bruno@clisp.org>
25916
25917         ldexpl: Fix link error on HP-UX 11.
25918         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
25919         LDEXPL_LIBM, using $ISNANL_LIBM.
25920
25921 2010-12-31  Eric Blake  <eblake@redhat.com>
25922
25923         ftello: avoid compilation failure with SunStudio c89
25924         * lib/ftello.c (ftello): Use lseek, not llseek.
25925
25926         tests: avoid failing coreutils tests on cygwin
25927         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
25928         (create_exe_shims_): Return 0 when skipping.
25929
25930 2010-12-31  Bruno Haible  <bruno@clisp.org>
25931
25932         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
25933         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
25934
25935 2010-12-31  Bruno Haible  <bruno@clisp.org>
25936
25937         waitpid: Fix link error in C++ mode.
25938         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
25939
25940 2010-12-31  Bruno Haible  <bruno@clisp.org>
25941
25942         isnan: Use GCC built-ins when possible.
25943         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
25944         __builtin_isnan.
25945         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
25946         (isnan): Define using GCC built-ins for GCC >= 4.0.
25947
25948 2010-12-31  Bruno Haible  <bruno@clisp.org>
25949
25950         isnand: Fix mistake.
25951         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
25952         __builtin_isnand.
25953
25954 2010-12-31  Bruno Haible  <bruno@clisp.org>
25955
25956         open: Avoid C++ error on HP-UX 11.
25957         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
25958
25959 2010-12-31  Bruno Haible  <bruno@clisp.org>
25960
25961         time_r: Add missing declarations on HP-UX 11.
25962         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
25963         instead of HAVE_LOCALTIME_R.
25964         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
25965         HAVE_LOCALTIME_R always.
25966         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
25967         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
25968         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
25969         HAVE_LOCALTIME_R.
25970         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
25971         * doc/posix-functions/localtime_r.texi: Likewise.
25972
25973 2010-12-29  Eric Blake  <eblake@redhat.com>
25974
25975         mountlist: tweak previous commit
25976         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
25977         Reported by Paul Eggert.
25978
25979         mountlist: fix local drive detection on cygwin
25980         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
25981         that works for cygwin.
25982
25983 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25984
25985         ftoastr, snprintf: ftoastr + snprintf module
25986         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
25987         since the snprintf module now should be good enough here.
25988         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
25989         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
25990         and gl_MODULE_INDICATOR([snprintf]), but the former enables
25991         GNULIB_SNPRINTF only for the test directory, and the latter
25992         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
25993         seems to suffice by itself.
25994
25995 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25996
25997         alloca: one step towards thread-safety
25998         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
25999         need for a static variable.  All callers changed.  This does not
26000         make the alloca replacement thread-safe, but it's one step.
26001
26002         tests: minor indenting change
26003         * tests/init.sh: Sync from coreutils housekeeping patch
26004         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
26005         to keep lines within 80 columns.
26006
26007 2010-12-28  Jim Meyering  <meyering@redhat.com>
26008
26009         regex: don't infloop on persistent failing calloc
26010         * lib/regexec.c (build_trtable): Return failure indication upon
26011         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
26012         In glibc, this was fixed for version 2.13:
26013         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
26014
26015 2010-12-28  Bruno Haible  <bruno@clisp.org>
26016             Paul Eggert <eggert@cs.ucla.edu>
26017
26018         linkat: Make implementation robust against system behaviour variations.
26019         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
26020         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
26021         way, and to -2 if it needs a generic runtime test.
26022         * lib/linkat.c (solaris_optimized_link_immediate,
26023         solaris_optimized_link_follow): New functions.
26024         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
26025         (check_same_link): Use it.
26026
26027 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
26028
26029         New module 'unigbrk/base'.
26030         * modules/unigbrk/base: New file.
26031         * lib/unigbrk.in.h: New file.
26032
26033         New module 'unigbrk/uc-gbrk-prop'.
26034         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
26035         * modules/unigbrk/uc-gbrk-prop: New file.
26036         * lib/unigbrk/gbrkprop.h: New file.
26037         * lib/unigbrk/uc-gbrk-prop.c: New file.
26038
26039         New module 'unigbrk/uc-is-grapheme-break'.
26040         * modules/unigbrk/uc-is-grapheme-break: New file.
26041         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
26042         * lib/unigbrk/uc-is-grapheme-break.c: New file.
26043         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
26044         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
26045         * tests/unigbrk/GraphemeBreakTest.txt: New file.
26046
26047         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
26048
26049 2010-12-27  Bruno Haible  <bruno@clisp.org>
26050
26051         linkat test: Avoid failure on Solaris 11 2010-11.
26052         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
26053
26054 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26055
26056         utimens: work around glibc rounding bug on more platforms
26057         * lib/utimens.c (fdutimens): Work around rounding bug even if
26058         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
26059         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
26060
26061 2010-12-27  Bruno Haible  <bruno@clisp.org>
26062
26063         select tests: Improve comments.
26064         * tests/test-select.c (do_select): Add comments.
26065
26066 2010-12-27  Bruno Haible  <bruno@clisp.org>
26067
26068         select tests: Safer way of handling timeout.
26069         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
26070         at every invocation.
26071
26072 2010-12-27  Bruno Haible  <bruno@clisp.org>
26073
26074         select tests: Use 'bool' where appropriate.
26075         * tests/test-select.c (connect_to_socket): Change argument type to
26076         'bool'.
26077
26078 2010-12-27  Bruno Haible  <bruno@clisp.org>
26079
26080         select tests: Use existing modules.
26081         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
26082         (configure.ac): Don't test for unistd.h.
26083         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
26084         declared in <unistd.h>.
26085
26086 2010-12-27  Bruno Haible  <bruno@clisp.org>
26087
26088         mbrtowc: Work around a Solaris 7 bug.
26089         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
26090         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
26091         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
26092         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
26093         MBRTOWC_NULL_ARG1_BUG.
26094         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
26095         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
26096         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
26097         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
26098
26099 2010-12-27  Jim Meyering  <meyering@redhat.com>
26100
26101         read-file.c: tweak syntax
26102         * lib/read-file.c (fread_file): Remove space after "*" in function
26103         definitions.
26104
26105 2010-12-27  Bruno Haible  <bruno@clisp.org>
26106
26107         times test: Avoid gcc warnings on OSF/1.
26108         * tests/test-times.c (main): Cast printf arguments from clock_t to
26109         'long int'.
26110
26111 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26112
26113         utimens: work around glibc rounding bug on older Linux kernels
26114         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
26115         on Linux with a glibc whose utimes might not work, then work
26116         around a longstanding glibc bug involving rounding rather than
26117         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
26118         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26119
26120 2010-12-26  Bruno Haible  <bruno@clisp.org>
26121
26122         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
26123         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
26124         _GL_CXXALIAS_SYS.
26125         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26126
26127 2010-12-26  Bruno Haible  <bruno@clisp.org>
26128
26129         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
26130         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
26131         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26132         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
26133         looking for the declaration.
26134         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
26135         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
26136         problem.
26137         * doc/posix-functions/inet_pton.texi: Likewise.
26138
26139 2010-12-26  Bruno Haible  <bruno@clisp.org>
26140
26141         arpa_inet: Use the common idioms with C++ support.
26142         * lib/arpa_inet.in.h: Include c++defs.h.
26143         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
26144         support.
26145         * modules/arpa_inet (Depends-on): Add c++defs.
26146         (Makefile.am): Substitute the contents of c++defs.h.
26147         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
26148         * modules/arpa_inet-c++-tests: New file.
26149         * tests/test-arpa_inet-c++.cc: New file.
26150
26151 2010-12-25  Bruno Haible  <bruno@clisp.org>
26152
26153         Fix more C++ link errors on Solaris 8.
26154         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
26155         $(LIB_EACCESS).
26156         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
26157         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
26158         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
26159         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
26160         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
26161
26162 2010-12-25  Bruno Haible  <bruno@clisp.org>
26163
26164         printf-posix: Fix link error when a non-GCC compiler is used.
26165         * lib/stdio.in.h (printf): When not using GCC, override printf
26166         correctly.
26167         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26168
26169 2010-12-25  Bruno Haible  <bruno@clisp.org>
26170
26171         strerror_r-posix: Update doc.
26172         * doc/posix-functions/strerror_r.texi: Update doc about the return
26173         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
26174
26175 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26176
26177         utimens: simplify the logic of the previous change
26178         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
26179         This should not affect whether the test succeeds or fails.
26180
26181         utimens: configure better on hosts with NFS clock skew
26182         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
26183         uses the clock of the local host.  It might use the clock of the
26184         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
26185         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26186
26187 2010-12-25  Bruno Haible  <bruno@clisp.org>
26188
26189         ptsname test: Avoid failure on Solaris.
26190         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
26191         open a pseudo-terminal; don't use BSD-style ptys.
26192         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
26193
26194 2010-12-25  Bruno Haible  <bruno@clisp.org>
26195
26196         ptsname: Avoid ERANGE failure on some systems.
26197         * lib/ptsname.c (buffer): Increase size.
26198
26199 2010-12-25  Bruno Haible  <bruno@clisp.org>
26200
26201         rename, renameat: Avoid test failures at NFS mounted locations.
26202         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
26203         so that subsequent mkdir calls succeed.
26204
26205 2010-12-25  Bruno Haible  <bruno@clisp.org>
26206
26207         iswblank: Fix C++ link error on Solaris 8.
26208         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
26209         _GL_FUNCDECL_SYS.
26210
26211 2010-12-25  Bruno Haible  <bruno@clisp.org>
26212
26213         unistd: Fix C++ link error on Solaris 8.
26214         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
26215
26216 2010-12-25  Bruno Haible  <bruno@clisp.org>
26217
26218         readlink doc: Mention an old glibc bug.
26219         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
26220
26221 2010-12-25  Bruno Haible  <bruno@clisp.org>
26222
26223         fcntl-h: Fix for use of C++ on glibc systems.
26224         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26225         also on glibc systems in C++ mode.
26226         Reported by Gary V. Vaughan <gary@gnu.org>.
26227
26228 2010-12-25  Bruno Haible  <bruno@clisp.org>
26229
26230         roundl-ieee: Make it work on OSF/1 5.1 with cc.
26231         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
26232
26233 2010-12-25  Bruno Haible  <bruno@clisp.org>
26234
26235         truncl-ieee: Make it work on OSF/1 5.1 with cc.
26236         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
26237         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
26238         test whether truncl works according to ISO C 99 with IEC 60559.
26239         * m4/truncl-ieee.m4: New file.
26240         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
26241         m4/signbit.m4.
26242         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
26243
26244 2010-12-25  Bruno Haible  <bruno@clisp.org>
26245
26246         ceill-ieee: Make it work on OSF/1 5.1 with cc.
26247         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
26248         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
26249         test whether ceill works according to ISO C 99 with IEC 60559.
26250         * m4/ceill-ieee.m4: New file.
26251         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
26252         m4/signbit.m4.
26253         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
26254
26255 2010-12-25  Bruno Haible  <bruno@clisp.org>
26256
26257         Ensure all prerequisites of <wchar.h> are included.
26258         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
26259         before <wchar.h>.
26260         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26261         gl_MBRLEN_NUL_RETVAL): Likewise.
26262         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26263         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
26264         AC_FUNC_MBRTOWC): Likewise.
26265         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26266         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26267         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26268         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26269         Likewise.
26270         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26271         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
26272         (gl_WCHAR_H): Improve comments.
26273         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26274
26275 2010-12-25  Bruno Haible  <bruno@clisp.org>
26276
26277         strtok_r: Fix C syntax error in autoconf macro.
26278         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
26279         characters in test program.
26280
26281 2010-12-24  Bruno Haible  <bruno@clisp.org>
26282
26283         ceil, trunc, round: Fix gcc warnings.
26284         * lib/ceil.c (MIN): Undefine before redefining.
26285         * lib/trunc.c (MIN): Likewise.
26286         * lib/round.c (MIN): Likewise.
26287         Include <math.h> first.
26288
26289 2010-12-24  Bruno Haible  <bruno@clisp.org>
26290
26291         select tests: Avoid failures on OSF/1 5.1.
26292         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
26293         failure of closing the last socket; it may fail with ECONNRESET.
26294
26295 2010-12-24  Eric Blake  <eblake@redhat.com>
26296
26297         stdint: avoid HP-UX 10.20 preprocessor bug
26298         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
26299         than #if.
26300         * tests/test-floor2.c (main): Likewise.
26301         Reported by Peter O'Gorman.
26302
26303         pipe: make obsoletion transition easier
26304         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
26305         * modules/pipe (Files): Include revived file.
26306         (Include): Drop reference, to mirror getdate's behavior.
26307
26308 2010-12-24  Bruno Haible  <bruno@clisp.org>
26309
26310         sys_socket: Hide mismatch of declarations on NonStop Kernel.
26311         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
26312         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
26313         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26314
26315 2010-12-24  Bruno Haible  <bruno@clisp.org>
26316
26317         gethostname: Ensure declaration on NonStop Kernel.
26318         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
26319         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26320
26321 2010-12-24  Bruno Haible  <bruno@clisp.org>
26322
26323         sys_select: Ensure all necessary types on NonStop Kernel.
26324         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
26325         include <sys/time.h>.
26326         * doc/posix-headers/sys_select.texi: Mention that it's missing on
26327         NonStop Kernel.
26328         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26329
26330 2010-12-24  Bruno Haible  <bruno@clisp.org>
26331
26332         sys_select: Remove unneeded include.
26333         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
26334         have <sys/select.h>.
26335
26336 2010-12-24  Bruno Haible  <bruno@clisp.org>
26337
26338         gethostname: Provide a fallback for HOST_NAME_MAX.
26339         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
26340         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
26341         instead.
26342         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26343
26344 2010-12-24  Bruno Haible  <bruno@clisp.org>
26345
26346         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
26347         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
26348         (SA_RESTART): Likewise.
26349         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26350
26351 2010-12-24  Bruno Haible  <bruno@clisp.org>
26352
26353         signal: Define NSIG.
26354         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
26355         * tests/test-signal.c (nsig): New variable.
26356         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26357
26358 2010-12-24  Bruno Haible  <bruno@clisp.org>
26359
26360         rename, renameat: Avoid test failures on OSF/1 5.1.
26361         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
26362         alternative error codes.
26363         * tests/test-renameat.c (main): Likewise.
26364
26365 2010-12-24  Bruno Haible  <bruno@clisp.org>
26366
26367         *printf: Detect large precisions bug on Solaris 10/SPARC.
26368         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
26369         by Paul Eggert.
26370         * tests/test-snprintf-posix.h (test_function): Add this test code here
26371         too.
26372         * tests/test-sprintf-posix.h (test_function): Likewise.
26373         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26374         * tests/test-vasprintf-posix.c (test_function): Likewise.
26375         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
26376         around by gnulib.
26377         * doc/posix-functions/printf.texi: Likewise.
26378         * doc/posix-functions/snprintf.texi: Likewise.
26379         * doc/posix-functions/sprintf.texi: Likewise.
26380         * doc/posix-functions/vfprintf.texi: Likewise.
26381         * doc/posix-functions/vprintf.texi: Likewise.
26382         * doc/posix-functions/vsnprintf.texi: Likewise.
26383         * doc/posix-functions/vsprintf.texi: Likewise.
26384         * doc/posix-functions/dprintf.texi: Undo last commit.
26385         * doc/posix-functions/vdprintf.texi: Likewise.
26386
26387 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26388
26389         tests: port test-fdutimensat.c to Solaris 8
26390         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
26391         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
26392         On Solaris 8, it fails with errno == ENOSYS, because there is no
26393         futimens (so it can't use the fd), and there is no lutimens (so it
26394         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
26395
26396         vsnprintf: make more consistent with snprintf; doc fixes
26397
26398         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
26399         the byte count return problem was promoted from the snprintf-posix
26400         to the snprintf module.
26401         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26402         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
26403         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
26404         * tests/test-snprintf.c (main): Check the byte count returned.
26405         * tests/test-vsnprintf.c (main): Likewise.
26406
26407 2010-12-23  Eric Blake  <eblake@redhat.com>
26408
26409         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
26410         * modules/sigpipe (License): Relax license.
26411
26412 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26413
26414         doc: document Solaris printf bug with large float precisions
26415         * doc/posix-functions/dprintf.texi (dprintf):
26416         * doc/posix-functions/fprintf.texi (fprintf):
26417         * doc/posix-functions/printf.texi (printf):
26418         * doc/posix-functions/snprintf.texi (snprintf):
26419         * doc/posix-functions/sprintf.texi (sprintf):
26420         * doc/posix-functions/vdprintf.texi (vdprintf):
26421         * doc/posix-functions/vfprintf.texi (vfprintf):
26422         * doc/posix-functions/vprintf.texi (vprintf):
26423         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26424         * doc/posix-functions/vsprintf.texi (vsprintf):
26425         Mention that these functions mishandle large floating point
26426         precisions on Solaris 10.  The same bug is also present in Solaris
26427         8, and I assume earlier.  This causes "cd gnulib-tests; make
26428         check" to fail on Solaris 8 (and I assume, later) when building
26429         the latest coreutils, in test-vasprintf-posix's call to
26430         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
26431         the wide flavors (e.g., wprintf) so this patch just updates the
26432         documentation for the narrow ones.
26433
26434         test-posixtm.c: add two tests
26435         * tests/test-posixtm.c: Add two tests, to highlight the
26436         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
26437         around this bug; this is merely to document it.
26438
26439 2010-12-22  Bruno Haible  <bruno@clisp.org>
26440
26441         getlogin_r: Work around portability problem on OSF/1.
26442         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
26443         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
26444         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
26445         test for a truncated result.
26446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
26447         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
26448         * modules/getlogin_r (Depends-on): Add memchr.
26449         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
26450
26451 2010-12-22  Bruno Haible  <bruno@clisp.org>
26452
26453         ptsname: Avoid test failure on OSF/1 5.1.
26454         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
26455         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
26456         (same_slave): New function.
26457         (main): Use it to compare ptsname's result with the expected file name.
26458
26459 2010-12-22  Bruno Haible  <bruno@clisp.org>
26460
26461         Port extended stdio modules to HP NonStop Kernel.
26462         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
26463         macros.
26464         * lib/fbufmode.c: Update comments.
26465         * lib/fflush.c: Likewise.
26466         * lib/fpurge.c: Likewise.
26467         * lib/freadable.c: Likewise.
26468         * lib/freadahead.c: Likewise.
26469         * lib/freading.c: Likewise.
26470         * lib/freadptr.c: Likewise.
26471         * lib/freadseek.c: Likewise.
26472         * lib/fseeko.c: Likewise.
26473         * lib/fseterr.c: Likewise.
26474         * lib/fwritable.c: Likewise.
26475         * lib/fwriting.c: Likewise.
26476         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26477
26478 2010-12-22  Bruno Haible  <bruno@clisp.org>
26479
26480         ttyname_r: Work around bug on OSF/1 5.1.
26481         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
26482         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
26483         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
26484         present.
26485         * lib/ttyname_r.c (ttyname_r): Update comments.
26486
26487 2010-12-22  Bruno Haible  <bruno@clisp.org>
26488
26489         round: Implement result sign according to IEEE 754.
26490         * lib/round.c (MIN, MINUS_ZERO): New macros.
26491         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
26492         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
26493         * tests/test-round-ieee.c (main): Likewise.
26494         * tests/test-roundl-ieee.c (main): Likewise.
26495
26496         trunc: Implement result sign according to IEEE 754.
26497         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
26498         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
26499         * tests/test-trunc2.c: Include minus-zero.h.
26500         (MINUS_ZERO): New macro.
26501         (trunc_reference): Keep in sync with lib/trunc.c.
26502         * tests/test-truncf2.c: Include minus-zero.h.
26503         (MINUS_ZERO): New macro.
26504         (truncf_reference): Keep in sync with lib/trunc.c.
26505         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
26506         * tests/test-trunc-ieee.c (main): Likewise.
26507         * tests/test-truncl-ieee.c (main): Likewise.
26508
26509         ceil: Implement result sign according to IEEE 754.
26510         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
26511         (FUNC): Return -0.0 for -1 < x < 0.
26512         * tests/test-ceil2.c: Include minus-zero.h.
26513         (MINUS_ZERO): New macro.
26514         (ceil_reference): Keep in sync with lib/ceil.c.
26515         * tests/test-ceilf2.c: Include minus-zero.h.
26516         (MINUS_ZERO): New macro.
26517         (ceilf_reference): Keep in sync with lib/ceil.c.
26518         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
26519         * tests/test-ceil-ieee.c (main): Likewise.
26520         * tests/test-ceill-ieee.c (main): Likewise.
26521
26522         floor: Implement result sign according to IEEE 754.
26523         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
26524         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
26525         * tests/test-floorf2.c (floorf_reference): Likewise.
26526         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
26527         * tests/test-floor-ieee.c (main): Likewise.
26528         * tests/test-floorl-ieee.c (main): Likewise.
26529
26530 2010-12-22  Bruno Haible  <bruno@clisp.org>
26531
26532         getaddrinfo: Update doc.
26533         * doc/posix-functions/gai_strerror.texi: Return type is also different
26534         on AIX and HP-UX.
26535
26536 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26537
26538         getaddrinfo, inet_ntop: Update doc for Solaris.
26539         * doc/posix-functions/gai_strerror.texi: Return type is also an
26540         issue on Solaris 9 and earlier.
26541         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
26542         on Solaris 10 and earlier.
26543
26544 2010-12-21  Bruno Haible  <bruno@clisp.org>
26545
26546         New module 'roundl-ieee'.
26547         * modules/roundl-ieee: New file.
26548         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
26549         test whether roundl works according to ISO C 99 with IEC 60559.
26550         * m4/roundl-ieee.m4: New file.
26551         * modules/roundl-ieee-tests: New file.
26552         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
26553         * tests/test-roundl.c (main): Remove signbit tests.
26554         * modules/roundl-tests (Depends-on): Remove signbit.
26555         * doc/posix-functions/roundl.texi: Mention the new module.
26556
26557 2010-12-21  Bruno Haible  <bruno@clisp.org>
26558
26559         New module 'truncl-ieee'.
26560         * modules/truncl-ieee: New file.
26561         * modules/truncl-ieee-tests: New file.
26562         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
26563         * tests/test-truncl.c (main): Remove signbit tests.
26564         * modules/truncl-tests (Depends-on): Remove signbit.
26565         * doc/posix-functions/truncl.texi: Mention the new module.
26566
26567 2010-12-21  Bruno Haible  <bruno@clisp.org>
26568
26569         New module 'ceill-ieee'.
26570         * modules/ceill-ieee: New file.
26571         * modules/ceill-ieee-tests: New file.
26572         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
26573         * tests/test-ceill.c (main): Remove signbit tests.
26574         * modules/ceill-tests (Depends-on): Remove signbit.
26575         * doc/posix-functions/ceill.texi: Mention the new module.
26576
26577 2010-12-21  Bruno Haible  <bruno@clisp.org>
26578
26579         New module 'floorl-ieee'.
26580         * modules/floorl-ieee: New file.
26581         * modules/floorl-ieee-tests: New file.
26582         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
26583         * tests/test-floorl.c (main): Remove signbit tests.
26584         * modules/floorl-tests (Depends-on): Remove signbit.
26585         * doc/posix-functions/floorl.texi: Mention the new module.
26586
26587 2010-12-21  Bruno Haible  <bruno@clisp.org>
26588
26589         New module 'round-ieee'.
26590         * modules/round-ieee: New file.
26591         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
26592         whether round works according to ISO C 99 with IEC 60559.
26593         * m4/round-ieee.m4: New file.
26594         * modules/round-ieee-tests: New file.
26595         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
26596         * tests/test-round1.c (main): Remove signbit tests.
26597         * modules/round-tests (Depends-on): Remove 'signbit'.
26598         * doc/posix-functions/round.texi: Mention the new module.
26599
26600 2010-12-21  Bruno Haible  <bruno@clisp.org>
26601
26602         New module 'trunc-ieee'.
26603         * modules/trunc-ieee: New file.
26604         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
26605         whether trunc works according to ISO C 99 with IEC 60559.
26606         * m4/trunc-ieee.m4: New file.
26607         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
26608         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
26609         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
26610         * modules/trunc-ieee-tests: New file.
26611         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
26612         * tests/test-trunc1.c (main): Remove signbit tests.
26613         * modules/trunc-tests (Depends-on): Remove 'signbit'.
26614         * doc/posix-functions/trunc.texi: Mention the new module.
26615
26616 2010-12-21  Bruno Haible  <bruno@clisp.org>
26617
26618         New module 'ceil-ieee'.
26619         * modules/ceil-ieee: New file.
26620         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
26621         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
26622         ISO C 99 with IEC 60559.
26623         * m4/ceil-ieee.m4: New file.
26624         * modules/ceil (Files): Add lib/ceil.c.
26625         (Depends-on): Add 'float'.
26626         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26627         * lib/math.in.h (ceil): New declaration.
26628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
26629         REPLACE_CEIL.
26630         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
26631         * modules/ceil-ieee-tests: New file.
26632         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
26633         * tests/test-math-c++.cc: Check the signature of 'ceil'.
26634         * doc/posix-functions/ceil.texi: Mention the new module.
26635
26636 2010-12-21  Bruno Haible  <bruno@clisp.org>
26637
26638         New module 'floor-ieee'.
26639         * modules/floor-ieee: New file.
26640         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
26641         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
26642         ISO C 99 with IEC 60559.
26643         * m4/floor-ieee.m4: New file.
26644         * modules/floor (Files): Add lib/floor.c.
26645         (Depends-on): Add 'float'.
26646         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26647         * lib/math.in.h (floor): New declaration.
26648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
26649         REPLACE_FLOOR.
26650         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
26651         * modules/floor-ieee-tests: New file.
26652         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
26653         * tests/test-math-c++.cc: Check the signature of 'floor'.
26654         * doc/posix-functions/floor.texi: Mention the new module.
26655
26656 2010-12-21  Bruno Haible  <bruno@clisp.org>
26657
26658         New module 'roundf-ieee'.
26659         * modules/roundf-ieee: New file.
26660         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
26661         test whether roundf works according to ISO C 99 with IEC 60559.
26662         * m4/roundf-ieee.m4: New file.
26663         * modules/roundf-ieee-tests: New file.
26664         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
26665         * tests/test-roundf1.c (main): Remove signbit tests.
26666         * modules/roundf-tests (Depends-on): Remove 'signbit'.
26667         * doc/posix-functions/roundf.texi: Mention the new module.
26668
26669 2010-12-21  Bruno Haible  <bruno@clisp.org>
26670
26671         New module 'truncf-ieee'.
26672         * modules/truncf-ieee: New file.
26673         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
26674         test whether truncf works according to ISO C 99 with IEC 60559.
26675         * m4/truncf-ieee.m4: New file.
26676         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
26677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
26678         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
26679         * modules/truncf-ieee-tests: New file.
26680         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
26681         * tests/test-truncf1.c (main): Remove signbit tests.
26682         * modules/truncf-tests (Depends-on): Remove 'signbit'.
26683         * doc/posix-functions/truncf.texi: Mention the new module.
26684
26685 2010-12-21  Bruno Haible  <bruno@clisp.org>
26686
26687         New module 'ceilf-ieee'.
26688         * modules/ceilf-ieee: New file.
26689         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
26690         test whether ceilf works according to ISO C 99 with IEC 60559.
26691         * m4/ceilf-ieee.m4: New file.
26692         * modules/ceilf-ieee-tests: New file.
26693         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
26694         * tests/test-ceilf1.c (main): Remove signbit tests.
26695         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
26696         * doc/posix-functions/ceilf.texi: Mention the new module.
26697
26698 2010-12-21  Bruno Haible  <bruno@clisp.org>
26699
26700         New module 'floorf-ieee'.
26701         * modules/floorf-ieee: New file.
26702         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
26703         test whether floorf works according to ISO C 99 with IEC 60559.
26704         * m4/floorf-ieee.m4: New file.
26705         * modules/floorf-ieee-tests: New file.
26706         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
26707         * tests/test-floorf1.c (main): Remove signbit tests.
26708         * modules/floorf-tests (Depends-on): Remove 'signbit'.
26709         * doc/posix-functions/floorf.texi: Mention the new module.
26710
26711 2010-12-21  Bruno Haible  <bruno@clisp.org>
26712
26713         Support for minus zero in autoconf macros.
26714         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
26715         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
26716         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
26717         * tests/minus-zero.h: Update comments.
26718
26719 2010-12-21  Bruno Haible  <bruno@clisp.org>
26720
26721         Tests for module 'ceil'.
26722         * modules/ceil-tests: New file.
26723         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
26724         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
26725
26726 2010-12-21  Bruno Haible  <bruno@clisp.org>
26727
26728         Tests for module 'floor'.
26729         * modules/floor-tests: New file.
26730         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
26731         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
26732
26733 2010-12-21  Bruno Haible  <bruno@clisp.org>
26734
26735         math: Fix indentation.
26736         * lib/math.in.h (floorf): Fix indentation.
26737
26738 2010-12-21  Bruno Haible  <bruno@clisp.org>
26739
26740         Fix cross-compilation guesses on Solaris.
26741         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
26742         not match "solaris2.10".
26743         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26744         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
26745         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
26746
26747 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26748
26749         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
26750         This fixes a problem observed with the latest coreutils snapshot
26751         that caused a test to fail on Solaris 8.  src/csplit.c's call
26752         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
26753         earlier, instead of returning the number of bytes that would have
26754         been generated; this causes csplit to incorrectly report memory
26755         exhaustion.
26756         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
26757         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
26758         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
26759         comments to match.
26760         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
26761         Fix typo in matching older versions of Solaris: "solaris2.10"
26762         is matched by the shell pattern "solaris2.[0-9]*".  This matters
26763         only for guessing while cross-compiling.
26764         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
26765
26766 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
26767
26768         ftoastr: fix comment again
26769         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26770         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
26771         Also, simplify example a bit by using flags = 0.
26772
26773 2010-12-20  Bruno Haible  <bruno@clisp.org>
26774
26775         round*, trunc*: Update documentation regarding glibc.
26776         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
26777         * doc/posix-functions/round.texi: Likewise.
26778         * doc/posix-functions/roundl.texi: Likewise.
26779         * doc/posix-functions/truncf.texi: Likewise.
26780         * doc/posix-functions/trunc.texi: Likewise.
26781         * doc/posix-functions/truncl.texi: Likewise.
26782
26783 2010-12-20  Bruno Haible  <bruno@clisp.org>
26784
26785         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
26786         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
26787         * doc/posix-functions/round.texi: Likewise.
26788         * doc/posix-functions/roundl.texi: Likewise.
26789
26790 2010-12-20  Bruno Haible  <bruno@clisp.org>
26791
26792         ttyname_r: Add missing declaration on HP-UX 11.
26793         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
26794         HAVE_TTYNAME_R.
26795         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
26796         declared. Set HAVE_TTYNAME_R always.
26797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26798         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
26799         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
26800         HAVE_TTYNAME_R.
26801         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
26802
26803 2010-12-20  Bruno Haible  <bruno@clisp.org>
26804
26805         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
26806         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
26807         * doc/posix-functions/getlogin_r.texi: Likewise.
26808         * tests/test-getlogin.c: Include <errno.h>.
26809         (main): Avoid test failure on HP-UX 11.11.
26810         * tests/test-getlogin_r.c (main): Likewise.
26811
26812 2010-12-20  Bruno Haible  <bruno@clisp.org>
26813
26814         getlogin_r: Add missing declaration on HP-UX 11.
26815         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
26816         declared also when it exists as a function.
26817         * doc/posix-functions/getlogin_r.texi: Document this workaround.
26818
26819 2010-12-20  Bruno Haible  <bruno@clisp.org>
26820
26821         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
26822         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
26823         through wcrtomb.
26824
26825 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26826
26827         ftoastr: fix comment
26828         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26829         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
26830
26831 2010-12-19  Bruno Haible  <bruno@clisp.org>
26832
26833         isnan: Ensure it is a macro.
26834         * lib/math.in.h (isnan): Define as a macro if not already a macro.
26835         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
26836         Solaris.
26837
26838 2010-12-19  Bruno Haible  <bruno@clisp.org>
26839
26840         ldexpl test: Fix link error on OSF/1 5.1.
26841         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
26842
26843 2010-12-19  Bruno Haible  <bruno@clisp.org>
26844
26845         wctype: Make it work in C++ mode on OSF/1 5.1.
26846         * lib/wctype.in.h (iswblank): Declare but not define here.
26847         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
26848         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
26849         * modules/wctype (Files): Add lib/iswblank.c.
26850
26851 2010-12-19  Bruno Haible  <bruno@clisp.org>
26852
26853         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
26854         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
26855         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
26856
26857 2010-12-19  Bruno Haible  <bruno@clisp.org>
26858
26859         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
26860         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
26861         _POSIX_PII_SOCKET.
26862         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
26863         * doc/posix-functions/recvfrom.texi: Likewise.
26864         * doc/posix-functions/send.texi: Likewise.
26865         * doc/posix-functions/sendto.texi: Likewise.
26866
26867 2010-12-19  Bruno Haible  <bruno@clisp.org>
26868
26869         tcgetsid: Add missing declaration on OSF/1 5.1.
26870         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
26871         HAVE_TCGETSID.
26872         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
26873         Don't set HAVE_TCGETSID.
26874         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
26875         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
26876         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
26877         HAVE_TCGETSID.
26878         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
26879
26880 2010-12-19  Bruno Haible  <bruno@clisp.org>
26881
26882         stdio: Fix problem with popen() declaration on OSF/1 5.1.
26883         * lib/stdio.in.h: During the include_next statement, let recursive
26884         includes of this file include only the system header file.
26885
26886 2010-12-19  Bruno Haible  <bruno@clisp.org>
26887
26888         iconv_open: Fix regression from 2010-12-04.
26889         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
26890         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
26891
26892 2010-12-19  Bruno Haible  <bruno@clisp.org>
26893
26894         stdbool test: Avoid a gcc warning.
26895         * tests/test-stdbool.c (main): Fail if e1 is false.
26896         Reported by Jim Meyering.
26897
26898 2010-12-19  Jim Meyering  <meyering@redhat.com>
26899
26900         setenv: restore to working order
26901         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
26902         mistakenly removed.
26903         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
26904         HAVE_SETENV.
26905         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
26906         HAVE_SETENV.
26907
26908 2010-12-19  Bruno Haible  <bruno@clisp.org>
26909
26910         Document some different function declarations on OSF/1 5.1.
26911         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
26912         * doc/posix-functions/inet_ntop.texi: Likewise.
26913         * doc/posix-functions/gethostname.texi: Likewise.
26914         * lib/unistd.in.h (gethostname): Update comment.
26915
26916 2010-12-19  Bruno Haible  <bruno@clisp.org>
26917
26918         doc: Mention vasprintf-posix module.
26919         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
26920         the 'vasprintf-posix' module.
26921         * doc/glibc-functions/vasprintf.texi: Likewise.
26922
26923 2010-12-19  Bruno Haible  <bruno@clisp.org>
26924
26925         unsetenv: Add missing declaration on OSF/1 5.1.
26926         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
26927         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
26928         Don't set HAVE_UNSETENV. In the test program, set _BSD.
26929         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
26930         not HAVE_UNSETENV.
26931         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
26932         HAVE_UNSETENV.
26933         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
26934
26935 2010-12-19  Bruno Haible  <bruno@clisp.org>
26936
26937         setenv: Add missing declaration on OSF/1 5.1.
26938         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
26939         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
26940         declared. Don't set HAVE_SETENV.
26941         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
26942         not HAVE_SETENV.
26943         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
26944         HAVE_SETENV.
26945         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
26946
26947 2010-12-19  Bruno Haible  <bruno@clisp.org>
26948
26949         nl_langinfo tests: Avoid gcc warning.
26950         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
26951
26952 2010-12-19  Bruno Haible  <bruno@clisp.org>
26953
26954         mknod: Avoid error in C++ mode on OSF/1 with GCC.
26955         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
26956         _GL_CXXALIAS_SYS.
26957
26958 2010-12-19  Bruno Haible  <bruno@clisp.org>
26959
26960         stdbool: Relax test.
26961         * tests/test-stdbool.c (e): Don't require that casts from a variable's
26962         address to 'bool' work in static initializer, for compilers other than
26963         GCC.
26964
26965 2010-12-19  Bruno Haible  <bruno@clisp.org>
26966
26967         ftello: Add missing declaration on OSF/1 5.1.
26968         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
26969         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
26970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
26971         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
26972         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
26973
26974 2010-12-19  Bruno Haible  <bruno@clisp.org>
26975
26976         fseeko: Add missing declaration on OSF/1 5.1.
26977         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
26978         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
26979         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
26980         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
26981         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
26982
26983 2010-12-19  Bruno Haible  <bruno@clisp.org>
26984
26985         fchdir: Add missing declaration on OSF/1 5.1.
26986         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
26987         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
26988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
26989         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
26990         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
26991
26992 2010-12-19  Bruno Haible  <bruno@clisp.org>
26993
26994         relocatable-prog-wrapper: Separate from relocatable-prog.
26995         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
26996         uninstall-relocwrapper rule here.
26997         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
26998         Reported by Ian Beckwith <ianb@erislabs.net>.
26999
27000 2010-12-19  Bruno Haible  <bruno@clisp.org>
27001
27002         unistr/u8-mbsnlen: Add missing dependency.
27003         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
27004         Reported by Ian Beckwith <ianb@erislabs.net>.
27005
27006 2010-12-19  Bruno Haible  <bruno@clisp.org>
27007
27008         iconv: Make it possible again to use this module without 'iconv-h'.
27009         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
27010         if it is not defined.
27011         Reported by Ian Beckwith <ianb@erislabs.net>.
27012
27013 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27014
27015         acl: port to Solaris 8 when copying from tmpfs to ufs
27016         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
27017         error number.  Problem observed on Solaris 8 with latest
27018         coreutils, with "mv A B", where A is on a tmpfs file system and B
27019         is on a ufs file system.  This caused coreutils' mv/part-symlink
27020         test to fail.
27021
27022         tests: set fail=0 at start
27023         * tests/init.sh (setup_): Move fail=0 initialization here ...
27024         (mktempd_): ... from here, so that tests can rely on fail being
27025         set to 0 initially.  This fixes a problem in coreutils; see:
27026         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
27027
27028 2010-12-18  Bruno Haible  <bruno@clisp.org>
27029
27030         memmem-simple: Stylistic changes.
27031         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
27032         Fix preprocessor directive indentation.
27033
27034 2010-12-15  Pádraig Brady <P@draigBrady.com>
27035
27036         memmem, memmem-simple: reorganize and expand empty needle check
27037         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
27038         functional checks to memmem-simple so that one has a fully functional
27039         memmem by using just this module.
27040         Restrict the performance only check to the memmem module.
27041         Also expand the empty needle check to ensure the correct
27042         pointer is returned, not just a non NULL pointer.
27043         * doc/glibc-functions/memmem.texi: Rearrange the portability
27044         documentation to correlate with the rearranged checks.
27045         Clarify exactly how the memmem and memmem-simple modules
27046         relate to each other.
27047
27048 2010-12-15  Pádraig Brady <P@draigBrady.com>
27049             Bruno Haible  <bruno@clisp.org>
27050
27051         Improve cross-compilation guesses for uClibc.
27052         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
27053         that uClibc does not have the glibc bug.
27054         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
27055         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
27056
27057 2010-12-14  Eric Blake  <eblake@redhat.com>
27058
27059         configmake: provide fallbacks for oldest supported autotools
27060         * m4/configmake.m4: New file.
27061         * modules/configmake (Files): Ship it.
27062         (configure.ac): Use it to guarantee fallbacks.
27063
27064 2010-12-13  Pádraig Brady <P@draigBrady.com>
27065
27066         read-file: Improve handling of large files
27067         * lib/read-file.c (fread_file): Minimize realloc()s
27068         for regular files, and better manage sizes around SIZE_MAX.
27069
27070 2010-12-13  Eric Blake  <eblake@redhat.com>
27071
27072         cloexec, fcntl: relax license
27073         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
27074         consent from all contributors.
27075         * modules/fcntl (License): Likewise.
27076
27077 2010-12-10  Bruno Haible  <bruno@clisp.org>
27078
27079         Tests for module 'pipe-posix'.
27080         * modules/pipe-posix-tests: New file.
27081         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
27082
27083 2010-12-10  Bruno Haible  <bruno@clisp.org>
27084
27085         pipe-posix: Make it work in C++ mode.
27086         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
27087         (pipe): Use common idiom, not a macro definition.
27088         * lib/pipe.c: New file.
27089         * m4/pipe.m4: New file.
27090         * modules/pipe-posix (Description): Enhance.
27091         (Files): Add lib/pipe.c, m4/pipe.m4.
27092         (configure.ac): Invoke gl_FUNC_PIPE.
27093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
27094         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
27095         * tests/test-unistd-c++.cc: Check the signature of pipe.
27096
27097 2010-12-10  Bruno Haible  <bruno@clisp.org>
27098
27099         Rename module 'pipe' to 'spawn-pipe'.
27100         * modules/spawn-pipe: New file, renamed from modules/pipe.
27101         (Files, configure.ac, Makefile.am): Update.
27102         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
27103         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
27104         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
27105         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
27106         "spawn-pipe.h" instead of "pipe.h".
27107         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
27108         to gl_SPAWN_PIPE.
27109         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
27110         (Files, Makefile.am): Update.
27111         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
27112         Update.
27113         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
27114         Include "spawn-pipe.h" instead of "pipe.h".
27115         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
27116         * lib/javacomp.c: Likewise.
27117         * lib/javaversion.c: Likewise.
27118         * lib/pipe-filter-gi.c: Likewise.
27119         * lib/pipe-filter-ii.c: Likewise.
27120         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
27121         * modules/javacomp (Depends-on): Likewise.
27122         * modules/javaversion (Depends-on): Likewise.
27123         * modules/pipe-filter-gi (Depends-on): Likewise.
27124         * modules/pipe-filter-ii (Depends-on): Likewise.
27125         * MODULES.html.sh (Executing programs): Update.
27126         * NEWS: Mention the change.
27127
27128 2010-12-10  Eric Blake  <eblake@redhat.com>
27129
27130         pipe-posix: new module
27131         * modules/pipe-posix: New file.
27132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
27133         (gl_UNISTD_H): Check for declaration.
27134         * modules/unistd (Makefile.am): Substitute it.
27135         * lib/unistd.in.h (pipe): Provide it for mingw.
27136         * doc/posix-functions/pipe.texi (pipe): Update documentation.
27137         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
27138
27139 2010-12-07  Bruno Haible  <bruno@clisp.org>
27140
27141         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
27142         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
27143         u8_strcmp_gnu.
27144         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
27145
27146 2010-12-06  Bruno Haible  <bruno@clisp.org>
27147
27148         Update internal documentation.
27149         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
27150
27151 2010-12-04  Bruno Haible  <bruno@clisp.org>
27152
27153         Put more information about failed tests into the test return codes.
27154         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
27155         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
27156         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
27157         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27158         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
27159         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27160         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27161         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27162         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
27163         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27164         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
27165         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27166         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
27167         * m4/stdint.m4 (gl_STDINT_H): Likewise.
27168         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
27169         returns a bit mask.
27170         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
27171         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
27172         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
27173         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
27174         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27175         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27176         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27177         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27178         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27179         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27180         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27181         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27182         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27183         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27184         * m4/link.m4 (gl_FUNC_LINK): Likewise.
27185         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27186         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
27187         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
27188         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27189         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
27190         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27191         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27192         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
27193         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
27194         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27195         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27196         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
27197         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27198         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27199         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
27200         gl_PRINTF_PRECISION): Likewise.
27201         * m4/regex.m4 (gl_REGEX): Likewise.
27202         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27203         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
27204         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
27205         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27206         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27207         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27208         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
27209         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
27210         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27211         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27212         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27213         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27214         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27215         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
27216         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27217         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27218         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27219         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27220         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27221         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
27222         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
27223         enumerated value.
27224         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
27225
27226 2010-12-04  Bruno Haible  <bruno@clisp.org>
27227
27228         Update for Solaris 11 2010-11.
27229         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
27230         Express, released in November 2010.
27231
27232 2010-12-04  Bruno Haible  <bruno@clisp.org>
27233
27234         nproc: Relax license.
27235         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
27236         and Paul Eggert.
27237         Requested by Ludovic Courtès <ludo@gnu.org>.
27238
27239 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
27240
27241         utimecmp: fine-grained src to nearby coarse-grained dest
27242
27243         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
27244         and the source is on a file system with higher-resolution time
27245         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
27246         not work, and the time stamps are close together, the algorithm to
27247         determine the exact resolution from the read-back mtime was buggy:
27248         it had a "!=" where it should have had an "==".  This bug has been
27249         in the code ever since it was introduced to gnulib.
27250         Problem reported by Dan Jacobson in
27251         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
27252
27253 2010-11-30  Bruno Haible  <bruno@clisp.org>
27254
27255         strerror_r-posix: Fix autoconf test.
27256         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
27257
27258 2010-11-28  Bruno Haible  <bruno@clisp.org>
27259             Paul Eggert  <eggert@cs.ucla.edu>
27260
27261         Tests for module 'getdomainname'.
27262         * modules/getdomainname-tests: New file.
27263         * tests/test-getdomainname.c: New file, based on
27264         tests/test-gethostname.c.
27265
27266 2010-11-28  Bruno Haible  <bruno@clisp.org>
27267             Paul Eggert  <eggert@cs.ucla.edu>
27268
27269         getdomainname: Use the system function when possible.
27270         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
27271         (getdomainname): Replace if needed. Provide the declaration if it is
27272         missing. Don't use _GL_CXXALIAS_SYS_CAST.
27273         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
27274         (getdomainname): When the system has getdomainname, call the system
27275         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
27276         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27277         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
27278         found in libnsl. Look for the declaration also in <netdb.h>. Replace
27279         the function if its second argument is of type 'int' or if it is found
27280         in libnsl.
27281         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
27282         <sys/systeminfo.h> and sysinfo().
27283         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
27284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27285         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
27286         HAVE_GETDOMAINNAME.
27287         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
27288         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
27289         * doc/glibc-functions/getdomainname.texi: Document the problems with
27290         the getdomainname declaration.
27291
27292 2010-11-28  Bruno Haible  <bruno@clisp.org>
27293
27294         sys_socket: Ensure ss_family field on AIX.
27295         * lib/sys_socket.in.h (ss_family): New macro definition.
27296         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
27297         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
27298         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27299         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27300         * modules/sys_socket (Makefile.am): Substitute
27301         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27302         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
27303
27304 2010-11-27  Bruno Haible  <bruno@clisp.org>
27305
27306         readline: Improve configure output.
27307         * m4/readline.m4 (gl_FUNC_READLINE): Make the
27308         "checking for readline..." result understandable.
27309
27310 2010-11-27  Bruno Haible  <bruno@clisp.org>
27311
27312         *printf-posix: Detect a bug on Solaris 10/x86.
27313         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
27314         for floating-point output.
27315         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
27316         directive.
27317         * tests/test-snprintf-posix.h (test_function): Likewise.
27318         * tests/test-sprintf-posix.h (test_function): Likewise.
27319         * tests/test-vasprintf-posix.c (test_function): Likewise.
27320         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
27321         * doc/posix-functions/printf.texi: Likewise.
27322         * doc/posix-functions/snprintf.texi: Likewise.
27323         * doc/posix-functions/sprintf.texi: Likewise.
27324         * doc/posix-functions/vfprintf.texi: Likewise.
27325         * doc/posix-functions/vprintf.texi: Likewise.
27326         * doc/posix-functions/vsnprintf.texi: Likewise.
27327         * doc/posix-functions/vsprintf.texi: Likewise.
27328         * doc/glibc-functions/obstack_printf.texi: Likewise.
27329         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27330
27331 2010-11-27  Bruno Haible  <bruno@clisp.org>
27332
27333         Fix link error when module libunistring-optional is in use.
27334         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
27335         * modules/striconveha-tests (Makefile.am): Likewise.
27336
27337 2010-11-27  Bruno Haible  <bruno@clisp.org>
27338
27339         regex: Mention link dependencies.
27340         * modules/regex (Link): New section.
27341         * modules/rpmatch (Link): Likewise.
27342         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
27343
27344 2010-11-27  Bruno Haible  <bruno@clisp.org>
27345
27346         ftoastr: Fix compilation error on Solaris.
27347         * lib/ftoastr.c: Include <config.h>.
27348
27349 2010-11-27  Bruno Haible  <bruno@clisp.org>
27350
27351         getloadavg: Update documentation.
27352         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
27353
27354 2010-11-27  Bruno Haible  <bruno@clisp.org>
27355
27356         sys_socket: Fix test whether the functions are declared.
27357         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
27358         not <sys/select.h>.
27359
27360 2010-11-27  Bruno Haible  <bruno@clisp.org>
27361
27362         getpass: Make sure to get system declaration on some platforms.
27363         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
27364         gl_USE_SYSTEM_EXTENSIONS.
27365         * modules/getpass (Depends-on): Add extensions.
27366
27367 2010-11-26  Bruno Haible  <bruno@clisp.org>
27368
27369         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
27370         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
27371         'iconv' module is present.
27372         (ICONV_CONST): New macro.
27373         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
27374         ICONV_CONST.
27375         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
27376         set ICONV_CONST.
27377         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
27378         here.
27379         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
27380         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
27381         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
27382         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
27383         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
27384         present.
27385
27386 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27387
27388         ftoastr: comment fix
27389         * lib/ftoastr.c: "little" -> "little or no" in comment
27390
27391 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
27392
27393         stdint: port to GCC 4.3 + OSX + Octave
27394         On this platform, stdint.h is buggy and defines int64_t to long
27395         long int.  The replacement defined it to long int, causing
27396         problems with C++ style name mangling.  Instead, trust the system
27397         definition if INT64_MAX is defined, and likewise for the unsigned
27398         variant.   Problem reported by Jarno Rajahalme in
27399         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
27400         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
27401         and don't mess with int64_t and INT64_MAX in this case.
27402         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
27403
27404 2010-11-24  Bruno Haible  <bruno@clisp.org>
27405
27406         doc: Corrections regarding MacOS X 10.4 and 10.5.
27407         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
27408         MacOS X.
27409         Reported by Simon Josefsson.
27410
27411 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
27412
27413         Uninstall ".bin" files installed by relocwrapper.
27414         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
27415         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
27416         unless it is already there.
27417
27418 2010-11-21  Bruno Haible  <bruno@clisp.org>
27419
27420         Update for NetBSD 5.0.
27421         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27422         NetBSD; the test fails on NetBSD 5.0.
27423         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27424         about NetBSD.
27425
27426 2010-11-21  Bruno Haible  <bruno@clisp.org>
27427
27428         Update for HP-UX 11.23 and HP-UX 11.31.
27429         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
27430         HP-UX.
27431
27432 2010-11-21  Bruno Haible  <bruno@clisp.org>
27433
27434         Update for MacOS X 10.5.
27435         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27436         MacOS X; the test fails on MacOS X 10.5.8.
27437         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27438         about MacOS X.
27439
27440 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
27441
27442         bootstrap: add bootstrap_sync option.
27443         See discussion at
27444         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
27445         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
27446         * build-aux/bootstrap: Accept --bootstrap-sync to update
27447         bootstrap if it is not identical to the local gnulib's
27448         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
27449         enable this by default.  Accept --no-bootstrap-sync to disable
27450         it.
27451
27452 2010-11-20  Bruno Haible  <bruno@clisp.org>
27453
27454         Ensure that <features.h> is included before __GLIBC__ is tested.
27455         * lib/printf-parse.h: Include <features.h>.
27456         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
27457         Reported by Mike Frysinger <vapier@gentoo.org>.
27458
27459         Ensure that <features.h> is included before __GLIBC__ is tested.
27460         * lib/wchar.in.h: Include <features.h>.
27461         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
27462         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
27463         Reported by Mike Frysinger <vapier@gentoo.org>.
27464
27465         Ensure that <features.h> is included before __GLIBC__ is tested.
27466         * lib/arpa_inet.in.h: Include <features.h>.
27467         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
27468         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
27469         Reported by Mike Frysinger <vapier@gentoo.org>.
27470
27471         Ensure that <features.h> is included before __GLIBC__ is tested.
27472         * build-aux/link-warning.h: Include <features.h>.
27473         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
27474         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
27475         Reported by Mike Frysinger <vapier@gentoo.org>.
27476
27477         Ensure that <features.h> is included before __GLIBC__ is tested.
27478         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
27479         Reported by Mike Frysinger <vapier@gentoo.org>.
27480
27481 2010-11-20  Bruno Haible  <bruno@clisp.org>
27482
27483         memmem: Fix autoconf test.
27484         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
27485
27486 2010-11-20  Bruno Haible  <bruno@clisp.org>
27487
27488         Port to uClibc.
27489         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
27490         * lib/fcntl.in.h: Likewise.
27491         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
27492         * lib/mbrtowc.c (mbrtowc): Likewise.
27493         * lib/relocatable.c (find_shared_library_fullname): Likewise.
27494         * lib/strerror_r.c: Likewise.
27495         * lib/unistr/u8-strnlen.c: Likewise.
27496         * lib/vasnprintf.c (decimal_point_char): Likewise.
27497         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27498         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27499         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27500         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27501         * tests/test-sigaction.c (handler, main): Likewise.
27502         * lib/freading.h: Treat uClibc like a non-glibc platform.
27503         * lib/freading.c: Likewise.
27504         * lib/gettext.h: Likewise.
27505         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
27506         Likewise.
27507         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
27508         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27509         * lib/propername.c (proper_name_utf8): Likewise.
27510         * lib/spawn.in.h: Likewise.
27511         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
27512         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
27513         mem_cd_iconveh_internal): Likewise.
27514         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
27515         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27516         strstr, strcasestr): Likewise.
27517         * lib/unicodeio.c (unicode_to_mb): Likewise.
27518         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
27519         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
27520         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
27521         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
27522         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
27523         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
27524         * lib/unistr/u8-stpncpy.c: Likewise.
27525         * lib/vasnprintf.c (VASNPRINTF): Likewise.
27526         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
27527         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27528         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27529         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27530         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
27531         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
27532         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
27533         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
27534         Likewise.
27535         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27536         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27537         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27538         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27539         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27540         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27541         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27542         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
27543         * tests/test-getopt.h (OPTIND_MIN): Likewise.
27544         * tests/test-striconveha.c (main): Likewise.
27545         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27546         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
27547         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
27548         * doc/posix-functions/getline.texi: Likewise.
27549         Reported by Mike Frysinger <vapier@gentoo.org>.
27550
27551 2010-11-20  Bruno Haible  <bruno@clisp.org>
27552
27553         nproc: Fix condition.
27554         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
27555         HAVE_PTHREAD_AFFINITY_NP.
27556
27557 2010-11-20  Bruno Haible  <bruno@clisp.org>
27558
27559         Fix a comment.
27560         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
27561
27562 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
27563
27564         ftoastr: don't assume snprintf
27565         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
27566         Implement a subset of snprintf here, by using sprintf safely.
27567         * modules/ftoastr (Depends-on): Remove snprintf.
27568
27569 2010-11-19  Jim Meyering  <meyering@redhat.com>
27570
27571         test-rename.h: fix compilation failure
27572         * tests/test-rename.h (test_rename): Add omitted "}".
27573
27574 2010-11-17  Jim Meyering  <meyering@redhat.com>
27575
27576         maint.mk: add a URL discussing the no-@acronym policy
27577         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
27578
27579 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
27580
27581         ftoastr: depend on snprintf, improve comments
27582         * lib/ftoastr.c: Also mention Loitsch's draft.
27583         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
27584         needed in the current implementation, but it might simplify
27585         speeding up the code later.
27586         * modules/ftoastr: Depend on snprintf; this improves portability.
27587         Suggested by Bruno Haible in the same email.
27588
27589         ftoastr: port to hosts lacking strtof and strtold
27590         Problem reported by Bruno Haible in
27591         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
27592         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
27593         environment and strtold (and presumably strtof) are not available.
27594         * modules/ftoastr (Files): Add m4/c-strtod.m4.
27595         (configure.ac): Require gl_C99_STRTOLD.
27596
27597 2010-11-18  Bruno Haible  <bruno@clisp.org>
27598
27599         c-strtold: Avoid link error on AIX 7.
27600         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
27601         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
27602         (gl_C_STRTOLD): Test whether strtold_l exists.
27603         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27604
27605 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27606
27607         intprops: new macro INT_BITS_STRLEN_BOUND
27608         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
27609         ftoastr.h.  This exposes an internal of intprops.h that was formerly
27610         not exposed.  Also, it uses a slightly tighter bound than before;
27611         though this makes no practical difference, we might as well be as
27612         tight as we easily can.
27613
27614         ftoastr: new module, for lossless conversion of floats to short strings
27615         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
27616         * modules/ftoastr: New files.
27617
27618 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27619
27620         bootstrap: port to Solaris sed
27621         * build-aux/bootstrap (get_version): Port to Solaris sed.
27622         See Ralf Wildenhues's note in
27623         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
27624
27625 2010-11-14  Jim Meyering  <meyering@redhat.com>
27626
27627         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
27628         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
27629         and move definition closer to sole use.
27630
27631 2010-11-13  Jim Meyering  <meyering@redhat.com>
27632
27633         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
27634         Now we require at least autoconf-2.59, which means the work-around
27635         is no longer needed.
27636         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
27637         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27638         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
27639         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
27640         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
27641
27642 2010-11-13  Bruno Haible  <bruno@clisp.org>
27643
27644         rename, renameat: Avoid test failures at NFS mounted locations.
27645         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
27646         functions.
27647         (test_rename): Use assert_nonexistent.
27648         * tests/test-rename.c: Include <dirent.h>.
27649         * tests/test-renameat.c: Likewise.
27650         Reported by Gary V. Vaughan <gary@gnu.org>.
27651
27652         rename, renameat: Document Linux bug with NFS
27653         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
27654         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
27655         * doc/posix-functions/renameat.texi: Likewise.
27656         Suggested by Eric Blake.
27657
27658 2010-11-13  Bruno Haible  <bruno@clisp.org>
27659
27660         rename test: Add comments.
27661         * tests/test-rename.h (test_rename): Add structure and comments.
27662
27663 2010-11-13  Eric Blake  <eblake@redhat.com>
27664
27665         maintainer-makefile: cover a few more files
27666         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
27667         scripts generated within C files, for libvirt.
27668
27669 2010-11-13  Bruno Haible  <bruno@clisp.org>
27670
27671         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
27672         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
27673         character, return the number of bytes that belong together, not always
27674         1.
27675         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
27676         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
27677         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
27678         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
27679         number of bytes of an invalid character.
27680         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
27681         (main): Invoke it.
27682         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
27683         results.
27684         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
27685         malformed byte sequences.
27686         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
27687         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
27688         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
27689         Reported by Ben Pfaff and Paolo Bonzini.
27690
27691 2010-11-13  Bruno Haible  <bruno@clisp.org>
27692
27693         openat: Work around glibc bug with fchownat() and empty file names.
27694         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
27695         (gl_FUNC_FCHOWNAT): Invoke it.
27696         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
27697         * doc/posix-functions/fchownat.texi: Document the glibc bug.
27698         Reported by Gary V. Vaughan <gary@gnu.org>.
27699
27700 2010-11-13  Bruno Haible  <bruno@clisp.org>
27701
27702         openat: Ensure autoconf macro ordering.
27703         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
27704         gl_USE_SYSTEM_EXTENSIONS.
27705         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
27706
27707 2010-11-13  Bruno Haible  <bruno@clisp.org>
27708
27709         Update comments.
27710         * lib/unistr/u8-check.c: Update file name in comments.
27711         * lib/unistr/u8-mblen.c: Likewise.
27712         * lib/unistr/u8-prev.c: Likewise.
27713         * lib/unistr/u8-strmblen.c: Likewise.
27714         * lib/unistr/u8-strmbtouc.c: Likewise.
27715
27716 2010-11-13  Jim Meyering  <meyering@redhat.com>
27717
27718         tests: avoid test failure on Solaris 10 due to lack of PATH export
27719         * tests/test-update-copyright.sh: Don't forget to export PATH.
27720
27721         init.sh: ensure that IFS is defined, just in case...
27722         * tests/init.sh (setup_): Ensure that IFS is defined,
27723         so that saving and restoring it works as expected.  This
27724         appears to be useful at least for an old version of dash
27725         from a long time ago (RH 6).  See here for details:
27726         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
27727
27728         maint.mk: tighten "test a == b" check
27729         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
27730         test to files that contain something like #!/bin/sh.
27731         Without this, coreutils would get two false positives in
27732         the comments of C source files.
27733
27734 2010-11-12  Eric Blake  <eblake@redhat.com>
27735
27736         bootstrap: fix typo in previous attempt
27737         * build-aux/bootstrap (buildreq): Correct the grouping.
27738         Reported by Paul Eggert.
27739
27740         maintainer-makefile: prohibit test x == x
27741         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
27742         Based on a report by Matthias Bolte.
27743
27744         bootstrap: allow FreeBSD gzip
27745         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
27746         which has no '.' and goes to stderr.
27747         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
27748         Reported by Matthias Bolte.
27749
27750         maintainer-makefile: check for i18n setup
27751         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
27752         will likely work.
27753
27754 2010-11-12  Bruno Haible  <bruno@clisp.org>
27755
27756         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
27757         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
27758         * lib/nanosleep.c (nanosleep): Likewise.
27759
27760 2010-11-11  Bruno Haible  <bruno@clisp.org>
27761
27762         fcntl-h: Fix for use of C++ on glibc systems.
27763         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27764         also on glibc systems in C++ mode.
27765         Reported by Gary V. Vaughan <gary@gnu.org>.
27766
27767 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27768
27769         mknod: avoid false failure with dash
27770         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
27771
27772 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
27773
27774         unlink: Fix "is it should" typo in diagnostic.
27775         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
27776         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
27777
27778 2010-11-11  Bruno Haible  <bruno@clisp.org>
27779
27780         Tests for module 'strerror_r-posix'.
27781         * modules/strerror_r-posix-tests: New file.
27782         * tests/test-strerror_r.c: New file.
27783         * tests/test-string-c++.cc: Check the signature of strerror_r.
27784
27785         New module 'strerror_r-posix'.
27786         * lib/string.in.h (strerror_r): New declaration.
27787         * lib/strerror_r.c: New file.
27788         * m4/strerror_r.m4: New file.
27789         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
27790         of strerror_r.
27791         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
27792         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27793         * modules/strerror_r-posix: New file.
27794         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
27795         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27796         * doc/posix-functions/strerror_r.texi: Mention the new module and the
27797         portability problems.
27798
27799 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
27800
27801         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
27802         line is also considered for output. Quoted function name in shell
27803         command, so temporary files for functions like MyClass::operator()
27804         are removed correctly without errors.
27805
27806 2010-11-09  Bruno Haible  <bruno@clisp.org>
27807
27808         * doc/posix-functions/strerror.texi: List more failing platforms.
27809
27810         * doc/posix-functions/strerror.texi: Add a comment.
27811
27812 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27813
27814         fdopendir: fix bug on MacOS X when low on file descriptors
27815
27816         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
27817         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
27818         All callers changed.
27819         (fdopendir): Invoke save_cwd at the top level, not after using
27820         multiple dup() calls to use up file descriptors.  Then retry
27821         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
27822         less than the maximum number of open file descriptors, because
27823         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
27824         on Mac OS X 10.6.4 for tar 1.24
27825         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
27826         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
27827         and for tar 1.25
27828         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
27829
27830 2010-11-07  Bruno Haible  <bruno@clisp.org>
27831
27832         vasnprintf: Support I flag on glibc systems.
27833         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
27834         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
27835         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
27836         snprintf function.
27837         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
27838         glibc systems.
27839         * tests/test-vasnprintf-posix3.c: New file.
27840         * modules/vasnprintf-posix-tests (Files): Add it.
27841         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
27842
27843 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27844
27845         [html] Fix copy/paste bug: Use unique name for compiler warnings.
27846         * MODULES.html.sh: For compiler warnings, use name
27847         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
27848
27849 2010-11-05  Eric Blake  <eblake@redhat.com>
27850
27851         ceil, floor: avoid spurious failure with icc
27852         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
27853         [denormals-as-zero] when optimizing without -mieee-fp option.
27854         * tests/test-floorf2.c (floorf_reference): Likewise.
27855         * tests/test-ceilf1.c (dummy): New function.
27856         (main): Use it to outsmart icc's optimization.
27857         * tests/test-floorf1.c (dummy, main): Likewise.
27858
27859         tests: require working signbit
27860         * modules/ceilf-tests (Depends-on): Add signbit.
27861         * modules/ceill-tests (Depends-on): Likewise.
27862         * modules/floorf-tests (Depends-on): Likewise.
27863         * modules/floorl-tests (Depends-on): Likewise.
27864         * modules/round-tests (Depends-on): Likewise.
27865         * modules/roundf-tests (Depends-on): Likewise.
27866         * modules/roundl-tests (Depends-on): Likewise.
27867         * modules/trunc-tests (Depends-on): Likewise.
27868         * modules/truncf-tests (Depends-on): Likewise.
27869         * modules/truncl-tests (Depends-on): Likewise.
27870
27871         strtod: work around icc bug
27872         * lib/strtod.c (minus_zero): Define to working value.
27873         (strtod): Use it to avoid icc bug.
27874
27875         copysign: enhance tests
27876         * modules/copysign-tests (Files): Add minus-zero.h.
27877         * tests/test-copysign.c (main): Also test zeros.
27878
27879 2010-11-04  Eric Blake  <eblake@redhat.com>
27880
27881         ceil, floor, round, trunc: enhance tests of -0
27882         * tests/test-ceilf1.c (main): Ensure correct sign of result.
27883         * tests/test-ceill.c (main): Likewise.
27884         * tests/test-floorf1.c (main): Likewise.
27885         * tests/test-floorl.c (main): Likewise.
27886         * tests/test-round1.c (main): Likewise.
27887         * tests/test-roundf1.c (main): Likewise.
27888         * tests/test-roundl.c (main): Likewise.
27889         * tests/test-trunc1.c (main): Likewise.
27890         * tests/test-truncf1.c (main): Likewise.
27891         * tests/test-truncl.c (main): Likewise.
27892
27893 2010-11-04  Eric Blake  <eblake@redhat.com>
27894
27895         frexp, tests: work around ICC bug with -zero
27896         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
27897         works with more compilers.
27898         * tests/minus-zero.h: New file.
27899         * modules/ceilf-tests (Files): Include it.
27900         * modules/ceill-tests (Files): Likewise.
27901         * modules/floorf-tests (Files): Likewise.
27902         * modules/floorl-tests (Files): Likewise.
27903         * modules/frexp-nolibm-tests (Files): Likewise.
27904         * modules/frexp-tests (Files): Likewise.
27905         * modules/frexpl-nolibm-tests (Files): Likewise.
27906         * modules/frexpl-tests (Files): Likewise.
27907         * modules/isnan-tests (Files): Likewise.
27908         * modules/isnand-nolibm-tests (Files): Likewise.
27909         * modules/isnand-tests (Files): Likewise.
27910         * modules/isnanf-nolibm-tests (Files): Likewise.
27911         * modules/isnanf-tests (Files): Likewise.
27912         * modules/isnanl-nolibm-tests (Files): Likewise.
27913         * modules/isnanl-tests (Files): Likewise.
27914         * modules/round-tests (Files): Likewise.
27915         * modules/roundf-tests (Files): Likewise.
27916         * modules/roundl-tests (Files): Likewise.
27917         * modules/ldexpl-tests (Files): Likewise.
27918         * modules/signbit-tests (Files): Likewise.
27919         * modules/snprintf-posix-tests (Files): Likewise.
27920         * modules/sprintf-posix-tests (Files): Likewise.
27921         * modules/strtod-tests (Files): Likewise.
27922         * modules/trunc-tests (Files): Likewise.
27923         * modules/truncf-tests (Files): Likewise.
27924         * modules/truncl-tests (Files): Likewise.
27925         * modules/vsnprintf-posix-tests (Files): Likewise.
27926         * modules/vsprintf-posix-tests (Files): Likewise.
27927         * modules/vasnprintf-posix-tests (Files): Likewise.
27928         * modules/vasprintf-posix-tests (Files): Likewise.
27929         * tests/test-ceilf1.c (main): Use it.
27930         * tests/test-ceill.c (main): Likewise.
27931         * tests/test-floorf1.c (main): Likewise.
27932         * tests/test-floorl.c (main): Likewise.
27933         * tests/test-frexp.c (main): Likewise.
27934         * tests/test-frexpl.c (main): Likewise.
27935         * tests/test-isnan.c (main): Likewise.
27936         * tests/test-isnand.h (main): Likewise.
27937         * tests/test-isnanf.h (main): Likewise.
27938         * tests/test-isnanl.h (main): Likewise.
27939         * tests/test-ldexpl.c (main): Likewise.
27940         * tests/test-round.c (main): Likewise.
27941         * tests/test-roundf.c (main): Likewise.
27942         * tests/test-roundl.c (main): Likewise.
27943         * tests/test-signbit.c (test_signbitf, test_signbitd)
27944         (test_signbitl): Likewise.
27945         * tests/test-snprintf-posix.h (test_function): Likewise.
27946         * tests/test-sprintf-posix.h (test_function): Likewise.
27947         * tests/test-strtod.c (main): Likewise.
27948         * tests/test-trunc1.c (main): Likewise.
27949         * tests/test-truncf1.c (main): Likewise.
27950         * tests/test-truncl.c (main): Likewise.
27951
27952         isnanl: work around icc bug
27953         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
27954
27955 2010-11-03  Eric Blake  <eblake@redhat.com>
27956
27957         tests: fix compiler warnings
27958         * tests/test-getopt.h (test_getopt): Fix condition.
27959         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27960         * tests/test-pipe2.c (main): Likewise.
27961         * tests/test-quotearg-simple.c (main): Avoid icc warning.
27962
27963         utimens: fix broken m4 test
27964         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
27965
27966 2010-10-28  Bruno Haible  <bruno@clisp.org>
27967
27968         posix_spawn*, getdtablesize: Relax license.
27969         * modules/posix_spawn (License): Change to LGPLv2+.
27970         * modules/posix_spawnp (License): Likewise.
27971         * modules/posix_spawn-internal (License): Likewise.
27972         * modules/posix_spawnattr_init (License): Likewise.
27973         * modules/posix_spawnattr_getflags (License): Likewise.
27974         * modules/posix_spawnattr_setflags (License): Likewise.
27975         * modules/posix_spawnattr_getpgroup (License): Likewise.
27976         * modules/posix_spawnattr_setpgroup (License): Likewise.
27977         * modules/posix_spawnattr_getschedparam (License): Likewise.
27978         * modules/posix_spawnattr_setschedparam (License): Likewise.
27979         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
27980         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
27981         * modules/posix_spawnattr_getsigdefault (License): Likewise.
27982         * modules/posix_spawnattr_setsigdefault (License): Likewise.
27983         * modules/posix_spawnattr_getsigmask (License): Likewise.
27984         * modules/posix_spawnattr_setsigmask (License): Likewise.
27985         * modules/posix_spawnattr_destroy (License): Likewise.
27986         * modules/posix_spawn_file_actions_init (License): Likewise.
27987         * modules/posix_spawn_file_actions_addclose (License): Likewise.
27988         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
27989         * modules/posix_spawn_file_actions_addopen (License): Likewise.
27990         * modules/posix_spawn_file_actions_destroy (License): Likewise.
27991         * modules/getdtablesize (License): Likewise.
27992         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
27993
27994 2010-10-26  Bruno Haible  <bruno@clisp.org>
27995
27996         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
27997         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
27998         Cygwin and mingw.
27999         Suggested by Eric Blake.
28000
28001 2010-10-26  Bruno Haible  <bruno@clisp.org>
28002
28003         stdio: Work around compilation error due to renameat() on Solaris 10.
28004         * lib/stdio.in.h: Include <unistd.h> on Solaris.
28005         * lib/renameat.c: Don't include <unistd.h> here.
28006         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
28007         Reported by Paul Eggert and Eric Blake.
28008
28009 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
28010
28011         renameat: port to Solaris 10, which declares renameat in unistd.h
28012
28013         * lib/renameat.c: Include unistd.h before stdio.h, because
28014         Solaris 10 declares renameat in unistd.h.  Problem encountered
28015         when building GNU tar 1.24 on Solaris 10.
28016
28017 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28018
28019         fdopendir: fix C89 compilation
28020         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
28021         compilers.
28022
28023 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
28024
28025         inttostr: simplify by removing unnecessary redundancy
28026         * lib/anytostr.c: Don't include verify.h.
28027         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
28028         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
28029         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
28030         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
28031         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
28032         Likewise.
28033         * modules/inttostr (Depends-on): Remove 'verify'.
28034
28035 2010-10-23  Bruno Haible  <bruno@clisp.org>
28036
28037         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
28038         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
28039         Reported by Eric Blake.
28040
28041 2010-10-23  Bruno Haible  <bruno@clisp.org>
28042
28043         Tests: Fix LOCALE_JA on MirBSD 10.
28044         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
28045         to an UTF-8 locale.
28046         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
28047         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28048         Reported by Eric Blake.
28049
28050 2010-10-21  Bruno Haible  <bruno@clisp.org>
28051
28052         nl_langinfo test: Avoid test failure on NetBSD 5.
28053         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
28054         Reported by Eric Blake.
28055
28056 2010-10-21  Eric Blake  <eblake@redhat.com>
28057
28058         c-stack: work around libsigsegv 2.8 bug
28059         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
28060         overflow on at least PowerPC64.
28061
28062 2010-10-17  Bruno Haible  <bruno@clisp.org>
28063
28064         userspec: Drop redundant file.
28065         * modules/userspec (Files): Remove lib/inttostr.h.
28066
28067 2010-10-17  Bruno Haible  <bruno@clisp.org>
28068
28069         nl_langinfo tests: Silence some warnings.
28070         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
28071         Reported by Jim Meyering.
28072
28073 2010-10-17  Bruno Haible  <bruno@clisp.org>
28074
28075         Make use of GCC's attribute __alloc_size__.
28076         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
28077         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
28078         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
28079         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
28080         __alloc_size__.
28081         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28082         Suggested by Jim Meyering.
28083
28084 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
28085
28086         bootstrap: anchor .gitignore entries.
28087         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
28088         with...
28089         (insert_vc_ignore): ... this new function, which prepends `/' to
28090         all .gitignore entries before passing them to
28091         insert_sorted_if_absent.
28092
28093 2010-10-16  Bruno Haible  <bruno@clisp.org>
28094
28095         nextafter: Fix configure check.
28096         * modules/nextafter (configure.ac): Correct expected prototype.
28097
28098 2010-10-16  Bruno Haible  <bruno@clisp.org>
28099
28100         termios: Update documentation.
28101         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
28102
28103 2010-10-16  Bruno Haible  <bruno@clisp.org>
28104
28105         tests: Make them compile with TinyCC.
28106         * tests/test-strstr.c (main): Remove parentheses around array
28107         initializer.
28108
28109 2010-10-15  Eric Blake  <eblake@redhat.com>
28110
28111         ignore-value: make header idempotent
28112         * lib/ignore-value.h: Add double-inclusion guards.
28113         Reported by Stefan Berger.
28114
28115 2010-10-15  Jim Meyering  <meyering@redhat.com>
28116
28117         GNUmakefile: handle "stable" target, not "major"
28118         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
28119         lists in maint.mk and announce-gen.  Without this, "make stable"
28120         would fail to ensure that $(VERSION) is up to date.
28121
28122 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
28123
28124         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
28125         & co.
28126
28127 2010-10-14  Bruno Haible  <bruno@clisp.org>
28128
28129         vasnprintf: Don't set errno to 0.
28130         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
28131         block that sets it to 0.
28132         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
28133
28134 2010-10-14  Bruno Haible  <bruno@clisp.org>
28135
28136         socketlib: Fix.
28137         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
28138         gl_PREREQ_SYS_H_WINSOCK2.
28139         Reported by Ian Beckwith <ianb@erislabs.net>.
28140
28141 2010-10-13  Jim Meyering  <meyering@redhat.com>
28142
28143         test-select-stdin.c: avoid warn_unused_result warnings
28144         * tests/test-select-stdin.c: Include "macros.h".
28145         ASSERT that read and fflush succeed.
28146
28147 2010-10-13  Jim Meyering  <meyering@redhat.com>
28148
28149         git-version-gen: do require git-VC'd files in cwd
28150         * build-aux/git-version-gen: Reject a git version string
28151         if there are no commits associated with the current directory.
28152         This avoids an unlikely false-positive (unrelated dir whose parent
28153         repository also contains a tag matching v*), as pointed out
28154         by Giuseppe Scrivano in
28155         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
28156
28157 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28158
28159         argv-iter: omit nonconforming declaration
28160         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
28161         enum arg_iter_err declaration, which doesn't conform to C99.
28162         Solaris 10 cc warns about this.
28163
28164 2010-10-13  Eric Blake  <eblake@redhat.com>
28165
28166         termios: fix compilation on mingw
28167         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
28168         (gl_TERMIOS_H): Adjust it on mingw.
28169         * modules/termios (Makefile.am): Substitute new key.
28170         * lib/termios.in.h (includes): Make include_next conditional.
28171         * doc/posix-headers/termios.texi (termios.h): Update
28172         documentation.
28173         Reported by Daniel P. Berrange.
28174
28175 2010-10-13  Jim Meyering  <meyering@redhat.com>
28176
28177         git-version-gen: don't require that .git/ be in the current dir
28178         * build-aux/git-version-gen: Adjust this script so that it works
28179         when run from any working directory beneath the top-level .git/-
28180         containing directory.  Inspired by a patch from Giuseppe Scrivano,
28181         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
28182
28183         test-select: avoid warn_unused_result warnings
28184         * tests/test-select.c: Include "macros.h".
28185         ASSERT that each call to read, write, and pipe succeeds.
28186         While not technically required, also check each "close".
28187         * modules/select-tests (Files): Add tests/macros.h.
28188
28189         test-symlinkat: remove declaration of unused local
28190         * tests/test-symlinkat.c (main): Remove unused local, "buf".
28191
28192         test-inttostr: avoid shadowing warnings
28193         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
28194         and use malloc rather than the stack for the same reason as
28195         mentioned in the comment justifying the other allocation.
28196
28197 2010-10-11  Bruno Haible  <bruno@clisp.org>
28198
28199         stdlib: Allow multiple gnulib generated replacements to coexist.
28200         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
28201         Reported by Sam Steingold <sds@gnu.org>.
28202
28203 2010-10-11  Jim Meyering  <meyering@redhat.com>
28204
28205         fix a documentation typo
28206         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
28207
28208 2010-10-11  Eric Blake  <eblake@redhat.com>
28209
28210         futimens: work around Solaris 11 bug
28211         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
28212         * tests/test-futimens.h (test_futimens): Enhance, rather than
28213         weaken test.
28214         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28215
28216 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28217
28218         Indentation.
28219         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
28220         higher-level operators more to the left.
28221
28222 2010-10-11  Jim Meyering  <meyering@redhat.com>
28223
28224         test-futimens: avoid unwarranted test failure on Solaris 5.11
28225         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
28226         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
28227         because it tries to dereference the NULL name argument.
28228
28229 2010-10-11  Bruno Haible  <bruno@clisp.org>
28230
28231         Indentation.
28232         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
28233         indentation.
28234
28235 2010-10-11  Jim Meyering  <meyering@redhat.com>
28236
28237         spawn.in.h: make indentation consistent with parentheses
28238         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
28239         Make indentation consistent with parentheses.
28240
28241 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
28242
28243         Fix mismatched parens in previous commit
28244         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
28245         parens.
28246
28247 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28248
28249         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
28250
28251         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
28252         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
28253         * lib/malloca.c: Include "verify.h".
28254         (verify1): Remove, replacing with a verify call.
28255         * lib/relocwrapper.c (verify1): Likewise.
28256         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
28257         Likewise.
28258         * modules/malloca (Depends-on): Add 'verify'.
28259         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
28260         * modules/vasnprintf (Depends-on): Add 'verify'.
28261         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28262         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28263         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28264         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28265         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28266         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28267         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28268
28269         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
28270
28271         Formerly the style was sometimes 2*X - 1, because the C standard
28272         was wrongly thought to disallow ?: in integral constant expressions.
28273         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
28274         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
28275         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
28276         * lib/stdint.in.h (_verify_intmax_size): Likewise.
28277         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
28278         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
28279         verify that time_t cannot be floating.
28280
28281 2010-10-08  Eric Blake  <eblake@redhat.com>
28282
28283         time: enforce recent POSIX ruling that time_t is integral
28284         * lib/time.in.h (__time_t_must_be_integral): Detect any
28285         problematic systems, allowing the rest of gnulib to assume POSIX.
28286
28287 2010-10-08  Jim Meyering  <meyering@redhat.com>
28288
28289         fdopendir: fix a bug on systems lacking openat and /proc support
28290         OpenBSD 4.7 is one such system.  The most noticeable effect was
28291         failure of any application making nontrivial use of fts: rm, du,
28292         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
28293           ./rm: traversal failed: `a': Bad file descriptor
28294         Debugging that, you see that even though FD 6 was closed just
28295         prior to the opendir call in fd_clone_opendir, its resulting
28296         dir->dd_fd was 8, rather than the expected value of 6:
28297
28298         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
28299         93                close (fd);
28300         (gdb) n
28301         94                dir = fd_clone_opendir (dupfd);
28302         (gdb) n
28303         95                saved_errno = errno;
28304         (gdb) p dir->dd_fd
28305         $11 = 8
28306
28307         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
28308         The problem is that on OpenBSD, fd_clone_opendir has to resort
28309         to using the old-style save/restore CWD mechanism, due to its
28310         lack of openat/proc support, and *that* would steal the FD (6)
28311         that opendir was supposed to use.
28312
28313         The fix is to squirrel away the desired FD so that save_cwd uses a
28314         different one, and then free the dest FD right before calling opendir.
28315         That guarantees opendir will use the required file descriptor.
28316
28317         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
28318
28319 2010-10-08  Bruno Haible  <bruno@clisp.org>
28320
28321         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
28322         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
28323
28324 2010-10-08  Bruno Haible  <bruno@clisp.org>
28325
28326         nanosleep: Make replacement POSIX compliant.
28327         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
28328         is out of range.
28329         Reported by Jim Meyering.
28330
28331 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28332
28333         bootstrap: add hook for altering gnulib.mk, for Bison
28334         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
28335         the Bison bootstrapping process can rewrite file names and variables
28336         in this file before later parts of 'bootstrap' use the file.
28337         Bison wants to include lib/gnulib.mk from the top-level makefile,
28338         so it needs the file names in this file to be relative to the top
28339         level, not relative to lib; plus it needs variable names to be
28340         rewritten.
28341         (slurp): Use the new function.
28342
28343         bootstrap: reformat for readability
28344         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
28345
28346 2010-10-08  Eric Blake  <eblake@redhat.com>
28347
28348         docs: update cygwin progress
28349         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
28350         1.7.7.
28351         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
28352         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
28353         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
28354         * doc/posix-functions/carg.texi (carg): Likewise.
28355         * doc/posix-functions/cargf.texi (cargf): Likewise.
28356         * doc/posix-functions/casin.texi (casin): Likewise.
28357         * doc/posix-functions/casinf.texi (casinf): Likewise.
28358         * doc/posix-functions/casinh.texi (casinh): Likewise.
28359         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
28360         * doc/posix-functions/catan.texi (catan): Likewise.
28361         * doc/posix-functions/catanf.texi (catanf): Likewise.
28362         * doc/posix-functions/catanh.texi (catanh): Likewise.
28363         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
28364         * doc/posix-functions/ccos.texi (ccos): Likewise.
28365         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
28366         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
28367         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
28368         * doc/posix-functions/cexp.texi (cexp): Likewise.
28369         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
28370         * doc/posix-functions/cimag.texi (cimag): Likewise.
28371         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
28372         * doc/posix-functions/clog.texi (clog): Likewise.
28373         * doc/posix-functions/clogf.texi (clogf): Likewise.
28374         * doc/posix-functions/conj.texi (conj): Likewise.
28375         * doc/posix-functions/conjf.texi (conjf): Likewise.
28376         * doc/posix-functions/cpow.texi (cpow): Likewise.
28377         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
28378         * doc/posix-functions/cproj.texi (cproj): Likewise.
28379         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
28380         * doc/posix-functions/creal.texi (creal): Likewise.
28381         * doc/posix-functions/crealf.texi (crealf): Likewise.
28382         * doc/posix-functions/csin.texi (csin): Likewise.
28383         * doc/posix-functions/csinf.texi (csinf): Likewise.
28384         * doc/posix-functions/csinh.texi (csinh): Likewise.
28385         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
28386         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
28387         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
28388         * doc/posix-functions/ctan.texi (ctan): Likewise.
28389         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
28390         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
28391         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
28392         * doc/posix-headers/complex.texi (complex.h): Likewise.
28393
28394 2010-10-07  Jim Meyering  <meyering@redhat.com>
28395
28396         parse-datetime: avoid compilation failure on OpenBSD 4.7
28397         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
28398         This works around a compilation failure on OpenBSD 4.7:
28399         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
28400
28401 2010-10-07  Eric Blake  <eblake@redhat.com>
28402
28403         docs: update cygwin progress
28404         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
28405         1.7.6.
28406         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28407         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
28408         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
28409         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
28410         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
28411         Likewise.
28412         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
28413         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
28414         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
28415         Likewise.
28416         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
28417         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
28418         Likewise.
28419         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
28420         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
28421         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
28422         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
28423         Likewise.
28424         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
28425         Likewise.
28426         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
28427
28428         docs: update parse-datetime history
28429         * doc/parse-datetime.texi (Authors of parse_datetime): Better
28430         documentation of this function's history and alternatives.
28431
28432         cygwin: use more robust version check
28433         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
28434         exclude an eventual cygwin 1.9.1.
28435         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28436         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28437         (gl_FUNC_STRCASESTR): Likewise.
28438         Reported by Bruno Haible.
28439
28440 2010-10-06  Bruno Haible  <bruno@clisp.org>
28441
28442         string, sys_select: Avoid #including large headers unless necessary.
28443         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
28444         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
28445         OSF/1, BeOS, Haiku.
28446         Reported by Jim Meyering.
28447
28448 2010-10-05  Eric Blake  <eblake@redhat.com>
28449
28450         memmem, strstr, strcasestr: fix bug with long periodic needle
28451         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
28452         periodic needle having false positive.
28453         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
28454         and cygwin 1.7.7.
28455         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
28456         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28457         (gl_FUNC_STRCASESTR): Likewise.
28458         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28459         * tests/test-memmem.c (main): Expose the bug.
28460         * tests/test-strcasestr.c (main): Likewise.
28461         * tests/test-strstr.c (main): Likewise.
28462         * tests/test-c-strcasestr.c (main): Likewise.
28463         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
28464         * doc/posix-functions/strstr.texi (strstr): Likewise.
28465         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28466         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
28467
28468 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28469
28470         parse-datetime: do some more renaming
28471         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
28472         parse_datetime, not get_date.  Mention the renaming.
28473         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
28474         in comments.
28475         * m4/bison.m4: Likewise.
28476
28477 2010-10-05  Eric Blake  <eblake@redhat.com>
28478
28479         parse-datetime: better name than get_date
28480         * NEWS: Reword the deprecation notice.
28481         * modules/get_date: Rename to modules/parse-datetime.
28482         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
28483         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
28484         * lib/get_date.y: Rename to lib/parse-datetime.y.
28485         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
28486         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
28487         * doc/getdate.texi: Provide fallback wrapper.
28488         * lib/getdate.h: Move guts, and wrap...
28489         * lib/parse-datetime.h: ...new file.
28490         * lib/parse-datetime.y (get_date): Rename...
28491         (parse_datetime): ...to this.
28492         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
28493         (gl_PARSE_DATETIME): ...to this.
28494         * doc/posix-functions/getdate.texi (get_date): Provide fallback
28495         documentation.
28496         * modules/getdate (Files): Provide fallback docs and header.
28497         (Notice, Depends-on): Update references.
28498         * tests/test-parse-datetime.c: Likewise.
28499         * DEPENDENCIES: Likewise.
28500         * MODULES.html.sh (Date and time <time.h>): Likewise.
28501         * doc/parse-datetime.texi (Date input formats)
28502         (Authors of parse_datetime): Likewise.
28503         * modules/parse-datetime (Files, configure.ac, Makefile.am)
28504         (Include): Likewise.
28505         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
28506         * gnulib-tool: Likewise.
28507         * m4/bison.m4 (gl_BISON): Likewise.
28508         Suggested by Bruno Haible.
28509
28510 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28511
28512         more ports to Solaris tr, which needs [] around ranges
28513         * gnulib-tool: Solaris tr needs [] around ranges.
28514         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28515         * tests/test-pipe-filter-gi1.c (main): Likewise.
28516         * tests/test-pipe-filter-ii1.c (main): Likewise.
28517
28518 2010-10-05  Eric Blake  <eblake@redhat.com>
28519
28520         bootstrap: fix Solaris regression
28521         * build-aux/bootstrap (check_versions): Solaris tr still needs []
28522         around ranges.
28523         Reported by Pádraig Brady.
28524
28525         bootstrap: work with pkg-config
28526         * build-aux/bootstrap (check_versions): Also transliterate - in
28527         prerequisite name.
28528         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
28529         prerequisites that were already found, to avoid confusion.
28530         Reported by Justin Clift.
28531
28532         faccessat: remove unused wrappers
28533         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
28534         presence of these wrappers dragged in -lgen on Solaris.
28535         Reported by Clemens Brogi; fix suggested by Paul Eggert.
28536
28537 2010-10-05  Jim Meyering  <meyering@redhat.com>
28538
28539         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
28540         * Makefile (sc_pragma_columns): New syntax-check rule.
28541
28542 2010-10-04  Bruno Haible  <bruno@clisp.org>
28543
28544         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
28545         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
28546         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
28547         Reported by Bruce Korb and Eric Blake.
28548
28549 2010-10-04  Bruno Haible  <bruno@clisp.org>
28550
28551         threadlib: Make option --with-libpth-prefix work.
28552         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
28553         use $LIBPTH, not just -lpth.
28554
28555 2010-10-04  Bruno Haible  <bruno@clisp.org>
28556
28557         Avoid line length limitation from HP NonStop system header files.
28558         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
28559         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
28560         * lib/ctype.in.h: Likewise.
28561         * lib/dirent.in.h: Likewise.
28562         * lib/errno.in.h: Likewise.
28563         * lib/fcntl.in.h: Likewise.
28564         * lib/float.in.h: Likewise.
28565         * lib/getopt.in.h: Likewise.
28566         * lib/iconv.in.h: Likewise.
28567         * lib/inttypes.in.h: Likewise.
28568         * lib/langinfo.in.h: Likewise.
28569         * lib/locale.in.h: Likewise.
28570         * lib/math.in.h: Likewise.
28571         * lib/netdb.in.h: Likewise.
28572         * lib/netinet_in.in.h: Likewise.
28573         * lib/poll.in.h: Likewise.
28574         * lib/pthread.in.h: Likewise.
28575         * lib/pty.in.h: Likewise.
28576         * lib/sched.in.h: Likewise.
28577         * lib/se-selinux.in.h: Likewise.
28578         * lib/search.in.h: Likewise.
28579         * lib/signal.in.h: Likewise.
28580         * lib/spawn.in.h: Likewise.
28581         * lib/stdarg.in.h: Likewise.
28582         * lib/stddef.in.h: Likewise.
28583         * lib/stdint.in.h: Likewise.
28584         * lib/stdio.in.h: Likewise.
28585         * lib/stdlib.in.h: Likewise.
28586         * lib/string.in.h: Likewise.
28587         * lib/strings.in.h: Likewise.
28588         * lib/sys_file.in.h: Likewise.
28589         * lib/sys_ioctl.in.h: Likewise.
28590         * lib/sys_select.in.h: Likewise.
28591         * lib/sys_socket.in.h: Likewise.
28592         * lib/sys_stat.in.h: Likewise.
28593         * lib/sys_time.in.h: Likewise.
28594         * lib/sys_times.in.h: Likewise.
28595         * lib/sys_utsname.in.h: Likewise.
28596         * lib/sys_wait.in.h: Likewise.
28597         * lib/sysexits.in.h: Likewise.
28598         * lib/termios.in.h: Likewise.
28599         * lib/time.in.h: Likewise.
28600         * lib/unistd.in.h: Likewise.
28601         * lib/wchar.in.h: Likewise.
28602         * lib/wctype.in.h: Likewise.
28603         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
28604         * modules/ctype (Makefile.am): Likewise.
28605         * modules/dirent (Makefile.am): Likewise.
28606         * modules/errno (Makefile.am): Likewise.
28607         * modules/fcntl-h (Makefile.am): Likewise.
28608         * modules/float (Makefile.am): Likewise.
28609         * modules/getopt-posix (Makefile.am): Likewise.
28610         * modules/iconv-h (Makefile.am): Likewise.
28611         * modules/inttypes (Makefile.am): Likewise.
28612         * modules/langinfo (Makefile.am): Likewise.
28613         * modules/locale (Makefile.am): Likewise.
28614         * modules/math (Makefile.am): Likewise.
28615         * modules/netdb (Makefile.am): Likewise.
28616         * modules/netinet_in (Makefile.am): Likewise.
28617         * modules/poll-h (Makefile.am): Likewise.
28618         * modules/pthread (Makefile.am): Likewise.
28619         * modules/pty (Makefile.am): Likewise.
28620         * modules/sched (Makefile.am): Likewise.
28621         * modules/search (Makefile.am): Likewise.
28622         * modules/selinux-h (Makefile.am): Likewise.
28623         * modules/signal (Makefile.am): Likewise.
28624         * modules/spawn (Makefile.am): Likewise.
28625         * modules/stdarg (Makefile.am): Likewise.
28626         * modules/stddef (Makefile.am): Likewise.
28627         * modules/stdint (Makefile.am): Likewise.
28628         * modules/stdio (Makefile.am): Likewise.
28629         * modules/stdlib (Makefile.am): Likewise.
28630         * modules/string (Makefile.am): Likewise.
28631         * modules/strings (Makefile.am): Likewise.
28632         * modules/sys_file (Makefile.am): Likewise.
28633         * modules/sys_ioctl (Makefile.am): Likewise.
28634         * modules/sys_select (Makefile.am): Likewise.
28635         * modules/sys_socket (Makefile.am): Likewise.
28636         * modules/sys_stat (Makefile.am): Likewise.
28637         * modules/sys_time (Makefile.am): Likewise.
28638         * modules/sys_times (Makefile.am): Likewise.
28639         * modules/sys_utsname (Makefile.am): Likewise.
28640         * modules/sys_wait (Makefile.am): Likewise.
28641         * modules/sysexits (Makefile.am): Likewise.
28642         * modules/termios (Makefile.am): Likewise.
28643         * modules/time (Makefile.am): Likewise.
28644         * modules/unistd (Makefile.am): Likewise.
28645         * modules/wchar (Makefile.am): Likewise.
28646         * modules/wctype (Makefile.am): Likewise.
28647
28648 2010-10-04  Bruno Haible  <bruno@clisp.org>
28649
28650         read-file tests: Avoid a test failure on NonStop Kernel.
28651         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
28652         a regular file.
28653         Reported by Joachim Schmitz <schmitz@hp.com>.
28654
28655 2010-10-03  Bruno Haible  <bruno@clisp.org>
28656
28657         gnulib-tool: Fixes for --create-testdir with --libtool.
28658         * gnulib-tool (func_get_automake_snippet): Don't augment
28659         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
28660         an executable.
28661         (func_create_testdir): Handle module 'alloca' like func_import.
28662         Reported by Bruce Korb <bruce.korb@gmail.com>.
28663
28664 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
28665
28666         Avoid some lines longer than 80 characters.
28667         * lib/stdint.in.h: Break long comment lines.
28668         * lib/math.in.h: Likewise.
28669         (_GL_NUM_UINT_WORDS): New macro, for readability.
28670         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
28671         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
28672         * lib/stdlib.in.h: Likewise.
28673         * lib/spawn.in.h: Likewise.
28674         * lib/sys_socket.in.h: Update an URL.
28675         * lib/sys_stat.in.h: Break long line.
28676
28677 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
28678
28679         Improve pmccabe2html.
28680         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
28681         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
28682         when the sources change. Remove the line in the HTML about "Used
28683         ranges" (which implied that there might be other unused ranges),
28684         rename "Resume" to "Summary" (easier to understand for more users).
28685         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
28686         styles, and some unnecessary blank lines.
28687
28688 2010-10-03  Bruno Haible  <bruno@clisp.org>
28689             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
28690
28691         acl: Add support for ACLs on NonStop Kernel.
28692         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
28693         Check whether the function aclsort() exists.
28694         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
28695         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
28696         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28697         (acl_nontrivial [HAVE_ACLSORT]: New function.
28698         (file_has_acl): Implement for NonStop Kernel.
28699         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28700         (qset_acl): Implement for NonStop Kernel.
28701         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
28702         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28703         (main): Implement for NonStop Kernel.
28704         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
28705         Kernel. Handle this flavor.
28706         * tests/test-set-mode-acl.sh: Likewise.
28707         * tests/test-copy-acl.sh: Likewise.
28708         * tests/test-copy-file.sh: Likewise.
28709
28710 2010-10-03  Bruno Haible  <bruno@clisp.org>
28711
28712         Info about ACLs on NonStop Kernel.
28713         * doc/acl-resources.txt: Add info about NonStop Kernel.
28714         References by Joachim Schmitz <schmitz@hp.com>.
28715
28716 2010-10-02  Bruno Haible  <bruno@clisp.org>
28717
28718         Define missing EDQUOT on NonStop Kernel.
28719         * lib/errno.in.h (EDQUOT): Assign a value if missing.
28720         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
28721         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
28722         missing.
28723         * doc/posix-headers/errno.texi: Mention the NSK bug.
28724         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
28725         Reported by Joachim Schmitz <schmitz@hp.com>.
28726
28727 2010-10-02  Bruno Haible  <bruno@clisp.org>
28728
28729         Update doc for POSIX:2008.
28730         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
28731         Update URL of POSIX specification.
28732
28733 2010-10-02  Bruno Haible  <bruno@clisp.org>
28734
28735         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
28736         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
28737         from gnulib, not from Automake.
28738
28739 2010-10-02  Bruno Haible  <bruno@clisp.org>
28740
28741         New module 'system-posix'.
28742         * modules/system-posix: New file.
28743         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
28744         module is present.
28745         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28746         GNULIB_SYSTEM_POSIX.
28747         * modules/stdlib (Depends-on): Remove sys_wait.
28748         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
28749         * doc/posix-functions/system.texi: Mention the new module.
28750         * doc/posix-headers/stdlib.texi: Likewise.
28751         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
28752         define test_sys_wait_macros to a no-op.
28753         Reported by Sam Steingold <sds@gnu.org>.
28754
28755 2010-09-30  Bruno Haible  <bruno@clisp.org>
28756
28757         More renaming from 'getdate' to 'get_date'.
28758         * doc/get_date.texi: Renamed from doc/getdate.texi.
28759         * modules/get_date (Files): Update.
28760         * MODULES.html.sh (Date and time <time.h>): Update.
28761         * DEPENDENCIES: Update.
28762         * gnulib-tool: Update comment.
28763         * m4/bison.m4 (gl_BISON): Likewise.
28764         * m4/get_date.m4 (gl_GET_DATE): Likewise.
28765
28766 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
28767
28768         bootstrap: support ACLOCAL_FLAGS during aclocal
28769         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
28770         can add additional -I dir for third-party .m4 files.
28771
28772 2010-09-30  Eric Blake  <eblake@redhat.com>
28773
28774         bootstrap: use glibtoolize on MacOS
28775         * build-aux/bootstrap (check_versions): Convert libtool into
28776         libtoolize.
28777         (tool search): Move libtool check earlier, and look for
28778         glibtoolize for MacOS.
28779         (gnulib_tool_options): Auto-add --libtool when appropriate.
28780         Reported by Justin Clift.
28781
28782         poll: fix typo that broke test on MacOS
28783         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
28784         Reported by Justin Clift.
28785
28786         getdate: rename to get_date
28787         Note: getdate.h is not renamed, to minimize client impact.
28788         * modules/getdate: Mark obsolete.  Move old contents...
28789         * modules/get_date: ...to new module name.
28790         * modules/getdate-tests: Move...
28791         * modules/get_date-tests: ...here.
28792         * m4/getdate.m4: Move...
28793         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
28794         * lib/getdate.y: Move...
28795         * lib/get_date.y: ...here.
28796         * tests/test-getdate.c: Move...
28797         * tests/test-get_date.c: ...here.
28798         * doc/posix-functions/getdate.texi (getdate): Update name.
28799         * NEWS: Mention the change.
28800
28801 2010-09-29  Bruno Haible  <bruno@clisp.org>
28802
28803         Separate the module 'waitpid' from the module 'sys_wait'.
28804         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
28805         present.
28806         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
28807         gl_MODULE_INDICATOR_FOR_TESTS.
28808         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
28809         * modules/sys_wait (Depends-on): Remove waitpid.
28810         (Makefile.am): Substitute GNULIB_WAITPID.
28811         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
28812         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
28813         signature only if the 'waitpid' module is present.
28814         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
28815         * NEWS: Mention the change.
28816         * modules/grantpt (Depends-on): Add waitpid.
28817         * modules/wait-process (Depends-on): Likewise.
28818
28819 2010-09-29  Bruno Haible  <bruno@clisp.org>
28820
28821         More tests for module 'sys_wait'.
28822         * modules/sys_wait-c++-tests: New file.
28823         * tests/test-sys_wait-c++.cc: New file.
28824         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
28825         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28826
28827 2010-09-29  Bruno Haible  <bruno@clisp.org>
28828
28829         New module 'waitpid'.
28830         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
28831         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
28832         Don't include <process.h>.
28833         (waitpid): Declare only, using modern idiom.
28834         * m4/waitpid.m4: New file.
28835         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
28836         * modules/waitpid: New file.
28837         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
28838         (Makefile.am): Update.
28839         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28840
28841 2010-09-28  Bruno Haible  <bruno@clisp.org>
28842
28843         poll: Assume ANSI C.
28844         * lib/poll.c (poll): Use an ANSI C declaration.
28845
28846 2010-09-28  Bruno Haible  <bruno@clisp.org>
28847
28848         poll-h: Create poll.h on all platforms.
28849         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
28850         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
28851         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
28852         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
28853         (gl_REPLACE_POLL_H): Don't set POLL_H.
28854         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
28855         * modules/poll-h (Depends-on): Add include_next.
28856         (Makefile.am): Create poll.h unconditionally. Substitute also
28857         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
28858
28859 2010-09-28  Bruno Haible  <bruno@clisp.org>
28860
28861         Tests for module 'poll-h'.
28862         * modules/poll-h-c++-tests: New file.
28863         * tests/test-poll-h-c++.cc: New file.
28864
28865         Tests for module 'poll-h'.
28866         * modules/poll-h-tests: New file.
28867         * tests/test-poll-h.c: New file.
28868
28869 2010-09-28  Bruno Haible  <bruno@clisp.org>
28870
28871         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
28872         * modules/poll-h (Depends-on): Add 'extensions'.
28873
28874 2010-09-28  Bruno Haible  <bruno@clisp.org>
28875
28876         New module 'poll-h'.
28877         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
28878         (poll): Use modern idiom.
28879         * modules/poll-h: New file.
28880         * modules/poll (Files): Remove lib/poll.in.h.
28881         (Depends-on): Add poll-h.
28882         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
28883         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
28884         * m4/poll_h.m4: New file.
28885         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
28886         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
28887         and invoke gl_REPLACE_POLL_H.
28888         * lib/poll.c: Use common idiom.
28889         * tests/test-poll.c: Likewise.
28890         * doc/posix-headers/poll.texi: Mention the poll-h module.
28891         Suggested by Eric Blake.
28892
28893 2010-09-26  Bruno Haible  <bruno@clisp.org>
28894
28895         sys_wait: Implement WSTOPSIG.
28896         * lib/sys_wait.in.h (WSTOPSIG): New macro.
28897         Reported by Simon Josefsson.
28898
28899 2010-09-26  Simon Josefsson  <simon@josefsson.org>
28900
28901         stdlib, sys_wait: Avoid compilation error on mingw.
28902         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
28903
28904 2010-09-26  Bruno Haible  <bruno@clisp.org>
28905
28906         stdlib tests: Avoid code duplication.
28907         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
28908         * modules/sys_wait-tests (Files): Likewise.
28909         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
28910         * tests/test-stdlib.c: Include test-sys_wait.h.
28911         (main): Invoke test_sys_wait_macros.
28912         * tests/test-sys_wait.c: Include test-sys_wait.h.
28913         (main): Invoke test_sys_wait_macros.
28914
28915 2010-09-25  Simon Josefsson  <simon@josefsson.org>
28916
28917         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
28918         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
28919         sure Windows sockets are working before calling getaddrinfo.
28920         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
28921         * doc/gnulib.texi (Windows sockets): Fix typo.
28922
28923 2010-09-25  Bruno Haible  <bruno@clisp.org>
28924
28925         Tests for module 'regex-quote'.
28926         * modules/regex-quote-tests: New file.
28927         * tests/test-regex-quote.c: New file.
28928
28929         New module 'regex-quote'.
28930         * lib/regex-quote.h: New file.
28931         * lib/regex-quote.c: New file.
28932         * modules/regex-quote: New file.
28933         Suggested by Reuben Thomas <rrt@sc3d.org>.
28934
28935 2010-09-24  Bruno Haible  <bruno@clisp.org>
28936
28937         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
28938         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
28939
28940 2010-09-23  Bruno Haible  <bruno@clisp.org>
28941
28942         setenv: Relax license.
28943         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
28944         Blake.
28945         Requested by Eric Blake.
28946
28947 2010-09-22  Bruno Haible  <bruno@clisp.org>
28948
28949         termios: Relax license.
28950         * modules/termios (License): Change to LGPLv2+.
28951         Requested by Eric Blake.
28952
28953 2010-09-22  Bruno Haible  <bruno@clisp.org>
28954
28955         threadlib: Allow the package to change the default to 'no'.
28956         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
28957         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
28958         Reported by Paul Eggert.
28959
28960 2010-09-22  Pádraig Brady  <P@draigbrady.com>
28961             Bruno Haible  <bruno@clisp.org>
28962
28963         Fix endless loop in mbmemcasecoll.
28964         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
28965         byte.
28966         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
28967
28968 2010-09-22  Bruno Haible  <bruno@clisp.org>
28969
28970         Tests for module 'memcoll'.
28971         * modules/memcoll-tests: New file.
28972         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
28973
28974         memcoll, xmemcoll: Clarify size vs. length.
28975         * modules/memcoll.c (memcoll0): Clarify specification.
28976         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
28977         passed to collate_error.
28978
28979 2010-09-22  Bruno Haible  <bruno@clisp.org>
28980
28981         Tests for module 'memcasecmp'.
28982         * modules/memcasecmp-tests: New file.
28983         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
28984
28985 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28986
28987         * lib/pthread.in.h: Add split double-inclusion guard, and include
28988         system <pthread.h> if there is one.  Use @@-style as in other
28989         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
28990         pthread.h doesn't.
28991         (pthread_mutexattr_destroy, pthread_mutexattr_init):
28992         (pthread_mutexattr_settype, pthread_mutex_trylock):
28993         New static inline functions, if there's no system <pthread.h>.
28994         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
28995         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
28996         Approximate with mutexes if the system lacks spinlocks, as in
28997         MacOS.
28998         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
28999         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
29000         @@-style.  Check for spinlocks separately.
29001         (gl_PTHREAD_DEFAULTS): New macro.
29002         * modules/pthread: Redo to use a more typical style for in.h files.
29003
29004 2010-09-21  Eric Blake  <eblake@redhat.com>
29005
29006         net_if: enhance tests
29007         * tests/test-net_if.c (main): Move signature checks earlier.
29008         Print failures to stderr.
29009         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
29010         Document the bug that we do not yet fix.
29011
29012 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29013
29014         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
29015         about gnulib, not GSS.
29016
29017 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29018
29019         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
29020         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
29021         for Emacs.
29022         * build-aux/pmccabe2html: Make Makefile.am example code more
29023         cut-and-paste friendly.
29024
29025 2010-09-21  Simon Josefsson  <simon@josefsson.org>
29026
29027         * tests/test-net_if.c: New file.
29028         * modules/net_if-tests: New file.
29029
29030 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29031
29032         pthread: add pthread_spin_destroy
29033         * lib/pthread.in.h (pthread_spin_destroy): New function.
29034
29035 2010-09-19  Bruno Haible  <bruno@clisp.org>
29036
29037         gnulib-tool: Fix --help output.
29038         * gnulib-tool (func_usage): Fix help message.
29039         Reported by Reuben Thomas <rrt@sc3d.org>.
29040
29041 2010-09-18  Jim Meyering  <meyering@redhat.com>
29042
29043         maint.mk: avoid unexpanded \n in two diagnostics
29044         * top/maint.mk (sc_prohibit_always_true_header_tests):
29045         Don't use a literal \n in a halt=... assignment.  It would not be
29046         expanded, and the two \n bytes would appear in the diagnostic output
29047         rather than the desired newline.  Use halt=$$(printf ... instead.
29048         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29049
29050 2010-09-18  Bruno Haible  <bruno@clisp.org>
29051
29052         netinet_in: Doc tweak.
29053         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
29054         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29055
29056 2010-09-18  Jim Meyering  <meyering@redhat.com>
29057
29058         init.sh: correct an outdated comment
29059         * tests/init.sh (create_exe_shims_):  s/function/alias/
29060
29061         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
29062         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
29063         a file named "*.exe" is removed between the glob expansion and the
29064         processing of that oddly named file.
29065
29066 2010-09-17  Eric Blake  <eblake@redhat.com>
29067
29068         mirbsd: add some more support
29069         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
29070         in BSD family.
29071         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
29072         devices as OpenBSD.
29073         * m4/host-os.m4 (mirbsd): Add MirBSD.
29074
29075         tests: fix unportable assumption on sys/wait.h
29076         * tests/test-sys_wait.c (main): Relax test.
29077         * tests/test-stdlib.c (main): Likewise.
29078
29079         init.sh: accommodate directory with no .exes
29080         * tests/init.sh: Accomodate directory containing only scripts.
29081
29082         tests: avoid compiler warning
29083         * tests/test-stdlib.c (main): Use the variable.
29084
29085         fdutimens, fdutimensat: update signature, again
29086         * lib/utimens.h (gl_futimens): Delete, and move signature...
29087         (fdutimens): ...here.
29088         (fdutimensat): Rearrange signature.
29089         (lutimensat): Rename variable for clarity.
29090         * lib/fdutimensat.c (fdutimensat): Update signature.
29091         * lib/utimens.c (fdutimens): Likewise.
29092         (gl_futimens): Delete.
29093         (utimens, lutimens): Update callers.
29094         * lib/futimens.c (futimens): Likewise.
29095         * tests/test-fdutimensat.c: Likewise.
29096         * tests/test-utimens.c: Likewise.
29097         * tests/test-futimens.h: Update comment.
29098         * NEWS: Mention this.
29099         Suggested by Paul Eggert.
29100
29101 2010-09-17  Bruno Haible  <bruno@clisp.org>
29102
29103         Take over the maintenance of some older macros from Autoconf.
29104         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
29105         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
29106         GNU Autoconf.
29107         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
29108         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
29109
29110 2010-09-17  Eric Blake  <eblake@redhat.com>
29111
29112         fdutimensat: drop atflag validation
29113         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
29114         with valid fd, to close a race scenario where futimens is
29115         unsupported and FILE was replaced by a symlink.
29116         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
29117         accordingly.
29118         Suggested by Paul Eggert.
29119
29120 2010-09-16  Bruno Haible  <bruno@clisp.org>
29121
29122         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
29123         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
29124
29125 2010-09-16  Bruno Haible  <bruno@clisp.org>
29126
29127         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
29128         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
29129         login_tty exists.
29130         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29131
29132 2010-09-16  Bruno Haible  <bruno@clisp.org>
29133
29134         login_tty: Make the replacement code work on BSD systems.
29135         * lib/login_tty.c: Include <sys/ioctl.h>.
29136         (login_tty): Use ioctl TIOCSCTTY when available.
29137         * modules/login_tty (Depends-on): Add sys_ioctl.
29138         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29139
29140 2010-09-16  Bruno Haible  <bruno@clisp.org>
29141
29142         login_tty: Stricter unit test.
29143         * modules/login_tty-tests (Depends-on): Add tcgetsid.
29144         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
29145         and tcgetsid() after login_tty.
29146         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29147
29148 2010-09-16  Bruno Haible  <bruno@clisp.org>
29149
29150         New module 'tcgetsid'.
29151         * lib/tcgetsid.c: New file.
29152         * m4/tcgetsid.m4: New file.
29153         * modules/tcgetsid: New file.
29154         * modules/termios (Depends-on): Add c++defs, warn-on-use.
29155         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
29156         GNULIB_TCGETSID, HAVE_TCGETSID.
29157         * lib/termios.in.h: Include <sys/types.h>.
29158         (tcgetsid): New declaration.
29159         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
29160         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
29161         * doc/posix-functions/tcgetsid.texi: Mention the new module.
29162         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
29163
29164 2010-09-16  Bruno Haible  <bruno@clisp.org>
29165
29166         Tests for module 'termios'.
29167         * modules/termios-c++-tests: New file.
29168         * modules/termios-tests: New file.
29169         * tests/test-termios-c++.cc: New file.
29170         * tests/test-termios.c: New file.
29171
29172         New module 'termios'.
29173         * modules/termios: New file.
29174         * lib/termios.in.h: New file.
29175         * m4/termios_h.m4: New file.
29176         * doc/posix-headers/termios.texi: Mention the new module.
29177
29178 2010-09-16  Eric Blake  <eblake@redhat.com>
29179
29180         fdutimensat: add an atflag parameter
29181         * lib/fdutimensat.c (fdutimensat): Add new parameter.
29182         * lib/utimens.h (fdutimensat): Update prototype.
29183         * tests/test-fdutimensat.c: Adjust test to match.
29184         * NEWS: Document the change.
29185         Suggested by Paul Eggert.
29186
29187 2010-09-16  Bruno Haible  <bruno@clisp.org>
29188
29189         Fix typos in comments.
29190         * lib/striconveh.h: Fix typo in comment.
29191         * lib/login_tty.c (login_tty): Likewise.
29192
29193 2010-09-15  Bruno Haible  <bruno@clisp.org>
29194
29195         stdlib: clarify MirBSD WEXITSTATUS bug
29196         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
29197         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29198
29199 2010-09-15  Eric Blake  <eblake@redhat.com>
29200
29201         stdlib: work around MirBSD WEXITSTATUS bug
29202         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
29203         * modules/stdlib (Depends-on): Add sys_wait.
29204         * tests/test-sys_wait.c (main): Enhance test.
29205         * tests/test-stdlib.c (main): Likewise.
29206         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
29207
29208         docs: mention MacOS issue with WEXITSTATUS(constant)
29209         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
29210         issue.
29211         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29212
29213         strnlen: add tests
29214         * modules/strnlen-tests: New file.
29215         * tests/test-strnlen.c: Likewise.
29216
29217 2010-09-14  Bruno Haible  <bruno@clisp.org>
29218
29219         unistr/base: Avoid link errors when module 'libunistring' is also used.
29220         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
29221         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
29222         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
29223         Declare also when HAVE_LIBUNISTRING is set.
29224         Reported by Pádraig Brady <P@draigbrady.com>.
29225
29226 2010-09-14  Eric Blake  <eblake@redhat.com>
29227
29228         test-rawmemchr: make more robust
29229         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
29230         (Depends-on, configure.ac): Add needed prerequisites to use it.
29231         * modules/memchr-tests (Files, Depends-on, configure.ac):
29232         Likewise, to avoid implicit reliance on memchr module prereqs.
29233         * tests/test-memchr.c (main): Ensure proper masking.
29234         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
29235         reads.
29236
29237         memchr: detect glibc Alpha bug
29238         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
29239         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
29240         Alpha.
29241         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
29242         * tests/test-memchr.c (main): Enhance test.
29243         Reported by Nelson H. F. Beebe.
29244
29245 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29246
29247         fts, getcwd, glob: audit for dirfd returning -1
29248         * lib/fts.c (opendir): Remove #define; no longer used.
29249         (opendirat): New arg PDIR_FD.  All callers changed.
29250         (fts_build, _opendir2): Use new opendirat to avoid the need for
29251         dirfd, or for checking whether dirfd returns a negative value.
29252         Don't use opendir; always use openat followed by fdopendir.
29253         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
29254         it.
29255         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
29256         returns -1 here.
29257         * modules/fts (Depends-on): Remove dirfd.
29258         * modules/getcwd (Depends-on): Likewise.
29259
29260 2010-09-13  Eric Blake  <eblake@redhat.com>
29261
29262         float: fix broken MirBSD header
29263         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
29264         * doc/posix-headers/float.texi (float.h): Document it.
29265
29266 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29267
29268         fts: use O_NOFOLLOW to avoid race condition when opening a directory
29269         * lib/fts.c (opendirat): New arg extra_flags.
29270         (__opendir2): Use it to avoid following symlinks when opening
29271         a directory, if symlinks are not supposed to be followed.  See
29272         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
29273
29274         fdopendir: preserve argument fd before returning
29275         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
29276         (fdopendir_with_dup, fd_clone_opendir): New static functions.
29277         (fdopendir): Use them, arranging for FD to be open to the same
29278         directory that it was when it started.  (It might be temporarily
29279         closed while fdopendir is running, so this not thread- or
29280         signal-safe.)  Be careful to do the right thing even when file
29281         descriptors are scarce and dup fails with errno == EMFILE.  See
29282         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
29283
29284 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
29285
29286         regex: Pass the system regex if its only problem is 32-bit regoff_t.
29287         * NEWS: Document change.
29288         * m4/regex.m4: Disable test for regoff_t size.
29289
29290 2010-09-13  Jim Meyering  <meyering@redhat.com>
29291
29292         fts: don't operate on an invalid file descriptor after failed dup
29293         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
29294         negative file descriptor.
29295
29296 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
29297
29298         savedir: add streamsavedir, deprecate fdsavedir
29299         * NEWS: Mention deprecation of fdsavedir.
29300         * lib/savedir.c (streamsavedir): New extern function, whose name
29301         ends in "savedir" to be consistent with the others.  This differs
29302         from savedirstream in that it doesn't close its argument.  The
29303         next version of GNU tar will use this instead of fdsavedir, to
29304         avoid some race conditions and conserve file descriptors.
29305         (savedirstream): Reimplement as a wrapper around streamsavedir.
29306         (fdsavedir): Add a comment deprecating this function.  As far as
29307         I know, only GNU tar used it, and GNU tar doesn't need it any more.
29308         * lib/savedir.h (streamsavedir): New decl.
29309         (fdsavedir): Add a comment deprecating this.
29310
29311 2010-09-10  Bruno Haible  <bruno@clisp.org>
29312
29313         langinfo: Fix last commit.
29314         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
29315         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
29316         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29317
29318 2010-09-10  Bruno Haible  <bruno@clisp.org>
29319
29320         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
29321         * lib/progreloc.c (O_EXEC): Define fallback.
29322
29323 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
29324
29325         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
29326         * NEWS: Document recent changes to fcntl-h.
29327         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
29328         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
29329         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
29330         Similarly for O_SEARCH; this last was already true, but not documented.
29331         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
29332         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
29333         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
29334         Likewise.
29335         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
29336         is zero, not whether it is defined.
29337         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
29338         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
29339         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
29340
29341 2010-09-10  Bruno Haible  <bruno@clisp.org>
29342
29343         langinfo, nl_langinfo: Fix for IRIX 5.3.
29344         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
29345         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
29346         HAVE_LANGINFO_YESEXPR.
29347         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
29348         HAVE_LANGINFO_YESEXPR.
29349         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
29350         HAVE_LANGINFO_T_FMT_AMPM is 0.
29351         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
29352         HAVE_LANGINFO_YESEXPR is 0.
29353         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
29354         NOEXPR.
29355         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
29356         * doc/posix-functions/nl_langinfo.texi: Likewise.
29357         Reported by Eric Blake.
29358
29359 2010-09-10  Bruno Haible  <bruno@clisp.org>
29360
29361         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
29362         * doc/glibc-functions/login_tty.texi: Mention the include file problem
29363         on FreeBSD 8.0 and OpenBSD 4.6.
29364         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
29365         * m4/pty_h.m4 (gl_PTY_H): Likewise.
29366         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
29367         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
29368         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
29369         ac_includes_default.
29370         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29371
29372 2010-09-09  Eric Blake  <eblake@redhat.com>
29373
29374         strsignal: work around NetBSD bug
29375         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
29376         * lib/string.in.h (includes): Likewise.
29377         * doc/posix-functions/strsignal.texi (strsignal): Document the
29378         bug.
29379         Reported by Nelson H. F. Beebe.
29380
29381         gnulib-tool: work with NetBSD /bin/sh
29382         * gnulib-tool (func_cache_var, func_cache_lookup_module)
29383         (func_get_description, func_get_comment, func_get_status)
29384         (func_get_notice, func_get_applicability, func_get_filelist)
29385         (func_get_dependencies, func_get_autoconf_early_snippet)
29386         (func_get_autoconf_snippet, func_get_automake_snippet)
29387         (func_get_include_directive, func_get_link_directive)
29388         (func_get_license, func_get_maintainer, func_import): Avoid
29389         shell syntax errors from parsing syntax extensions.
29390
29391 2010-09-09  Bruno Haible  <bruno@clisp.org>
29392
29393         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29394         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
29395         a reliable way to determine whether the 'alias' command works.
29396
29397 2010-09-08  Jim Meyering  <meyering@redhat.com>
29398
29399         init.sh: penalize a set-x-impaired shell; don't disqualify it
29400         * tests/init.sh: Too many shells corrupt application stderr when
29401         you set -x, so we can't afford to disqualify them, since at least
29402         on Irix-6.5, that would disqualify all bourne shells.
29403         Instead, use a two-pass approach.
29404         On the first pass, try to find a shell that meets the stricter
29405         condition that set -x does not corrupt stderr.
29406         If no shell meets the stricter condition, retest each candidate
29407         shell, but without that extra condition.  Finally, when
29408         VERBOSE=yes is requested and set -x might cause trouble, simply
29409         issue a warning and refrain from enabling debug output.
29410
29411 2010-09-08  Eric Blake  <eblake@redhat.com>
29412
29413         unsetenv: fix OpenBSD bug
29414         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
29415         * doc/posix-functions/unsetenv.texi (unsetenv): Update
29416         documentation.
29417         Reported by Jim Meyering.
29418
29419         strtod: work around IRIX 6.5 bug
29420         * lib/strtod.c (strtod): Reparse number on shorter string if
29421         exponent parse was invalid.
29422         * tests/test-strtod.c (main): Add check for "0x1p 2".
29423         Reported by Tom G. Christensen.
29424
29425         getopt: optimize previous patch
29426         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
29427         empty variable.  Speed up awk script.
29428         Reported by Paolo Bonzini.
29429
29430 2010-09-08  Jim Meyering  <meyering@redhat.com>
29431
29432         test.sh: disqualify shells for which set -x corrupts stderr
29433         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
29434         and OpenBSD 4.7.  They make it so with "set -x", environment settings
29435         appear in stderr output.  For example, this command:
29436             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
29437         prints "P=1" on those two systems:
29438
29439 2010-09-08  Bruno Haible  <bruno@clisp.org>
29440
29441         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29442         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
29443         commands, because some shells ignore redirections when there is an
29444         error in the command lookup.
29445         Reported by Eric Blake.
29446
29447 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
29448
29449         * lib/regex.h: Fix a mention of `regex_compile' (should be
29450         `re_compile_pattern').
29451         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
29452         (re_set_registers): Correct name of parameter in comment.
29453
29454         * doc/regex.texi: Add documentation for missing syntax flags.
29455         Remove commented-out documentation of defunct syntax option
29456         RE_NO_EMPTY_ALTS.
29457         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
29458         Add documentation of re_set_registers.
29459         Document trick to re-use a pattern buffer by setting fastmap manually.
29460         Update documentation of struct re_pattern_buffer per public members.
29461         Uncomment documentation of equivalence class operators and
29462         collating symbol operators, since they are now implemented,
29463         Explain leftmost-longest matching in relation to alternatives.
29464         Tidy documentation of substring matching.
29465         Remove POSIX documentation, which is done better in
29466         glibc, and refer the reader there. Keep BSD API documentation, as
29467         that is not readily available elsewhere.
29468
29469 2010-09-07  Eric Blake  <eblake@redhat.com>
29470
29471         getopt: handle POSIXLY_CORRECT set but not exported
29472         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
29473         export state of POSIXLY_CORRECT, due to bash set -o posix.
29474         Reported by Dustin J. Mitchell.
29475
29476 2010-09-05  Bruno Haible  <bruno@clisp.org>
29477
29478         gnulib-tool: Highlight the changed options.
29479         * gnulib-tool (func_usage): Display the --import, --add-import,
29480         --remove-import explanations in bold font.
29481
29482 2010-09-06  Karl Berry  <karl@gnu.org>
29483
29484         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
29485
29486 2010-09-05  Bruno Haible  <bruno@clisp.org>
29487
29488         uniwidth/width: Update comment.
29489         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
29490         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
29491
29492 2010-09-05  Bruno Haible  <bruno@clisp.org>
29493
29494         isinf, isnan: Relax license.
29495         * modules/isinf (License): Change from GPL to LGPL, with consent from
29496         Ben Pfaff.
29497         * modules/isnan (License): Likewise.
29498         Requested by Ludovic Courtès.
29499
29500 2010-09-04  Bruno Haible  <bruno@clisp.org>
29501
29502         gnulib-tool: Help migration from --import to --add-import or --update.
29503         * gnulib-tool: Emit a verbose error message when --import is used
29504         without any module name.
29505
29506 2010-09-04  Bruno Haible  <bruno@clisp.org>
29507
29508         Update doc about gnulib-tool.
29509         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
29510         'gnulib-tool --update' in more detail.
29511         Reported by Eric Blake.
29512
29513 2010-09-04  Bruno Haible  <bruno@clisp.org>
29514
29515         gnulib-tool: Change --import. New options --add/remove-import.
29516         * gnulib-tool: New options --add-import, --remove-import.
29517         (func_usage): Document them.
29518         (have_associative): Define always.
29519         (func_import): In import mode, don't merge the specified settings with
29520         the cached settings. Implement remove-import mode.
29521         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
29522         Explain when to use them versus --import.
29523         (Simple update): Use --add-import instead of --import.
29524         * NEWS: Mention the change.
29525
29526 2010-09-04  Bruno Haible  <bruno@clisp.org>
29527
29528         * doc/gnulib-tool.texi (Initial import): Update paragraph about
29529         separate gnulib.mk.
29530
29531 2010-09-04  Bruno Haible  <bruno@clisp.org>
29532
29533         gnulib-tool: Don't talk about CVS any more.
29534         * gnulib-tool (func_usage, func_import): Write "version control"
29535         instead of CVS.
29536
29537 2010-09-04  Jim Meyering  <meyering@redhat.com>
29538
29539         maint.mk: avoid obscure sc_copyright_check failure in coreutils
29540         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
29541         false positives (whose names may be ill-chosen) when searching
29542         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
29543         would cause a false-positive.
29544
29545         avoid coreutils "make distcheck" failure
29546         Coreutils tests with an absolute build directory name that contains
29547         a space.  Not quoting this directory name caused a failure.
29548         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
29549         * tests/test-vc-list-files-cvs.sh: Likewise.
29550
29551 2010-09-04  Bruno Haible  <bruno@clisp.org>
29552
29553         gnulib-tool: Avoid error when run in a package without Makefile.am.
29554         * gnulib-tool: When collecting the m4dirs in a package that does not
29555         have a Makefile.am, eliminate those directories that contain no
29556         gnulib-cache.m4. Fix expression that counts these directories.
29557
29558 2010-09-04  Bruno Haible  <bruno@clisp.org>
29559
29560         update-copyright test: Improve output when perl is missing or too old.
29561         * tests/test-update-copyright.sh: Move test of Perl version down after
29562         the test whether Perl exists. Provide an explanation relating Perl's
29563         error message to Automake's SKIP: message.
29564
29565 2010-09-04  Bruno Haible  <bruno@clisp.org>
29566
29567         Don't augment PATH in TESTS_ENVIRONMENT.
29568         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
29569         set abs_aux_dir instead of augmenting PATH.
29570         * modules/vc-list-files-tests (Makefile.am): Likewise.
29571         * tests/test-update-copyright.sh: Augment PATH here.
29572         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
29573         path_prepend_.
29574         * tests/test-vc-list-files-git.sh: Likewise.
29575
29576 2010-09-04  Jim Meyering  <meyering@redhat.com>
29577
29578         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
29579         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
29580
29581 2010-09-04  Bruno Haible  <bruno@clisp.org>
29582
29583         strdup: Fix compilation error in C++ mode.
29584         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
29585         the macro.
29586
29587 2010-09-04  Bruno Haible  <bruno@clisp.org>
29588
29589         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
29590         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
29591         macro into a function.
29592         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29593
29594 2010-09-04  Bruno Haible  <bruno@clisp.org>
29595
29596         Set PATH_SEPARATOR the same way autoconf does.
29597         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
29598         the value of PATH_SEPARATOR the same way autoconf-generated configure
29599         scripts do.
29600         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
29601         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29602
29603 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29604
29605         Set PATH_SEPARATOR the same way autoconf does.
29606         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
29607         the same way autoconf-generated configure scripts do.
29608         * posix-modules: Likewise.
29609
29610 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29611
29612         hash: fix safe_hasher const typo
29613         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
29614         const; otherwise, there is a type error later.
29615
29616 2010-09-02  Jim Meyering  <meyering@redhat.com>
29617
29618         test-update-copyright.sh: require perl 5.8.0
29619         * tests/test-update-copyright.sh: Require 5.8.0,
29620         which Tom G. Christensen has confirmed is adequate,
29621         while 5.6.1 is not.
29622
29623 2010-09-02  Eric Blake  <eblake@redhat.com>
29624
29625         tests: init.sh improvements for re-exec'ing with zsh
29626         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
29627         -vx through shell re-exec.
29628         Reported by Tom G. Christensen.
29629
29630         wctype: fix typo in previous commit
29631         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
29632         Reported by Ludovic Courtès.
29633
29634 2010-09-02  Jim Meyering  <meyering@redhat.com>
29635
29636         test-update-copyright.sh: skip test if Perl is too old
29637         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
29638         Reported by Tom G. Christensen.
29639
29640 2010-09-02  Bruno Haible  <bruno@clisp.org>
29641
29642         wctype: Avoid compilation error on IRIX 6.5.30.
29643         * lib/wctype.in.h (iswblank): Declare with a replacement if
29644         REPLACE_ISWBLANK is set.
29645         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
29646         declared. Set REPLACE_ISWBLANK.
29647         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
29648         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
29649         * doc/posix-headers/wctype.texi: Likewise.
29650         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29651
29652 2010-09-01  Bruno Haible  <bruno@clisp.org>
29653
29654         New module 'socketlib'.
29655         * modules/socketlib: New file.
29656         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
29657         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
29658         * modules/sockets (Depends-on): Add socketlib.
29659         Suggested by Sam Steingold <sds@gnu.org>.
29660
29661 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29662
29663         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
29664
29665         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
29666         when one needs search access to a directory but not read access.
29667         On systems where it is available, it works in some cases where
29668         O_RDONLY does not, namely on directories that are searchable but
29669         not readable, and which need only to be searchable.  If O_SEARCH
29670         is not available, fall back to the traditional method of using
29671         O_RDONLY.
29672
29673         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
29674         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
29675         when opening a directory that needs only to be searchable.
29676         * lib/chdir-safer.c (chdir_no_follow): Likewise.
29677         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
29678         * lib/openat-proc.c (openat_proc_name): Likewise.
29679         * lib/openat.c (openat_needs_fchdir): Likewise.
29680         * lib/save-cwd.c (save_cwd): Likewise.
29681         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
29682
29683 2010-08-28  Bruno Haible  <bruno@clisp.org>
29684
29685         New module 'host-cpu-c-abi'.
29686         * modules/host-cpu-c-abi: New file.
29687         * m4/host-cpu-c-abi.m4: New file, based on part of
29688         clisp/src/m4/general.m4.
29689         Requested by Sam Steingold <sds@gnu.org>.
29690
29691 2010-08-31  Eric Blake  <eblake@redhat.com>
29692         and Jim Meyering  <meyering@redhat.com>
29693
29694         hash: factor, and guard against misbehaving hasher function
29695         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
29696         of table->hasher's return value.  Also protect against a hash value
29697         so large that adding it to table->bucket results in a NULL pointer.
29698         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
29699         Use it in place of open-coded check-and-abort.
29700
29701 2010-08-30  Bruno Haible  <bruno@clisp.org>
29702
29703         hash: silence spurious clang warning
29704         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
29705         Reported by Eric Blake.
29706
29707 2010-08-30  Eric Blake  <eblake@redhat.com>
29708
29709         strstr, memmem, strcasestr: avoid leaked shell message
29710         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
29711         FreeBSD.
29712         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29713         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29714
29715         tests: silence clang warning
29716         * tests/test-malloca.c (do_allocation): Avoid dead store.
29717
29718 2010-08-29  Bruno Haible  <bruno@clisp.org>
29719
29720         gettext: Fix recent mistake.
29721         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
29722
29723 2010-08-29  Bruno Haible  <bruno@clisp.org>
29724
29725         selinux-h: Offer a --without-selinux option.
29726         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
29727         --without-selinux was specified, skip all tests and define
29728         HAVE_SELINUX_SELINUX_H to 0.
29729         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
29730         set LIB_SELINUX to empty.
29731         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
29732         gl_LIBSELINUX. If --without-selinux was specified, replace
29733         selinux/context.h.
29734         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
29735
29736 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29737             Bruno Haible  <bruno@clisp.org>
29738
29739         Make the module 'realloc-gnu' work again on AIX and OSF/1.
29740         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
29741         of HAVE_REALLOC.
29742         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
29743         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
29744         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
29745         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29746
29747 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29748             Bruno Haible  <bruno@clisp.org>
29749
29750         Make the module 'calloc-gnu' work again on AIX and OSF/1.
29751         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
29752         HAVE_CALLOC.
29753         * lib/xmalloc.c: Update accordingly.
29754         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
29755         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
29756         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
29757
29758 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29759             Bruno Haible  <bruno@clisp.org>
29760
29761         Make the module 'malloc-gnu' work again on AIX and OSF/1.
29762         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
29763         HAVE_MALLOC.
29764         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
29765         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
29766         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29767
29768 2010-08-29  Bruno Haible  <bruno@clisp.org>
29769
29770         Update modules list.
29771         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29772         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
29773         (String handling <string.h>): Add astrxfrm.
29774         (File system functions): Add readlinkat.
29775
29776 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29777
29778         Tests for module 'realloc-gnu'.
29779         * modules/realloc-gnu-tests: New file.
29780         * tests/test-realloc-gnu.c: New file.
29781
29782         Tests for module 'calloc-gnu'.
29783         * modules/calloc-gnu-tests: New file.
29784         * tests/test-calloc-gnu.c: New file.
29785
29786         Tests for module 'malloc-gnu'.
29787         * modules/malloc-gnu-tests: New file.
29788         * tests/test-malloc-gnu.c: New file.
29789
29790 2010-08-28  Bruno Haible  <bruno@clisp.org>
29791
29792         Rename module 'realloc' -> 'realloc-gnu'.
29793         * modules/realloc-gnu: New file, copied from modules/realloc.
29794         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
29795         obsolete.
29796         * modules/mgetgroups (Depends-on): Update.
29797         * doc/posix-functions/realloc.texi: Update.
29798         * NEWS: Mention the change.
29799
29800         Rename module 'calloc' -> 'calloc-gnu'.
29801         * modules/calloc-gnu: New file, copied from modules/calloc.
29802         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
29803         obsolete.
29804         * doc/posix-functions/calloc.texi: Update.
29805         * NEWS: Mention the change.
29806
29807         Rename module 'malloc' -> 'malloc-gnu'.
29808         * modules/malloc-gnu: New file, copied from modules/malloc.
29809         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
29810         obsolete.
29811         * modules/argp (Depends-on): Update.
29812         * modules/regex (Depends-on): Update.
29813         * doc/posix-functions/malloc.texi: Update.
29814         * NEWS: Mention the change.
29815
29816 2010-08-28  Eric Blake  <eblake@redhat.com>
29817
29818         pread, pwrite: add missing dependency
29819         * modules/pread (Depends-on): Add extensions.
29820         * modules/pwrite (Depends-on): Likewise.
29821
29822 2010-08-28  Bruno Haible  <bruno@clisp.org>
29823
29824         unistr/u*-strchr: Fix tests dependencies.
29825         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
29826         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
29827         Reported by Ian Beckwith <ianb@erislabs.net>.
29828
29829 2010-08-28  Bruno Haible  <bruno@clisp.org>
29830
29831         read-file: Don't occupy too much unused memory.
29832         * lib/read-file.c (fread_file): Shrink the buffer at the end.
29833
29834 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
29835             Eric Blake  <eblake@redhat.com>
29836             Bruno Haible  <bruno@clisp.org>
29837
29838         read-file: Avoid memory reallocations with regular files.
29839         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
29840         (fread_file): With regular files, use the remaining length as the
29841         initial buffer size.  Check against overflow.
29842         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
29843         sys_stat.
29844
29845 2010-08-28  Bruno Haible  <bruno@clisp.org>
29846
29847         ftello: Relax license.
29848         * modules/ftello (License): Relax to LGPLv2+.
29849         Reported by Eric Blake.
29850
29851 2010-08-28  Bruno Haible  <bruno@clisp.org>
29852
29853         Avoid relocwrapper link errors due to gnulib replacement functions.
29854         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
29855         function.
29856         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29857
29858 2010-08-28  Bruno Haible  <bruno@clisp.org>
29859
29860         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
29861         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
29862         defined.
29863         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
29864         Suggested by Eric Blake.
29865
29866 2010-08-28  Bruno Haible  <bruno@clisp.org>
29867
29868         sys_socket, netdb: Ensure socklen_t gets defined.
29869         * modules/sys_socket (Depends-on): Add socklen.
29870         * modules/netdb (Depends-on): Likewise.
29871         * modules/getaddrinfo (Depends-on): Remove socklen.
29872         * modules/getsockopt (Depends-on): Likewise.
29873         * modules/setsockopt (Depends-on): Likewise.
29874         * tests/test-sys_socket.c: Check that socklen_t is defined.
29875         * tests/test-netdb.c: Likewise.
29876         * m4/socklen.m4: Update comments.
29877         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29878
29879 2010-08-27  Eric Blake  <eblake@redhat.com>
29880
29881         login_tty: add missing dependency
29882         * modules/login_tty (Depends-on): Add pty.
29883
29884 2010-08-26  Eric Blake  <eblake@redhat.com>
29885
29886         lib-symbol-versions: fix m4 quoting
29887         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
29888         format for AC_LINK_IFELSE.
29889
29890         glob: fix compile test
29891         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
29892
29893         btowc: fix missing file
29894         * modules/btowc (Files): Also ship locale-fr.m4.
29895
29896         lseek: fix link test
29897         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
29898         AC_LINK_IFELSE.
29899
29900         include_next: silence autoconf 2.68 warning
29901         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
29902         AC_COMPILE_IFELSE as special.
29903         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
29904         autoconf < 2.68.
29905
29906         acl: fix compilation test
29907         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
29908         AC_COMPILE_IFELSE.
29909
29910 2010-08-26  Bruno Haible  <bruno@clisp.org>
29911
29912         Modernize AC_TRY_RUN invocations.
29913         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
29914         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29915         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
29916         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
29917         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
29918         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29919         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29920         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29921         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29922         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29923         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29924         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29925         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29926         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29927         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29928         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
29929         gl_MBRLEN_NUL_RETVAL): Likewise.
29930         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29931         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29932         Likewise.
29933         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29934         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29935         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29936         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29937         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
29938         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
29939         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
29940         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
29941         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
29942         Likewise.
29943         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
29944         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
29945         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29946         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29947         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29948         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29949         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29950         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
29951         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29952         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29953
29954 2010-08-26  Bruno Haible  <bruno@clisp.org>
29955
29956         Modernize AC_TRY_LINK invocations.
29957         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
29958         AC_TRY_LINK.
29959         * m4/argp.m4 (gl_ARGP): Likewise.
29960         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
29961         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29962         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29963         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29964         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29965         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
29966         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
29967         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
29968         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29969         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29970         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29971         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
29972         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
29973         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29974         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29975         * m4/hostent.m4 (gl_HOSTENT): Likewise.
29976         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29977         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
29978         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
29979         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
29980         Likewise.
29981         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
29982         Likewise.
29983         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
29984         Likewise.
29985         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
29986         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
29987         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
29988         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
29989         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
29990         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29991         * m4/servent.m4 (gl_SERVENT): Likewise.
29992         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
29993         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
29994         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
29995         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
29996         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29997         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29998         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29999         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30000         * modules/tsearch-tests (configure.ac): Likewise.
30001
30002 2010-08-26  Bruno Haible  <bruno@clisp.org>
30003
30004         Modernize AC_TRY_COMPILE invocations.
30005         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
30006         AC_TRY_COMPILE.
30007         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
30008         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
30009         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
30010         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
30011         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
30012         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30013         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30014         * m4/lock.m4 (gl_LOCK): Likewise.
30015         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
30016         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30017         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
30018         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30019         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
30020         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
30021         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30022         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
30023         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
30024         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
30025         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
30026         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30027         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
30028         extraneous semicolon.
30029
30030 2010-08-26  Jim Meyering  <meyering@redhat.com>
30031
30032         stat-time: relax license LGPL
30033         * modules/stat-time (License): Change from GPL to LGPL,
30034         with consent from all contributors, for use in libguile.
30035         Requested by Ludovic Courtès.
30036
30037 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
30038
30039         poll: return immediately on POLLHUP.
30040         * lib/poll.c (poll): Always set timeout before wait_timeout is
30041         computed.
30042
30043 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30044
30045         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
30046         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
30047         rmdir ("dir/.//"), unlinkat.
30048
30049 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30050
30051         stdbool: avoid spurious failure with modern xlc
30052         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30053
30054 2010-08-24  Bruno Haible  <bruno@clisp.org>
30055
30056         getloadavg: simplify code
30057         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
30058         gl_have_func. Update comments.
30059
30060 2010-08-24  Eric Blake  <eblake@redhat.com>
30061
30062         getloadavg: don't define SVR4 on cygwin
30063         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
30064         only define SVR4 when -lkvm is required.
30065         Reported by Yaakov Selkowitz.
30066
30067 2010-08-24  Bruno Haible  <bruno@clisp.org>
30068
30069         priv-set: fix comment
30070         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
30071
30072 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30073
30074         priv-set: fix comments
30075         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
30076         to match code, as suggested by David Bartley in:
30077         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
30078
30079 2010-08-23  Eric Blake  <eblake@redhat.com>
30080
30081         stdbool: avoid rejecting clang
30082         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30083         * tests/test-stdbool.c: Enable more tests if using the system
30084         <stdbool.h> instead of the gnulib replacement.
30085         (main): Move xlc bug test to a runtime test for all compilers.
30086         Reported by Anders Kaseorg.
30087
30088         argz: fix shell quoting issue
30089         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
30090         Reported by Charles Wilson.
30091
30092 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
30093             Erik Faye-Lund <kusmabite@gmail.com>
30094
30095         poll, select: handle ERROR_BROKEN_PIPE.
30096         * lib/poll.c (win32_compute_revents): Return POLLHUP when
30097         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30098         * lib/select.c (win32_compute_revents): Do not mark a pipe
30099         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30100
30101 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
30102
30103         fts: allow compilation with C++
30104         * lib/fts_.h: Specify extern "C" linkage with C++.
30105
30106 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30107
30108         Fix gnulib-tool sed script de-commentation for AIX sed.
30109         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
30110         sed.
30111
30112 2010-08-17  Eric Blake  <eblake@redhat.com>
30113
30114         test-stddef: test for (some) offsetof bugs
30115         * tests/test-stddef.c: Enhance test to ensure correct type of
30116         offsetof.
30117         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
30118         that we are not fixing at this time.
30119
30120 2010-08-15  Bruno Haible  <bruno@clisp.org>
30121
30122         stpncpy: Allow stpncpy to be defined as a macro.
30123         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
30124         if it's already correctly declared.
30125         * lib/string.in.h (stpncpy): Undefine before redefining.
30126         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
30127
30128 2010-08-14  Bruno Haible  <bruno@clisp.org>
30129
30130         Rename module 'memxfrm' to 'amemxfrm'.
30131         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
30132         (amemxfrm): Renamed from memxfrm.
30133         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
30134         (amemxfrm): Renamed from memxfrm.
30135         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
30136         * NEWS: Mention the change.
30137         * MODULES.html.sh (String handling <string.h>): Update.
30138         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
30139         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
30140         * lib/unicase/u16-casexfrm.c: Likewise.
30141         * lib/unicase/u32-casexfrm.c: Likewise.
30142         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
30143         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
30144         * lib/uninorm/u16-normxfrm.c: Likewise.
30145         * lib/uninorm/u32-normxfrm.c: Likewise.
30146         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
30147         memxfrm.
30148         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
30149         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
30150         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
30151         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
30152         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
30153         Suggested by Paul Eggert.
30154
30155 2010-08-14  Bruno Haible  <bruno@clisp.org>
30156
30157         Tests for module 'astrxfrm'.
30158         * modules/astrxfrm-tests: New file.
30159         * tests/test-astrxfrm.c: New file.
30160
30161         New module 'astrxfrm'.
30162         * lib/astrxfrm.h: New file.
30163         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
30164         * modules/astrxfrm: New file.
30165
30166 2010-08-14  Reuben Thomas <rrt@sc3d.org>
30167
30168         regex: Tweak doc.
30169         * doc/regex.texi (Overview): Don't mention regex.c.
30170         (GNU Regular Expression Compiling): Likewise.
30171         (Match-end-of-line Operator): Mention 'not_eol'.
30172
30173 2010-08-14  Brian Gough  <bjg@gnu.org>
30174             Bruno Haible  <bruno@clisp.org>
30175
30176         git-merge-changelog: add doc relating to use with bzr and hg.
30177         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
30178
30179 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
30180
30181         pthread: fix pthread.h creation for srcdir != builddir
30182         * modules/pthread (Makefile.am): Fix the rule to work also in a
30183         non-srcdir build.
30184
30185 2010-08-13  Karl Berry  <karl@gnu.org>
30186
30187         * doc/regex.texi (Predefined Syntaxes): @smallexample.
30188         * doc/posix-*/*: force line break before @url of POSIX
30189         specifications.
30190         Suggested by Werner Lemberg.
30191
30192 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30193
30194         strtod: fix const diagnostic
30195         * lib/strtod.c (strtod): Don't assign const char * to char *,
30196         as this elicits a warning from GCC when warnings are enabled.
30197
30198 2010-08-10  Pádraig Brady <P@draigbrady.com>
30199         and Eric Blake  <eblake@redhat.com>
30200
30201         copy-acl: ignore ENOTSUP on HP-UX
30202         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
30203         so that it is available for HP-UX.
30204         * lib/copy-acl.c (qcopy_acl): Use it.
30205         Reported by Patrick M. Callahan.
30206
30207 2010-08-10  Eric Blake  <eblake@redhat.com>
30208
30209         open, chown: relax license
30210         * modules/open (License): Change to LGPLv2+, with consent by all
30211         authors, for use in augeas.
30212         * modules/chown (License): Likewise.
30213         * modules/lchown (Likewise): Likewise.
30214         Requested by Adam Stokes.
30215
30216 2010-08-09  Karl Berry  <karl@gnu.org>
30217
30218         * build-aux/ar-lib: new file, import from Automake.
30219         * config/srclist.txt: autocheck for updates.
30220
30221 2010-08-09  Eric Blake  <eblake@redhat.com>
30222
30223         readlinkat: adjust client modules
30224         * modules/areadlinkat (Depends-on): Use readlinkat, not
30225         symlinkat.
30226         * modules/areadlinkat-with-size (Depends-on): Likewise.
30227
30228         mknod: be more vocal about danger of running tests as root
30229         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
30230         root, since that is just asking for problems.
30231         Suggested by Bruno Haible, based on a report by Rainer Tammer.
30232
30233         readlinkat: split into its own module
30234         * modules/symlinkat: Split readlinkat...
30235         * modules/readlinkat: ...into separate module.
30236         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
30237         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
30238         * lib/symlinkat.c (readlinkat): Move...
30239         * lib/readlinkat.c: ...into new file.
30240         * modules/symlinkat-tests: Split readlinkat test...
30241         * modules/readlinkat-tests: ...into separate module.
30242         * tests/test-symlinkat.c: Split...
30243         * tests/test-readlinkat.c: ...into new file.
30244         * NEWS: Document the split.
30245         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30246         * lib/unistd.in.h (readlinkat): Likewise.
30247         Suggested by Bruno Haible.
30248
30249 2010-08-08  Bruno Haible  <bruno@clisp.org>
30250
30251         memxfrm: Speed up.
30252         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
30253         that usually only one call to strxfrm is necessary for each string
30254         part.
30255         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30256
30257 2010-08-07  Karl Berry  <karl@gnu.org>
30258
30259         * doc/posix-headers/limits.texi,
30260         * doc/posix-functions/malloc.texi,
30261         * doc/posix-functions/strsignal.texi: missing @item.
30262         * doc/ld-version-script.texi: spurious leading i.
30263         * doc/regex.texi (Interval Operators): no commas inside @var.
30264
30265 2010-08-01  Bruno Haible  <bruno@clisp.org>
30266
30267         Integrate the regex documentation.
30268         * doc/gnulib.texi: Define 'cn' index.
30269         (Regular expressions): New a chapter that includes regex.texi and
30270         regexprops-generic.texi.
30271         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
30272         syntax.
30273
30274         Whitespace cleanup.
30275         * doc/regex.texi: Remove trailing spaces.
30276
30277         Add regex documentation.
30278         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
30279         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
30280         Written by Kathy A. Hargreaves and Karl Berry.
30281
30282 2010-08-01  Bruno Haible  <bruno@clisp.org>
30283
30284         link: Update documentation.
30285         * doc/posix-functions/link.texi: Update regarding Solaris.
30286
30287 2010-07-31  Bruno Haible  <bruno@clisp.org>
30288
30289         Update modules list.
30290         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
30291         (String handling <string.h>): Add memcmp2, memxfrm.
30292         (Container data structures): Add xlist, xsublist, xoset.
30293         (Core language properties): Add alignof, unused-parameter.
30294         (Process control, Numeric conversion functions <stdlib.h>): Renamed
30295         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
30296         (Unibyte characters <ctype.h>): New section.
30297         (String handling <string.h>): New section.
30298         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
30299         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
30300         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
30301         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
30302         tan, tanh, tanl, y0, y1, yn.
30303         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
30304         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
30305         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
30306         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
30307         unlockpt, vdprintf, vdprintf-posix.
30308         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
30309         (File system functions): Add concat-filename, sys_file, sys_ioctl,
30310         xconcat-filename.
30311         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
30312         getdtablesize, pipe2, pipe2-safer.
30313         (Security): New section.
30314         (Networking functions): Add accept4.
30315         (Signal handling): Add sigpipe.
30316         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
30317         mbmemcasecoll.
30318         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
30319         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
30320         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
30321         pipe-filter-ii.
30322         (Misc): Add argp-version-etc, login_tty, parse-duration.
30323
30324 2010-07-31  Bruno Haible  <bruno@clisp.org>
30325
30326         Improve doc in MODULES.html.
30327         * modules/linkat (Description): Add the word "function".
30328         * modules/mkfifo (Description): Likewise.
30329         * modules/mknod (Description): Likewise.
30330         * modules/remove (Description): Likewise.
30331         * modules/renameat (Description): Likewise.
30332         * modules/stat (Description): Likewise.
30333         * modules/symlink (Description): Likewise.
30334         * modules/unlink (Description): Likewise.
30335
30336 2010-07-31  Bruno Haible  <bruno@clisp.org>
30337
30338         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
30339         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
30340         option --enable/disable-c++ instead of --enable/disable-cxx.
30341         * NEWS: Mention the change.
30342
30343 2010-07-31  Bruno Haible  <bruno@clisp.org>
30344
30345         readlink, areadlink: Relax test a bit.
30346         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
30347         alternative to ENOTDIR.
30348         * tests/test-areadlink.h (test_areadlink): Likewise.
30349         Reported by Rainer Tammer.
30350
30351 2010-07-31  Bruno Haible  <bruno@clisp.org>
30352
30353         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
30354         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
30355         character, perform the search using U_STRCHR.
30356         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
30357         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
30358         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
30359         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
30360         Suggested by Paolo Bonzini.
30361
30362 2010-07-31  Bruno Haible  <bruno@clisp.org>
30363
30364         unistr/u*-strstr: Fix dependencies.
30365         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
30366         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
30367         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
30368
30369 2010-07-31  Bruno Haible  <bruno@clisp.org>
30370
30371         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
30372         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
30373         the beginning of the loop.
30374         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
30375         cases in 'switch' statement.
30376
30377         unistr/u8-strchr: Fix several bugs.
30378         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
30379         the string. When not found, return NULL, not a pointer near the end.
30380
30381         More tests for unistr/u8-strchr.
30382         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
30383         that the function does not read past the first occurrence of the byte
30384         being searched.
30385         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
30386         * tests/unistr/test-u16-strchr.c (main): New function.
30387         * tests/unistr/test-u32-strchr.c (main): New function.
30388
30389 2010-07-31  Bruno Haible  <bruno@clisp.org>
30390
30391         posix-modules: Ignore backup files of documentation files.
30392         * posix-modules: grep only through files named *.texi.
30393
30394 2010-07-31  Bruno Haible  <bruno@clisp.org>
30395
30396         symlinkat: Fix documentation.
30397         * doc/posix-functions/readlinkat.texi: Fix module name.
30398
30399 2010-07-31  Bruno Haible  <bruno@clisp.org>
30400
30401         fchownat: Replace also when chown has the trailing slash bug.
30402         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
30403         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
30404         introduced on 2010-04-10.
30405         Reported by Rainer Tammer.
30406
30407 2010-07-31  Bruno Haible  <bruno@clisp.org>
30408
30409         linkat: Work around AIX 7.1 bug.
30410         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
30411         whether linkat handles trailing slash correctly. If not, replace linkat
30412         and define LINKAT_TRAILING_SLASH_BUG.
30413         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
30414         check whether (fd1,file1) points to a directory if file1 or file2 ends
30415         in a slash. Code taken from lib/link.c.
30416         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
30417         Reported by Rainer Tammer.
30418
30419 2010-07-31  Bruno Haible  <bruno@clisp.org>
30420
30421         Correctly determine whether pow is available in libc on AIX 7 with xlc.
30422         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
30423         This disables an xlc optimization that was causing wrong test results.
30424         Reported by Rainer Tammer.
30425
30426 2010-07-31  Bruno Haible  <bruno@clisp.org>
30427
30428         iconv: Work around AIX 6.1..7.1 bug.
30429         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
30430         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
30431         cross-compiling, guess no on all versions of AIX.
30432         Reported by Rainer Tammer.
30433
30434 2010-07-31  Bruno Haible  <bruno@clisp.org>
30435
30436         readlink: Relax test a bit.
30437         * tests/test-readlink.h (test_readlink): Allow different errno value
30438         when readlink is called with a file name that ends in / and refers to
30439         a file.
30440         Suggested by Eric Blake.
30441         Reported by Rainer Tammer.
30442
30443 2010-07-31  Bruno Haible  <bruno@clisp.org>
30444
30445         copysign: Does not require -lm on glibc systems.
30446         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
30447         gl_COMMON_DOUBLE_MATHFUNC.
30448         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
30449
30450 2010-07-31  Bruno Haible  <bruno@clisp.org>
30451
30452         duplocale: Work around AIX 7.1 bug.
30453         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
30454         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
30455         * lib/duplocale.c (rpl_duplocale): Update comment.
30456         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
30457         Reported by Rainer Tammer.
30458
30459 2010-07-30  Bruno Haible  <bruno@clisp.org>
30460
30461         dirfd: Avoid link error on AIX 7.1.
30462         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
30463         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
30464         exist, set REPLACE_DIRFD.
30465         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
30466         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
30467         * doc/posix-functions/dirfd.texi: Update.
30468         Reported by Rainer Tammer.
30469
30470 2010-07-30  Eric Blake  <eblake@redhat.com>
30471
30472         strtod: next round of AIX fixes
30473         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
30474         exponent.
30475         * tests/test-strtod.c (main): Enhance tests.
30476         * doc/posix-functions/strtod.texi (strtod): Document next bug.
30477         Reported by Rainer Tammer.
30478
30479         futimens: fix configure check
30480         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
30481         Reported by Bruno Haible.
30482
30483 2010-07-30  Bruno Haible  <bruno@clisp.org>
30484
30485         getline: Update regarding AIX.
30486         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
30487         Reported by Rainer Tammer.
30488
30489 2010-07-30  Bruno Haible  <bruno@clisp.org>
30490
30491         wcwidth: Drop replacement on AIX 7.
30492         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
30493         AIX 7.
30494         Reported by Rainer Tammer.
30495
30496 2010-07-30  Bruno Haible  <bruno@clisp.org>
30497
30498         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
30499         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
30500         a 'char *'.
30501         Reported by Rainer Tammer.
30502
30503 2010-07-30  Bruno Haible  <bruno@clisp.org>
30504
30505         unlink: Update regarding AIX.
30506         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
30507         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
30508         Reported by Rainer Tammer.
30509
30510 2010-07-30  Bruno Haible  <bruno@clisp.org>
30511
30512         symlink: Update regarding AIX.
30513         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
30514         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
30515         Reported by Rainer Tammer.
30516
30517 2010-07-30  Bruno Haible  <bruno@clisp.org>
30518
30519         strndup: Update regarding AIX.
30520         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
30521         AIX 7.
30522         Reported by Rainer Tammer.
30523
30524 2010-07-30  Bruno Haible  <bruno@clisp.org>
30525
30526         stat: Update regarding AIX.
30527         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
30528         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
30529         Reported by Rainer Tammer.
30530
30531 2010-07-30  Bruno Haible  <bruno@clisp.org>
30532
30533         truncl: Fix autoconf test.
30534         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
30535         whether truncl works.
30536         Reported by Rainer Tammer.
30537
30538 2010-07-30  Bruno Haible  <bruno@clisp.org>
30539
30540         round: Update regarding AIX.
30541         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
30542         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
30543         Reported by Rainer Tammer.
30544
30545 2010-07-30  Bruno Haible  <bruno@clisp.org>
30546
30547         rename: Update regarding AIX.
30548         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
30549         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
30550         Reported by Rainer Tammer.
30551
30552 2010-07-30  Bruno Haible  <bruno@clisp.org>
30553
30554         printf.m4: Update regarding AIX.
30555         * m4/printf.m4: Update comments regarding AIX.
30556         Reported by Rainer Tammer.
30557
30558 2010-07-30  Bruno Haible  <bruno@clisp.org>
30559
30560         iconv: Update regarding AIX.
30561         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
30562         AIX 7.
30563         Reported by Rainer Tammer.
30564
30565 2010-07-30  Bruno Haible  <bruno@clisp.org>
30566
30567         getopt: Update regarding AIX.
30568         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
30569         no on AIX.
30570         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
30571         Reported by Rainer Tammer.
30572
30573 2010-07-30  Bruno Haible  <bruno@clisp.org>
30574
30575         ldexpl; Update regarding AIX.
30576         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
30577         on AIX 7.
30578         Reported by Rainer Tammer.
30579
30580 2010-07-30  Bruno Haible  <bruno@clisp.org>
30581
30582         frexpl: Update regarding AIX.
30583         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
30584         on AIX 7.
30585         Reported by Rainer Tammer.
30586
30587 2010-07-30  Bruno Haible  <bruno@clisp.org>
30588
30589         open, fopen: Update regarding AIX.
30590         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
30591         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30592         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
30593         * doc/posix-functions/fopen.texi: Likewise.
30594         Reported by Rainer Tammer.
30595
30596 2010-07-30  Bruno Haible  <bruno@clisp.org>
30597
30598         chown: Update doc regarding AIX.
30599         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
30600         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
30601         Reported by Rainer Tammer.
30602
30603 2010-07-30  Eric Blake  <eblake@redhat.com>
30604
30605         strtod: fix bug in replacement function on AIX
30606         * lib/strtod.c (strtod): Special case broken "0x" parse in
30607         underlying strtod.
30608         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
30609         * doc/posix-functions/strtod.texi (strtod): Likewise.
30610         Reported by Rainer Tammer.
30611
30612 2010-07-30  Bruno Haible  <bruno@clisp.org>
30613
30614         mbrlen: Fix cross-compilation guess for AIX.
30615         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
30616         guess. Leftover from 2008-12-22.
30617
30618 2010-07-30  Bruno Haible  <bruno@clisp.org>
30619
30620         mbrtowc: Fix cross-compilation guess for AIX.
30621         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
30622         guess. Leftover from 2008-12-21.
30623
30624 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
30625
30626         init.sh: work around trap limitation of some shells
30627         * tests/init.sh (setup_): Move exit trap outside of shell function.
30628
30629 2010-07-29  Eric Blake  <eblake@redhat.com>
30630
30631         strtod: aid debugging
30632         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
30633         understanding why strtod is rejected.
30634
30635 2010-07-28  Bruno Haible  <bruno@clisp.org>
30636
30637         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
30638         * lib/unistr/u8-chr.c: Include <string.h>.
30639         * tests/unistr/test-u8-chr.c: Likewise.
30640         * tests/unistr/test-u16-chr.c: Likewise.
30641         * tests/unistr/test-u32-chr.c: Likewise.
30642         * tests/unistr/test-u8-strchr.c: Likewise.
30643         * tests/unistr/test-u16-strchr.c: Likewise.
30644         * tests/unistr/test-u32-strchr.c: Likewise.
30645         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
30646         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
30647         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
30648         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
30649
30650 2010-07-28  Bruno Haible  <bruno@clisp.org>
30651
30652         Use spaces for indentation, not tabs.
30653         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30654
30655 2010-07-27  Bruno Haible  <bruno@clisp.org>
30656
30657         mbspcasecmp: Fix function specification.
30658         * lib/string.in.h (mbspcasecmp): Fix specification comment.
30659         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
30660         Reported by Eric Blake <eblake@redhat.com>.
30661
30662 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
30663
30664         timespec: use cast and not conditional, as truncation isn't possible
30665         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
30666         instead of a conditional.  Comment about the situation in more detail.
30667         This undoes most of the 2009-10-29 patch.
30668
30669 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
30670
30671         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
30672         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
30673         * lib/unistr/u8-strchr.c: Likewise.
30674         * modules/unistr/u8-chr: Depend on memchr.
30675
30676         unistr/u*-strchr: add tests
30677         * modules/unistr/u8-strchr-tests: New file.
30678         * modules/unistr/u16-strchr-tests: New file.
30679         * modules/unistr/u32-strchr-tests: New file.
30680         * tests/unistr/test-strchr.h: New file.
30681         * tests/unistr/test-u8-strchr.c: New file.
30682         * tests/unistr/test-u16-strchr.c: New file.
30683         * tests/unistr/test-u32-strchr.c: New file.
30684
30685         unistr/u*-chr: test multibyte sequences more
30686         * tests/unistr/test-chr.h: Do complete testing of the characters in the
30687         test vector.
30688         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
30689         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
30690         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
30691
30692         unistr/u*-chr: test multibyte sequences
30693         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
30694
30695         unistr/u*-chr: prepare for multibyte tests
30696         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
30697         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
30698         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
30699         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
30700         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
30701         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
30702
30703 2010-07-18  Bruno Haible  <bruno@clisp.org>
30704
30705         unistr/u8-strchr: Optimize non-ASCII argument case.
30706         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
30707         because the first byte often matches anyway.
30708         Reported by Pádraig Brady <P@draigbrady.com>.
30709
30710 2010-07-15  Karl Berry  <karl@gnu.org>
30711
30712         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
30713
30714 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
30715
30716         getcwd: on Solaris, work better if ancestors are inaccessible
30717         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
30718         buffer and size, try again with a large buffer.  This works better
30719         on Solaris, since its getcwd succeeds even if the path to the root
30720         is inaccessible, and this is helpful in common cases such as .zfs
30721         hidden directories.  Problem reported by J Chapman Flack in
30722         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
30723         Use system getcwd if it's declared, not merely if it's partly
30724         working; use the partly-working test only to avoid needless effort
30725         if the system getcwd fails.
30726         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
30727         comment that was already obsolete and is now even more obsolete.
30728         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
30729         now might call strdup.
30730
30731 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
30732
30733         pthread: Add enough so that coreutils/src/sort.c compiles.
30734         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
30735         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
30736         gnulib. Include <sched.h> and <time.h>, as per POSIX.
30737         Include <sys/types.h>, in case it defines pthread_t.
30738         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
30739         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
30740         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
30741         (pthread_rwlockattr_t, pthread_spinlock_t):
30742         New typedefs, if HAVE_PTHREAD_T is not defined.
30743         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
30744         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
30745         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
30746         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
30747         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
30748         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
30749         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
30750         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
30751         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
30752         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
30753         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
30754         New macros.
30755         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
30756         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
30757         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
30758         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
30759         (pthread_spin_unlock): New dummy functions.
30760         (pthread_create): Return EAGAIN; don't set errno.
30761         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
30762         require AC_C_INLINE.
30763         * modules/pthread (Depends-on): Add sched, time.
30764         (pthread.h): Use AM_V_GEN.
30765
30766 2010-07-13  Bruno Haible  <bruno@clisp.org>
30767
30768         striconveh: Don't malloc memory if the result buffer is sufficient.
30769         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
30770         buffer if its size is sufficient.
30771         Reported by Ludovic Courtès <ludo@gnu.org>.
30772
30773 2010-07-13  Bruno Haible  <bruno@clisp.org>
30774
30775         strtod: Add safety check.
30776         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
30777
30778 2010-07-12  Bruno Haible  <bruno@clisp.org>
30779
30780         Unify tests that set gl_cv_func_ldexpl_no_libm.
30781         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
30782         gl_FUNC_LDEXPL.
30783         (gl_FUNC_LDEXPL): Invoke it.
30784         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30785
30786 2010-07-12  Bruno Haible  <bruno@clisp.org>
30787
30788         Unify tests that set gl_cv_func_ldexp_no_libm.
30789         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
30790         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
30791         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
30792         (configure.ac): Simply invoke gl_FUNC_LDEXP.
30793         * modules/strtod (Files): Add m4/ldexp.m4.
30794
30795 2010-07-12  Bruno Haible  <bruno@clisp.org>
30796
30797         Unify tests that set gl_cv_func_frexpl_no_libm.
30798         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
30799         gl_FUNC_FREXPL_NO_LIBM.
30800         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
30801         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30802
30803 2010-07-12  Bruno Haible  <bruno@clisp.org>
30804
30805         Unify tests that set gl_cv_func_frexp_no_libm.
30806         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
30807         gl_FUNC_FREXP_NO_LIBM.
30808         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
30809         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30810
30811 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30812
30813         memcoll: clarify sizes versus lengths, document better, and tweak perf
30814         * lib/memcoll.c (strcoll_loop, memcoll0):
30815         Improve quality of descriptive comments.  Name variables
30816         consistently as to whether they are lengths (which do not include
30817         terminating null) versus sizes (which do).
30818         * lib/xmemcoll.c (xmemcoll0): Likewise.
30819         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
30820         returned when s1size == 0; this is easier to compile and saves
30821         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
30822
30823 2010-07-12  Bruno Haible  <bruno@clisp.org>
30824
30825         Tests for module '_Exit'.
30826         * modules/_Exit-tests: New file.
30827         * tests/test-_Exit.sh: New file.
30828         * tests/test-_Exit.c: New file.
30829
30830         New module '_Exit'.
30831         * lib/stdlib.in.h (__attribute__): New macro.
30832         (_Exit): New declaration.
30833         * lib/_Exit.c: New file.
30834         * m4/_Exit.m4: New file.
30835         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
30836         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
30837         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
30838         * modules/_Exit: New file.
30839         * tests/test-stdlib-c++.cc (_Exit): Check signature.
30840         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
30841
30842 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30843
30844         strtod: make it more-accurate typically, and don't require libm
30845         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
30846         Include limits.h.  Don't include string.h.
30847         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
30848         (locale_isspace): New function, so that no casts are needed to
30849         check whether *s is a space.
30850         (ldexp): Provide an unused dummy if not available.
30851         (scale_radix_exp, parse_number, underlying_strtod): New functions.
30852         (strtod): Use them.  This implementation prefers to use the
30853         underlying strtod if available, falling back on our own code
30854         only to fix known bugs.  This is more likely to produce an
30855         accurate result.  Also, it avoids the use of libm functions.
30856         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
30857         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
30858         was absent, but it caused a test failure with coreutils.
30859         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
30860         with libm.
30861         * modules/strtod (Makefile.am, Link): libm is no longer needed.
30862         * modules/strtod-tests (Makefile.am): Likewise.
30863
30864 2010-07-11  Pádraig Brady  <P@draigBrady.com>
30865             Bruno Haible  <bruno@clisp.org>
30866
30867         unistr/u8-strchr: Optimize ASCII argument case.
30868         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
30869
30870 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30871
30872         (x)memcoll: minor tweaks
30873         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
30874         is after the type that it qualifies.
30875         (memcoll0): Likewise.
30876         * lib/memcoll.h (memcoll0): Likewise.
30877         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
30878         * lib/xmemcoll.h (xmemcoll0): Likewise.
30879         * lib/memcoll.c (memcoll0): Correct the comment.  This function
30880         differs from memcoll in that the NUL byte is part of the argument.
30881         Omit the abort-checks, as performance is a real issue here.  Plus,
30882         the checks were wrong anyway (an off-by-one error).  Omit local
30883         variable 'diff', as it's a bit clearer that way.
30884         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
30885         no longer needed.
30886
30887 2010-07-08  Chen Guo <chenguo4@yahoo.com>
30888
30889         (x)memcoll: speedup when input is known to be NUL delimited
30890         * lib/memcoll.c: Include stdlib.
30891         (memcoll0): New function.
30892         (strcoll_loop): New function, refactored for use in both memcoll
30893         and memcoll0.
30894         * lib/memcoll.h (memcoll0): Add prototype.
30895         * lib/xmemcoll.c (xmemcoll0): New function.
30896         (collate_error): New function, refactored for use in both xmemcoll
30897         and xmemcoll0.
30898         * lib/xmemcoll.h (xmemcoll0): Add prototype.
30899         * m4/memcoll.m4: add inline invocation.
30900
30901 2010-07-06  Pádraig Brady  <P@draigBrady.com>
30902
30903         * build-aux/bootstrap: Remove any local translations
30904         from the translation project synchronization directory,
30905         so that local only translations are not distributed.
30906
30907 2010-07-04  Bruno Haible  <bruno@clisp.org>
30908
30909         fsusage: Clarify which code applies to which platforms.
30910         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
30911         platform.
30912         * lib/fsusage.c (get_fs_usage): Likewise.
30913
30914 2010-07-04  Bruno Haible  <bruno@clisp.org>
30915
30916         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
30917         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
30918         Reported by Martin Lambers <marlam@marlam.de>.
30919
30920 2010-07-04  Jim Meyering  <meyering@redhat.com>
30921
30922         hash: once again explicitly disallow insertion of NULL
30923         * lib/hash.c (hash_insert0): Reinstate just-removed test:
30924         inserting a NULL pointer cannot work with these functions.
30925         Add a comment with details.
30926         This reverts part of the 2010-07-01 commit, 5bef1a35
30927         "hash: extend module to deal with non-pointer keys".
30928
30929 2010-07-01  Bruno Haible  <bruno@clisp.org>
30930
30931         stdbool: Update doc.
30932         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
30933         Info from Christian Weisgerber <naddy@mips.inka.de>.
30934
30935 2010-07-01  Jim Meyering  <meyering@redhat.com>
30936
30937         hash: extend module to deal with non-pointer keys
30938         * lib/hash.c (hash_insert0): New interface, much like hash_insert
30939         but that allows insertion of non-pointer entries.
30940         Do not disallow an ENTRY value of NULL.
30941         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
30942         * lib/hash.h (hash_insert0): Declare.
30943
30944 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30945
30946         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
30947         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
30948         not present (i.e. with autoconf 2.59 and when using gettextize, not
30949         gnulib), require AC_GNU_SOURCE instead.
30950
30951 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
30952
30953         idpriv-drop: Fix tests.
30954         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
30955         not to the test-idpriv-droptemp program.
30956
30957 2010-06-29  Bruno Haible  <bruno@clisp.org>
30958
30959         string: Fix syntax error with g++ 2.96.
30960         * lib/string.in.h (__pure__): Remove definition.
30961         (_GL_ATTRIBUTE_PURE): New macro.
30962         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
30963         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
30964         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30965
30966 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
30967
30968         unitypes: Fix bug introduced on 2010-05-18.
30969         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
30970
30971 2010-06-22  Eric Blake  <eblake@redhat.com>
30972
30973         memmem: slight optimization
30974         * lib/str-two-way.h (critical_factorization): Update comments.
30975         Reduce work during factorization phase.
30976         Reported by Carlos Bueno <carlos@bueno.org>.
30977
30978 2010-06-21  Bruno Haible  <bruno@clisp.org>
30979
30980         Fix HAVE_CALLOC_POSIX misnomer.
30981         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
30982         !HAVE_CALLOC_POSIX.
30983         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
30984         HAVE_CALLOC_POSIX.
30985         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
30986         instead of HAVE_CALLOC_POSIX.
30987         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
30988         HAVE_CALLOC_POSIX.
30989
30990         Use modern idiom for calloc() replacement.
30991         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
30992         AC_FUNC_CALLOC.
30993         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
30994         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
30995         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30996         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
30997         (gl_REPLACE_CALLOC): New macro.
30998
30999 2010-06-21  Bruno Haible  <bruno@clisp.org>
31000
31001         Fix HAVE_REALLOC_POSIX misnomer.
31002         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
31003         !HAVE_REALLOC_POSIX.
31004         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
31005         HAVE_REALLOC_POSIX.
31006         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
31007         instead of HAVE_REALLOC_POSIX.
31008         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
31009         HAVE_REALLOC_POSIX.
31010
31011         Use modern idiom for realloc() replacement.
31012         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
31013         AC_FUNC_REALLOC.
31014         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
31015         Autoconf's AC_FUNC_REALLOC.
31016         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31017         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
31018         (gl_REPLACE_REALLOC): New macro.
31019         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31020
31021 2010-06-21  Bruno Haible  <bruno@clisp.org>
31022
31023         Fix HAVE_MALLOC_POSIX misnomer.
31024         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
31025         !HAVE_MALLOC_POSIX.
31026         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
31027         HAVE_MALLOC_POSIX.
31028         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
31029         instead of HAVE_MALLOC_POSIX.
31030         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
31031         HAVE_MALLOC_POSIX.
31032
31033         Use modern idiom for malloc() replacement.
31034         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
31035         AC_FUNC_MALLOC.
31036         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
31037         Autoconf's AC_FUNC_MALLOC.
31038         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31039         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
31040         (gl_REPLACE_MALLOC): New macro.
31041         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31042
31043 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
31044
31045         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
31046         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
31047         This macro takes 3 arguments, not 4.
31048
31049 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
31050
31051         ipv6: fix detection under mingw
31052         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
31053         in6_addr.
31054
31055 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
31056
31057         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
31058         that strtod() works when cross-compiling to a glibc version known
31059         to work.
31060
31061 2010-06-15  Bruno Haible  <bruno@clisp.org>
31062
31063         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
31064
31065 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
31066
31067         select: Correct timeout.
31068         * lib/select.c (rpl_select): Compute wait_timeout correctly.
31069
31070 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31071
31072         git-version-gen: init shell var to avoid env var influence
31073         * build-aux/git-version-gen (v): Init shell var to empty.
31074
31075 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
31076
31077         priv-set: Don't assume that priv.h exists merely because getppriv does.
31078         See Jan Andersen's bug report about AIX 5L in
31079         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
31080         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
31081         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
31082         * lib/priv-set.h: Likewise.
31083         * tests/test-priv-set.c: Likewise.
31084
31085 2010-06-13  Bruno Haible  <bruno@clisp.org>
31086
31087         relocatable: Make it easier to test whether to install wrappers.
31088         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
31089         RELOCATABLE_VIA_WRAPPER.
31090
31091 2010-06-13  Bruno Haible  <bruno@clisp.org>
31092
31093         gnulib-tool: Display specified modules and dependencies differently.
31094         * gnulib-tool (func_show_module_list): New function.
31095         (func_import, func_create_testdir): Invoke it.
31096         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31097
31098 2010-06-13  Bruno Haible  <bruno@clisp.org>
31099
31100         gnulib-tool: Align code of func_import and func_create_testdir.
31101         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
31102         specified_modules.
31103
31104 2010-06-12  Jim Meyering  <meyering@redhat.com>
31105
31106         test-inttostr: avoid spurious failure on Solaris 9
31107         * tests/test-inttostr.c (main): Skip the test when snprintf fails
31108         to accept "%ju".  Reported by Bruno Haible.
31109
31110 2010-06-11  Jim Meyering  <meyering@redhat.com>
31111
31112         test-sys_socket: mark variables as used more readably
31113         * tests/test-sys_socket.c (main): Mark otherwise unused variables
31114         as "used" explicitly via (void) statement casts.  This is more
31115         readable than using them in an artificial return expression.
31116         Suggestion from Bruno Haible.
31117
31118 2010-06-11  Bruno Haible  <bruno@clisp.org>
31119
31120         Avoid some more warnings from "gcc -Wwrite-strings".
31121         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
31122         to 'const char *'.
31123         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
31124         * tests/test-c-strcasestr.c (main): Likewise.
31125         * tests/test-mbscasestr1.c (main): Likewise.
31126         * tests/test-mbscasestr2.c (main): Likewise.
31127         * tests/test-memmem.c (main): Likewise.
31128         * tests/test-strstr.c (main): Likewise.
31129         * tests/test-strcasestr.c (main): Likewise.
31130
31131 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31132
31133         init.sh: change framework_failure_ to fail with status 99, not 1
31134         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
31135         automake's parallel-tests rule that this is an unexpected failure,
31136         even if the test is listed in XFAIL_TESTS.
31137
31138 2010-06-11  Jim Meyering  <meyering@redhat.com>
31139
31140         test-inttostr: avoid warnings about 4-6KB literal strings
31141         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
31142         Include "macros.h", for its definition of ASSERT.
31143         (CK): s/assert/ASSERT/
31144         * modules/inttostr-tests (Files): Add macros.h.
31145
31146         init.sh: don't use $ME_ or skip_ before they are defined
31147         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
31148         their first uses.  Also hoist their companions: warn_, fail_,
31149         framework_failure_, $stderr_fileno.  Prompted by a patch from
31150         Stefano Lattarini.
31151
31152         test-sys_socket: avoid set-but-not-used warnings from gcc
31153         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
31154         avoid warning about set-but-not-used variables.
31155
31156         test-xvasprintf: avoid 'const' discard warnings
31157         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
31158         "const" when assigning from literal strings.
31159         (test_xasprintf): Add "void" in function argument list to placate
31160         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
31161
31162         tests: avoid compilation warnings in argmatch and exclude tests...
31163         in packages that define ARGMATCH_DIE_DECL, like coreutils.
31164         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
31165         Since it always exits, declare with the "noreturn" attribute.
31166         * tests/test-argmatch.c: Likewise.
31167
31168         tests: avoid 'const' discard warnings in mbsstr tests
31169         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
31170         * tests/test-mbsstr2.c (main): Likewise.
31171
31172         test-verify: avoid warning from gcc's -Wmissing-declarations
31173         * tests/test-verify.c (function): Declare to be static.
31174
31175         test-inttostr.c: include <string.h> for use of strcmp
31176         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
31177
31178         test-linkat: avoid failed assertion on "other" architectures
31179         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
31180         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
31181         sparc: https://bugs.launchpad.net/bugs/591968
31182
31183 2010-06-11  Jim Meyering  <meyering@redhat.com>
31184
31185         printf.m4: avoid autoconf's "Expanded Before Required" warning
31186         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
31187         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
31188         autoconf warning.
31189
31190 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
31191
31192         Replacement header templates are now named with ".in", not "_".
31193         * doc/gnulib-intro.texi: Correct.
31194
31195 2010-06-10  Jim Meyering  <meyering@redhat.com>
31196
31197         inttostr-tests: depend on snprintf, not snprintf-posix
31198         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
31199         snprintf-posix, to avoid this aclocal failure:
31200           missing file gnulib-tests/vasnprintf.c
31201           configure.ac:45: error: expected source file, required through \
31202           AC_LIBSOURCES, not found
31203
31204 2010-06-10  Jim Meyering  <meyering@redhat.com>
31205
31206         inttostr: add a new function, inttostr, and tests
31207         The namesake function was not available.  The existence of the
31208         template file, inttostr.c makes its addition nontrivial.
31209         * lib/anytostr.c: Rename from inttostr.c.
31210         (anytostr): Rename from inttostr.
31211         * lib/inttostr.c: New file.
31212         * modules/inttostr (Files): Add anytostr.c.
31213         (Makefile.am): Set lib_SOURCES instead of ...
31214         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
31215         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
31216         * lib/offtostr.c: Likewise.
31217         * lib/uinttostr.c: Likewise.
31218         * lib/umaxtostr.c: Likewise.
31219         * modules/inttostr-tests: New file.
31220         * tests/test-inttostr.c: New file.  Test these functions.
31221
31222 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
31223             Bruno Haible  <bruno@clisp.org>
31224
31225         Add "Extending Gnulib" chapter to manual.
31226         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
31227         chapter.
31228         (Extending Gnulib): New chapter.
31229         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
31230         chapter.
31231
31232 2010-06-09  Bruno Haible  <bruno@clisp.org>
31233
31234         Avoid relocwrapper link errors due to gnulib replacement functions.
31235         * lib/areadlink.c: Use the system's malloc, realloc functions.
31236         (areadlink): Set errno to ENOMEM explicitly.
31237         * modules/areadlink (Depends-on): Remove malloc-posix.
31238         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31239
31240 2010-06-09  Bruno Haible  <bruno@clisp.org>
31241
31242         Avoid relocwrapper link errors due to gnulib replacement functions.
31243         * lib/canonicalize-lgpl.c: Use the system's malloc function.
31244         * lib/malloca.c: Likewise.
31245         * lib/relocatable.c: Likewise.
31246         * lib/progreloc.c: Use the system's malloc, sprintf functions.
31247         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
31248         * lib/setenv.c: Use the system's malloc, realloc functions.
31249         * lib/strerror.c: Use the system's sprintf function.
31250         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31251
31252 2010-06-04  Bruno Haible  <bruno@clisp.org>
31253
31254         Prefer documented low-level autoconf macro names.
31255         * m4/lib-link.m4: Use m4_translit instead of translit.
31256         * m4/environ.m4: Likewise.
31257         * m4/mathfunc.m4: Likewise.
31258         * m4/onceonly.m4: Likewise.
31259         * m4/stdint.m4: Likewise.
31260         Suggested by Eric Blake.
31261
31262 2010-06-04  Martin Lambers  <marlam@marlam.de>
31263             Bruno Haible  <bruno@clisp.org>
31264
31265         havelib: Allow library names with '+' characters.
31266         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31267         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
31268
31269 2010-06-09  Bruno Haible  <bruno@clisp.org>
31270
31271         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
31272         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
31273         realloc failed.
31274
31275 2010-06-08  Peter Simons  <simons@cryp.to>
31276
31277         maint.mk: make the news-check rule more configurable
31278         * top/maint.mk (news-check-lines-spec): New variable.
31279         (news-check): Use "sed -n 1,10p" in place of "head".
31280
31281 2010-06-07  Jim Meyering  <meyering@redhat.com>
31282
31283         do-release-commit-and-tag: fix typo in --help
31284         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
31285
31286         regex: avoid new dead-code warning with gcc-4.6.0
31287         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
31288         if-block containing a while-loop.  It's been unused for at least
31289         5 years.
31290
31291 2010-06-05  Bruno Haible  <bruno@clisp.org>
31292
31293         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
31294         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
31295
31296 2010-06-04  Bruno Haible  <bruno@clisp.org>
31297
31298         Update to GNU gettext 0.18.1.
31299         * modules/gettext (configure.ac): Require gettext infrastructure from
31300         version 0.18.1.
31301
31302 2010-06-03  Bruno Haible  <bruno@clisp.org>
31303
31304         Don't use AC_LIBOBJ with file names in subdirectories.
31305         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
31306         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
31307         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
31308         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
31309         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
31310         gl_LIBUNISTRING_LIBSOURCE.
31311         (Makefile.am): Augment lib_SOURCES here, conditionally.
31312         * NEWS: Drop requirement for Automake option 'subdir-objects'.
31313
31314 2010-06-03  Bruno Haible  <bruno@clisp.org>
31315
31316         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
31317         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
31318         expansion does not end with a newline.
31319         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
31320         unnecessary newline.
31321
31322 2010-06-03  Bruno Haible  <bruno@clisp.org>
31323
31324         Reduce dependencies.
31325         * tests/test-quotearg.h: New file, extracted from
31326         tests/test-quotearg.c.
31327         * tests/test-quotearg-simple.c: New file, extracted from
31328         tests/test-quotearg.c.
31329         * tests/test-quotearg.c: Don't include <ctype.h>.
31330         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
31331         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
31332         use_quote_double_quotes, use_quotearg_colon): Moved to
31333         tests/test-quotearg.h.
31334         (results_g, flag_results, custom_quotes, custom_results): Moved
31335         to tests/test-quotearg-simple.c.
31336         (main): Moved the part that does not depend on gettext to
31337         tests/test-quotearg-simple.c. Return 77 if the test cannot be
31338         performed.
31339         * modules/quotearg-simple: New file.
31340         * modules/quotearg-simple-tests: New file.
31341         * modules/quotearg (Depends-on): Add quotearg-simple.
31342         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
31343         (Files): Add tests/test-quotearg.h.
31344         Reported by Paolo Bonzini.
31345
31346 2010-06-03  Bruno Haible  <bruno@clisp.org>
31347
31348         Reduce dependencies.
31349         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
31350
31351 2010-06-03  Bruno Haible  <bruno@clisp.org>
31352
31353         time: Undefine more broken macros.
31354         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
31355         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
31356         Reported by Eric Blake.
31357
31358 2010-06-03  Bruno Haible  <bruno@clisp.org>
31359
31360         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
31361         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
31362         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
31363         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
31364         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
31365         Reported by Ludovic Courtès <ludo@gnu.org>.
31366
31367 2010-06-02  Eric Blake  <eblake@redhat.com>
31368
31369         time: work with mingw + pthreads-win32 library
31370         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
31371         if timespec is defined only in pthread.h.
31372         * modules/time (Makefile.am): Substitute it.
31373         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
31374         <pthread.h>, when needed.
31375         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
31376         from the library.
31377
31378 2010-05-31  Bruno Haible  <bruno@clisp.org>
31379
31380         Avoid expanding two macros in the wrong order.
31381         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
31382         gl_LIBUNISTRING if it is defined.
31383         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
31384         autoconf >= 2.64.
31385         Reported by Ludovic Courtès <ludo@gnu.org>.
31386
31387 2010-05-27  Jim Meyering  <meyering@redhat.com>
31388
31389         maint.mk: also prohibit "#undef" of always-defined symbols
31390         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
31391         Allow more than one space before the symbol name.
31392         (sc_prohibit_always-defined_macros): Use grep's -E, now that
31393         the regexp uses alternation.
31394
31395 2010-05-26  Eric Blake  <eblake@redhat.com>
31396
31397         maint.mk: avoid echo -e
31398         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
31399         Convert all uses of echo -* to printf.
31400         Reported by Matthias Bolte.
31401
31402 2010-05-25  Bruno Haible  <bruno@clisp.org>
31403
31404         Update to GNU gettext 0.18, part 2.
31405         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
31406         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
31407
31408 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31409
31410         Add missing include in test-pwrite.c.
31411         * tests/test-pwrite.c: Include string.h, for strcmp.
31412
31413 2010-05-24  Bruno Haible  <bruno@clisp.org>
31414
31415         * NEWS: Mention requirement for Automake option 'subdir-objects'.
31416
31417 2010-05-24  Bruno Haible  <bruno@clisp.org>
31418
31419         Don't use conversion with transliteration in u{8,16,32}_strcoll.
31420         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
31421         iconveh_error argument.
31422         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
31423         U_STRCONV_TO_LOCALE.
31424         * lib/unistr/u16-strcoll.c: Likewise.
31425         * lib/unistr/u32-strcoll.c: Likewise.
31426         * modules/unistr/u8-strcoll (Depends-on): Add
31427         uniconv/u8-strconv-to-enc, localcharset. Remove
31428         uniconv/u8-strconv-to-locale.
31429         (configure.ac): Bump version number.
31430         * modules/unistr/u16-strcoll (Depends-on): Add
31431         uniconv/u16-strconv-to-enc, localcharset. Remove
31432         uniconv/u16-strconv-to-locale.
31433         (configure.ac): Bump version number.
31434         * modules/unistr/u32-strcoll (Depends-on): Add
31435         uniconv/u32-strconv-to-enc, localcharset. Remove
31436         uniconv/u32-strconv-to-locale.
31437         (configure.ac): Bump version number.
31438
31439 2010-05-24  Bruno Haible  <bruno@clisp.org>
31440
31441         Avoid a test failure on NetBSD 5.0.
31442         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
31443         an iconv() bug.
31444
31445 2010-05-24  Bruno Haible  <bruno@clisp.org>
31446
31447         Adjust #include directive style.
31448         * modules/regex (Includes): Recommend to write <regex.h>.
31449
31450 2010-05-24  Bruno Haible  <bruno@clisp.org>
31451
31452         regex: Don't require alloca.
31453         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
31454         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
31455         only inside if (0).
31456
31457 2010-05-23  Jim Meyering  <meyering@redhat.com>
31458
31459         test-renameat.c: include <sys/stat.h>
31460         * tests/test-renameat.c: Include <sys/stat.h>; required for
31461         definition of S_IS* macros.
31462
31463 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
31464
31465         Update maintainer documentation for 'relocatable-prog' module.
31466         * doc/relocatable-maint.texi: Update.
31467         Comments by Bruno Haible.
31468
31469 2010-05-23  Bruno Haible  <bruno@clisp.org>
31470
31471         git-merge-changelog: Enable --split-merged-entry by default.
31472         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
31473         (usage): Don't mention this option any more.
31474         Reported by Ralf Wildenhues.
31475
31476 2010-05-23  Jim Meyering  <meyering@redhat.com>
31477
31478         test-pwrite: do not leave behind a test file named "out"
31479         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
31480         The trivial-looking use of init.sh is really necessary.
31481         It ensures that the temporary file, "out", is created in
31482         a temporary directory, and removed upon termination.
31483         * tests/test-pwrite.sh: Re-add file.
31484         * modules/pwrite-tests: Reference it.
31485
31486 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31487
31488         Fix output redirection buglet in init.sh.
31489         * tests/init.sh: Fix redirection of stderr.
31490
31491 2010-05-20  Simon Josefsson  <simon@josefsson.org>
31492
31493         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
31494
31495 2010-05-17  Simon Josefsson  <simon@josefsson.org>
31496
31497         * modules/valgrind-tests: New file.
31498         * m4/valgrind-tests.m4: New file.
31499         * doc/valgrind-tests.texi: New file.
31500         * doc/gnulib.texi (Running self-tests under valgrind): New
31501         section.
31502
31503 2010-05-19  Bruno Haible  <bruno@clisp.org>
31504
31505         Clean up dead code in recent commit.
31506         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
31507         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
31508         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
31509         Suggested by Paolo Bonzini.
31510
31511 2010-05-19  Bruno Haible  <bruno@clisp.org>
31512
31513         Avoid valgrind error reports from libunistring.
31514         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
31515         * modules/libunistring (Files): Add it.
31516         * modules/libunistring-optional (Files): Likewise.
31517
31518 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
31519             Bruno Haible  <bruno@clisp.org>
31520
31521         New module 'libunistring-optional'.
31522         * modules/libunistring-optional: New file.
31523         * m4/libunistring-base.m4: New file.
31524         * m4/libunistring-optional.m4: New file.
31525         * lib/unicase.in.h: Renamed from lib/unicase.h.
31526         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
31527         * lib/unictype.in.h: Renamed from lib/unictype.h.
31528         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
31529         * lib/uniname.in.h: Renamed from lib/uniname.h.
31530         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
31531         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
31532         * lib/unistr.in.h: Renamed from lib/unistr.h.
31533         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
31534         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
31535         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
31536         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
31537         gl_LIBUNISTRING. If the library was found, determine the installed
31538         version and set LIBUNISTRING_VERSION.
31539         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
31540         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
31541         handle a configuration option --with-included-libunistring.
31542         * modules/libunistring (Files): Add m4/absolute-header.m4.
31543         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
31544         Add m4/libunistring-base.m4.
31545         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31546         (Makefile.am): Build unicase.h from unicase.in.h.
31547         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
31548         Add m4/libunistring-base.m4.
31549         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31550         (Makefile.am): Build uniconv.h from uniconv.in.h.
31551         * modules/unictype/base (Files): Use unictype.in.h instead of
31552         unictype.h. Add m4/libunistring-base.m4.
31553         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31554         (Makefile.am): Build unictype.h from unictype.in.h.
31555         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
31556         Add m4/libunistring-base.m4.
31557         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31558         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
31559         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
31560         Add m4/libunistring-base.m4.
31561         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31562         (Makefile.am): Build uniname.h from uniname.in.h.
31563         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
31564         Add m4/libunistring-base.m4.
31565         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31566         (Makefile.am): Build uninorm.h from uninorm.in.h.
31567         * modules/unistdio/base (Files): Use unistdio.in.h instead of
31568         unistdio.h. Add m4/libunistring-base.m4.
31569         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31570         (Makefile.am): Build unistdio.h from unistdio.in.h.
31571         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
31572         Add m4/libunistring-base.m4.
31573         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31574         (Makefile.am): Build unistr.h from unistr.in.h.
31575         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
31576         Add m4/libunistring-base.m4.
31577         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31578         (Makefile.am): Build unitypes.h from unitypes.in.h.
31579         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
31580         Add m4/libunistring-base.m4.
31581         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31582         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
31583         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
31584         uniwidth.h. Add m4/libunistring-base.m4.
31585         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31586         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
31587         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
31588         instead of augmenting lib_SOURCES.
31589         * modules/unicase/empty-suffix-context: Likewise.
31590         * modules/unicase/locale-language: Likewise.
31591         * modules/unicase/tolower: Likewise.
31592         * modules/unicase/totitle: Likewise.
31593         * modules/unicase/toupper: Likewise.
31594         * modules/unicase/u8-casecmp: Likewise.
31595         * modules/unicase/u8-casecoll: Likewise.
31596         * modules/unicase/u8-casefold: Likewise.
31597         * modules/unicase/u8-casexfrm: Likewise.
31598         * modules/unicase/u8-ct-casefold: Likewise.
31599         * modules/unicase/u8-ct-tolower: Likewise.
31600         * modules/unicase/u8-ct-totitle: Likewise.
31601         * modules/unicase/u8-ct-toupper: Likewise.
31602         * modules/unicase/u8-is-cased: Likewise.
31603         * modules/unicase/u8-is-casefolded: Likewise.
31604         * modules/unicase/u8-is-lowercase: Likewise.
31605         * modules/unicase/u8-is-titlecase: Likewise.
31606         * modules/unicase/u8-is-uppercase: Likewise.
31607         * modules/unicase/u8-prefix-context: Likewise.
31608         * modules/unicase/u8-suffix-context: Likewise.
31609         * modules/unicase/u8-tolower: Likewise.
31610         * modules/unicase/u8-totitle: Likewise.
31611         * modules/unicase/u8-toupper: Likewise.
31612         * modules/unicase/u16-casecmp: Likewise.
31613         * modules/unicase/u16-casecoll: Likewise.
31614         * modules/unicase/u16-casefold: Likewise.
31615         * modules/unicase/u16-casexfrm: Likewise.
31616         * modules/unicase/u16-ct-casefold: Likewise.
31617         * modules/unicase/u16-ct-tolower: Likewise.
31618         * modules/unicase/u16-ct-totitle: Likewise.
31619         * modules/unicase/u16-ct-toupper: Likewise.
31620         * modules/unicase/u16-is-cased: Likewise.
31621         * modules/unicase/u16-is-casefolded: Likewise.
31622         * modules/unicase/u16-is-lowercase: Likewise.
31623         * modules/unicase/u16-is-titlecase: Likewise.
31624         * modules/unicase/u16-is-uppercase: Likewise.
31625         * modules/unicase/u16-prefix-context: Likewise.
31626         * modules/unicase/u16-suffix-context: Likewise.
31627         * modules/unicase/u16-tolower: Likewise.
31628         * modules/unicase/u16-totitle: Likewise.
31629         * modules/unicase/u16-toupper: Likewise.
31630         * modules/unicase/u32-casecmp: Likewise.
31631         * modules/unicase/u32-casecoll: Likewise.
31632         * modules/unicase/u32-casefold: Likewise.
31633         * modules/unicase/u32-casexfrm: Likewise.
31634         * modules/unicase/u32-ct-casefold: Likewise.
31635         * modules/unicase/u32-ct-tolower: Likewise.
31636         * modules/unicase/u32-ct-totitle: Likewise.
31637         * modules/unicase/u32-ct-toupper: Likewise.
31638         * modules/unicase/u32-is-cased: Likewise.
31639         * modules/unicase/u32-is-casefolded: Likewise.
31640         * modules/unicase/u32-is-lowercase: Likewise.
31641         * modules/unicase/u32-is-titlecase: Likewise.
31642         * modules/unicase/u32-is-uppercase: Likewise.
31643         * modules/unicase/u32-prefix-context: Likewise.
31644         * modules/unicase/u32-suffix-context: Likewise.
31645         * modules/unicase/u32-tolower: Likewise.
31646         * modules/unicase/u32-totitle: Likewise.
31647         * modules/unicase/u32-toupper: Likewise.
31648         * modules/unicase/ulc-casecmp: Likewise.
31649         * modules/unicase/ulc-casecoll: Likewise.
31650         * modules/unicase/ulc-casexfrm: Likewise.
31651         * modules/uniconv/u8-conv-from-enc: Likewise.
31652         * modules/uniconv/u8-conv-to-enc: Likewise.
31653         * modules/uniconv/u8-strconv-from-enc: Likewise.
31654         * modules/uniconv/u8-strconv-from-locale: Likewise.
31655         * modules/uniconv/u8-strconv-to-enc: Likewise.
31656         * modules/uniconv/u8-strconv-to-locale: Likewise.
31657         * modules/uniconv/u16-conv-from-enc: Likewise.
31658         * modules/uniconv/u16-conv-to-enc: Likewise.
31659         * modules/uniconv/u16-strconv-from-enc: Likewise.
31660         * modules/uniconv/u16-strconv-from-locale: Likewise.
31661         * modules/uniconv/u16-strconv-to-enc: Likewise.
31662         * modules/uniconv/u16-strconv-to-locale: Likewise.
31663         * modules/uniconv/u32-conv-from-enc: Likewise.
31664         * modules/uniconv/u32-conv-to-enc: Likewise.
31665         * modules/uniconv/u32-strconv-from-enc: Likewise.
31666         * modules/uniconv/u32-strconv-from-locale: Likewise.
31667         * modules/uniconv/u32-strconv-to-enc: Likewise.
31668         * modules/uniconv/u32-strconv-to-locale: Likewise.
31669         * modules/unictype/bidicategory-byname: Likewise.
31670         * modules/unictype/bidicategory-name: Likewise.
31671         * modules/unictype/bidicategory-of: Likewise.
31672         * modules/unictype/bidicategory-test: Likewise.
31673         * modules/unictype/block-list: Likewise.
31674         * modules/unictype/block-test: Likewise.
31675         * modules/unictype/category-C: Likewise.
31676         * modules/unictype/category-Cc: Likewise.
31677         * modules/unictype/category-Cf: Likewise.
31678         * modules/unictype/category-Cn: Likewise.
31679         * modules/unictype/category-Co: Likewise.
31680         * modules/unictype/category-Cs: Likewise.
31681         * modules/unictype/category-L: Likewise.
31682         * modules/unictype/category-Ll: Likewise.
31683         * modules/unictype/category-Lm: Likewise.
31684         * modules/unictype/category-Lo: Likewise.
31685         * modules/unictype/category-Lt: Likewise.
31686         * modules/unictype/category-Lu: Likewise.
31687         * modules/unictype/category-M: Likewise.
31688         * modules/unictype/category-Mc: Likewise.
31689         * modules/unictype/category-Me: Likewise.
31690         * modules/unictype/category-Mn: Likewise.
31691         * modules/unictype/category-N: Likewise.
31692         * modules/unictype/category-Nd: Likewise.
31693         * modules/unictype/category-Nl: Likewise.
31694         * modules/unictype/category-No: Likewise.
31695         * modules/unictype/category-P: Likewise.
31696         * modules/unictype/category-Pc: Likewise.
31697         * modules/unictype/category-Pd: Likewise.
31698         * modules/unictype/category-Pe: Likewise.
31699         * modules/unictype/category-Pf: Likewise.
31700         * modules/unictype/category-Pi: Likewise.
31701         * modules/unictype/category-Po: Likewise.
31702         * modules/unictype/category-Ps: Likewise.
31703         * modules/unictype/category-S: Likewise.
31704         * modules/unictype/category-Sc: Likewise.
31705         * modules/unictype/category-Sk: Likewise.
31706         * modules/unictype/category-Sm: Likewise.
31707         * modules/unictype/category-So: Likewise.
31708         * modules/unictype/category-Z: Likewise.
31709         * modules/unictype/category-Zl: Likewise.
31710         * modules/unictype/category-Zp: Likewise.
31711         * modules/unictype/category-Zs: Likewise.
31712         * modules/unictype/category-and: Likewise.
31713         * modules/unictype/category-and-not: Likewise.
31714         * modules/unictype/category-byname: Likewise.
31715         * modules/unictype/category-name: Likewise.
31716         * modules/unictype/category-none: Likewise.
31717         * modules/unictype/category-of: Likewise.
31718         * modules/unictype/category-or: Likewise.
31719         * modules/unictype/category-test: Likewise.
31720         * modules/unictype/combining-class: Likewise.
31721         * modules/unictype/ctype-alnum: Likewise.
31722         * modules/unictype/ctype-alpha: Likewise.
31723         * modules/unictype/ctype-blank: Likewise.
31724         * modules/unictype/ctype-cntrl: Likewise.
31725         * modules/unictype/ctype-digit: Likewise.
31726         * modules/unictype/ctype-graph: Likewise.
31727         * modules/unictype/ctype-lower: Likewise.
31728         * modules/unictype/ctype-print: Likewise.
31729         * modules/unictype/ctype-punct: Likewise.
31730         * modules/unictype/ctype-space: Likewise.
31731         * modules/unictype/ctype-upper: Likewise.
31732         * modules/unictype/ctype-xdigit: Likewise.
31733         * modules/unictype/decimal-digit: Likewise.
31734         * modules/unictype/digit: Likewise.
31735         * modules/unictype/mirror: Likewise.
31736         * modules/unictype/numeric: Likewise.
31737         * modules/unictype/property-alphabetic: Likewise.
31738         * modules/unictype/property-ascii-hex-digit: Likewise.
31739         * modules/unictype/property-bidi-arabic-digit: Likewise.
31740         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
31741         * modules/unictype/property-bidi-block-separator: Likewise.
31742         * modules/unictype/property-bidi-boundary-neutral: Likewise.
31743         * modules/unictype/property-bidi-common-separator: Likewise.
31744         * modules/unictype/property-bidi-control: Likewise.
31745         * modules/unictype/property-bidi-embedding-or-override: Likewise.
31746         * modules/unictype/property-bidi-eur-num-separator: Likewise.
31747         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
31748         * modules/unictype/property-bidi-european-digit: Likewise.
31749         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
31750         * modules/unictype/property-bidi-left-to-right: Likewise.
31751         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
31752         * modules/unictype/property-bidi-other-neutral: Likewise.
31753         * modules/unictype/property-bidi-pdf: Likewise.
31754         * modules/unictype/property-bidi-segment-separator: Likewise.
31755         * modules/unictype/property-bidi-whitespace: Likewise.
31756         * modules/unictype/property-byname: Likewise.
31757         * modules/unictype/property-combining: Likewise.
31758         * modules/unictype/property-composite: Likewise.
31759         * modules/unictype/property-currency-symbol: Likewise.
31760         * modules/unictype/property-dash: Likewise.
31761         * modules/unictype/property-decimal-digit: Likewise.
31762         * modules/unictype/property-default-ignorable-code-point: Likewise.
31763         * modules/unictype/property-deprecated: Likewise.
31764         * modules/unictype/property-diacritic: Likewise.
31765         * modules/unictype/property-extender: Likewise.
31766         * modules/unictype/property-format-control: Likewise.
31767         * modules/unictype/property-grapheme-base: Likewise.
31768         * modules/unictype/property-grapheme-extend: Likewise.
31769         * modules/unictype/property-grapheme-link: Likewise.
31770         * modules/unictype/property-hex-digit: Likewise.
31771         * modules/unictype/property-hyphen: Likewise.
31772         * modules/unictype/property-id-continue: Likewise.
31773         * modules/unictype/property-id-start: Likewise.
31774         * modules/unictype/property-ideographic: Likewise.
31775         * modules/unictype/property-ids-binary-operator: Likewise.
31776         * modules/unictype/property-ids-trinary-operator: Likewise.
31777         * modules/unictype/property-ignorable-control: Likewise.
31778         * modules/unictype/property-iso-control: Likewise.
31779         * modules/unictype/property-join-control: Likewise.
31780         * modules/unictype/property-left-of-pair: Likewise.
31781         * modules/unictype/property-line-separator: Likewise.
31782         * modules/unictype/property-logical-order-exception: Likewise.
31783         * modules/unictype/property-lowercase: Likewise.
31784         * modules/unictype/property-math: Likewise.
31785         * modules/unictype/property-non-break: Likewise.
31786         * modules/unictype/property-not-a-character: Likewise.
31787         * modules/unictype/property-numeric: Likewise.
31788         * modules/unictype/property-other-alphabetic: Likewise.
31789         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
31790         * modules/unictype/property-other-grapheme-extend: Likewise.
31791         * modules/unictype/property-other-id-continue: Likewise.
31792         * modules/unictype/property-other-id-start: Likewise.
31793         * modules/unictype/property-other-lowercase: Likewise.
31794         * modules/unictype/property-other-math: Likewise.
31795         * modules/unictype/property-other-uppercase: Likewise.
31796         * modules/unictype/property-paired-punctuation: Likewise.
31797         * modules/unictype/property-paragraph-separator: Likewise.
31798         * modules/unictype/property-pattern-syntax: Likewise.
31799         * modules/unictype/property-pattern-white-space: Likewise.
31800         * modules/unictype/property-private-use: Likewise.
31801         * modules/unictype/property-punctuation: Likewise.
31802         * modules/unictype/property-quotation-mark: Likewise.
31803         * modules/unictype/property-radical: Likewise.
31804         * modules/unictype/property-sentence-terminal: Likewise.
31805         * modules/unictype/property-soft-dotted: Likewise.
31806         * modules/unictype/property-space: Likewise.
31807         * modules/unictype/property-terminal-punctuation: Likewise.
31808         * modules/unictype/property-test: Likewise.
31809         * modules/unictype/property-titlecase: Likewise.
31810         * modules/unictype/property-unassigned-code-value: Likewise.
31811         * modules/unictype/property-unified-ideograph: Likewise.
31812         * modules/unictype/property-uppercase: Likewise.
31813         * modules/unictype/property-variation-selector: Likewise.
31814         * modules/unictype/property-white-space: Likewise.
31815         * modules/unictype/property-xid-continue: Likewise.
31816         * modules/unictype/property-xid-start: Likewise.
31817         * modules/unictype/property-zero-width: Likewise.
31818         * modules/unictype/scripts: Likewise.
31819         * modules/unictype/syntax-c-ident: Likewise.
31820         * modules/unictype/syntax-c-whitespace: Likewise.
31821         * modules/unictype/syntax-java-ident: Likewise.
31822         * modules/unictype/syntax-java-whitespace: Likewise.
31823         * modules/unilbrk/u8-possible-linebreaks: Likewise.
31824         * modules/unilbrk/u8-width-linebreaks: Likewise.
31825         * modules/unilbrk/u16-possible-linebreaks: Likewise.
31826         * modules/unilbrk/u16-width-linebreaks: Likewise.
31827         * modules/unilbrk/u32-possible-linebreaks: Likewise.
31828         * modules/unilbrk/u32-width-linebreaks: Likewise.
31829         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
31830         * modules/unilbrk/ulc-width-linebreaks: Likewise.
31831         * modules/uniname/uniname: Likewise.
31832         * modules/uninorm/canonical-decomposition: Likewise.
31833         * modules/uninorm/composition: Likewise.
31834         * modules/uninorm/decomposing-form: Likewise.
31835         * modules/uninorm/decomposition: Likewise.
31836         * modules/uninorm/filter: Likewise.
31837         * modules/uninorm/nfc: Likewise.
31838         * modules/uninorm/nfd: Likewise.
31839         * modules/uninorm/nfkc: Likewise.
31840         * modules/uninorm/nfkd: Likewise.
31841         * modules/uninorm/u8-normalize: Likewise.
31842         * modules/uninorm/u8-normcmp: Likewise.
31843         * modules/uninorm/u8-normcoll: Likewise.
31844         * modules/uninorm/u8-normxfrm: Likewise.
31845         * modules/uninorm/u16-normalize: Likewise.
31846         * modules/uninorm/u16-normcmp: Likewise.
31847         * modules/uninorm/u16-normcoll: Likewise.
31848         * modules/uninorm/u16-normxfrm: Likewise.
31849         * modules/uninorm/u32-normalize: Likewise.
31850         * modules/uninorm/u32-normcmp: Likewise.
31851         * modules/uninorm/u32-normcoll: Likewise.
31852         * modules/uninorm/u32-normxfrm: Likewise.
31853         * modules/unistdio/u8-asnprintf: Likewise.
31854         * modules/unistdio/u8-asprintf: Likewise.
31855         * modules/unistdio/u8-snprintf: Likewise.
31856         * modules/unistdio/u8-sprintf: Likewise.
31857         * modules/unistdio/u8-u8-asnprintf: Likewise.
31858         * modules/unistdio/u8-u8-asprintf: Likewise.
31859         * modules/unistdio/u8-u8-snprintf: Likewise.
31860         * modules/unistdio/u8-u8-sprintf: Likewise.
31861         * modules/unistdio/u8-u8-vasnprintf: Likewise.
31862         * modules/unistdio/u8-u8-vasprintf: Likewise.
31863         * modules/unistdio/u8-u8-vsnprintf: Likewise.
31864         * modules/unistdio/u8-u8-vsprintf: Likewise.
31865         * modules/unistdio/u8-vasnprintf: Likewise.
31866         * modules/unistdio/u8-vasprintf: Likewise.
31867         * modules/unistdio/u8-vsnprintf: Likewise.
31868         * modules/unistdio/u8-vsprintf: Likewise.
31869         * modules/unistdio/u16-asnprintf: Likewise.
31870         * modules/unistdio/u16-asprintf: Likewise.
31871         * modules/unistdio/u16-snprintf: Likewise.
31872         * modules/unistdio/u16-sprintf: Likewise.
31873         * modules/unistdio/u16-u16-asnprintf: Likewise.
31874         * modules/unistdio/u16-u16-asprintf: Likewise.
31875         * modules/unistdio/u16-u16-snprintf: Likewise.
31876         * modules/unistdio/u16-u16-sprintf: Likewise.
31877         * modules/unistdio/u16-u16-vasnprintf: Likewise.
31878         * modules/unistdio/u16-u16-vasprintf: Likewise.
31879         * modules/unistdio/u16-u16-vsnprintf: Likewise.
31880         * modules/unistdio/u16-u16-vsprintf: Likewise.
31881         * modules/unistdio/u16-vasnprintf: Likewise.
31882         * modules/unistdio/u16-vasprintf: Likewise.
31883         * modules/unistdio/u16-vsnprintf: Likewise.
31884         * modules/unistdio/u16-vsprintf: Likewise.
31885         * modules/unistdio/u32-asnprintf: Likewise.
31886         * modules/unistdio/u32-asprintf: Likewise.
31887         * modules/unistdio/u32-snprintf: Likewise.
31888         * modules/unistdio/u32-sprintf: Likewise.
31889         * modules/unistdio/u32-u32-asnprintf: Likewise.
31890         * modules/unistdio/u32-u32-asprintf: Likewise.
31891         * modules/unistdio/u32-u32-snprintf: Likewise.
31892         * modules/unistdio/u32-u32-sprintf: Likewise.
31893         * modules/unistdio/u32-u32-vasnprintf: Likewise.
31894         * modules/unistdio/u32-u32-vasprintf: Likewise.
31895         * modules/unistdio/u32-u32-vsnprintf: Likewise.
31896         * modules/unistdio/u32-u32-vsprintf: Likewise.
31897         * modules/unistdio/u32-vasnprintf: Likewise.
31898         * modules/unistdio/u32-vasprintf: Likewise.
31899         * modules/unistdio/u32-vsnprintf: Likewise.
31900         * modules/unistdio/u32-vsprintf: Likewise.
31901         * modules/unistdio/ulc-asnprintf: Likewise.
31902         * modules/unistdio/ulc-asprintf: Likewise.
31903         * modules/unistdio/ulc-fprintf: Likewise.
31904         * modules/unistdio/ulc-snprintf: Likewise.
31905         * modules/unistdio/ulc-sprintf: Likewise.
31906         * modules/unistdio/ulc-vasnprintf: Likewise.
31907         * modules/unistdio/ulc-vasprintf: Likewise.
31908         * modules/unistdio/ulc-vfprintf: Likewise.
31909         * modules/unistdio/ulc-vsnprintf: Likewise.
31910         * modules/unistdio/ulc-vsprintf: Likewise.
31911         * modules/unistr/u8-check: Likewise.
31912         * modules/unistr/u8-chr: Likewise.
31913         * modules/unistr/u8-cmp: Likewise.
31914         * modules/unistr/u8-cmp2: Likewise.
31915         * modules/unistr/u8-cpy: Likewise.
31916         * modules/unistr/u8-cpy-alloc: Likewise.
31917         * modules/unistr/u8-endswith: Likewise.
31918         * modules/unistr/u8-mblen: Likewise.
31919         * modules/unistr/u8-mbsnlen: Likewise.
31920         * modules/unistr/u8-mbtouc: Likewise.
31921         * modules/unistr/u8-mbtouc-unsafe: Likewise.
31922         * modules/unistr/u8-mbtoucr: Likewise.
31923         * modules/unistr/u8-move: Likewise.
31924         * modules/unistr/u8-next: Likewise.
31925         * modules/unistr/u8-prev: Likewise.
31926         * modules/unistr/u8-set: Likewise.
31927         * modules/unistr/u8-startswith: Likewise.
31928         * modules/unistr/u8-stpcpy: Likewise.
31929         * modules/unistr/u8-stpncpy: Likewise.
31930         * modules/unistr/u8-strcat: Likewise.
31931         * modules/unistr/u8-strchr: Likewise.
31932         * modules/unistr/u8-strcmp: Likewise.
31933         * modules/unistr/u8-strcoll: Likewise.
31934         * modules/unistr/u8-strcpy: Likewise.
31935         * modules/unistr/u8-strcspn: Likewise.
31936         * modules/unistr/u8-strdup: Likewise.
31937         * modules/unistr/u8-strlen: Likewise.
31938         * modules/unistr/u8-strmblen: Likewise.
31939         * modules/unistr/u8-strmbtouc: Likewise.
31940         * modules/unistr/u8-strncat: Likewise.
31941         * modules/unistr/u8-strncmp: Likewise.
31942         * modules/unistr/u8-strncpy: Likewise.
31943         * modules/unistr/u8-strnlen: Likewise.
31944         * modules/unistr/u8-strpbrk: Likewise.
31945         * modules/unistr/u8-strrchr: Likewise.
31946         * modules/unistr/u8-strspn: Likewise.
31947         * modules/unistr/u8-strstr: Likewise.
31948         * modules/unistr/u8-strtok: Likewise.
31949         * modules/unistr/u8-to-u16: Likewise.
31950         * modules/unistr/u8-to-u32: Likewise.
31951         * modules/unistr/u8-uctomb: Likewise.
31952         * modules/unistr/u16-check: Likewise.
31953         * modules/unistr/u16-chr: Likewise.
31954         * modules/unistr/u16-cmp: Likewise.
31955         * modules/unistr/u16-cmp2: Likewise.
31956         * modules/unistr/u16-cpy: Likewise.
31957         * modules/unistr/u16-cpy-alloc: Likewise.
31958         * modules/unistr/u16-endswith: Likewise.
31959         * modules/unistr/u16-mblen: Likewise.
31960         * modules/unistr/u16-mbsnlen: Likewise.
31961         * modules/unistr/u16-mbtouc: Likewise.
31962         * modules/unistr/u16-mbtouc-unsafe: Likewise.
31963         * modules/unistr/u16-mbtoucr: Likewise.
31964         * modules/unistr/u16-move: Likewise.
31965         * modules/unistr/u16-next: Likewise.
31966         * modules/unistr/u16-prev: Likewise.
31967         * modules/unistr/u16-set: Likewise.
31968         * modules/unistr/u16-startswith: Likewise.
31969         * modules/unistr/u16-stpcpy: Likewise.
31970         * modules/unistr/u16-stpncpy: Likewise.
31971         * modules/unistr/u16-strcat: Likewise.
31972         * modules/unistr/u16-strchr: Likewise.
31973         * modules/unistr/u16-strcmp: Likewise.
31974         * modules/unistr/u16-strcoll: Likewise.
31975         * modules/unistr/u16-strcpy: Likewise.
31976         * modules/unistr/u16-strcspn: Likewise.
31977         * modules/unistr/u16-strdup: Likewise.
31978         * modules/unistr/u16-strlen: Likewise.
31979         * modules/unistr/u16-strmblen: Likewise.
31980         * modules/unistr/u16-strmbtouc: Likewise.
31981         * modules/unistr/u16-strncat: Likewise.
31982         * modules/unistr/u16-strncmp: Likewise.
31983         * modules/unistr/u16-strncpy: Likewise.
31984         * modules/unistr/u16-strnlen: Likewise.
31985         * modules/unistr/u16-strpbrk: Likewise.
31986         * modules/unistr/u16-strrchr: Likewise.
31987         * modules/unistr/u16-strspn: Likewise.
31988         * modules/unistr/u16-strstr: Likewise.
31989         * modules/unistr/u16-strtok: Likewise.
31990         * modules/unistr/u16-to-u32: Likewise.
31991         * modules/unistr/u16-to-u8: Likewise.
31992         * modules/unistr/u16-uctomb: Likewise.
31993         * modules/unistr/u32-check: Likewise.
31994         * modules/unistr/u32-chr: Likewise.
31995         * modules/unistr/u32-cmp: Likewise.
31996         * modules/unistr/u32-cmp2: Likewise.
31997         * modules/unistr/u32-cpy: Likewise.
31998         * modules/unistr/u32-cpy-alloc: Likewise.
31999         * modules/unistr/u32-endswith: Likewise.
32000         * modules/unistr/u32-mblen: Likewise.
32001         * modules/unistr/u32-mbsnlen: Likewise.
32002         * modules/unistr/u32-mbtouc: Likewise.
32003         * modules/unistr/u32-mbtouc-unsafe: Likewise.
32004         * modules/unistr/u32-mbtoucr: Likewise.
32005         * modules/unistr/u32-move: Likewise.
32006         * modules/unistr/u32-next: Likewise.
32007         * modules/unistr/u32-prev: Likewise.
32008         * modules/unistr/u32-set: Likewise.
32009         * modules/unistr/u32-startswith: Likewise.
32010         * modules/unistr/u32-stpcpy: Likewise.
32011         * modules/unistr/u32-stpncpy: Likewise.
32012         * modules/unistr/u32-strcat: Likewise.
32013         * modules/unistr/u32-strchr: Likewise.
32014         * modules/unistr/u32-strcmp: Likewise.
32015         * modules/unistr/u32-strcoll: Likewise.
32016         * modules/unistr/u32-strcpy: Likewise.
32017         * modules/unistr/u32-strcspn: Likewise.
32018         * modules/unistr/u32-strdup: Likewise.
32019         * modules/unistr/u32-strlen: Likewise.
32020         * modules/unistr/u32-strmblen: Likewise.
32021         * modules/unistr/u32-strmbtouc: Likewise.
32022         * modules/unistr/u32-strncat: Likewise.
32023         * modules/unistr/u32-strncmp: Likewise.
32024         * modules/unistr/u32-strncpy: Likewise.
32025         * modules/unistr/u32-strnlen: Likewise.
32026         * modules/unistr/u32-strpbrk: Likewise.
32027         * modules/unistr/u32-strrchr: Likewise.
32028         * modules/unistr/u32-strspn: Likewise.
32029         * modules/unistr/u32-strstr: Likewise.
32030         * modules/unistr/u32-strtok: Likewise.
32031         * modules/unistr/u32-to-u16: Likewise.
32032         * modules/unistr/u32-to-u8: Likewise.
32033         * modules/unistr/u32-uctomb: Likewise.
32034         * modules/uniwbrk/u8-wordbreaks: Likewise.
32035         * modules/uniwbrk/u16-wordbreaks: Likewise.
32036         * modules/uniwbrk/u32-wordbreaks: Likewise.
32037         * modules/uniwbrk/ulc-wordbreaks: Likewise.
32038         * modules/uniwbrk/wordbreak-property: Likewise.
32039         * modules/uniwidth/u8-strwidth: Likewise.
32040         * modules/uniwidth/u8-width: Likewise.
32041         * modules/uniwidth/u16-strwidth: Likewise.
32042         * modules/uniwidth/u16-width: Likewise.
32043         * modules/uniwidth/u32-strwidth: Likewise.
32044         * modules/uniwidth/u32-width: Likewise.
32045         * modules/uniwidth/width: Likewise.
32046         * modules/unicase/cased-tests (Makefile.am): Link all test programs
32047         with $(LIBUNISTRING).
32048         * modules/unicase/ignorable-tests: Likewise.
32049         * modules/unicase/locale-language-tests: Likewise.
32050         * modules/unicase/tolower-tests: Likewise.
32051         * modules/unicase/totitle-tests: Likewise.
32052         * modules/unicase/toupper-tests: Likewise.
32053         * modules/unicase/u8-casecmp-tests: Likewise.
32054         * modules/unicase/u8-casecoll-tests: Likewise.
32055         * modules/unicase/u8-casefold-tests: Likewise.
32056         * modules/unicase/u8-is-cased-tests: Likewise.
32057         * modules/unicase/u8-is-casefolded-tests: Likewise.
32058         * modules/unicase/u8-is-lowercase-tests: Likewise.
32059         * modules/unicase/u8-is-titlecase-tests: Likewise.
32060         * modules/unicase/u8-is-uppercase-tests: Likewise.
32061         * modules/unicase/u8-tolower-tests: Likewise.
32062         * modules/unicase/u8-totitle-tests: Likewise.
32063         * modules/unicase/u8-toupper-tests: Likewise.
32064         * modules/unicase/u16-casecmp-tests: Likewise.
32065         * modules/unicase/u16-casecoll-tests: Likewise.
32066         * modules/unicase/u16-casefold-tests: Likewise.
32067         * modules/unicase/u16-is-cased-tests: Likewise.
32068         * modules/unicase/u16-is-casefolded-tests: Likewise.
32069         * modules/unicase/u16-is-lowercase-tests: Likewise.
32070         * modules/unicase/u16-is-titlecase-tests: Likewise.
32071         * modules/unicase/u16-is-uppercase-tests: Likewise.
32072         * modules/unicase/u16-tolower-tests: Likewise.
32073         * modules/unicase/u16-totitle-tests: Likewise.
32074         * modules/unicase/u16-toupper-tests: Likewise.
32075         * modules/unicase/u32-casecmp-tests: Likewise.
32076         * modules/unicase/u32-casecoll-tests: Likewise.
32077         * modules/unicase/u32-casefold-tests: Likewise.
32078         * modules/unicase/u32-is-cased-tests: Likewise.
32079         * modules/unicase/u32-is-casefolded-tests: Likewise.
32080         * modules/unicase/u32-is-lowercase-tests: Likewise.
32081         * modules/unicase/u32-is-titlecase-tests: Likewise.
32082         * modules/unicase/u32-is-uppercase-tests: Likewise.
32083         * modules/unicase/u32-tolower-tests: Likewise.
32084         * modules/unicase/u32-totitle-tests: Likewise.
32085         * modules/unicase/u32-toupper-tests: Likewise.
32086         * modules/unicase/ulc-casecmp-tests: Likewise.
32087         * modules/unicase/ulc-casecoll-tests: Likewise.
32088         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
32089         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
32090         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
32091         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
32092         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
32093         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
32094         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
32095         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
32096         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
32097         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
32098         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
32099         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
32100         * modules/unictype/bidicategory-byname-tests: Likewise.
32101         * modules/unictype/bidicategory-name-tests: Likewise.
32102         * modules/unictype/bidicategory-of-tests: Likewise.
32103         * modules/unictype/bidicategory-test-tests: Likewise.
32104         * modules/unictype/block-list-tests: Likewise.
32105         * modules/unictype/block-of-tests: Likewise.
32106         * modules/unictype/block-test-tests: Likewise.
32107         * modules/unictype/category-C-tests: Likewise.
32108         * modules/unictype/category-Cc-tests: Likewise.
32109         * modules/unictype/category-Cf-tests: Likewise.
32110         * modules/unictype/category-Cn-tests: Likewise.
32111         * modules/unictype/category-Co-tests: Likewise.
32112         * modules/unictype/category-Cs-tests: Likewise.
32113         * modules/unictype/category-L-tests: Likewise.
32114         * modules/unictype/category-Ll-tests: Likewise.
32115         * modules/unictype/category-Lm-tests: Likewise.
32116         * modules/unictype/category-Lo-tests: Likewise.
32117         * modules/unictype/category-Lt-tests: Likewise.
32118         * modules/unictype/category-Lu-tests: Likewise.
32119         * modules/unictype/category-M-tests: Likewise.
32120         * modules/unictype/category-Mc-tests: Likewise.
32121         * modules/unictype/category-Me-tests: Likewise.
32122         * modules/unictype/category-Mn-tests: Likewise.
32123         * modules/unictype/category-N-tests: Likewise.
32124         * modules/unictype/category-Nd-tests: Likewise.
32125         * modules/unictype/category-Nl-tests: Likewise.
32126         * modules/unictype/category-No-tests: Likewise.
32127         * modules/unictype/category-P-tests: Likewise.
32128         * modules/unictype/category-Pc-tests: Likewise.
32129         * modules/unictype/category-Pd-tests: Likewise.
32130         * modules/unictype/category-Pe-tests: Likewise.
32131         * modules/unictype/category-Pf-tests: Likewise.
32132         * modules/unictype/category-Pi-tests: Likewise.
32133         * modules/unictype/category-Po-tests: Likewise.
32134         * modules/unictype/category-Ps-tests: Likewise.
32135         * modules/unictype/category-S-tests: Likewise.
32136         * modules/unictype/category-Sc-tests: Likewise.
32137         * modules/unictype/category-Sk-tests: Likewise.
32138         * modules/unictype/category-Sm-tests: Likewise.
32139         * modules/unictype/category-So-tests: Likewise.
32140         * modules/unictype/category-Z-tests: Likewise.
32141         * modules/unictype/category-Zl-tests: Likewise.
32142         * modules/unictype/category-Zp-tests: Likewise.
32143         * modules/unictype/category-Zs-tests: Likewise.
32144         * modules/unictype/category-and-not-tests: Likewise.
32145         * modules/unictype/category-and-tests: Likewise.
32146         * modules/unictype/category-byname-tests: Likewise.
32147         * modules/unictype/category-name-tests: Likewise.
32148         * modules/unictype/category-none-tests: Likewise.
32149         * modules/unictype/category-of-tests: Likewise.
32150         * modules/unictype/category-or-tests: Likewise.
32151         * modules/unictype/category-test-withtable-tests: Likewise.
32152         * modules/unictype/combining-class-tests: Likewise.
32153         * modules/unictype/ctype-alnum-tests: Likewise.
32154         * modules/unictype/ctype-alpha-tests: Likewise.
32155         * modules/unictype/ctype-blank-tests: Likewise.
32156         * modules/unictype/ctype-cntrl-tests: Likewise.
32157         * modules/unictype/ctype-digit-tests: Likewise.
32158         * modules/unictype/ctype-graph-tests: Likewise.
32159         * modules/unictype/ctype-lower-tests: Likewise.
32160         * modules/unictype/ctype-print-tests: Likewise.
32161         * modules/unictype/ctype-punct-tests: Likewise.
32162         * modules/unictype/ctype-space-tests: Likewise.
32163         * modules/unictype/ctype-upper-tests: Likewise.
32164         * modules/unictype/ctype-xdigit-tests: Likewise.
32165         * modules/unictype/decimal-digit-tests: Likewise.
32166         * modules/unictype/digit-tests: Likewise.
32167         * modules/unictype/mirror-tests: Likewise.
32168         * modules/unictype/numeric-tests: Likewise.
32169         * modules/unictype/property-alphabetic-tests: Likewise.
32170         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
32171         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
32172         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
32173         * modules/unictype/property-bidi-block-separator-tests: Likewise.
32174         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
32175         * modules/unictype/property-bidi-common-separator-tests: Likewise.
32176         * modules/unictype/property-bidi-control-tests: Likewise.
32177         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
32178         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
32179         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
32180         * modules/unictype/property-bidi-european-digit-tests: Likewise.
32181         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
32182         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
32183         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
32184         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
32185         * modules/unictype/property-bidi-pdf-tests: Likewise.
32186         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
32187         * modules/unictype/property-bidi-whitespace-tests: Likewise.
32188         * modules/unictype/property-byname-tests: Likewise.
32189         * modules/unictype/property-combining-tests: Likewise.
32190         * modules/unictype/property-composite-tests: Likewise.
32191         * modules/unictype/property-currency-symbol-tests: Likewise.
32192         * modules/unictype/property-dash-tests: Likewise.
32193         * modules/unictype/property-decimal-digit-tests: Likewise.
32194         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
32195         * modules/unictype/property-deprecated-tests: Likewise.
32196         * modules/unictype/property-diacritic-tests: Likewise.
32197         * modules/unictype/property-extender-tests: Likewise.
32198         * modules/unictype/property-format-control-tests: Likewise.
32199         * modules/unictype/property-grapheme-base-tests: Likewise.
32200         * modules/unictype/property-grapheme-extend-tests: Likewise.
32201         * modules/unictype/property-grapheme-link-tests: Likewise.
32202         * modules/unictype/property-hex-digit-tests: Likewise.
32203         * modules/unictype/property-hyphen-tests: Likewise.
32204         * modules/unictype/property-id-continue-tests: Likewise.
32205         * modules/unictype/property-id-start-tests: Likewise.
32206         * modules/unictype/property-ideographic-tests: Likewise.
32207         * modules/unictype/property-ids-binary-operator-tests: Likewise.
32208         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
32209         * modules/unictype/property-ignorable-control-tests: Likewise.
32210         * modules/unictype/property-iso-control-tests: Likewise.
32211         * modules/unictype/property-join-control-tests: Likewise.
32212         * modules/unictype/property-left-of-pair-tests: Likewise.
32213         * modules/unictype/property-line-separator-tests: Likewise.
32214         * modules/unictype/property-logical-order-exception-tests: Likewise.
32215         * modules/unictype/property-lowercase-tests: Likewise.
32216         * modules/unictype/property-math-tests: Likewise.
32217         * modules/unictype/property-non-break-tests: Likewise.
32218         * modules/unictype/property-not-a-character-tests: Likewise.
32219         * modules/unictype/property-numeric-tests: Likewise.
32220         * modules/unictype/property-other-alphabetic-tests: Likewise.
32221         * modules/unictype/property-other-default-ignorable-code-point-tests:
32222         Likewise.
32223         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
32224         * modules/unictype/property-other-id-continue-tests: Likewise.
32225         * modules/unictype/property-other-id-start-tests: Likewise.
32226         * modules/unictype/property-other-lowercase-tests: Likewise.
32227         * modules/unictype/property-other-math-tests: Likewise.
32228         * modules/unictype/property-other-uppercase-tests: Likewise.
32229         * modules/unictype/property-paired-punctuation-tests: Likewise.
32230         * modules/unictype/property-paragraph-separator-tests: Likewise.
32231         * modules/unictype/property-pattern-syntax-tests: Likewise.
32232         * modules/unictype/property-pattern-white-space-tests: Likewise.
32233         * modules/unictype/property-private-use-tests: Likewise.
32234         * modules/unictype/property-punctuation-tests: Likewise.
32235         * modules/unictype/property-quotation-mark-tests: Likewise.
32236         * modules/unictype/property-radical-tests: Likewise.
32237         * modules/unictype/property-sentence-terminal-tests: Likewise.
32238         * modules/unictype/property-soft-dotted-tests: Likewise.
32239         * modules/unictype/property-space-tests: Likewise.
32240         * modules/unictype/property-terminal-punctuation-tests: Likewise.
32241         * modules/unictype/property-test-tests: Likewise.
32242         * modules/unictype/property-titlecase-tests: Likewise.
32243         * modules/unictype/property-unassigned-code-value-tests: Likewise.
32244         * modules/unictype/property-unified-ideograph-tests: Likewise.
32245         * modules/unictype/property-uppercase-tests: Likewise.
32246         * modules/unictype/property-variation-selector-tests: Likewise.
32247         * modules/unictype/property-white-space-tests: Likewise.
32248         * modules/unictype/property-xid-continue-tests: Likewise.
32249         * modules/unictype/property-xid-start-tests: Likewise.
32250         * modules/unictype/property-zero-width-tests: Likewise.
32251         * modules/unictype/scripts-tests: Likewise.
32252         * modules/unictype/syntax-c-ident-tests: Likewise.
32253         * modules/unictype/syntax-c-whitespace-tests: Likewise.
32254         * modules/unictype/syntax-java-ident-tests: Likewise.
32255         * modules/unictype/syntax-java-whitespace-tests: Likewise.
32256         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
32257         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
32258         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
32259         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
32260         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
32261         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
32262         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
32263         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
32264         * modules/uniname/uniname-tests: Likewise.
32265         * modules/uninorm/canonical-decomposition-tests: Likewise.
32266         * modules/uninorm/compat-decomposition-tests: Likewise.
32267         * modules/uninorm/composition-tests: Likewise.
32268         * modules/uninorm/decomposing-form-tests: Likewise.
32269         * modules/uninorm/decomposition-tests: Likewise.
32270         * modules/uninorm/filter-tests: Likewise.
32271         * modules/uninorm/nfc-tests: Likewise.
32272         * modules/uninorm/nfd-tests: Likewise.
32273         * modules/uninorm/nfkc-tests: Likewise.
32274         * modules/uninorm/nfkd-tests: Likewise.
32275         * modules/uninorm/u8-normcmp-tests: Likewise.
32276         * modules/uninorm/u8-normcoll-tests: Likewise.
32277         * modules/uninorm/u16-normcmp-tests: Likewise.
32278         * modules/uninorm/u16-normcoll-tests: Likewise.
32279         * modules/uninorm/u32-normcmp-tests: Likewise.
32280         * modules/uninorm/u32-normcoll-tests: Likewise.
32281         * modules/unistdio/u8-asnprintf-tests: Likewise.
32282         * modules/unistdio/u8-vasnprintf-tests: Likewise.
32283         * modules/unistdio/u8-vasprintf-tests: Likewise.
32284         * modules/unistdio/u8-vsnprintf-tests: Likewise.
32285         * modules/unistdio/u8-vsprintf-tests: Likewise.
32286         * modules/unistdio/u16-asnprintf-tests: Likewise.
32287         * modules/unistdio/u16-vasnprintf-tests: Likewise.
32288         * modules/unistdio/u16-vasprintf-tests: Likewise.
32289         * modules/unistdio/u16-vsnprintf-tests: Likewise.
32290         * modules/unistdio/u16-vsprintf-tests: Likewise.
32291         * modules/unistdio/u32-asnprintf-tests: Likewise.
32292         * modules/unistdio/u32-vasnprintf-tests: Likewise.
32293         * modules/unistdio/u32-vasprintf-tests: Likewise.
32294         * modules/unistdio/u32-vsnprintf-tests: Likewise.
32295         * modules/unistdio/u32-vsprintf-tests: Likewise.
32296         * modules/unistdio/ulc-asnprintf-tests: Likewise.
32297         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
32298         * modules/unistdio/ulc-vasprintf-tests: Likewise.
32299         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
32300         * modules/unistdio/ulc-vsprintf-tests: Likewise.
32301         * modules/unistr/u8-check-tests: Likewise.
32302         * modules/unistr/u8-chr-tests: Likewise.
32303         * modules/unistr/u8-cmp-tests: Likewise.
32304         * modules/unistr/u8-cmp2-tests: Likewise.
32305         * modules/unistr/u8-cpy-alloc-tests: Likewise.
32306         * modules/unistr/u8-cpy-tests: Likewise.
32307         * modules/unistr/u8-mblen-tests: Likewise.
32308         * modules/unistr/u8-mbsnlen-tests: Likewise.
32309         * modules/unistr/u8-mbtouc-tests: Likewise.
32310         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
32311         * modules/unistr/u8-mbtoucr-tests: Likewise.
32312         * modules/unistr/u8-move-tests: Likewise.
32313         * modules/unistr/u8-next-tests: Likewise.
32314         * modules/unistr/u8-prev-tests: Likewise.
32315         * modules/unistr/u8-set-tests: Likewise.
32316         * modules/unistr/u8-stpcpy-tests: Likewise.
32317         * modules/unistr/u8-stpncpy-tests: Likewise.
32318         * modules/unistr/u8-strcat-tests: Likewise.
32319         * modules/unistr/u8-strcmp-tests: Likewise.
32320         * modules/unistr/u8-strcoll-tests: Likewise.
32321         * modules/unistr/u8-strcpy-tests: Likewise.
32322         * modules/unistr/u8-strdup-tests: Likewise.
32323         * modules/unistr/u8-strlen-tests: Likewise.
32324         * modules/unistr/u8-strmblen-tests: Likewise.
32325         * modules/unistr/u8-strmbtouc-tests: Likewise.
32326         * modules/unistr/u8-strncat-tests: Likewise.
32327         * modules/unistr/u8-strncmp-tests: Likewise.
32328         * modules/unistr/u8-strncpy-tests: Likewise.
32329         * modules/unistr/u8-strnlen-tests: Likewise.
32330         * modules/unistr/u8-to-u16-tests: Likewise.
32331         * modules/unistr/u8-to-u32-tests: Likewise.
32332         * modules/unistr/u8-uctomb-tests: Likewise.
32333         * modules/unistr/u16-check-tests: Likewise.
32334         * modules/unistr/u16-chr-tests: Likewise.
32335         * modules/unistr/u16-cmp-tests: Likewise.
32336         * modules/unistr/u16-cmp2-tests: Likewise.
32337         * modules/unistr/u16-cpy-alloc-tests: Likewise.
32338         * modules/unistr/u16-cpy-tests: Likewise.
32339         * modules/unistr/u16-mblen-tests: Likewise.
32340         * modules/unistr/u16-mbsnlen-tests: Likewise.
32341         * modules/unistr/u16-mbtouc-tests: Likewise.
32342         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
32343         * modules/unistr/u16-mbtoucr-tests: Likewise.
32344         * modules/unistr/u16-move-tests: Likewise.
32345         * modules/unistr/u16-next-tests: Likewise.
32346         * modules/unistr/u16-prev-tests: Likewise.
32347         * modules/unistr/u16-set-tests: Likewise.
32348         * modules/unistr/u16-stpcpy-tests: Likewise.
32349         * modules/unistr/u16-stpncpy-tests: Likewise.
32350         * modules/unistr/u16-strcat-tests: Likewise.
32351         * modules/unistr/u16-strcmp-tests: Likewise.
32352         * modules/unistr/u16-strcoll-tests: Likewise.
32353         * modules/unistr/u16-strcpy-tests: Likewise.
32354         * modules/unistr/u16-strdup-tests: Likewise.
32355         * modules/unistr/u16-strlen-tests: Likewise.
32356         * modules/unistr/u16-strmblen-tests: Likewise.
32357         * modules/unistr/u16-strmbtouc-tests: Likewise.
32358         * modules/unistr/u16-strncat-tests: Likewise.
32359         * modules/unistr/u16-strncmp-tests: Likewise.
32360         * modules/unistr/u16-strncpy-tests: Likewise.
32361         * modules/unistr/u16-strnlen-tests: Likewise.
32362         * modules/unistr/u16-to-u32-tests: Likewise.
32363         * modules/unistr/u16-to-u8-tests: Likewise.
32364         * modules/unistr/u16-uctomb-tests: Likewise.
32365         * modules/unistr/u32-check-tests: Likewise.
32366         * modules/unistr/u32-chr-tests: Likewise.
32367         * modules/unistr/u32-cmp-tests: Likewise.
32368         * modules/unistr/u32-cmp2-tests: Likewise.
32369         * modules/unistr/u32-cpy-alloc-tests: Likewise.
32370         * modules/unistr/u32-cpy-tests: Likewise.
32371         * modules/unistr/u32-mblen-tests: Likewise.
32372         * modules/unistr/u32-mbsnlen-tests: Likewise.
32373         * modules/unistr/u32-mbtouc-tests: Likewise.
32374         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
32375         * modules/unistr/u32-mbtoucr-tests: Likewise.
32376         * modules/unistr/u32-move-tests: Likewise.
32377         * modules/unistr/u32-next-tests: Likewise.
32378         * modules/unistr/u32-prev-tests: Likewise.
32379         * modules/unistr/u32-set-tests: Likewise.
32380         * modules/unistr/u32-stpcpy-tests: Likewise.
32381         * modules/unistr/u32-stpncpy-tests: Likewise.
32382         * modules/unistr/u32-strcat-tests: Likewise.
32383         * modules/unistr/u32-strcmp-tests: Likewise.
32384         * modules/unistr/u32-strcoll-tests: Likewise.
32385         * modules/unistr/u32-strcpy-tests: Likewise.
32386         * modules/unistr/u32-strdup-tests: Likewise.
32387         * modules/unistr/u32-strlen-tests: Likewise.
32388         * modules/unistr/u32-strmblen-tests: Likewise.
32389         * modules/unistr/u32-strmbtouc-tests: Likewise.
32390         * modules/unistr/u32-strncat-tests: Likewise.
32391         * modules/unistr/u32-strncmp-tests: Likewise.
32392         * modules/unistr/u32-strncpy-tests: Likewise.
32393         * modules/unistr/u32-strnlen-tests: Likewise.
32394         * modules/unistr/u32-to-u16-tests: Likewise.
32395         * modules/unistr/u32-to-u8-tests: Likewise.
32396         * modules/unistr/u32-uctomb-tests: Likewise.
32397         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
32398         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
32399         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
32400         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
32401         * modules/uniwidth/u8-strwidth-tests: Likewise.
32402         * modules/uniwidth/u8-width-tests: Likewise.
32403         * modules/uniwidth/u16-strwidth-tests: Likewise.
32404         * modules/uniwidth/u16-width-tests: Likewise.
32405         * modules/uniwidth/u32-strwidth-tests: Likewise.
32406         * modules/uniwidth/u32-width-tests: Likewise.
32407         * modules/uniwidth/width-tests: Likewise.
32408
32409 2010-05-18  Richard Jones  <rjones@redhat.com>
32410
32411         doc: users.txt: list hivex
32412         * users.txt: Add hivex.
32413
32414 2010-05-18  Richard Jones  <rjones@redhat.com>
32415
32416         doc: users.txt: list febootstrap
32417         * users.txt: Add febootstrap.
32418
32419 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
32420
32421         bootstrap: fix an error when gnulib is not used as a git submodule
32422         * build-aux/bootstrap (gnulib_path): If its length is zero then
32423         assign "gnulib" to it.
32424         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
32425
32426 2010-05-16  Bruno Haible  <bruno@clisp.org>
32427
32428         Avoid autoconf warnings about AM_ICONV.
32429         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
32430         2.64.
32431
32432 2010-05-16  Bruno Haible  <bruno@clisp.org>
32433
32434         absolute-header: Make the macro usable in more situations.
32435         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
32436         from gl_ABSOLUTE_HEADER.
32437         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
32438
32439 2010-05-16  James Youngman  <jay@gnu.org>
32440
32441         doc: update users.txt
32442         * users.txt: Add CSSC.
32443
32444 2010-05-16  Jim Meyering  <meyering@redhat.com>
32445
32446         init.sh: fix an error in the previous change; add more comments
32447         * tests/init.sh: Compare exit code in loop against 9, not 2.
32448         Patch by Bruno Haible.
32449         Make the two tests more similar by adding an empty "then" clause.
32450         Add comments.
32451
32452         init.sh: avoid unnecessary shell re-exec
32453         * tests/init.sh: Improve the re-exec-required check to first test the
32454         current shell.  If it passes the test, do not search for a shell that
32455         does pass, and do not re-exec.  This test is particularly contorted to
32456         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
32457         of $(...) evokes a syntax error and causes immediate shell exit with
32458         status 2.  Bruno Haible reported that the re-exec made it impossible
32459         to single-step through any init.sh-using script.
32460
32461 2010-05-16  Bruno Haible  <bruno@clisp.org>
32462
32463         Fix collision between gnulib's and libintl's printf replacements.
32464         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
32465         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
32466         (printf): When using GNU C, map the __printf__ function to rpl_printf
32467         via __asm__. When not using GNU C, define rpl_printf instead of
32468         __printf__.
32469         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
32470         commit.
32471         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
32472         commit.
32473         * m4/asm-underscore.m4: New file.
32474         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
32475         * modules/stdio (Files): Add m4/asm-underscore.m4.
32476         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
32477         Reported by Ben Pfaff.
32478
32479 2010-05-16  Bruno Haible  <bruno@clisp.org>
32480
32481         verify: Avoid skipping the test on openSUSE 11.0.
32482         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
32483
32484 2010-05-13  Bruno Haible  <bruno@clisp.org>
32485
32486         Avoid useless warnings from G++.
32487         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
32488         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
32489         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32490
32491 2010-05-11  Jim Meyering  <meyering@redhat.com>
32492
32493         maint.mk: tweak preceding change
32494         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
32495         regexps tighter by anchoring at EOL, and make the new group "shy"
32496         for slightly decreased overhead.
32497
32498 2010-05-11  Eric Blake  <eblake@redhat.com>
32499
32500         maint.mk: gnulib doesn't guarantee NSIG
32501         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
32502
32503 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32504
32505         test-pwrite.c: Remove unused variable declaration.
32506         * tests/test-pwrite.c (main): Remove read_buf declaration.
32507
32508         Remove useless test-pwrite.sh file.
32509         * tests/test-pwrite.sh: Delete file.
32510         * modules/pwrite-tests: Remove references.
32511         Reported by Bruno Haible.
32512
32513 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32514
32515         init.sh: fix a typo
32516         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
32517
32518 2010-05-10  Jim Meyering  <meyering@redhat.com>
32519
32520         maint.mk: avoid using a temporary file in the always-defined-macros check
32521         * top/maint.mk (.re-defmac): Remove rule.
32522         (gl_trap_): Remove definition.
32523         (sc_prohibit_always-defined_macros): Rewrite not to create and
32524         depend on a temporary file.  Instead, depend on GNU grep's ability
32525         to read a list of regular expressions from stdin when given "-f -".
32526
32527 2010-05-09  Bruno Haible  <bruno@clisp.org>
32528
32529         Update to GNU gettext 0.18, part 1.
32530         * m4/gettext.m4: Update to GNU gettext 0.18.
32531         * m4/intl.m4: Likewise.
32532         * m4/po.m4: Likewise.
32533         * modules/gettext (Files): Add m4/fcntl-o.m4.
32534         (configure.ac): Require gettext infrastructure from version 0.18.
32535
32536 2010-05-09  Jim Meyering  <meyering@redhat.com>
32537
32538         init.sh: enable MALLOC_PERTURB_
32539         * tests/init.sh: Enable glibc's malloc-perturbing option.
32540
32541         maint.mk: improve sc_cross_check_PATH_usage_in_tests
32542         With my recent change in init.sh from the two-line form:
32543             -#   : ${srcdir=.}
32544             -#   . "$srcdir/init.sh"; path_prepend_ .
32545             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
32546         I noticed that using the one-line form would cause this test
32547         to fail with a false-positive, or to stop working altogether,
32548         depending on whether help-version changed or all the tests did.
32549         * top/maint.mk (_hv_regex): Remove this definition.
32550         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
32551         (_hv_regex_strong): Use a stronger regex to check for conformance.
32552         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
32553         Give a separate diagnostic for lack of conforming use.
32554
32555         maint.mk: prohibit definition of symbols defined by gnulib
32556         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
32557         definition of symbols defined by gnulib.
32558
32559 2010-05-09  Bruno Haible  <bruno@clisp.org>
32560
32561         acl: Avoid test failure on Cygwin-hosted mingw.
32562         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
32563
32564 2010-05-09  Bruno Haible  <bruno@clisp.org>
32565
32566         error: Use system's fcntl function.
32567         * lib/error.c (fcntl): Undefine.
32568
32569 2010-05-09  Jim Meyering  <meyering@redhat.com>
32570
32571         verify: adjust formatting to be more consistent
32572         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
32573         argument-list '('s, and after one comma.
32574
32575 2010-05-09  Bruno Haible  <bruno@clisp.org>
32576
32577         error: More reliable output on mingw.
32578         * lib/error.c: Include <windows.h>.
32579         (is_open): New function.
32580         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
32581         defined.
32582
32583 2010-05-09  Bruno Haible  <bruno@clisp.org>
32584
32585         vasnprintf: Fix syntax errors in libintl build on mingw.
32586         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
32587         pad_ourselves and prec_ourselves after use.
32588
32589 2010-05-08  Bruno Haible  <bruno@clisp.org>
32590
32591         * lib/config.charset: Update comments for Cygwin 1.7.
32592         * lib/localcharset.c: Likewise.
32593
32594 2010-05-07  Jim Meyering  <meyering@redhat.com>
32595
32596         init.sh: improve comments
32597         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
32598         . "${srcdir=.}/init.sh"; path_prepend_ .
32599         Add a note about path_prepend_ and the alternative of using
32600         TESTS_ENVIRONMENT.
32601
32602 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32603
32604         exclude: Unescape hashed patterns in wildcard mode.
32605         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
32606         to the hash list.
32607         * tests/test-exclude8.sh: New test case.
32608         * modules/exclude-tests: Add new test.
32609
32610 2010-05-05  Eric Blake  <eblake@redhat.com>
32611
32612         verify: automate tests
32613         * modules/verify-tests: New module.
32614         * tests/test-verify.sh: New file.
32615         * tests/test-verify.c: Guard each negative test with a unique id.
32616         Also avoid warning about unused left hand of comma expressions.
32617
32618 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
32619
32620         Further improvements to verify.h, suggested by Eric Blake.
32621         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
32622         the GL_* versions, to avoid collision with OpenGL.
32623         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
32624         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
32625         than testing merely whether it's defined.
32626
32627         Modify verify.h to pacify gcc -Wredundant_decls.
32628         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
32629         These use the prefix "GL_" since they're likely to be useful elsewhere.
32630         We may need to break them out into a different .h file.
32631         (__COUNTER__): Define to 0 if the compiler doesn't support it.
32632         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
32633         of verify_function__.
32634
32635 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32636
32637         Tests for module pwrite.
32638         * modules/pwrite-tests: New file.
32639         * tests/test-pwrite.sh: New file.
32640         * tests/test-pwrite.c: New file.
32641
32642         New module pwrite.
32643         * lib/unistd.in.h (pwrite): New declaration.
32644         * lib/pwrite.c: New file, from glibc with modifications.
32645         * m4/pwrite.m4: New file.
32646         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
32647         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
32648         REPLACE_PWRITE.
32649         * modules/pwrite: New file.
32650         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
32651         REPLACE_PWRITE.
32652         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
32653         * doc/posix-functions/pwrite.texi: Mention the new module.
32654
32655 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32656
32657         pread: Update documentation.
32658         * doc/posix-functions/pread.texi: Mention the 'pread' module.
32659
32660 2010-05-04  Eric Blake  <eblake@redhat.com>
32661
32662         docs: update cygwin progress
32663         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
32664         this bug.
32665         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
32666         Added in cygwin 1.7.2.
32667         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
32668         Likewise.
32669         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
32670         Likewise.
32671         * doc/glibc-functions/dup3.texi (dup3): Likewise.
32672         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
32673         * doc/glibc-functions/accept4.texi (accept4): Likewise.
32674         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
32675         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
32676         Mention nproc module.
32677         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
32678         bug in cygwin 1.7.5 addition.
32679         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
32680         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
32681         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
32682         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
32683         1.7.5.
32684         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
32685         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
32686         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
32687         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
32688         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
32689         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
32690         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
32691         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
32692         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
32693         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
32694         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
32695         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
32696         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
32697         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
32698         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
32699         Likewise.
32700         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
32701         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
32702         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
32703         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
32704         Likewise.
32705         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
32706         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
32707         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
32708         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
32709         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
32710         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
32711         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
32712         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
32713         Likewise.
32714         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
32715         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
32716         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
32717         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
32718         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
32719         Likewise.
32720         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
32721         Likewise.
32722         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
32723         Likewise.
32724         * doc/glibc-functions/xdrrec_endofrecord.texi
32725         (xdrrec_endofrecord): Likewise.
32726         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
32727         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
32728         Likewise.
32729         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
32730         Likewise.
32731
32732 2010-05-04  Jim Meyering  <meyering@redhat.com>
32733
32734         gendocs.sh: make its "-s FILE" option more useful
32735         * build-aux/gendocs.sh: When honoring the -s FILE option, update
32736         $PACKAGE to reflect the probably-different basename of "FILE".
32737
32738 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32739
32740         bootstrap: don't ignore download_po_files failure
32741         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
32742         failure.
32743
32744 2010-05-03  Jim Meyering  <meyering@redhat.com>
32745
32746         maint.mk: allow to pass options to gendocs.sh
32747         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
32748         (gendocs_options_): New overridable variable.
32749
32750         gnu-web-doc-update: don't ignore configure or build failure
32751         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
32752
32753         announce-gen: backslash-escape '@'s in --help output
32754         * build-aux/announce-gen: Fix syntax errors.
32755
32756         maint.mk, announce-gen: allow project-specific announcement mail headers
32757         * top/maint.mk (translation_project_): Define default.
32758         (announcement_Cc_, announcement_mail_headers_): Likewise.
32759         (announcement): Invoke announce-gen with new --mail-headers option.
32760         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
32761
32762         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
32763         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
32764         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
32765         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
32766         line in the "err2" output file when running "make check" in verbose
32767         mode (i.e., with set -x enabled).
32768
32769 2010-05-03  Bruno Haible  <bruno@clisp.org>
32770
32771         wctob: Fix for weird platforms.
32772         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
32773         argument value.
32774
32775 2010-05-03  Jim Meyering  <meyering@redhat.com>
32776
32777         maint.mk: prohibit unwarranted use of <strings.h>
32778         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
32779         strings.h in a file that does not also use strcasecmp, strncasecmp,
32780         ffs or ffsll.
32781
32782         maint.mk: remove obsolete comments
32783         * top/maint.mk: Remove stale, commented-out rules.
32784
32785 2010-05-02  Bruno Haible  <bruno@clisp.org>
32786
32787         wcwidth: Declare also when it's aliased.
32788         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
32789         macro.
32790
32791 2010-05-02  Bruno Haible  <bruno@clisp.org>
32792
32793         Fix regression from 2010-04-25.
32794         * gnulib-tool (func_modules_transitive_closure): Check the status of
32795         all modules, not only of the tests that are of the form foo-tests where
32796         foo is a module.
32797
32798 2010-05-02  Bruno Haible  <bruno@clisp.org>
32799
32800         wctob: Work around nasty Cygwin 1.7.2 bug.
32801         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
32802         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
32803
32804 2010-05-01  Bruno Haible  <bruno@clisp.org>
32805
32806         fpurge: Sharper test.
32807         * tests/test-fpurge.c (main): Add one more ftell check.
32808         * modules/fpurge-tests (Depends-on): Add ftell.
32809         Suggested by Eric Blake.
32810
32811 2010-05-01  Bruno Haible  <bruno@clisp.org>
32812
32813         ftello: Another test.
32814         * tests/test-ftello3.c: New file.
32815         * modules/ftello-tests (Files): Add it.
32816         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32817         MOSTLYCLEANFILES.
32818
32819         ftell: Another test.
32820         * tests/test-ftell3.c: New file.
32821         * modules/ftell-tests (Files): Add it.
32822         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32823         MOSTLYCLEANFILES.
32824
32825 2010-05-01  Bruno Haible  <bruno@clisp.org>
32826
32827         ftell, ftello: Work around Solaris bug.
32828         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
32829         * lib/ftello.c: Include stdio-impl.h.
32830         (ftello): On Solaris, when _IOWRT is set, compute the result without
32831         looking at _IOREAD.
32832         * modules/ftello (Files): Add lib/stdio-impl.h.
32833         * doc/posix-functions/ftell.texi: Mention Solaris bug.
32834         * doc/posix-functions/ftello.texi: Likewise.
32835         Reported by Eric Blake.
32836
32837 2010-05-01  Bruno Haible  <bruno@clisp.org>
32838
32839         freading: Adapt to special meaning of _IOREAD flag on Solaris.
32840         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
32841         the _IOWRT flag is also set.
32842
32843 2010-05-01  Bruno Haible  <bruno@clisp.org>
32844
32845         Fix doc about a HP-UX stdio bug.
32846         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
32847         * doc/posix-functions/ftello.texi: Likewise.
32848
32849 2010-05-01  Bruno Haible  <bruno@clisp.org>
32850
32851         lseek test: Fix failure on Solaris.
32852         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
32853         output.
32854
32855 2010-04-30  Jim Meyering  <meyering@redhat.com>
32856
32857         bootstrap: don't ignore failure to generate po*/Makevars
32858         * build-aux/bootstrap (with_gettext): Don't ignore failure
32859         to create po/Makevars or runtime-po/Makevars.
32860
32861 2010-04-29  Eric Blake  <eblake@redhat.com>
32862
32863         headers: relax license to LGPLv2+
32864         * modules/fcntl-h (License): Relax license.
32865         * modules/getopt-posix (License): Likewise.
32866         * modules/locale (License): Likewise.
32867         * modules/math (License): Likewise.
32868         * modules/pty (License): Likewise.
32869         * modules/sched (License): Likewise.
32870         * modules/search (License): Likewise.
32871         * modules/spawn (License): Likewise.
32872         * modules/stdarg (License): Likewise.
32873         * modules/sysexits (License): Likewise.
32874
32875 2010-04-29  Jim Meyering  <meyering@redhat.com>
32876
32877         inttypes: relax license to LGPLv2+
32878         * modules/inttypes (License): Relax license.
32879
32880 2010-04-29  Simon Josefsson  <simon@josefsson.org>
32881
32882         * top/maint.mk (indent): Run twice to produce idempotent results.
32883
32884 2010-04-28  Bruno Haible  <bruno@clisp.org>
32885
32886         getdate: Generate getdate.c in the source directory.
32887         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
32888         MOSTLYCLEANFILES.
32889         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
32890
32891 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
32892
32893         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
32894         is not declared as a const *; avoid warnings in that case.
32895
32896 2010-04-28  Eric Blake  <eblake@redhat.com>
32897
32898         canonicalize-lgpl: avoid compiler warning
32899         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
32900         declaration' / 'extraneous semicolon' warning with some compilers.
32901         Reported by Andreas Gruenbacher.
32902
32903 2010-04-28  Jim Meyering  <meyering@redhat.com>
32904
32905         init.sh: ensure a more reliable exit status when exiting via trap
32906         * tests/init.sh (setup_): Don't rely on $? in signal handler.
32907         Inspired by patches from Dmitry V. Levin.
32908         Also trap on signal 3 (SIGQUIT).
32909
32910 2010-04-27  Bruno Haible  <bruno@clisp.org>
32911
32912         Update doc about utimes().
32913         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
32914         'utimens' module.
32915         Reported by Andreas Gruenbacher <agruen@suse.de>.
32916
32917 2010-04-27  Eric Blake  <eblake@redhat.com>
32918
32919         full-read, full-write: relax license
32920         * modules/full-read (License): Drop to LGPLv2+.
32921         * modules/full-write (License): Likewise.
32922         * modules/safe-read (License): Likewise.
32923         * modules/safe-write (License): Likewise.
32924
32925         pthread: mention library for linking
32926         * modules/pthread (Link): Mention $(LIB_PTHREAD).
32927
32928 2010-04-27  Jim Meyering  <meyering@redhat.com>
32929
32930         maint.mk: fix a bug introduced in last change
32931         * top/maint.mk (gl_assured_headers_): Now that all names are on
32932         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
32933         is not anchored to end of word, it should be adequate.
32934
32935         maint.mk: avoid side-effect in latest syntax-check
32936         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
32937         to run commands via $(shell...), and hence to incur cost only when
32938         the new rule is actually run.
32939
32940         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
32941         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
32942         and use that to create a regexp used to detect all #if HAVE_..._H uses.
32943         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
32944         (gl_assured_headers_, az_, AZ_): Define.
32945         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
32946
32947 2010-04-26  Jim Meyering  <jim@meyering.net>
32948             Bruno Haible  <bruno@clisp.org>
32949
32950         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
32951         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
32952         Prompted by an exchange with Gilles Espinasse.
32953
32954 2010-04-26  Jim Meyering  <meyering@redhat.com>
32955
32956         git-version-gen: aesthetic tweak
32957         * build-aux/git-version-gen: Use "$nl" rather than a literal,
32958         so that the command remains on a single line.
32959
32960 2010-04-26  Eric Blake  <eblake@redhat.com>
32961
32962         git-version-gen: allow use on EBCDIC hosts
32963         * build-aux/git-version-gen (dirty): Use literal rather than tying
32964         ourselves to ascii.
32965         Reported by Steve Goetze.
32966
32967 2010-04-25  Bruno Haible  <bruno@clisp.org>
32968
32969         netdb: Add support for GNULIB_POSIXCHECK.
32970         * lib/netdb.in.h: Include warn-on-use.h.
32971         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
32972         functions are used when GNULIB_POSIXCHECK is defined and the
32973         getaddrinfo module is not in use.
32974         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
32975         freeaddrinfo, gai_strerror, getnameinfo are declared.
32976         * modules/netdb (Depends-on): Add warn-on-use.
32977         (Makefile.am): Include warn-on-use.h in netdb.h.
32978
32979 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
32980
32981         build: avoid "make check" failure without .git/ directory
32982         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
32983         there is no .git/ directory.
32984
32985 2010-04-25  Bruno Haible  <bruno@clisp.org>
32986
32987         ptsname: Fix misuse of ttyname_r.
32988         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
32989         of errno.
32990
32991 2010-04-25  Bruno Haible  <bruno@clisp.org>
32992
32993         ttyname_r: Make it work on Solaris 10.
32994         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
32995         if the system function has the POSIX declaration. Test whether the
32996         function fails if the buffer is less than 128 bytes large.
32997         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
32998         system's ttyname_r function. Provide a reasonably large buffer.
32999         * modules/ttyname_r (Depends-on): Add extensions.
33000         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
33001
33002 2010-04-25  Bruno Haible  <bruno@clisp.org>
33003
33004         Use the 'extensions' module for some more functions on Solaris.
33005         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
33006         module.
33007         * doc/posix-functions/ctime_r.texi: Likewise.
33008         * doc/posix-functions/getgrgid_r.texi: Likewise.
33009         * doc/posix-functions/getgrnam_r.texi: Likewise.
33010         * doc/posix-functions/getpwnam_r.texi: Likewise.
33011         * doc/posix-functions/getpwuid_r.texi: Likewise.
33012         * doc/posix-functions/readdir_r.texi: Likewise.
33013         * doc/posix-functions/sigwait.texi: Likewise.
33014         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
33015         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
33016
33017 2010-04-25  Bruno Haible  <bruno@clisp.org>
33018
33019         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
33020         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
33021         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
33022         * lib/ttyname_r.c: Include <limits.h>.
33023         (ttyname_r): Define using the system's ttyname_r function, if it exists
33024         and not on Solaris.
33025         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
33026         set.
33027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
33028         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
33029         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
33030         Reported by Simon Josefsson.
33031
33032 2010-04-25  Bruno Haible  <bruno@clisp.org>
33033
33034         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
33035         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
33036         * doc/posix-functions/ctime_r.texi: Likewise.
33037         * doc/posix-functions/getgrgid_r.texi: Likewise.
33038         * doc/posix-functions/getgrnam_r.texi: Likewise.
33039         * doc/posix-functions/getlogin_r.texi: Likewise.
33040         * doc/posix-functions/getpwnam_r.texi: Likewise.
33041         * doc/posix-functions/getpwuid_r.texi: Likewise.
33042         * doc/posix-functions/readdir_r.texi: Likewise.
33043         * doc/posix-functions/sigwait.texi: Likewise.
33044         * doc/posix-functions/ttyname_r.texi: Likewise.
33045         Reported by Simon Josefsson.
33046
33047 2010-04-25  Bruno Haible  <bruno@clisp.org>
33048
33049         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
33050         * gnulib-tool (func_usage): Document that --with-*-tests options apply
33051         also to --create-testdir.
33052         (func_acceptable): Don't consider the status of *-tests modules here.
33053         (func_modules_transitive_closure): Consider it here, before including a
33054         test module.
33055         (func_import, func_create_testdir): Set inc_all_direct_tests,
33056         inc_all_indirect_tests.
33057         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
33058         --create-testdir and --create-megatestdir.
33059
33060 2010-04-25  Bruno Haible  <bruno@clisp.org>
33061
33062         gnulib-tool: Add --without-*-tests options.
33063         * gnulib-tool (func_usage): Document the --without-*-tests options.
33064         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
33065         excl_unportable_tests): New variables.
33066         Fail if they are specified with --import or --update.
33067         (func_acceptable): Respect the excl_*_tests variables.
33068         (func_import): Set the excl_*_tests variables to empty.
33069
33070 2010-04-25  Simon Josefsson  <simon@josefsson.org>
33071             Bruno Haible  <bruno@clisp.org>
33072
33073         Work around a MacOS X 10.4 bug with openpty.
33074         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
33075         * tests/test-openpty.c (main): Close the master side explicitly.
33076
33077 2010-04-25  Bruno Haible  <bruno@clisp.org>
33078
33079         strnlen: Fix a C++ test error on MacOS X and Solaris.
33080         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
33081         the function is not declared.
33082         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
33083         Simon Josefsson.
33084
33085 2010-04-24  Bruno Haible  <bruno@clisp.org>
33086
33087         Avoid a gcc warning.
33088         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
33089         of correct type for %08lx directive.
33090         Reported by Eric Blake.
33091
33092 2010-04-24  Bruno Haible  <bruno@clisp.org>
33093
33094         vasnprintf: Correct errno value in case of out-of-memory.
33095         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
33096         or sprintf. Use the errno value from SNPRINTF or sprintf.
33097         Reported by Ian Beckwith <ianb@erislabs.net>.
33098
33099 2010-04-24  Bruno Haible  <bruno@clisp.org>
33100
33101         ansi-c++-opt: Find correct compiler when cross-compiling.
33102         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
33103         AC_CHECK_PROGS.
33104         Reported by Simon Josefsson.
33105
33106 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
33107
33108         vc-list-files: Add support for subversion
33109         * build-aux/vc-list-files: Use "svn list" to generate the list of
33110         files controlled by subversion.
33111
33112 2010-04-23  Jim Meyering  <meyering@redhat.com>
33113
33114         vc-list-files tests: convert to use init.sh
33115         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
33116         path_prepend_.
33117         Use Exit, not exit.
33118         Use skip_ rather than open coding it.
33119         Remove trap set-up and compare definitions.
33120         * tests/test-vc-list-files-git.sh: Likewise.
33121         * modules/vc-list-files-tests (Files): Add tests/init.sh.
33122
33123 2010-04-22  Simon Josefsson  <simon@josefsson.org>
33124
33125         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
33126         backup files.
33127
33128 2010-04-21  Simon Josefsson  <simon@josefsson.org>
33129
33130         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
33131
33132 2010-04-20  Eric Blake  <eblake@redhat.com>
33133
33134         tests: be robust to ignored SIGPIPE
33135         * tests/test-select-in.sh: Consume all output.
33136         * tests/test-lseek.sh: Check correct exit status, while avoiding
33137         EPIPE.
33138
33139 2010-04-20  Simon Josefsson  <simon@josefsson.org>
33140             Bruno Haible  <bruno@clisp.org>
33141
33142         visibility: Don't use -fvisibility if it leads to a warning.
33143         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
33144         yes, don't pretend that visibility works if it leads to a warning.
33145         Reported by Mike Gran <spk121@yahoo.com>.
33146
33147 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
33148
33149         * build-aux/bootstrap: Use "git -h" for testing for supported options
33150         instead of "git --help".  The short-form option only shows a summary,
33151         and doesn't layout the full man page.  Grep for the full option name
33152         in the summary, too.
33153
33154 2010-04-19  Bruno Haible  <bruno@clisp.org>
33155
33156         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
33157         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
33158         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
33159         mention of RELOCATABLE_STRIP.
33160         Reported by Sylvain Beucler <beuc@beuc.net>.
33161
33162 2010-04-19  Bruno Haible  <bruno@clisp.org>
33163
33164         * lib/diffseq.h: Fix typo in comment.
33165         Reported by Eric Blake.
33166
33167 2010-04-19  Bruno Haible  <bruno@clisp.org>
33168
33169         ioctl: Move autoconf macro to a .m4 file.
33170         * m4/ioctl.m4: New file, extracted from modules/ioctl.
33171         * modules/ioctl (Files): Add it.
33172         (configure.ac): Simply invoke gl_FUNC_IOCTL.
33173         Reported by Ian Beckwith <ianb@erislabs.net>.
33174
33175 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
33176             Bruno Haible  <bruno@clisp.org>
33177
33178         diffseq: Accommodate use-case with abstract arrays.
33179         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
33180         is not defined.
33181         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
33182         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
33183
33184 2010-04-18  Bruno Haible  <bruno@clisp.org>
33185
33186         * doc/posix-headers/stdbool.texi: More precise wording.
33187
33188 2010-04-17  Jim Meyering  <meyering@redhat.com>
33189
33190         maint.mk: use gnu-style indentation in an embedded perl script
33191         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
33192         Rename variable: s/two/last_two_bytes/
33193
33194 2010-04-16  Eric Blake  <eblake@redhat.com>
33195
33196         test-stdbool: skip test that fails with Solaris CC
33197         * tests/test-stdbool.c (f): Skip test that causes compilation
33198         error under buggy C++ compiler.
33199         * lib/stdbool.in.h: Document the limitation.
33200         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
33201
33202         setenv: allow compilation with C++
33203         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
33204         register keyword.
33205
33206         stdint: allow test to pass with C++
33207         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
33208
33209         getopt: allow compilation with C++
33210         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
33211         struct.
33212         * lib/getopt.c (_getopt_internal_r): Use correct type.
33213         Reported by Dagobert Michelson, via Joel E. Denny.
33214
33215 2010-04-16  Bruno Haible  <bruno@clisp.org>
33216
33217         Override netdb.h always.
33218         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
33219         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
33220         Reported by Ludovic Courtès <ludo@gnu.org>.
33221
33222 2010-04-15  Bruno Haible  <bruno@clisp.org>
33223
33224         openpty: Fix mistake from 2010-03-21.
33225         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
33226         Reported by Simon Josefsson.
33227
33228 2010-04-15  Eric Blake  <eblake@redhat.com>
33229
33230         test-forkpty: fix expected signature
33231         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
33232         Reported by Simon Josefsson.
33233
33234 2010-04-15  Jim Meyering  <meyering@redhat.com>
33235
33236         maint.mk: texinfo_suffix_re_: correct the default regexp
33237         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
33238
33239         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
33240         make it configurable via texinfo_suffix_re_.
33241
33242 2010-04-14  Eric Blake  <eblake@redhat.com>
33243
33244         strtok_r: relax license to LGPLv2+
33245         * modules/strtok_r (License): Relax license.
33246         Reported by Matthias Bolte.
33247
33248 2010-04-14  Simon Josefsson  <simon@josefsson.org>
33249
33250         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
33251         version 1.4.4 by default instead of requiring the libgcrypt
33252         version used during build.  This makes it possible to use the
33253         application with older but still binary compatible libgcrypt
33254         versions.
33255
33256 2010-04-13  Eric Blake  <eblake@redhat.com>
33257
33258         getopt-gnu: match recent glibc fixes and posix ruling
33259         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
33260         '+' handling, when requesting extensions.
33261         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
33262         'W;' handling.
33263         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
33264         * doc/posix-functions/getopt.texi (getopt): Document this.
33265         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33266         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33267         Likewise.
33268
33269         getopt: merge bug fixes from glibc
33270         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
33271         diagnostics.  Honor '+:' correctly.  Reject ';'.
33272
33273         getopt-posix: detect MacOS bug
33274         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
33275         optind when missing a required argument.
33276         * doc/posix-functions/getopt.texi (getopt): Document the bug.
33277         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33278         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33279         Likewise.
33280
33281         getopt-posix: avoid spurious failure on Solaris
33282         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
33283         an indicator that setting optind=1 is sufficient for reset.
33284
33285         getopt-posix: avoid spurious failure on FreeBSD
33286         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
33287         in POSIX mode, since the m4 test uses it.
33288
33289         gnulib-tool: silence warning on BSD sh
33290         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
33291
33292 2010-04-13  Jim Meyering  <meyering@redhat.com>
33293
33294         doc: users.txt: GNU patch now uses gnulib
33295         * users.txt: Add patch.
33296
33297 2010-04-12  Jim Meyering  <meyering@redhat.com>
33298
33299         maint.mk: generate more concise timing data for syntax-check rules
33300         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
33301         " done" from each line that reports a syntax-check test duration.
33302
33303 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
33304
33305         git-version-gen: use "git update-index..." rather than "git status"
33306         * build-aux/git-version-gen: Use git update-index --refresh, not
33307         "git status".  With some versions of git, "git status" would fail
33308         to update the index and result in an unwarranted "-dirty" suffix.
33309
33310 2010-04-11  Jim Meyering  <meyering@redhat.com>
33311
33312         openat: correct formatting (no semantic change)
33313         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
33314         Suggested by Bruno Haible.
33315
33316 2010-04-11  Bruno Haible  <bruno@clisp.org>
33317
33318         Stricter declaration checking in testdirs.
33319         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33320         If for_tests is true, augment AM_CPPFLAGS to define
33321         GNULIB_STRICT_CHECKING.
33322         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
33323         GNULIB_STRICT_CHECKING is defined, verify that the function is
33324         declared.
33325
33326 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
33327             Bruno Haible  <bruno@clisp.org>
33328
33329         libunistring: Improve configure output.
33330         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
33331         Don't say "consider installing GNU libunistring" when checking again
33332         with libiconv.
33333
33334 2010-04-11  Bruno Haible  <bruno@clisp.org>
33335
33336         libunistring: Correct value of $LTLIBUNISTRING.
33337         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
33338         correct the value of $LTLIBUNISTRING.
33339
33340 2010-04-11  Bruno Haible  <bruno@clisp.org>
33341
33342         havelib: Add static libraries to LIBS in the right order.
33343         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
33344         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
33345
33346 2010-04-11  Bruno Haible  <bruno@clisp.org>
33347
33348         libunistring: Detect libunistring also when it depends on libiconv.
33349         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
33350         the second AC_LIB_HAVE_LINKFLAGS invocation.
33351
33352 2010-04-11  James Youngman  <jay@gnu.org>
33353
33354         close-stream: declare local scalars to be "const"
33355         * lib/close-stream.c (close_stream): Make boolean variables const
33356         to document the fact that we set but do not change them.
33357
33358 2010-04-11  Bruno Haible  <bruno@clisp.org>
33359
33360         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
33361
33362 2010-04-11  Jim Meyering  <meyering@redhat.com>
33363
33364         maint.mk: don't include dist-check.mk
33365         * top/maint.mk: Remove bogus include directive.
33366
33367         maint.mk: improve empty-line-at-EOF check
33368         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
33369         solution, rather than tail+Perl-based one.  The latter would read
33370         a few kilobytes from the end of each file, and did not handle empty
33371         files properly.
33372
33373         maint.mk: print the elapsed time for each syntax-check rule
33374         * top/maint.mk (sc_m_rules_): Save start time in a file.
33375         (sc_z_rules_): New rules: remove temp file and print elapsed time.
33376         (local-check): Interpose the .z rules
33377
33378 2010-04-11  Jim Meyering  <meyering@redhat.com>
33379
33380         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
33381         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
33382         empty file with one that ends in an empty line.
33383
33384 2010-04-10  Bruno Haible  <bruno@clisp.org>
33385
33386         mkdir: Make it work on mingw64.
33387         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
33388         * lib/mkdir.c: Update comment.
33389         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
33390
33391 2010-04-10  Bruno Haible  <bruno@clisp.org>
33392
33393         Don't override improved macro from newer autoconf.
33394         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
33395         autoconf >= 2.62.
33396         Reported by Joel E. Denny <jdenny@clemson.edu>.
33397
33398 2010-04-10  Jim Meyering  <meyering@redhat.com>
33399
33400         maint.mk: new syntax-check rule: prohibit empty lines at end of file
33401         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
33402
33403         maint.mk: correct a diagnostic
33404         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
33405         in diagnostic; now use $prohibit.
33406
33407 2010-04-10  Bruno Haible  <address@hidden>
33408
33409         fchownat: Fix a C++ test error on Solaris 8.
33410         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
33411         the function does not exist.
33412
33413 2010-04-10  Bruno Haible  <bruno@clisp.org>
33414
33415         vasnprintf: Add more tests.
33416         * tests/test-vasnprintf-posix.c: Include <errno.h>.
33417         (test_function): Test converting an invalid wide string.
33418
33419         vasnprintf: Correct handling of unconvertible wide string arguments.
33420         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
33421         VASNPRINTF.
33422         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
33423         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
33424         smaller than the expected maximum need for the directive. Set errno to
33425         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
33426         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
33427         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
33428         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
33429         * modules/vasnprintf (Files): Add m4/printf.m4.
33430         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33431
33432 2010-04-10  Bruno Haible  <bruno@clisp.org>
33433
33434         vasnprintf: Fix crash in %ls directive.
33435         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
33436         string is passed as argument to %ls, with no precision and no width.
33437         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33438
33439 2010-04-10  Bruno Haible  <bruno@clisp.org>
33440
33441         vasnprintf: Fix multiple test failures on mingw.
33442         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
33443         _snprintf, or snwprintf, not _snwprintf.
33444
33445 2010-04-10  Bruno Haible  <bruno@clisp.org>
33446
33447         write: Fix a C++ test error on mingw.
33448         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
33449
33450 2010-04-10  Bruno Haible  <bruno@clisp.org>
33451
33452         vasnprintf test: Reduce code duplication.
33453         * tests/test-vasnprintf.c (test_function): New function, extracted from
33454         test_vasnprintf.
33455         (test_vasnprintf, test_asnprintf): Invoke it.
33456
33457 2010-04-10  Bruno Haible  <bruno@clisp.org>
33458
33459         strnlen: Fix warning in C++ mode on MacOS X.
33460         * lib/string.in.h (strnlen): Use the modern idiom.
33461         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
33462         defining strnlen as a macro already in <config.h>.
33463         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33464         REPLACE_STRNLEN.
33465         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
33466         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33467
33468 2010-04-08  James Youngman  <jay@gnu.org>
33469
33470         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
33471         the example.
33472
33473 2010-04-09  Jim Meyering  <meyering@redhat.com>
33474
33475         maint.mk: print better diagnostic when there is no $(_hv_file)
33476         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
33477         announce that when $(_hv_file) (aka help-version) does not exist.
33478
33479         init.sh: run tr in the "C" locale to avoid multibyte interpretation
33480         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
33481         not try to interpret its random input bytes.  Jarno Rajahalme reported
33482         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
33483         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
33484         (mktempd_): Likewise, just in case.
33485
33486         ftruncate: add two years to projected module removal date: 2012
33487         * m4/ftruncate.m4: Adjust comments.
33488
33489         ftruncate: mark module as obsolete; even MinGW provides it, now
33490         * modules/ftruncate (Status): Obsolete.
33491         (Notice): Say that.
33492         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
33493         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
33494
33495 2010-04-08  Bruno Haible  <bruno@clisp.org>
33496
33497         Fix side effects from tests-related modules.
33498         * modules/dprintf-posix (Comment): New section.
33499         * modules/fprintf-posix (Comment): Likewise.
33500         * modules/obstack-printf-posix (Comment): Likewise.
33501         * modules/printf-posix (Comment): Likewise.
33502         * modules/snprintf-posix (Comment): Likewise.
33503         * modules/sprintf-posix (Comment): Likewise.
33504         * modules/vasnprintf-posix (Comment): Likewise.
33505         * modules/vasprintf-posix (Comment): Likewise.
33506         * modules/vdprintf-posix (Comment): Likewise.
33507         * modules/vfprintf-posix (Comment): Likewise.
33508         * modules/vprintf-posix (Comment): Likewise.
33509         * modules/vsnprintf-posix (Comment): Likewise.
33510         * modules/vsprintf-posix (Comment): Likewise.
33511         * modules/xprintf-posix (Comment): Likewise.
33512         * modules/xvasprintf-posix (Comment): Likewise.
33513         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
33514         * modules/floorf-tests (Depends-on): Likewise.
33515         * modules/round-tests (Depends-on): Likewise.
33516         * modules/roundf-tests (Depends-on): Likewise.
33517         * modules/trunc-tests (Depends-on): Likewise.
33518         * modules/truncf-tests (Depends-on): Likewise.
33519         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
33520         'fprintf-posix' module is not present.
33521         * tests/test-floorf2.c (check): Likewise.
33522         * tests/test-trunc2.c (check): Likewise.
33523         * tests/test-truncf2.c (check): Likewise.
33524         * tests/test-round2.c (equal): Likewise.
33525         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33526
33527 2010-04-07  Karl Berry  <karl@gnu.org>
33528
33529         * config/srclist.txt,
33530         * config/srclistvars.sh,
33531         * config/srclist-update: doc fixes.
33532
33533 2010-04-07  Jim Meyering  <meyering@redhat.com>
33534
33535         maint.mk: add a PATH crosschecking syntax-check rule
33536         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
33537         Useful if you use a test like the one in help-version (coreutils,
33538         diffutils, grep, gzip) that ensures $(VERSION) matches what is
33539         printed by prog --version.
33540
33541 2010-04-06  Bruno Haible  <bruno@clisp.org>
33542
33543         Fix link error on mingw.
33544         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
33545         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
33546
33547 2010-04-06  Bruno Haible  <bruno@clisp.org>
33548
33549         Assume rmdir exists.
33550         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
33551
33552 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
33553
33554         doc: update users.txt
33555         * users.txt: Add gcal.
33556
33557 2010-04-06  Jim Meyering  <meyering@redhat.com>
33558
33559         init.sh: simply unset TMPDIR rather than risking env -i
33560         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
33561         although it probably works fine on all Unix-based systems, some
33562         systems (Cygwin?) cannot tolerate a totally cleared environment.
33563         Suggestion from Eric Blake.
33564
33565 2010-04-06  Jim Meyering  <meyering@redhat.com>
33566
33567         init.sh: portability fix: use env's POSIX-specified -i option not -u
33568         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
33569         than unportable env -u.  Solaris 5.11's env lacks support for -u.
33570
33571 2010-04-05  Bruno Haible  <bruno@clisp.org>
33572
33573         btowc: Work around Cygwin 1.7.2 bug.
33574         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
33575         does not map NUL to 0.
33576         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
33577
33578 2010-04-05  Bruno Haible  <bruno@clisp.org>
33579
33580         Make the multithread modules work on Cygwin 1.7.2.
33581         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
33582         imported symbols can be declared weak, so that it returns "no" on
33583         Cygwin 1.7.2.
33584
33585 2010-04-05  Bruno Haible  <bruno@clisp.org>
33586
33587         Use the module 'strncat'.
33588         * modules/unistr/u8-strncat (Depends-on): Add strncat.
33589
33590         Tests for module 'strncat'.
33591         * modules/strncat-tests: New file.
33592         * tests/test-strncat.c: New file.
33593
33594         New module 'strncat'.
33595         * lib/string.in.h (strncat): New declaration.
33596         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
33597         * m4/strncat.m4: New file, based on m4/memchr.m4.
33598         * modules/strncat: New file.
33599         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
33600         is declared.
33601         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
33602         REPLACE_STRNCAT.
33603         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
33604         REPLACE_STRNCAT.
33605         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
33606         module.
33607         * tests/test-string-c++.cc: Check signature of strncat.
33608
33609 2010-04-05  Jim Meyering  <meyering@redhat.com>
33610
33611         xstrtoumax-tests: convert to use init.sh
33612         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
33613         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33614         Use Exit, not exit.
33615         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33616
33617         xstrtoimax-tests: convert to use init.sh
33618         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
33619         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33620         Use Exit, not exit.
33621         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33622
33623 2010-04-05  Bruno Haible  <bruno@clisp.org>
33624
33625         sys_socket: Avoid #define replacements in C++ mode.
33626         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
33627         warning to the function if possible, rather than #defining the symbol
33628         to a dysfunctional alias.
33629
33630 2010-04-05  Bruno Haible  <bruno@clisp.org>
33631
33632         fseeko: Fix C++ test error on mingw.
33633         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
33634         gl_FUNC_FSEEKO.
33635         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
33636         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
33637         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
33638         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
33639
33640 2010-04-05  Bruno Haible  <bruno@clisp.org>
33641
33642         duplocale: Improve test output.
33643         * tests/test-duplocale.c (main): Print reason for skipped test.
33644
33645 2010-04-05  Bruno Haible  <bruno@clisp.org>
33646
33647         Assume rmdir exists.
33648         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
33649         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
33650
33651 2010-04-05  Bruno Haible  <bruno@clisp.org>
33652
33653         Fix link error on Solaris 8 with cc.
33654         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
33655
33656 2010-04-05  Bruno Haible  <bruno@clisp.org>
33657
33658         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33659         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
33660
33661 2010-04-05  Bruno Haible  <bruno@clisp.org>
33662
33663         vasprintf: Update documentation.
33664         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
33665
33666 2010-04-05  Bruno Haible  <bruno@clisp.org>
33667
33668         ptsname: Improve test.
33669         * tests/test-ptsname.c (main): Also try the various master names of BSD
33670         systems.
33671
33672 2010-04-05  Bruno Haible  <bruno@clisp.org>
33673
33674         memchr: Avoid a possible C++ test error.
33675         * lib/string.in.h (memchr): Provide declaration if function is missing.
33676         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
33677         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
33678         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
33679         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
33680
33681 2010-04-05  Bruno Haible  <bruno@clisp.org>
33682
33683         strtok_r: Improve idiom.
33684         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
33685         AC_LIBOBJ is used.
33686
33687 2010-04-05  Bruno Haible  <bruno@clisp.org>
33688
33689         strdup: Improve idiom.
33690         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
33691         AC_LIBOBJ is used.
33692         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
33693         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
33694         when AC_LIBOBJ is used.
33695
33696 2010-04-05  Bruno Haible  <bruno@clisp.org>
33697
33698         mbsinit, mbrtowc, wcrtomb: Improve idioms.
33699         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
33700         don't set REPLACE_MBSINIT to 1.
33701         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
33702         don't set REPLACE_MBRTOWC to 1.
33703         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
33704         exist, don't set REPLACE_MBSRTOWCS to 1.
33705         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
33706         exist, don't set REPLACE_MBSNRTOWCS to 1.
33707         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
33708         don't set REPLACE_WCRTOMB to 1.
33709         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
33710         exist, don't set REPLACE_WCSRTOMBS to 1.
33711         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
33712         exist, don't set REPLACE_WCSNRTOMBS to 1.
33713
33714 2010-04-05  Bruno Haible  <bruno@clisp.org>
33715
33716         ldexpl: Improve idiom.
33717         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
33718         make sure to set HAVE_DECL_LDEXPL to 0.
33719
33720 2010-04-05  Jim Meyering  <meyering@redhat.com>
33721
33722         xstrtol-tests: convert to use init.sh
33723         * modules/xstrtol-tests (Files): Add tests/init.sh.
33724         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33725         Use Exit, not exit.
33726         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33727
33728         atexit-tests: convert to use init.sh
33729         * modules/atexit-tests (Files): Add tests/init.sh.
33730         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33731         Use Exit, not exit.
33732         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33733
33734         init.sh: fix typo
33735         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
33736
33737         init.sh: make it easier for a test script to write to the tty, ...
33738         when using automake's parallel-tests mode.
33739         * tests/init.sh (stderr_fileno_): Define overridable variable.
33740         (warn_): New function, to use it.
33741         (fail_, skip_, framework_failure_): Use warn_.
33742
33743 2010-04-04  Bruno Haible  <bruno@clisp.org>
33744
33745         btowc: Avoid warning.
33746         * lib/btowc.c: Include <stdlib.h>.
33747         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
33748
33749 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33750             Bruno Haible  <bruno@clisp.org>
33751
33752         wchar: Port to NetBSD 1.5.
33753         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
33754         * lib/wctype.in.h (WEOF): Likewise.
33755
33756 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33757             Bruno Haible  <bruno@clisp.org>
33758
33759         Port extended stdio to NetBSD 1.5.
33760         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
33761         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
33762         older.
33763
33764 2010-04-04  Bruno Haible  <bruno@clisp.org>
33765
33766         string: Remove unused substitution.
33767         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
33768         HAVE_DECL_STRERROR.
33769         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
33770
33771 2010-04-04  Bruno Haible  <bruno@clisp.org>
33772
33773         strtod: Avoid a possible C++ test error.
33774         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
33775         set REPLACE_STRTOD.
33776
33777 2010-04-04  Bruno Haible  <bruno@clisp.org>
33778
33779         strerror: Update documentation.
33780         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
33781
33782 2010-04-04  Bruno Haible  <bruno@clisp.org>
33783
33784         stdio: Fix some C++ test errors on Solaris 8 with GCC.
33785         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
33786         _GL_CXXALIAS_SYS_CAST.
33787
33788 2010-04-04  Bruno Haible  <bruno@clisp.org>
33789
33790         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33791         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
33792         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
33793         REPLACE_FREXPL to 1.
33794         * doc/posix-functions/frexpl.texi: Update documentation.
33795
33796 2010-04-04  Bruno Haible  <bruno@clisp.org>
33797
33798         math: Fix some C++ test errors on Solaris 8 and Cygwin.
33799         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
33800
33801 2010-04-04  Bruno Haible  <bruno@clisp.org>
33802
33803         Implement nanosleep for native Windows.
33804         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
33805
33806 2010-04-04  Bruno Haible  <bruno@clisp.org>
33807
33808         math: Fix some C++ test errors on Solaris 8.
33809         * lib/math.in.h (truncf, trunc): Use simpler idiom.
33810
33811 2010-04-04  Bruno Haible  <bruno@clisp.org>
33812
33813         math: Fix some C++ test errors on Cygwin.
33814         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
33815         truncl): Provide declaration if the system does not have it.
33816         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
33817         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
33818         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
33819         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
33820         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
33821         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
33822         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
33823         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
33824         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
33825         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
33826         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
33827         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
33828         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
33829         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
33830         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
33831         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
33832         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
33833         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33834         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33835         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
33836         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33837         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33838
33839 2010-04-04  Bruno Haible  <bruno@clisp.org>
33840
33841         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
33842         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33843         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
33844         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33845         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33846         * m4/isinf.m4 (gl_ISINF): Likewise.
33847         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33848
33849 2010-04-04  Bruno Haible  <bruno@clisp.org>
33850
33851         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
33852         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33853
33854 2010-04-04  Bruno Haible  <bruno@clisp.org>
33855
33856         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
33857         * modules/tmpfile (configure.ac): Update.
33858
33859         tmpfile: Fix C++ test error on mingw.
33860         * lib/stdio.in.h (tmpfile): New declaration.
33861         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
33862         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
33863         * modules/tmpfile (Depends-on): Add stdio.
33864         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
33865         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
33866         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
33867         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
33868         REPLACE_TMPFILE.
33869         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
33870
33871 2010-04-04  Bruno Haible  <bruno@clisp.org>
33872
33873         ioctl: Fix C++ test error on mingw.
33874         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
33875         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
33876         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
33877
33878 2010-04-03  Bruno Haible  <bruno@clisp.org>
33879
33880         wcwidth: Fix C++ test error on mingw.
33881         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
33882         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
33883         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
33884
33885 2010-04-03  Bruno Haible  <bruno@clisp.org>
33886
33887         nanosleep: Fix C++ test error on mingw.
33888         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
33889         * lib/time.in.h (nanosleep): Use modern idiom.
33890         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
33891         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
33892         REPLACE_NANOSLEEP to 1.
33893         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
33894         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
33895
33896 2010-04-03  Bruno Haible  <bruno@clisp.org>
33897
33898         strptime: Fix C++ test error on mingw.
33899         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
33900         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
33901         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
33902         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
33903         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
33904         not REPLACE_STRPTIME.
33905         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
33906         REPLACE_STRPTIME.
33907
33908 2010-04-03  Bruno Haible  <bruno@clisp.org>
33909
33910         timegm: Fix C++ test error on mingw.
33911         * lib/time.in.h (timegm): Use modern idiom.
33912         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
33913         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
33914         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
33915         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
33916
33917 2010-04-03  Bruno Haible  <bruno@clisp.org>
33918
33919         timegm: Assume declaration if function exists.
33920         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
33921         if it exists. Don't clobber ac_cv_func_timegm.
33922
33923 2010-04-03  Bruno Haible  <bruno@clisp.org>
33924
33925         time_r: Fix C++ test error on mingw.
33926         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
33927         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
33928         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
33929         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
33930         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
33931
33932 2010-04-03  Bruno Haible  <bruno@clisp.org>
33933
33934         time_r: Minor updates.
33935         * modules/time_r (Description): Mention the provided functions.
33936         * lib/time_r.c: Don't include <string.h>.
33937         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
33938         * doc/posix-functions/localtime_r.texi: Likewise.
33939
33940 2010-04-03  Bruno Haible  <bruno@clisp.org>
33941
33942         time: Fix regression introduced on 2010-03-08.
33943         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
33944         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
33945
33946 2010-04-03  Jim Meyering  <meyering@redhat.com>
33947
33948         maint.mk: don't silently disable project-specific syntax-check rules
33949         * top/maint.mk (_prohibit_regexp): Define, to help people realize
33950         that they need to convert their project-specific syntax-check rules
33951         to use the new _sc_search_regexp.
33952
33953 2010-04-03  Bruno Haible  <bruno@clisp.org>
33954
33955         fchdir: Fix regression introduced on 2010-03-08.
33956         * lib/unistd.in.h (fchdir): Fix declaration.
33957         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
33958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
33959         REPLACE_FCHDIR.
33960         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
33961         REPLACE_FCHDIR.
33962
33963 2010-04-03  Bruno Haible  <bruno@clisp.org>
33964
33965         getpagesize: Fix C++ test error on mingw.
33966         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
33967         system does not declare the function.
33968         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
33969         declared.
33970         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33971         HAVE_DECL_GETPAGESIZE.
33972         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
33973
33974 2010-04-03  Bruno Haible  <bruno@clisp.org>
33975
33976         stdio: Make C++ tests work on mingw.
33977         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
33978         does not declare the function.
33979
33980 2010-04-03  Bruno Haible  <bruno@clisp.org>
33981
33982         ftello: Fix C++ test error on mingw.
33983         * lib/stdio.in.h (ftello): Use modern idiom.
33984         * lib/ftello.c (ftello): Renamed from rpl_ftello.
33985         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
33986         is missing and that it needs to be replaced.
33987         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
33988         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
33989         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
33990
33991 2010-04-03  Bruno Haible  <bruno@clisp.org>
33992
33993         fseeko: Fix C++ test error on mingw.
33994         * lib/stdio.in.h (fseeko): Use modern idiom.
33995         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
33996         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
33997         is missing and that it needs to be replaced.
33998         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
33999         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
34000         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
34001
34002 2010-04-03  Bruno Haible  <bruno@clisp.org>
34003
34004         mkstemp: Fix C++ test error on mingw.
34005         * lib/stdlib.in.h (mkstemp): Use modern idiom.
34006         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
34007         function is missing and that it needs to be replaced.
34008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
34009         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
34010
34011 2010-04-03  Bruno Haible  <bruno@clisp.org>
34012
34013         stpncpy: Fix C++ test error on mingw.
34014         * lib/string.in.h (stpncpy): Use modern idiom.
34015         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
34016         function is missing and that it needs to be replaced.
34017         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34018         REPLACE_STPNCPY.
34019         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
34020
34021 2010-04-03  Bruno Haible  <bruno@clisp.org>
34022
34023         sys_stat: Fix C++ test error on mingw.
34024         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
34025         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
34026
34027 2010-04-03  Bruno Haible  <bruno@clisp.org>
34028
34029         pty: Update doc.
34030         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
34031
34032 2010-04-03  Bruno Haible  <bruno@clisp.org>
34033
34034         unistd: Fix C++ test error on mingw.
34035         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
34036
34037 2010-04-03  Bruno Haible  <bruno@clisp.org>
34038
34039         Update doc regarding mingw.
34040         * doc/glibc-functions/openpty.texi: Update regarding mingw.
34041         * doc/glibc-functions/login_tty.texi: Likewise.
34042         * doc/glibc-functions/forkpty.texi: Likewise.
34043
34044 2010-04-03  Bruno Haible  <bruno@clisp.org>
34045
34046         stdlib: Avoid compilation failure of c-strtold on mingw.
34047         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
34048
34049 2010-04-03  Bruno Haible  <bruno@clisp.org>
34050
34051         locale: Make C++ tests work on Cygwin and mingw.
34052         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
34053         cannot provide the function.
34054         Reported by Simon Josefsson.
34055
34056 2010-04-03  Bruno Haible  <bruno@clisp.org>
34057
34058         localename: Port to MacOS X 10.6.
34059         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
34060         memory layout of the locales in MacOS X 10.6 as well.
34061         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
34062
34063 2010-04-02  Bruno Haible  <bruno@clisp.org>
34064
34065         gnulib-tool: Ensure that long-running tests are executed last.
34066         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
34067         running tests after the one for the other tests.
34068
34069 2010-04-02  Bruno Haible  <bruno@clisp.org>
34070
34071         gnulib-tool: Ensure the tests in the main directory are executed first.
34072         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
34073         start with the current directory.
34074
34075 2010-04-02  Bruno Haible  <bruno@clisp.org>
34076
34077         Tests for module 'havelib', moved here from GNU gettext.
34078         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
34079         modifications.
34080         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
34081         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
34082         with modifications.
34083         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
34084         modifications.
34085         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
34086         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
34087         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
34088         with modifications.
34089         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
34090         with modifications.
34091         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
34092         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
34093         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
34094         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
34095         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
34096         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
34097         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
34098         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
34099         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
34100         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
34101         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
34102         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
34103         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
34104         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
34105         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
34106         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
34107         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
34108         with modifications.
34109         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
34110         with modifications.
34111         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
34112         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
34113         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
34114         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
34115         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
34116         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
34117         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
34118         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
34119         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
34120         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
34121         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
34122         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
34123         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
34124         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
34125         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
34126         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
34127         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
34128         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
34129         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
34130         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
34131         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
34132         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
34133         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
34134         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
34135         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
34136         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
34137         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
34138         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
34139         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
34140         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
34141         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
34142         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
34143         * tests/havelib/rpathx/rpathx.c: New file, from
34144         gettext/autoconf-lib-link.
34145         * tests/havelib/rpathx/Makefile.am: New file, from
34146         gettext/autoconf-lib-link.
34147         * tests/havelib/rpathx/configure.ac: New file, from
34148         gettext/autoconf-lib-link with modifications.
34149         * tests/havelib/rpathy/rpathy.c: New file, from
34150         gettext/autoconf-lib-link.
34151         * tests/havelib/rpathy/Makefile.am: New file, from
34152         gettext/autoconf-lib-link.
34153         * tests/havelib/rpathy/configure.ac: New file, from
34154         gettext/autoconf-lib-link with modifications.
34155         * tests/havelib/rpathz/rpathz.c: New file, from
34156         gettext/autoconf-lib-link.
34157         * tests/havelib/rpathz/Makefile.am: New file, from
34158         gettext/autoconf-lib-link.
34159         * tests/havelib/rpathz/configure.ac: New file, from
34160         gettext/autoconf-lib-link with modifications.
34161         * tests/havelib/rpathlx/usex.c: New file, from
34162         gettext/autoconf-lib-link.
34163         * tests/havelib/rpathlx/Makefile.am: New file, from
34164         gettext/autoconf-lib-link.
34165         * tests/havelib/rpathlx/configure.ac: New file, from
34166         gettext/autoconf-lib-link with modifications.
34167         * tests/havelib/rpathly/usey.c: New file, from
34168         gettext/autoconf-lib-link.
34169         * tests/havelib/rpathly/Makefile.am: New file, from
34170         gettext/autoconf-lib-link.
34171         * tests/havelib/rpathly/configure.ac: New file, from
34172         gettext/autoconf-lib-link with modifications.
34173         * tests/havelib/rpathlz/usez.c: New file, from
34174         gettext/autoconf-lib-link.
34175         * tests/havelib/rpathlz/Makefile.am: New file, from
34176         gettext/autoconf-lib-link.
34177         * tests/havelib/rpathlz/configure.ac: New file, from
34178         gettext/autoconf-lib-link with modifications.
34179         * tests/havelib/rpathlyx/usey.c: New file, from
34180         gettext/autoconf-lib-link.
34181         * tests/havelib/rpathlyx/Makefile.am: New file, from
34182         gettext/autoconf-lib-link.
34183         * tests/havelib/rpathlyx/configure.ac: New file, from
34184         gettext/autoconf-lib-link with modifications.
34185         * tests/havelib/rpathlzyx/usez.c: New file, from
34186         gettext/autoconf-lib-link.
34187         * tests/havelib/rpathlzyx/Makefile.am: New file, from
34188         gettext/autoconf-lib-link.
34189         * tests/havelib/rpathlzyx/configure.ac: New file, from
34190         gettext/autoconf-lib-link with modifications.
34191         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
34192         with modifications.
34193
34194 2010-04-02  Bruno Haible  <bruno@clisp.org>
34195
34196         gnulib-tool: Create distributed built sources also for the tests.
34197         * gnulib-tool (func_create_testdir): Also generate distributed built
34198         sources in the tests directory.
34199
34200 2010-04-02  Bruno Haible  <bruno@clisp.org>
34201
34202         gnulib-tool: Obey user's environment variables.
34203         * gnulib-tool (func_create_testdir): When creating built sources,
34204         respect the environment variables for autoconf, automake, etc. given by
34205         the user.
34206
34207 2010-04-02  Bruno Haible  <bruno@clisp.org>
34208
34209         gnulib-tool: Provide the value of --m4-base to modules.
34210         * gnulib-tool (func_import, func_create_testdir): Emit a definition
34211         of gl_m4_base.
34212
34213 2010-04-02  Eric Blake  <eblake@redhat.com>
34214
34215         maint.mk: fix some fallout
34216         * NEWS: Document the incompatible change, and its effect on cfg.mk.
34217         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
34218
34219 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34220
34221         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
34222         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
34223         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
34224         (sc_cast_of_x_alloc_return_value): Likewise.
34225         (sc_cast_of_alloca_return_value): Likewise.
34226         (sc_space_tab): Likewise.
34227         (sc_prohibit_atoi_atof): Likewise.
34228         (sc_prohibit_magic_number_exit): Likewise.
34229         (sc_error_exit_success): Likewise.
34230         (sc_file_system): Likewise.
34231         (sc_prohibit_have_config_h): Likewise.
34232         (sc_require_config_h): Likewise.
34233         (sc_prohibit_HAVE_MBRTOWC): Likewise.
34234         (sc_obsolete_symbols): Likewise.
34235         (sc_changelog): Likewise.
34236         (sc_program_name): Likewise.
34237         (sc_the_the): Likewise.
34238         (sc_trailing_blank): Likewise.
34239         (sc_two_space_separator_in_usage): Likewise.
34240         (sc_useless_cpp_parens): Likewise.
34241         (sc_GPL_version): Likewise.
34242         (sc_GFDL_version): Likewise.
34243         (sc_texinfo_acronym): Likewise.
34244         (sc_prohibit_cvs_keyword): Likewise.
34245         (sc_prohibit_stat_st_blocks): Likewise.
34246         (sc_prohibit_S_IS_definition): Likewise.
34247         (sc_redundant_const): Likewise.
34248         (sc_makefile_TAB_only_indentation): Likewise.
34249         (sc_m4_quote_check): Likewise.
34250         (sc_makefile_path_separator_check): Likewise.
34251         (sc_copyright_check): Likewise.
34252         (sc_Wundef_boolean): Likewise.
34253         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
34254
34255         maint.mk: match 0 or more whitespace-before-function-call '('
34256         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
34257         that have zero or two-and-more spaces between the function name
34258         and the open parenthesis.
34259         (sc_error_message_warn_fatal): Likewise.
34260         (sc_error_message_uppercase): Likewise.
34261         (sc_error_message_period): Likewise.
34262
34263 2010-03-31  Eric Blake  <eblake@redhat.com>
34264
34265         maint.mk: check for [ as well as test
34266         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
34267         Based on a libvirt report by Matthias Bolte.
34268
34269         gnumakefile: don't squelch _version output
34270         * top/GNUmakefile (_version): Create one-shot dependency rather
34271         than using $(shell) when version must be regenerated.
34272         (_autoreconf): Run verbosely, by default.
34273
34274         sys_time: avoid compiler warnings
34275         * lib/sys_time.in.h (includes): Ensure gcc pragma is
34276         unconditional, fixing regression from 2010-03-29.
34277         Reported by Simon Josefsson.
34278
34279 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34280
34281         maint.mk: s/_header_without_use/_sc_header_without_use/
34282         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
34283         (sc_prohibit_assert_without_use): Use the new name.
34284         (sc_prohibit_close_stream_without_use): Likewise.
34285         (sc_prohibit_getopt_without_use): Likewise.
34286         (sc_prohibit_quotearg_without_use): Likewise.
34287         (sc_prohibit_quote_without_use): Likewise.
34288         (sc_prohibit_long_options_without_use): Likewise.
34289         (sc_prohibit_inttostr_without_use): Likewise.
34290         (sc_prohibit_ignore_value_without_use): Likewise.
34291         (sc_prohibit_error_without_use): Likewise.
34292         (sc_prohibit_xalloc_without_use): Likewise.
34293         (sc_prohibit_hash_without_use): Likewise.
34294         (sc_prohibit_hash_pjw_without_use): Likewise.
34295         (sc_prohibit_safe_read_without_use): Likewise.
34296         (sc_prohibit_argmatch_without_use): Likewise.
34297         (sc_prohibit_canonicalize_without_use): Likewise.
34298         (sc_prohibit_root_dev_ino_without_use): Likewise.
34299         (sc_prohibit_openat_without_use): Likewise.
34300         (sc_prohibit_c_ctype_without_use): Likewise.
34301         (sc_prohibit_signal_without_use): Likewise.
34302         (sc_prohibit_intprops_without_use): Likewise.
34303
34304 2010-03-30  Eric Blake  <eblake@redhat.com>
34305
34306         maint: improve module indicators
34307         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
34308         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
34309         columns, and avoid extra macro expansion.
34310
34311         fdopendir: work around FreeBSD bug
34312         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34313         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
34314         * modules/dirent (Makefile.am): Substitute it.
34315         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
34316         declaration.
34317         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
34318         fix.
34319         Reported by Christian Weisgerber <naddy@mips.inka.de>.
34320
34321 2010-03-29  Bruno Haible  <bruno@clisp.org>
34322
34323         Emit #pragma system_header after the inclusion guard, not before.
34324         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
34325         guard that spans the entire file, not before. This enables an
34326         optimization in GCC's preprocessor.
34327         * lib/ctype.in.h: Likewise.
34328         * lib/dirent.in.h: Likewise.
34329         * lib/errno.in.h: Likewise.
34330         * lib/float.in.h: Likewise.
34331         * lib/getopt.in.h: Likewise.
34332         * lib/iconv.in.h: Likewise.
34333         * lib/langinfo.in.h: Likewise.
34334         * lib/locale.in.h: Likewise.
34335         * lib/math.in.h: Likewise.
34336         * lib/netdb.in.h: Likewise.
34337         * lib/netinet_in.in.h: Likewise.
34338         * lib/pty.in.h: Likewise.
34339         * lib/sched.in.h: Likewise.
34340         * lib/se-selinux.in.h: Likewise.
34341         * lib/search.in.h: Likewise.
34342         * lib/spawn.in.h: Likewise.
34343         * lib/stdarg.in.h: Likewise.
34344         * lib/stdint.in.h: Likewise.
34345         * lib/string.in.h: Likewise.
34346         * lib/strings.in.h: Likewise.
34347         * lib/sys_file.in.h: Likewise.
34348         * lib/sys_ioctl.in.h: Likewise.
34349         * lib/sys_time.in.h: Likewise.
34350         * lib/sys_times.in.h: Likewise.
34351         * lib/sys_utsname.in.h: Likewise.
34352         * lib/sys_wait.in.h: Likewise.
34353         * lib/sysexits.in.h: Likewise.
34354         * lib/wctype.in.h: Likewise.
34355
34356 2010-03-28  James Youngman  <jay@gnu.org>
34357
34358         save-cwd: don't leak a file descriptor when the caller execs.
34359         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
34360         saved file descriptor.
34361         * modules/save-cwd (Depends-on): Depend on cloexec.
34362
34363 2010-03-29  Bruno Haible  <bruno@clisp.org>
34364
34365         Remove vestiges of fts-lgpl module.
34366         * lib/fts_.h: Assume GNULIB_FTS is 1.
34367         * lib/fts.c: Likewise.
34368         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34369
34370 2010-03-28  Bruno Haible  <bruno@clisp.org>
34371
34372         Fix definition of tests witness macro.
34373         * gnulib-tool (func_import): Fix definition of witness macro.
34374
34375 2010-03-28  Bruno Haible  <bruno@clisp.org>
34376
34377         Fix ioctl's protoype on glibc systems.
34378         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
34379         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
34380         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
34381         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
34382         signature. If not, arrange to replace the ioctl function.
34383         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34384         REPLACE_IOCTL.
34385         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
34386         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
34387         Reported by Ludovic Courtès <ludo@gnu.org>.
34388
34389 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
34390
34391         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
34392         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
34393         made it so grep -r --include=GLOB* ... did not work.
34394
34395 2010-03-26  Jim Meyering  <meyering@redhat.com>
34396             Eric Blake  <eblake@redhat.com>
34397
34398         maint.mk: prohibit use of test's -o and -a operators
34399         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
34400
34401 2010-03-28  Bruno Haible  <bruno@clisp.org>
34402
34403         Remove unused GNULIB_XYZ macro definitions.
34404         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
34405         invocation.
34406
34407 2010-03-28  Bruno Haible  <bruno@clisp.org>
34408
34409         Mark privileged tests modules.
34410         * modules/idpriv-drop-tests (Status): New section.
34411         * modules/idpriv-droptemp-tests (Status): New section.
34412
34413 2010-03-28  Bruno Haible  <bruno@clisp.org>
34414
34415         Split C++ tests into separate tests modules.
34416         * modules/dirent-c++-tests: New file, extracted from
34417         modules/dirent-tests.
34418         * modules/dirent-tests: Depend on it.
34419         * modules/fcntl-h-c++-tests: New file, extracted from
34420         modules/fcntl-h-tests.
34421         * modules/fcntl-h-tests: Depend on it.
34422         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
34423         * modules/glob-tests: Depend on it.
34424         * modules/iconv-h-c++-tests: New file, extracted from
34425         modules/iconv-h-tests.
34426         * modules/iconv-h-tests: Depend on it.
34427         * modules/langinfo-c++-tests: New file, extracted from
34428         modules/langinfo-tests.
34429         * modules/langinfo-tests: Depend on it.
34430         * modules/locale-c++-tests: New file, extracted from
34431         modules/locale-tests.
34432         * modules/locale-tests: Depend on it.
34433         * modules/math-c++-tests: New file, extracted from modules/math-tests.
34434         * modules/math-tests: Depend on it.
34435         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
34436         * modules/pty-tests: Depend on it.
34437         * modules/search-c++-tests: New file, extracted from
34438         modules/search-tests.
34439         * modules/search-tests: Depend on it.
34440         * modules/signal-c++-tests: New file, extracted from
34441         modules/signal-tests.
34442         * modules/signal-tests: Depend on it.
34443         * modules/spawn-c++-tests: New file, extracted from
34444         modules/spawn-tests.
34445         * modules/spawn-tests: Depend on it.
34446         * modules/stdio-c++-tests: New file, extracted from
34447         modules/stdio-tests.
34448         * modules/stdio-tests: Depend on it.
34449         * modules/stdlib-c++-tests: New file, extracted from
34450         modules/stdlib-tests.
34451         * modules/stdlib-tests: Depend on it.
34452         * modules/string-c++-tests: New file, extracted from
34453         modules/string-tests.
34454         * modules/string-tests: Depend on it.
34455         * modules/sys_ioctl-c++-tests: New file, extracted from
34456         modules/sys_ioctl-tests.
34457         * modules/sys_ioctl-tests: Depend on it.
34458         * modules/sys_select-c++-tests: New file, extracted from
34459         modules/sys_select-tests.
34460         * modules/sys_select-tests: Depend on it.
34461         * modules/sys_socket-c++-tests: New file, extracted from
34462         modules/sys_socket-tests.
34463         * modules/sys_socket-tests: Depend on it.
34464         * modules/sys_stat-c++-tests: New file, extracted from
34465         modules/sys_stat-tests.
34466         * modules/sys_stat-tests: Depend on it.
34467         * modules/sys_time-c++-tests: New file, extracted from
34468         modules/sys_time-tests.
34469         * modules/sys_time-tests: Depend on it.
34470         * modules/time-c++-tests: New file, extracted from modules/time-tests.
34471         * modules/time-tests: Depend on it.
34472         * modules/unistd-c++-tests: New file, extracted from
34473         modules/unistd-tests.
34474         * modules/unistd-tests: Depend on it.
34475         * modules/wchar-c++-tests: New file, extracted from
34476         modules/wchar-tests.
34477         * modules/wchar-tests: Depend on it.
34478         * modules/wctype-c++-tests: New file, extracted from
34479         modules/wctype-tests.
34480         * modules/wctype-tests: Depend on it.
34481         Reported by Simon Josefsson.
34482
34483 2010-03-28  Bruno Haible  <bruno@clisp.org>
34484
34485         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
34486         * gnulib-tool (func_exists_module): New function, extracted from
34487         func_verify_module.
34488         (func_verify_module): Use it.
34489         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
34490         'foo' only if 'foo' exists.
34491         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
34492         module.
34493
34494 2010-03-28  Bruno Haible  <bruno@clisp.org>
34495
34496         gnulib-tool: Add support for special categories of tests.
34497         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
34498         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
34499         (func_usage): Document them.
34500         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
34501         inc_unportable_tests, inc_all_tests): New variables.
34502         (func_acceptable): Consider these variables.
34503         (func_modules_transitive_closure): Make it work when the 'Status' field
34504         consists of multiple words.
34505         (func_import): Store and restore the values of inc_cxx_tests,
34506         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
34507         inc_all_tests in gnulib-comp.m4.
34508         (func_create_testdir): Set inc_all_tests to true.
34509         * doc/gnulib.texi (Extra tests modules): New section.
34510         Suggested by Jim Meyering.
34511
34512 2010-03-28  Bruno Haible  <bruno@clisp.org>
34513
34514         ansi-c++-opt: Allow turning off the C++ build by default.
34515         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
34516         gl_CXX_CHOICE_DEFAULT_NO is defined.
34517         Requested by Eric Blake.
34518
34519 2010-03-28  Bruno Haible  <bruno@clisp.org>
34520
34521         unistd: Avoid #define replacements in C++ mode.
34522         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
34523         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
34524         setsockopt, shutdown, select): In C++, attach a warning to the function
34525         if possible, rather than #defining the symbol to a dysfunctional alias.
34526         Reported by John W. Eaton <jwe@gnu.org>.
34527
34528 2010-03-28  Bruno Haible  <bruno@clisp.org>
34529
34530         Fix link errors on mingw.
34531         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
34532         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
34533         $(LIBSOCKET).
34534         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
34535         $(LIBSOCKET).
34536
34537 2010-03-28  Bruno Haible  <bruno@clisp.org>
34538             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34539
34540         lib-ignore: Determine different options for different compilers.
34541         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
34542         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
34543         Add comments.
34544         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
34545         * NEWS: Mention the change.
34546
34547 2010-03-27  Bruno Haible  <bruno@clisp.org>
34548
34549         Remove unused GNULIB_XYZ macro definitions.
34550         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34551         * modules/fseek (configure.ac): Likewise.
34552         * modules/ioctl (configure.ac): Likewise.
34553         * modules/open (configure.ac): Likewise.
34554         * modules/stdlib-safer (configure.ac): Likewise.
34555
34556 2010-03-27  Bruno Haible  <bruno@clisp.org>
34557
34558         Add a remark about certain modules.
34559         * modules/malloc (Comment): New section.
34560         * modules/realloc (Comment): Likewise.
34561         * modules/sigpipe (Comment): Likewise.
34562
34563 2010-03-27  Bruno Haible  <bruno@clisp.org>
34564
34565         Resolve conflict between the two kinds of module indicators.
34566         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
34567         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
34568         * modules/canonicalize (configure.ac): Invoke
34569         gl_MODULE_INDICATOR_FOR_TESTS.
34570         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
34571         GNULIB_XYZ.
34572         * tests/test-dirent-c++.cc: Likewise.
34573         * tests/test-dirent-safer.c: Likewise.
34574         * tests/test-dup2.c: Likewise.
34575         * tests/test-fchdir.c: Likewise.
34576         * tests/test-fcntl-h-c++.cc: Likewise.
34577         * tests/test-getopt.c: Likewise.
34578         * tests/test-getopt.h: Likewise.
34579         * tests/test-langinfo-c++.cc: Likewise.
34580         * tests/test-locale-c++.cc: Likewise.
34581         * tests/test-math-c++.cc: Likewise.
34582         * tests/test-pty-c++.cc: Likewise.
34583         * tests/test-search-c++.cc: Likewise.
34584         * tests/test-signal-c++.cc: Likewise.
34585         * tests/test-spawn-c++.cc: Likewise.
34586         * tests/test-stdio-c++.cc: Likewise.
34587         * tests/test-stdlib-c++.cc: Likewise.
34588         * tests/test-string-c++.cc: Likewise.
34589         * tests/test-sys_ioctl-c++.cc: Likewise.
34590         * tests/test-sys_select-c++.cc: Likewise.
34591         * tests/test-sys_socket-c++.cc: Likewise.
34592         * tests/test-sys_stat-c++.cc: Likewise.
34593         * tests/test-sys_time-c++.cc: Likewise.
34594         * tests/test-time-c++.cc: Likewise.
34595         * tests/test-unistd-c++.cc: Likewise.
34596         * tests/test-wchar-c++.cc: Likewise.
34597         * tests/uninorm/test-u8-nfc.c: Likewise.
34598         * tests/uninorm/test-u8-nfd.c: Likewise.
34599         * tests/uninorm/test-u8-nfkc.c: Likewise.
34600         * tests/uninorm/test-u8-nfkd.c: Likewise.
34601         * tests/uninorm/test-u16-nfc.c: Likewise.
34602         * tests/uninorm/test-u16-nfd.c: Likewise.
34603         * tests/uninorm/test-u16-nfkc.c: Likewise.
34604         * tests/uninorm/test-u16-nfkd.c: Likewise.
34605         * tests/uninorm/test-u32-nfc.c: Likewise.
34606         * tests/uninorm/test-u32-nfc-big.c: Likewise.
34607         * tests/uninorm/test-u32-nfd.c: Likewise.
34608         * tests/uninorm/test-u32-nfd-big.c: Likewise.
34609         * tests/uninorm/test-u32-nfkc.c: Likewise.
34610         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
34611         * tests/uninorm/test-u32-nfkd.c: Likewise.
34612         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
34613         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34614
34615 2010-03-27  Bruno Haible  <bruno@clisp.org>
34616
34617         Distinguish two kinds of module indicators.
34618         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
34619         gl_MODULE_INDICATOR.
34620         (gl_MODULE_INDICATOR): New macro.
34621         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34622         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
34623         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34624         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34625         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34626         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34627         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34628         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34629         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34630         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34631         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34632         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34633         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34634         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34635         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34636         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34637         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34638         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34639         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34640         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34641         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34642         * modules/cloexec (configure.ac): Likewise.
34643         * modules/getopt-gnu (configure.ac): Likewise.
34644         * modules/uninorm/u8-normalize (configure.ac): Likewise.
34645         * modules/uninorm/u16-normalize (configure.ac): Likewise.
34646         * modules/uninorm/u32-normalize (configure.ac): Likewise.
34647         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
34648
34649 2010-03-27  Bruno Haible  <bruno@clisp.org>
34650
34651         New module description field 'Comment'.
34652         * gnulib-tool: New option --extract-comment.
34653         (func_usage): Document it.
34654         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
34655         (func_get_comment): New function.
34656         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
34657
34658 2010-03-27  Bruno Haible  <bruno@clisp.org>
34659
34660         Addendum to 2010-02-07 commit.
34661         * gnulib-tool (func_usage): Document --extract-applicability option.
34662
34663 2010-03-27  Bruno Haible  <bruno@clisp.org>
34664
34665         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
34666         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
34667         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
34668         rather than link errors.
34669
34670 2010-03-27  Bruno Haible  <bruno@clisp.org>
34671
34672         Avoid side effects from tests-related modules on the compilation of lib.
34673         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
34674         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
34675         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
34676         parameter. Emit into AM_CPPFLAGS a definition of the designated C
34677         macro.
34678         (func_import): Define a witness macro. Assign it a value that depends
34679         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
34680         tests-related modules.
34681         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
34682         Reported by Jim Meyering.
34683
34684 2010-03-27  Bruno Haible  <bruno@clisp.org>
34685
34686         Factorize common .m4 code.
34687         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
34688         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
34689         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
34690         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
34691         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34692         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
34693         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
34694         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34695         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34696         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34697         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
34698         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34699         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34700         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34701         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34702         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
34703         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34704         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34705         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34706         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
34707         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
34708         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34709         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34710         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34711         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34712         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34713         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
34714         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
34715         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
34716         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34717         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34718         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34719
34720 2010-03-27  Bruno Haible  <bruno@clisp.org>
34721
34722         Fix a compilation error on Cygwin with g++ >= 4.3.
34723         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
34724         if it is undefined or if we alias it to chmod.
34725         (lstat): Don't warn about the use of this function if it is undefined
34726         or if we alias it to stat.
34727         Reported by Simon Josefsson.
34728
34729 2010-03-27  Bruno Haible  <bruno@clisp.org>
34730
34731         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
34732         * modules/getlogin (configure.ac): Update.
34733
34734         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
34735         * modules/getlogin_r (configure.ac): Update.
34736
34737         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
34738         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
34739         * modules/inet_ntop (configure.ac): Update.
34740
34741         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
34742         * modules/inet_pton (configure.ac): Update.
34743
34744         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
34745         * modules/mbslen (configure.ac): Update.
34746
34747         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
34748         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
34749         * modules/forkpty (configure.ac): Update.
34750         * modules/openpty (configure.ac): Update.
34751
34752 2010-03-26  Simon Josefsson  <simon@josefsson.org>
34753
34754         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
34755         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
34756
34757 2010-03-25  Eric Blake  <eblake@redhat.com>
34758
34759         maint: use pragma consistently across replacement headers
34760         * lib/ctype.in.h (system_header): Hoist for consistent placement.
34761         * lib/dirent.in.h (system_header): Likewise.
34762         * lib/errno.in.h (system_header): Likewise.
34763         * lib/float.in.h (system_header): Likewise.
34764         * lib/getopt.in.h (system_header): Likewise.
34765         * lib/iconv.in.h (system_header): Likewise.
34766         * lib/inttypes.in.h (system_header): Likewise.
34767         * lib/langinfo.in.h (system_header): Likewise.
34768         * lib/locale.in.h (system_header): Likewise.
34769         * lib/math.in.h (system_header): Likewise.
34770         * lib/netdb.in.h (system_header): Likewise.
34771         * lib/netinet_in.in.h (system_header): Likewise.
34772         * lib/pty.in.h (system_header): Likewise.
34773         * lib/sched.in.h (system_header): Likewise.
34774         * lib/se-selinux.in.h (system_header): Likewise.
34775         * lib/search.in.h (system_header): Likewise.
34776         * lib/spawn.in.h (system_header): Likewise.
34777         * lib/stdarg.in.h (system_header): Likewise.
34778         * lib/stdint.in.h (system_header): Likewise.
34779         * lib/string.in.h (system_header): Likewise.
34780         * lib/strings.in.h (system_header): Likewise.
34781         * lib/sys_file.in.h (system_header): Likewise.
34782         * lib/sys_ioctl.in.h (system_header): Likewise.
34783         * lib/sys_socket.in.h (system_header): Likewise.
34784         * lib/sys_times.in.h (system_header): Likewise.
34785         * lib/sys_utsname.in.h (system_header): Likewise.
34786         * lib/sys_wait.in.h (system_header): Likewise.
34787         * lib/sysexits.in.h (system_header): Likewise.
34788         * lib/unistd.in.h (system_header): Likewise.
34789         * lib/wctype.in.h (system_header): Likewise.
34790
34791         arpa/inet: fix mingw compilation warning
34792         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
34793         Reported by Matthew Bolte.
34794
34795 2010-03-25  Bruno Haible  <bruno@clisp.org>
34796
34797         Avoid collision between gnulib wrapper and libintl wrapper.
34798         * lib/printf.c (printf): Don't define if a printf wrapper is already
34799         defined in intl/printf.c.
34800         Reported by Michel Boaventura <michel@michelboaventura.com>.
34801
34802 2010-03-25  Bruno Haible  <bruno@clisp.org>
34803
34804         Use ANSI C.
34805         * lib/readutmp.h (getutent): Provide ANSI C prototype.
34806
34807 2010-03-25  Bruno Haible  <bruno@clisp.org>
34808
34809         Minor formatting changes.
34810         * lib/acosl.c: Insert space before function argument list.
34811         * lib/argz.c: Likewise.
34812         * lib/asinl.c: Likewise.
34813         * lib/expl.c: Likewise.
34814         * lib/gen-uni-tables.c: Likewise.
34815         * lib/gettext.h: Likewise.
34816         * lib/glthread/lock.h: Likewise.
34817         * lib/tanl.c: Likewise.
34818         * lib/uniname/uniname.c: Likewise.
34819         * tests/test-idpriv-drop.c: Likewise.
34820         * tests/test-idpriv-droptemp.c: Likewise.
34821         * tests/test-lock.c: Likewise.
34822         * tests/test-tls.c: Likewise.
34823         * lib/argp-help.c: Insert space before function-like macro argument
34824         list.
34825         * lib/memcmp.c: Likewise.
34826         * tests/test-base64.c: Likewise.
34827         * lib/localename.c: Insert space before sizeof's argument list.
34828         * lib/safe-alloc.h: Likewise.
34829         * lib/file-set.h: Insert space before macro argument list.
34830         * tests/test-argp.c: Likewise.
34831         * lib/argp-namefrob.h: Insert space before function parameter list.
34832         * lib/getaddrinfo.c: Likewise.
34833         * lib/netdb.in.h: Likewise.
34834         * lib/parse-duration.h: Likewise.
34835         * lib/parse-duration.c: Likewise.
34836         * lib/poll.c: Likewise.
34837         * lib/select.c: Likewise.
34838         * lib/trim.h: Likewise.
34839         * tests/test-usleep.c: Likewise.
34840         * lib/ldexpl.c: Insert space before function parameter list and before
34841         function argument list.
34842         * lib/logl.c: Likewise.
34843         * lib/sqrtl.c: Likewise.
34844         * lib/trim.c: Likewise.
34845         * lib/cosl.c: Use GNU style indentation. Insert space before function
34846         argument list.
34847         * lib/sinl.c: Likewise.
34848         * lib/tsearch.c: Insert space after 'for'.
34849         Reported by Jim Meyering.
34850
34851 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
34852
34853         * maint.mk (sc_Wundef_boolean): Check for the presence of the
34854         config header before grepping, as it's not present before
34855         autoreconf/configure are run.  Reported by Simon Josefsson.
34856
34857 2010-03-23  Bruno Haible  <bruno@clisp.org>
34858
34859         pt_chown: Make it work with automake < 1.11.
34860         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
34861         Reported by Simon Josefsson.
34862
34863 2010-03-23  Bruno Haible  <bruno@clisp.org>
34864
34865         pt_chown: Don't depend on GPLed modules.
34866         * lib/pt_chown.c: Don't include idpriv.h.
34867         (main): Don't drop privileges.
34868         * modules/pt_chown (Depends-on): Remove idpriv-drop.
34869         Reported by Simon Josefsson.
34870
34871 2010-03-24  Simon Josefsson  <simon@josefsson.org>
34872
34873         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
34874         suggestions from karl@freefriends.org (Karl Berry).
34875
34876 2010-03-22  Eric Blake  <eblake@redhat.com>
34877
34878         gethostname: further tweaks
34879         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
34880         are overriding gethostname.
34881         Suggested by Bruno Haible.
34882
34883 2010-03-21  Bruno Haible  <bruno@clisp.org>
34884
34885         Fix comments.
34886         * lib/forkpty.c (rpl_forkpty): Fix comment.
34887         * lib/openpty.c (rpl_openpty): Likewise.
34888         Reported by Eric Blake.
34889
34890 2010-03-22  Eric Blake  <eblake@redhat.com>
34891
34892         gethostname: fix build on mingw
34893         * lib/unistd.in.h (includes): Work around fact that mingw
34894         <winsock2.h> re-includes <unistd.h>, by avoiding any
34895         redeclarations if we are being included by <winsock2.h>.
34896         Reported by Matthias Bolte.
34897
34898 2010-03-21  Bruno Haible  <bruno@clisp.org>
34899
34900         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34901         * lib/forkpty.c (forkpty): New replacement function, from glibc with
34902         modifications.
34903         * lib/pty.in.h (forkpty): Update declaration. Add comments.
34904         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
34905         provide the replacement.
34906         * modules/forkpty (Depends-on): Add openpty, login_tty.
34907         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
34908         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
34909         * doc/glibc-functions/forkpty.texi: More supported platforms.
34910         * config/srclist.txt: Add forkpty.c (commented).
34911
34912 2010-03-21  Bruno Haible  <bruno@clisp.org>
34913
34914         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
34915         (Makefile.am): Verify that PTY_LIB is defined.
34916
34917         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
34918
34919 2010-03-21  Bruno Haible  <bruno@clisp.org>
34920
34921         Tests for module 'login_tty'.
34922         * modules/login_tty-tests: New file.
34923         * tests/test-login_tty.c: New file.
34924
34925         New module 'login_tty'.
34926         * lib/login_tty.c: New file.
34927         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
34928         * modules/login_tty: New file.
34929         * doc/glibc-functions/login_tty.texi: Mention the new module.
34930
34931 2010-03-21  Bruno Haible  <bruno@clisp.org>
34932
34933         login_tty: Documentation.
34934         * doc/glibc-functions/login_tty.texi: New file.
34935         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
34936
34937 2010-03-21  Bruno Haible  <bruno@clisp.org>
34938
34939         pty: Consistent macro naming.
34940         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
34941         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
34942         * modules/pty (configure.ac): Update.
34943
34944 2010-03-21  Bruno Haible  <bruno@clisp.org>
34945
34946         Tests for openpty: Make stricter.
34947         * tests/test-openpty.c (main): Add test of canonical processing and
34948         erase.
34949         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
34950
34951         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34952         * lib/openpty.c (openpty): New replacement function.
34953         * lib/pty.in.h: Include <termios.h>.
34954         (openpty): Update declaration. Add comments.
34955         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
34956         is not declared, arrange to provide the replacement. Check for _getpty
34957         and posix_openpt.
34958         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
34959         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
34960         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
34961         * modules/pty-tests (test_pty_c___LDADD): New variable.
34962         * doc/glibc-functions/openpty.texi: More supported platforms.
34963
34964 2010-03-21  Bruno Haible  <bruno@clisp.org>
34965
34966         setenv: Tweaks.
34967         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
34968         the test program.
34969         * doc/posix-functions/setenv.texi: Update platforms list.
34970
34971 2010-03-21  Bruno Haible  <bruno@clisp.org>
34972
34973         New module 'unlockpt'.
34974         * lib/unlockpt.c: New file, from glibc with modifications.
34975         * m4/unlockpt.m4: New file.
34976         * modules/unlockpt: New file.
34977         * lib/stdlib.in.h (unlockpt): New declaration.
34978         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
34979         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
34980         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
34981         HAVE_UNLOCKPT.
34982         * doc/posix-functions/unlockpt.texi: Mention the new module.
34983         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
34984         * config/srclist.txt: Add unlockpt.c (commented).
34985
34986 2010-03-21  Jim Meyering  <meyering@redhat.com>
34987
34988         maint.mk: prohibit inclusion of "intprops.h" without use
34989         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
34990
34991 2010-03-21  Bruno Haible  <bruno@clisp.org>
34992
34993         New module 'grantpt'.
34994         * lib/grantpt.c: New file, from glibc with modifications.
34995         * m4/grantpt.m4: New file.
34996         * modules/grantpt: New file.
34997         * lib/stdlib.in.h (grantpt): New declaration.
34998         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
34999         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
35000         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
35001         HAVE_GRANTPT.
35002         * doc/posix-functions/grantpt.texi: Mention the new module.
35003         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
35004         * config/srclist.txt: Add grantpt.c (commented).
35005
35006 2010-03-21  Bruno Haible  <bruno@clisp.org>
35007
35008         New module 'pt_chown'.
35009         * lib/pt_chown.c: New file, from glibc with modifications.
35010         * lib/pty-private.h: New file, from glibc with modifications.
35011         * modules/pt_chown: New file.
35012         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
35013
35014 2010-03-21  Bruno Haible  <bruno@clisp.org>
35015
35016         Tests for module 'ptsname'.
35017         * modules/ptsname-tests: New file.
35018         * tests/test-ptsname.c: New file.
35019
35020         New module 'ptsname'.
35021         * lib/ptsname.c: New file, from glibc with modifications.
35022         * m4/ptsname.m4: New file.
35023         * modules/ptsname: New file.
35024         * lib/stdlib.in.h (ptsname): New declaration.
35025         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
35026         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
35027         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
35028         HAVE_PTSNAME.
35029         * doc/posix-functions/ptsname.texi: Mention the new module.
35030         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
35031         * config/srclist.txt: Add ptsname.c (commented).
35032
35033 2010-03-21  Bruno Haible  <bruno@clisp.org>
35034
35035         Tests for module 'ttyname_r'.
35036         * modules/ttyname_r-tests: New file.
35037         * tests/test-ttyname_r.c: New file.
35038
35039         New module 'ttyname_r'.
35040         * lib/ttyname_r.c: New file.
35041         * m4/ttyname_r.m4: New file.
35042         * modules/ttyname_r: New file.
35043         * lib/unistd.in.h (ttyname_r): New declaration.
35044         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
35045         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
35046         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
35047         HAVE_TTYNAME_R.
35048         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
35049         * doc/posix-functions/ttyname_r.texi: Mention the new module.
35050
35051 2010-03-20  Bruno Haible  <bruno@clisp.org>
35052
35053         signal: Undefine macro definitions in C++ mode.
35054         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
35055         sigfillset): Undefine macro definitions from the system header in C++
35056         mode.
35057         Reported by John W. Eaton <jwe@gnu.org>.
35058
35059 2010-03-20  Bruno Haible  <bruno@clisp.org>
35060
35061         Ensure no #include statements inside extern "C" { ... }.
35062         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
35063         contain #include statements.
35064         * lib/time.in.h: Likewise.
35065
35066 2010-03-20  Bruno Haible  <bruno@clisp.org>
35067
35068         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
35069         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
35070         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
35071         Reported by John W. Eaton <jwe@gnu.org>.
35072
35073 2010-03-20  Bruno Haible  <bruno@clisp.org>
35074
35075         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
35076         Reported by Jim Meyering.
35077
35078 2010-03-20  Bruno Haible  <bruno@clisp.org>
35079
35080         pipe: Set errno upon failure.
35081         * lib/pipe.h: Specify that when -1 is returned, errno is set.
35082         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
35083         errno value in error message.
35084
35085 2010-03-20  Bruno Haible  <bruno@clisp.org>
35086             Jim Meyering  <meyering@redhat.com>
35087
35088         lchown: Avoid "unused variable" warning.
35089         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
35090
35091 2010-03-20  Bruno Haible  <bruno@clisp.org>
35092
35093         Work around unlink() bug on MacOS X 10.5.6.
35094         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
35095         attempting to unlink a parent directory.
35096         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
35097         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
35098         activate for the replacement function.
35099         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
35100
35101 2010-03-20  Bruno Haible  <bruno@clisp.org>
35102
35103         Fix link errors on Solaris 8.
35104         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
35105         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
35106
35107 2010-03-19  Jim Meyering  <meyering@redhat.com>
35108
35109         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
35110         The _LIBC implementation of build_range_exp correctly honors the
35111         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
35112         However, the non-_LIBC implementation would ignore that syntax-bit
35113         flag and return REG_ERANGE unconditionally.
35114         This change makes it honor that flag.
35115         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
35116         Make two pointer parameters "const".
35117         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
35118         (parse_bracket_exp): Update caller.
35119
35120         regex.m4: correct the reversed range endpoint ([b-a]) test
35121         * m4/regex.m4: When requiring that [b-a] evoke failure,
35122         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
35123         test pass once again for x86-based systems.
35124
35125 2010-03-19  Bruno Haible  <bruno@clisp.org>
35126
35127         scandir: Fix link error on Solaris 8.
35128         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
35129         macros.
35130
35131 2010-03-19  Bruno Haible  <bruno@clisp.org>
35132
35133         getusershell: Fix documentation.
35134         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
35135         module.
35136         * doc/glibc-functions/setusershell.texi: Likewise.
35137
35138         getusershell: Provide declaration, missing on Solaris 9.
35139         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
35140         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
35141         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
35142         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
35143         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35144         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
35145         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
35146         HAVE_GETUSERSHELL.
35147         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
35148
35149 2010-03-19  Bruno Haible  <bruno@clisp.org>
35150
35151         wctype: Provide iswblank function.
35152         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
35153         exists and is fine.
35154         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
35155         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
35156         * tests/test-wctype.c (main): Re-enable the iswblank tests.
35157         * doc/posix-functions/iswblank.texi: Update.
35158
35159 2010-03-19  Bruno Haible  <bruno@clisp.org>
35160
35161         Tests of module 'pty' in C++ mode.
35162         * modules/pty-tests: New file.
35163         * tests/test-pty-c++.cc: New file.
35164         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35165
35166 2010-03-19  Eric Blake  <eblake@redhat.com>
35167
35168         logb: fix documentation
35169         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
35170         1.5 declaration bug.
35171
35172         forkpty, openpty: prefer glibc's const-safe prototype
35173         * lib/forkpty.c (rpl_forkpty): New file.
35174         * lib/openpty.c (rpl_openpty): Likewise.
35175         * modules/forkpty (Files): Distribute it.
35176         * modules/openpty (Files): Likewise.
35177         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
35178         check...
35179         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
35180         replacement for for non-const BSD signature.
35181         * modules/pty (Makefile.am): Substitute witnesses.
35182         * lib/pty.in.h (forkpty, openpty): Declare replacements.
35183         * tests/test-forkpty.c: Update signature check.
35184         * tests/test-openpty.c: Likewise.
35185         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
35186         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35187
35188         forkpty, openpty: split functions into new modules
35189         * modules/pty (Makefile.am): Substitute new witnesses.
35190         (Libraries): Move library detection...
35191         * modules/forkpty: ...into new module.
35192         * modules/openpty: Another new module.
35193         * modules/pty-tests: Rename and split...
35194         * modules/forkpty-tests: ...to this...
35195         * modules/openpty-tests: ...and this.
35196         * tests/test-pty.c: Rename and split...
35197         * tests/test-forkpty.c: ...to this...
35198         * tests/test-openpty.c: ...and this.
35199         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
35200         (gl_PTY): Split library searching...
35201         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
35202         (gl_FORKPTY, gl_OPENPTY): New macros.
35203         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
35204         * NEWS: Mention the split.
35205         * MODULES.html.sh (Misc): Document the modules.
35206         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
35207         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35208
35209         pty: improve replacement header
35210         * lib/pty.in.h: New file.
35211         * modules/pty (Files): Ship it.
35212         (Makefile.am): Always build replacement.
35213         * m4/pty.m4: Rename...
35214         * m4/pty_h.m4: ...to this.
35215         (gl_PTY): Modernize setting of witness macros; update check of
35216         forkpty to take proper advantage of cache.
35217         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
35218
35219         getopt: avoid compiler warning
35220         * lib/getopt.c (attribute_hidden): Remove unused macro.
35221
35222 2010-03-18  Bruno Haible  <bruno@clisp.org>
35223
35224         Fix link errors on Solaris 8.
35225         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
35226         * modules/search-tests (test_search_c___LDADD): Likewise.
35227         * modules/signal-tests (test_signal_c___LDADD): Likewise.
35228         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
35229         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
35230         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
35231         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
35232         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
35233         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
35234
35235 2010-03-18  Bruno Haible  <bruno@clisp.org>
35236
35237         Fix bug introduced on 2010-03-14.
35238         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
35239         (gl_SPAWN_H): Require it.
35240         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
35241         Reported by Simon Josefsson.
35242
35243 2010-03-18  Bruno Haible  <bruno@clisp.org>
35244
35245         Fix typo introduced on 2009-12-31.
35246         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
35247         posix_spawn_file_actions_adddup2.
35248
35249 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
35250         and Eric Blake  <eblake@redhat.com>
35251
35252         test-vc-list-files-git: make more robust
35253         * tests/test-vc-list-files-git.sh: Unset problematic environment
35254         variables.  Chain commands together.
35255
35256 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
35257
35258         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
35259         `AC_CHECK_DECL' invocation.
35260
35261 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
35262
35263         * lib/inttostr.c (inttostr): Make sure the invocation of verify
35264         appears before executable statements. Suggested by Petr Sumbera
35265         <Petr.Sumbera@Sun.COM>.
35266
35267 2010-03-14  Bruno Haible  <bruno@clisp.org>
35268
35269         * tests/test-flock.c (test_exclusive): Comment out a test that causes
35270         portability problems. Instead use a simpler test.
35271         (main): Check that invalid arguments are rejected only on Linux.
35272
35273 2010-03-14  Bruno Haible  <bruno@clisp.org>
35274
35275         Fix bug introduced on 2009-12-31.
35276         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35277         gl_PREREQ_SYS_H_WINSOCK2 always.
35278         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
35279         SYS_SOCKET_H variable.
35280         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
35281         Update comments.
35282         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
35283         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35284         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35285         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35286         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
35287
35288 2010-03-14  Bruno Haible  <bruno@clisp.org>
35289
35290         Fix values returned by sinl, cosl.
35291         * lib/trigl.h: Add specification comments.
35292         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
35293         that combines the values from the precomputed table with the values of
35294         the Chebyshev polynomials.
35295
35296 2010-03-14  Bruno Haible  <bruno@clisp.org>
35297
35298         Fix compilation error when modules 'posix_spawn[p]' are not used.
35299         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
35300         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
35301
35302 2010-03-14  Bruno Haible  <bruno@clisp.org>
35303
35304         Fix compilation error on mingw when module 'time_r' is not used.
35305         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
35306         is 1.
35307         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
35308         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35309         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
35310         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
35311
35312 2010-03-14  Bruno Haible  <bruno@clisp.org>
35313
35314         Fix compilation error with Sun C.
35315         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
35316         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
35317         instead of GCC specific ULONG_LONG_MAX.
35318         * lib/xstrtoll.c: Likewise.
35319         * lib/xstrtoull.c: Likewise.
35320
35321 2010-03-13  Bruno Haible  <bruno@clisp.org>
35322
35323         Allow the user to disable C++ code and tests.
35324         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
35325         (gl_PROG_ANSI_CXX): Require it.
35326
35327 2010-03-13  Bruno Haible  <bruno@clisp.org>
35328
35329         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
35330         cases.
35331
35332 2010-03-13  Bruno Haible  <bruno@clisp.org>
35333
35334         Test that gnulib does not break the standard C++ headers.
35335         * tests/test-locale-c++2.cc: New file.
35336         * modules/locale-tests (Files): Add it.
35337         (Makefile.am): Compile it for test-locale-c++.
35338         * tests/test-math-c++2.cc: New file.
35339         * modules/math-tests (Files): Add it.
35340         (Makefile.am): Compile it for test-math-c++.
35341         * tests/test-signal-c++2.cc: New file.
35342         * modules/signal-tests (Files): Add it.
35343         (Makefile.am): Compile it for test-signal-c++.
35344         * tests/test-stdio-c++2.cc: New file.
35345         * modules/stdio-tests (Files): Add it.
35346         (Makefile.am): Compile it for test-stdio-c++.
35347         * tests/test-stdlib-c++2.cc: New file.
35348         * modules/stdlib-tests (Files): Add it.
35349         (Makefile.am): Compile it for test-stdlib-c++.
35350         * tests/test-string-c++2.cc: New file.
35351         * modules/string-tests (Files): Add it.
35352         (Makefile.am): Compile it for test-string-c++.
35353         * tests/test-time-c++2.cc: New file.
35354         * modules/time-tests (Files): Add it.
35355         (Makefile.am): Compile it for test-time-c++.
35356         Reported by John W. Eaton <jwe@gnu.org>.
35357
35358 2010-03-13  Bruno Haible  <bruno@clisp.org>
35359
35360         * gnulib-tool (func_usage): Clarify which options are available for
35361         --create-testdir and --create-megatestdir.
35362
35363 2010-03-13  Bruno Haible  <bruno@clisp.org>
35364
35365         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
35366         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
35367         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
35368         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
35369         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
35370         when appropriate.
35371         Reported by Jim Meyering.
35372
35373 2010-03-12  Simon Josefsson  <simon@josefsson.org>
35374
35375         * gnulib-tool (func_import): Explain origin of code.
35376
35377 2010-03-12  Bruno Haible  <bruno@clisp.org>
35378
35379         Fix problem with automake's definition of CXXLINK.
35380         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
35381         Reported by Simon Josefsson and Ludovic Courtès.
35382
35383 2010-03-12  Bruno Haible  <bruno@clisp.org>
35384
35385         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
35386         stable releases.
35387
35388 2010-03-11  Bruno Haible  <bruno@clisp.org>
35389
35390         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
35391         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
35392         whether the system provides one variant or multiple variants of the
35393         function.
35394         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
35395         C++ compilers.
35396         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
35397         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
35398         Reported by Jim Meyering.
35399
35400 2010-03-09  Simon Josefsson  <simon@josefsson.org>
35401
35402         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
35403
35404 2010-03-08  Bruno Haible  <bruno@clisp.org>
35405
35406         gnulib-tool: Add support for --libtool in --create-testdir.
35407         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
35408         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
35409
35410 2010-03-08  Eric Blake  <eblake@redhat.com>
35411
35412         gnulib-tool.texi: mention possibility of git submodule
35413         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
35414         submodules.
35415         * doc/.gitignore: Ignore another generated file.
35416
35417 2010-03-08  Karl Berry  <karl@gnu.org>
35418
35419         * doc/gnulib-tool.texi (VCS Issues): Mention third option
35420         of committing gnulib files while skipping others.
35421
35422 2010-03-07  Bruno Haible  <bruno@clisp.org>
35423
35424         Tests of module 'wctype' in C++ mode.
35425         * tests/test-wctype-c++.cc: New file.
35426         * modules/wctype-tests (Files): Add it and tests/signature.h.
35427         (Depends-on): Add ansi-c++-opt.
35428         (Makefile.am): Arrange to compile and run test-wctype-c++.
35429
35430         Tests of module 'wchar' in C++ mode.
35431         * tests/test-wchar-c++.cc: New file.
35432         * modules/wchar-tests (Files): Add it and tests/signature.h.
35433         (Depends-on): Add ansi-c++-opt.
35434         (Makefile.am): Arrange to compile and run test-wchar-c++.
35435         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
35436         gl_MODULE_INDICATOR.
35437
35438         Tests of module 'unistd' in C++ mode.
35439         * tests/test-unistd-c++.cc: New file.
35440         * modules/unistd-tests (Files): Add it and tests/signature.h.
35441         (Depends-on): Add ansi-c++-opt.
35442         (Makefile.am): Arrange to compile and run test-unistd-c++.
35443         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
35444         gl_MODULE_INDICATOR.
35445
35446         Tests of module 'time' in C++ mode.
35447         * tests/test-time-c++.cc: New file.
35448         * modules/time-tests (Files): Add it and tests/signature.h.
35449         (Depends-on): Add ansi-c++-opt.
35450         (Makefile.am): Arrange to compile and run test-time-c++.
35451         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35452
35453         Tests of module 'sys_time' in C++ mode.
35454         * tests/test-sys_time-c++.cc: New file.
35455         * modules/sys_time-tests (Files): Add it and tests/signature.h.
35456         (Depends-on): Add ansi-c++-opt.
35457         (Makefile.am): Arrange to compile and run test-sys_time-c++.
35458         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
35459         gl_MODULE_INDICATOR.
35460
35461         Tests of module 'sys_stat' in C++ mode.
35462         * tests/test-sys_stat-c++.cc: New file.
35463         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
35464         (Depends-on): Add ansi-c++-opt.
35465         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
35466         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
35467         gl_MODULE_INDICATOR.
35468
35469         Tests of module 'sys_socket' in C++ mode.
35470         * tests/test-sys_socket-c++.cc: New file.
35471         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
35472         (Depends-on): Add ansi-c++-opt.
35473         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
35474         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
35475         gl_MODULE_INDICATOR.
35476
35477         Tests of module 'sys_select' in C++ mode.
35478         * tests/test-sys_select-c++.cc: New file.
35479         * modules/sys_select-tests (Files): Add it and tests/signature.h.
35480         (Depends-on): Add ansi-c++-opt.
35481         (Makefile.am): Arrange to compile and run test-sys_select-c++.
35482         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
35483         gl_MODULE_INDICATOR.
35484
35485         Tests of module 'sys_ioctl' in C++ mode.
35486         * tests/test-sys_ioctl-c++.cc: New file.
35487         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
35488         (Depends-on): Add ansi-c++-opt.
35489         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
35490         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
35491         gl_MODULE_INDICATOR.
35492
35493         Tests of module 'string' in C++ mode.
35494         * tests/test-string-c++.cc: New file.
35495         * modules/string-tests (Files): Add it and tests/signature.h.
35496         (Depends-on): Add ansi-c++-opt.
35497         (Makefile.am): Arrange to compile and run test-string-c++.
35498         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
35499         gl_MODULE_INDICATOR.
35500
35501         Tests of module 'stdlib' in C++ mode.
35502         * tests/test-stdlib-c++.cc: New file.
35503         * modules/stdlib-tests (Files): Add it and tests/signature.h.
35504         (Depends-on): Add ansi-c++-opt.
35505         (Makefile.am): Arrange to compile and run test-stdlib-c++.
35506         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
35507         gl_MODULE_INDICATOR.
35508
35509         Tests of module 'stdio' in C++ mode.
35510         * tests/test-stdio-c++.cc: New file.
35511         * modules/stdio-tests (Files): Add it and tests/signature.h.
35512         (Depends-on): Add ansi-c++-opt.
35513         (Makefile.am): Arrange to compile and run test-stdio-c++.
35514         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
35515         gl_MODULE_INDICATOR.
35516
35517         Tests of module 'spawn' in C++ mode.
35518         * tests/test-spawn-c++.cc: New file.
35519         * modules/spawn-tests (Files): Add it and tests/signature.h.
35520         (Depends-on): Add ansi-c++-opt.
35521         (Makefile.am): Arrange to compile and run test-spawn-c++.
35522         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
35523         gl_MODULE_INDICATOR.
35524
35525         Tests of module 'signal' in C++ mode.
35526         * tests/test-signal-c++.cc: New file.
35527         * modules/signal-tests (Files): Add it and tests/signature.h.
35528         (Depends-on): Add ansi-c++-opt.
35529         (Makefile.am): Arrange to compile and run test-signal-c++.
35530         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
35531         gl_MODULE_INDICATOR.
35532
35533         Tests of module 'search' in C++ mode.
35534         * tests/test-search-c++.cc: New file.
35535         * modules/search-tests (Files): Add it and tests/signature.h.
35536         (Depends-on): Add ansi-c++-opt.
35537         (Makefile.am): Arrange to compile and run test-search-c++.
35538         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
35539         gl_MODULE_INDICATOR.
35540
35541         Tests of module 'math' in C++ mode.
35542         * tests/test-math-c++.cc: New file.
35543         * modules/math-tests (Files): Add it and tests/signature.h.
35544         (Depends-on): Add ansi-c++-opt.
35545         (Makefile.am): Arrange to compile and run test-math-c++.
35546         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35547
35548         Tests of module 'locale' in C++ mode.
35549         * tests/test-locale-c++.cc: New file.
35550         * modules/locale-tests (Files): Add it and tests/signature.h.
35551         (Depends-on): Add ansi-c++-opt.
35552         (Makefile.am): Arrange to compile and run test-locale-c++.
35553         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
35554         gl_MODULE_INDICATOR.
35555
35556         Tests of module 'langinfo' in C++ mode.
35557         * tests/test-langinfo-c++.cc: New file.
35558         * modules/langinfo-tests (Files): Add it and tests/signature.h.
35559         (Depends-on): Add ansi-c++-opt.
35560         (Makefile.am): Arrange to compile and run test-langinfo-c++.
35561         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
35562         gl_MODULE_INDICATOR.
35563
35564         Tests of module 'iconv-h' in C++ mode.
35565         * tests/test-iconv-h-c++.cc: New file.
35566         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
35567         (Depends-on): Add ansi-c++-opt.
35568         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
35569
35570         Tests of module 'glob' in C++ mode.
35571         * tests/test-glob-c++.cc: New file.
35572         * modules/glob-tests (Files): Add it.
35573         (Depends-on): Add ansi-c++-opt.
35574         (Makefile.am): Arrange to compile and run test-glob-c++.
35575
35576         Tests of module 'fcntl-h' in C++ mode.
35577         * tests/test-fcntl-h-c++.cc: New file.
35578         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
35579         (Depends-on): Add ansi-c++-opt.
35580         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
35581         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
35582         gl_MODULE_INDICATOR.
35583
35584         Tests of module 'dirent' in C++ mode.
35585         * tests/test-dirent-c++.cc: New file.
35586         * modules/dirent-tests (Files): Add it and tests/signature.h.
35587         (Depends-on): Add ansi-c++-opt.
35588         (Makefile.am): Arrange to compile and run test-dirent-c++.
35589         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35590         gl_MODULE_INDICATOR.
35591
35592         New module 'ansi-c++-opt'.
35593         * modules/ansi-c++-opt: New file.
35594         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
35595
35596         Document C++ namespace mode.
35597         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
35598
35599         wctype: Avoid #define replacements in C++ mode.
35600         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
35601         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
35602         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
35603         In C++, define a namespaced alias symbol.
35604         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
35605         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
35606         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
35607         rule.
35608
35609         wchar: Avoid #define replacements in C++ mode.
35610         * lib/wchar.in.h: Include c++defs.h.
35611         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
35612         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
35613         symbol.
35614         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
35615         * modules/wchar (Depends-on): Add c++defs.
35616         (Makefile.am): Update wchar.h rule.
35617
35618         unistd: Avoid #define replacements in C++ mode.
35619         * lib/unistd.in.h: Include c++defs.h.
35620         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
35621         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
35622         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
35623         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
35624         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
35625         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
35626         symbol.
35627         (environ): Update.
35628         * modules/unistd (Depends-on): Add c++defs.
35629         (Makefile.am): Update unistd.h rule.
35630
35631         time: Avoid #define replacements in C++ mode.
35632         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
35633         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
35634         define a namespaced alias symbol.
35635         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
35636         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
35637         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
35638         * modules/time (Depends-on): Add c++defs, warn-on-use.
35639         (Makefile.am): Update time.h rule.
35640         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35641         * modules/nanosleep (configure.ac): Likewise.
35642         * modules/strptime (configure.ac): Likewise.
35643         * modules/timegm (configure.ac): Likewise.
35644
35645         sys_time: Avoid #define replacements in C++ mode.
35646         * lib/sys_time.in.h: Include c++defs.h.
35647         (gettimeofday): In C++, define a namespaced alias symbol.
35648         * modules/sys_time (Depends-on): Add c++defs.
35649         (Makefile.am): Update sys/time.h rule.
35650
35651         sys_stat: Avoid #define replacements in C++ mode.
35652         * lib/sys_stat.in.h: Include c++defs.h.
35653         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
35654         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
35655         namespaced alias symbol.
35656         In C++, define a namespaced alias symbol.
35657         * modules/sys_stat (Depends-on): Add c++defs.
35658         (Makefile.am): Update sys/stat.h rule.
35659
35660         sys_socket: Avoid #define replacements in C++ mode.
35661         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
35662         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
35663         definitions also when the system has a <sys/socket.h>.
35664         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35665         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
35666         In C++, define a namespaced alias symbol.
35667         * modules/sys_socket (Depends-on): Add c++defs.
35668         (Makefile.am): Update sys/socket.h rule.
35669
35670         sys_select: Avoid #define replacements in C++ mode.
35671         * lib/sys_select.in.h: Include c++defs.h. Enable the function
35672         definitions also when the system has a <sys/select.h>.
35673         (select): In C++, define a namespaced alias symbol.
35674         * modules/sys_select (Depends-on): Add c++defs.
35675         (Makefile.am): Update sys/select.h rule.
35676
35677         sys_ioctl: Avoid #define replacements in C++ mode.
35678         * lib/sys_ioctl.in.h: Include c++defs.h.
35679         (ioctl): In C++, define a namespaced alias symbol.
35680         * modules/sys_ioctl (Depends-on): Add c++defs.
35681         (Makefile.am): Update sys/ioctl.h rule.
35682
35683         string: Avoid #define replacements in C++ mode.
35684         * lib/string.in.h: Include c++defs.h.
35685         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
35686         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
35687         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
35688         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
35689         strsignal, strverscmp): In C++, define a namespaced alias symbol.
35690         * modules/string (Depends-on): Add c++defs.
35691         (Makefile.am): Update string.h rule.
35692
35693         stdlib: Avoid #define replacements in C++ mode.
35694         * lib/stdlib.in.h: Include c++defs.h.
35695         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
35696         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
35697         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
35698         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
35699         symbol.
35700         * modules/stdlib (Depends-on): Add c++defs.
35701         (Makefile.am): Update stdlib.h rule.
35702
35703         stdio: Avoid #define replacements in C++ mode.
35704         * lib/stdio.in.h: Include c++defs.h.
35705         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
35706         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
35707         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
35708         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
35709         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
35710         namespaced alias symbol.
35711         * modules/stdio (Depends-on): Add c++defs.
35712         (Makefile.am): Update stdio.h rule.
35713
35714         spawn: Avoid #define replacements in C++ mode.
35715         * lib/spawn.in.h: Include c++defs.h.
35716         (posix_spawn, posix_spawnp, posix_spawnattr_init,
35717         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
35718         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
35719         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
35720         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
35721         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
35722         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
35723         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
35724         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
35725         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
35726         In C++, define a namespaced alias symbol.
35727         * modules/spawn (Depends-on): Add c++defs.
35728         (Makefile.am): Update spawn.h rule.
35729
35730         signal: Avoid #define replacements in C++ mode.
35731         * lib/signal.in.h: Include c++defs.h.
35732         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
35733         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
35734         namespaced alias symbol.
35735         * modules/signal (Depends-on): Add c++defs.
35736         (Makefile.am): Update signal.h rule.
35737
35738         search: Avoid #define replacements in C++ mode.
35739         * lib/search.in.h: Include c++defs.h.
35740         (_gl_search_compar_fn, _gl_search_action_fn): New types.
35741         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
35742         symbol.
35743         * modules/search (Depends-on): Add c++defs.
35744         (Makefile.am): Update search.h rule.
35745
35746         math: Avoid #define replacements in C++ mode.
35747         * lib/math.in.h: Include c++defs.h.
35748         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
35749         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
35750         trunc, truncl): In C++, define a namespaced alias symbol.
35751         * modules/math (Depends-on): Add c++defs.
35752         (Makefile.am): Update math.h rule.
35753
35754         locale: Avoid #define replacements in C++ mode.
35755         * lib/locale.in.h: Include c++defs.h.
35756         (duplocale): In C++, define a namespaced alias symbol.
35757         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
35758         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
35759         * modules/locale (Depends-on): Add c++defs.
35760         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
35761
35762         langinfo: Avoid #define replacements in C++ mode.
35763         * lib/langinfo.in.h: Include c++defs.h.
35764         (nl_langinfo): In C++, define a namespaced alias symbol.
35765         * modules/langinfo (Depends-on): Add c++defs.
35766         (Makefile.am): Update langinfo.h rule.
35767
35768         iconv-h: Avoid #define replacements in C++ mode.
35769         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
35770         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
35771         symbol.
35772         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35773         whenever iconv is present.
35774         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
35775         (Makefile.am): Update iconv.h rule.
35776
35777         glob: Avoid #define replacements in C++ mode.
35778         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
35779         (_gl_glob_errfunc_fn): New type.
35780         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
35781         symbol.
35782         * modules/glob (Depends-on): Add c++defs, warn-on-use.
35783         (Makefile.am): Update glob.h rule.
35784
35785         fcntl-h: Avoid #define replacements in C++ mode.
35786         * lib/fcntl.in.h: Include c++defs.h.
35787         (fcntl, open, openat): In C++, define a namespaced alias symbol.
35788         * modules/fcntl-h (Depends-on): Add c++defs.
35789         (Makefile.am): Update fcntl.h rule.
35790
35791         dirent: Avoid #define replacements in C++ mode.
35792         * lib/dirent.in.h: Include c++defs.h.
35793         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
35794         namespaced alias symbol.
35795         (dirfd): Update declaration.
35796         * modules/dirent (Depends-on): Add c++defs.
35797         (Makefile.am): Update dirent.h rule.
35798
35799         ctype: Make it usable in C++ code.
35800         * lib/ctype.in.h: Include c++defs.h.
35801         (isblank): Declare as extern "C".
35802         * modules/ctype (Depends-on): Add c++defs.
35803         (Makefile.am): Update ctype.h rule.
35804
35805         New module 'c++defs'.
35806         * modules/c++defs: New file.
35807         * build-aux/c++defs.h: New file.
35808         Reported by John W. Eaton <jwe@gnu.org>.
35809
35810 2010-03-07  Bruno Haible  <bruno@clisp.org>
35811
35812         logb: Provide missing declaration for Cygwin.
35813         * lib/math.in.h (logb): New declaration.
35814         * m4/logb.m4: New file.
35815         * modules/logb (Files): Add m4/logb.m4.
35816         (Depends-on): Add math.
35817         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
35818         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
35819         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
35820         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
35821         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
35822
35823 2010-03-07  Bruno Haible  <bruno@clisp.org>
35824
35825         Fix test-cond link error.
35826         * tests/test-cond.c: Include <stdio.h>.
35827
35828 2010-03-07  Bruno Haible  <bruno@clisp.org>
35829
35830         Fix test-dirent-safer link error.
35831         * modules/dirent-safer-tests (Makefile.am): Define
35832         test_dirent_safer_LDADD.
35833
35834 2010-03-07  Bruno Haible  <bruno@clisp.org>
35835
35836         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
35837         among default module list.
35838
35839 2010-03-07  Bruno Haible  <bruno@clisp.org>
35840
35841         Fix link error on platforms with GNU libiconv.
35842         * modules/unistr/u8-strcoll-tests (Makefile): Define
35843         test_u8_strcoll_LDADD.
35844         * modules/unistr/u16-strcoll-tests (Makefile): Define
35845         test_u16_strcoll_LDADD.
35846         * modules/unistr/u32-strcoll-tests (Makefile): Define
35847         test_u32_strcoll_LDADD.
35848
35849 2010-03-07  Bruno Haible  <bruno@clisp.org>
35850
35851         Use POSIX declarations for socket functions.
35852         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
35853         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
35854         rpl_sendto): Change declaration to match POSIX.
35855         * lib/connect.c (rpl_connect): Likewise.
35856         * lib/accept.c (rpl_accept): Likewise.
35857         * lib/bind.c (rpl_bind): Likewise.
35858         * lib/getpeername.c (rpl_getpeername): Likewise.
35859         * lib/getsockname.c (rpl_getsockname): Likewise.
35860         * lib/recv.c (rpl_recv): Likewise.
35861         * lib/send.c (rpl_send): Likewise.
35862         * lib/recvfrom.c (rpl_recvfrom): Likewise.
35863         * lib/sendto.c (rpl_sendto): Likewise.
35864
35865 2010-03-06  Bruno Haible  <bruno@clisp.org>
35866
35867         Clarify access, euidaccess, faccessat.
35868         * doc/posix-functions/faccessat.texi: Mention security problem under
35869         "Other problems", not "Portability problems".
35870         * doc/posix-functions/access.texi: Likewise. Mention a related security
35871         problem.
35872         * doc/glibc-functions/euidaccess.texi: Mention security problems.
35873         * lib/euidaccess.c: Add comments about platforms.
35874         * lib/unistd.in.h (access, euidaccess): Add warnings.
35875
35876 2010-03-07  Bruno Haible  <bruno@clisp.org>
35877
35878         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
35879         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
35880         (POSIX_SPAWN_SETSCHEDULER): Likewise.
35881         (POSIX_SPAWN_USEVFORK): Define in a way that works when
35882         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35883         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
35884         declare when POSIX_SPAWN_SETSCHEDULER is zero.
35885         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
35886         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
35887         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
35888         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
35889         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
35890         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
35891         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
35892         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
35893         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
35894         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
35895         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
35896         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
35897         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
35898         Likewise.
35899         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
35900         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
35901         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
35902         Likewise.
35903         * tests/test-spawn.c (main): Make it work when
35904         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35905
35906 2010-03-07  Bruno Haible  <bruno@clisp.org>
35907
35908         Fix incorrect Makefile.am generation in German locale.
35909         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35910         Execute sed command with character range in C locale.
35911
35912 2010-03-06  Bruno Haible  <bruno@clisp.org>
35913
35914         Tests for module 'iconv-h'.
35915         * modules/iconv-h-tests: New file.
35916         * tests/test-iconv-h.c: New file.
35917
35918         New module 'iconv-h'.
35919         * modules/iconv-h: New file.
35920         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
35921         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
35922         (configure.ac): Remove gl_ICONV_H.
35923         (Makefile.am): Remove rule for iconv.h.
35924
35925 2010-03-06  Bruno Haible  <bruno@clisp.org>
35926
35927         More consistent naming of *.m4 files.
35928         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
35929         * modules/wctype (Files): Update.
35930
35931         More consistent naming of *.m4 files.
35932         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
35933         * modules/wchar (Files): Update.
35934
35935 2010-03-06  Jim Meyering  <meyering@redhat.com>
35936
35937         euidaccess: relax license to LGPLv2+
35938         * modules/euidaccess (License): Relax to LGPLv2+.
35939
35940 2010-03-06  Bruno Haible  <bruno@clisp.org>
35941
35942         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
35943         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
35944         (Makefile.am): Augment lib_SOURCES instead.
35945
35946 2010-03-04  Jim Meyering  <meyering@redhat.com>
35947
35948         utime: remove obsolete module
35949         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
35950         unnecessary for years, and has been marked as obsolete for 10 months.
35951         * modules/utime: Remove file.
35952         * lib/utime.c: Remove file.
35953         * m4/utime.m4: Remove file.
35954         * m4/utimes-null.m4: Remove file.
35955         * doc/posix-functions/utime.texi (utime): Remove reference to
35956         the module.  Move the sole "fixed by gnulib" item into the
35957         "problems not fixed by Gnulib" list.
35958         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
35959
35960 2010-03-05  Simon Josefsson  <simon@josefsson.org>
35961
35962         * modules/exit (License): Relax license to LGPLv2+.
35963         (Status): Mark as obsolete.
35964         * NEWS: Mention deprecated 'exit' module.
35965         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
35966         of now obsolete 'exit'.
35967
35968 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35969
35970         fts-lgpl: remove unused module
35971         * modules/fts-lgpl: Remove.
35972         * MODULES.html.sh (func_all_modules): Adjust.
35973         * check-module (find_included_lib_files): Adjust.
35974         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
35975
35976 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
35977
35978         copy-acl: enhance Solaris ACL error handling
35979         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
35980         * lib/set-mode-acl.c (qset_acl): Likewise.
35981
35982 2010-03-02  Bruno Haible  <bruno@clisp.org>
35983
35984         spawn: Don't override the system defined values on FreeBSD 8.
35985         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
35986         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
35987         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
35988         if HAVE_POSIX_SPAWN is 1.
35989         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
35990
35991 2010-03-01  Bruno Haible  <bruno@clisp.org>
35992
35993         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
35994         regarding Automake.
35995
35996 2010-02-25  Bruno Haible  <bruno@clisp.org>
35997
35998         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
35999         * gnulib-tool: Define 'echo' as a function only before the ksh alias
36000         setting, not afterwards.
36001         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
36002
36003 2010-02-24  Eric Blake  <eblake@redhat.com>
36004
36005         bootstrap, git-version-gen: use timestamp
36006         * build-aux/git-version-gen (scriptversion): Force UTC.
36007         * build-aux/bootstrap (scriptversion): New variable.
36008
36009         bootstrap: allow older git
36010         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
36011         older than 1.6.4.  Requested by the libvirt project.
36012
36013 2010-02-23  Eric Blake  <eblake@redhat.com>
36014
36015         warn-on-use: work with old autoconf
36016         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
36017         AS_VAR semantics of autoconf 2.60.
36018         Reported by Bruno Haible.
36019
36020         bootstrap: improve some comments
36021         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
36022         clarification comments.
36023
36024         gettimeofday: provide correct function
36025         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
36026         when replacement is declared, otherwise provide gettimeofday.
36027         Reported by Michael Goffioul.
36028
36029 2010-02-23  Jim Meyering  <meyering@redhat.com>
36030
36031         lib-ignore: relax license to "unlimited", not LGPLv2+
36032         * modules/lib-ignore (License): Relax to "unlimited".
36033
36034 2010-02-23  Jim Meyering  <meyering@redhat.com>
36035
36036         lib-ignore: relax license to LGPLv2+
36037         * modules/lib-ignore (License): Relax to LGPLv2+.
36038
36039 2010-02-22  Eric Blake  <eblake@redhat.com>
36040
36041         lseek: avoid bash 3.2 broken pipe bug
36042         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
36043         warning from bash 3.2.
36044         Reported by Ben Pfaff, with analysis from Bruno Haible.
36045
36046         bootstrap: support non-FSF copyright holder
36047         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
36048         bootstrap.conf override of COPYRIGHT_HOLDER.
36049         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
36050
36051         bootstrap: interoperate with gettext 0.14.1
36052         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
36053
36054         bootstrap: allow for alternate submodule location
36055         * build-aux/bootstrap (gnulib_path): New variable; use instead of
36056         hardcoding submodule location.
36057         (gnulib_mk): Allow direct use of Makefile.am.
36058
36059         bootstrap: use GNULIB_SRCDIR to reduce disk usage
36060         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
36061         rather than reconfiguring where the submodule points.
36062
36063         gettimeofday: restore support for platforms that lack function
36064         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
36065         replacement if function is missing.
36066         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
36067         * modules/sys_time (Makefile.am): Substitute it.
36068         * lib/sys_time.in.h (gettimeofday): Check it.
36069         Reported by Michael Goffioul.
36070
36071 2010-02-21  Bruno Haible  <bruno@clisp.org>
36072
36073         * lib/stdio.in.h (obstack_printf): Fix typo.
36074
36075 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
36076
36077         vc-list-files: use bzr ls's -R option
36078         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
36079         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
36080
36081 2010-02-21  Jim Meyering  <meyering@redhat.com>
36082
36083         init.sh: fix EXEEXT shims to work also for names like test-prog
36084         * tests/init.sh: Re-exec a better shell, when needed.
36085         If the current shell lacks support for posix $(...), an init.sh-using
36086         test will now try to find a shell that supports that.  If EXEEXT is
36087         nonempty, we also require support for hyphen-in-alias-name and shell
36088         substitutions like ${var#glob}.  Failure to find such a shell results
36089         in a skipped test.
36090
36091 2010-02-21  Bruno Haible  <bruno@clisp.org>
36092
36093         Really work around around "broken pipe" error message from bash 3.2.
36094         * gnulib-tool (func_reset_sigpipe): Remove function.
36095         (echo): In bash 3.2, define to a function that uses printf.
36096         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
36097
36098 2010-02-20  Bruno Haible  <bruno@clisp.org>
36099
36100         Restore support for automake 1.9.6 with autoconf 2.61.
36101         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
36102         Reported by James Youngman <jay@gnu.org>.
36103
36104 2010-02-20  Bruno Haible  <bruno@clisp.org>
36105
36106         Improve *printf warning condition.
36107         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
36108         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
36109         and the function is overridden due to SIGPIPE emulation.
36110
36111 2010-02-20  Bruno Haible  <bruno@clisp.org>
36112
36113         * lib/stdio.in.h: Tweak comments.
36114
36115 2010-02-19  Bruno Haible  <bruno@clisp.org>
36116
36117         Make it easier to find modules. New gnulib-tool option '--find'.
36118         * gnulib-tool: New option --find.
36119         (func_usage): Document it.
36120         (func_sanitize_modulelist): New function, extracted from
36121         func_all_modules.
36122         (func_all_modules): Invoke it.
36123         * doc/gnulib-tool.texi (Which modules?): New node.
36124
36125 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
36126
36127         * lib/sys_select.in.h: Provide select replacement even if
36128         sys/select.h exists on a system, for Interix.
36129
36130 2010-02-18  Jim Meyering  <meyering@redhat.com>
36131
36132         init.sh: don't use $(...) just yet
36133         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
36134         to accommodate e.g., Solaris' /bin/sh.
36135
36136 2010-02-17  Bruno Haible  <bruno@clisp.org>
36137
36138         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
36139         Reported by Ludovic Courtès <ludo@gnu.org>.
36140
36141 2010-02-16  Simon Josefsson  <simon@josefsson.org>
36142
36143         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
36144         linking with -lintl.
36145
36146 2010-02-17  Simon Josefsson  <simon@josefsson.org>
36147
36148         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
36149         if not provided by the system's netdb.h.  Reported by
36150         ludo@gnu.org (Ludovic Courtès).
36151
36152 2010-02-15  Jim Meyering  <meyering@redhat.com>
36153
36154         init.sh: improve portability and efficiency
36155         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
36156         "dummy" in a for loop.
36157         Use '!', not '^' to select the complement of a character set used
36158         in a "case" statement.
36159         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
36160         Suggestions from Eric Blake.
36161
36162         init.sh: automatically accommodate programs with the .exe suffix
36163         Automatically arrange for an invocation of "prog" to execute the
36164         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
36165         may use the simpler "prog", yet still work when built on a system
36166         that requires specifying the added suffix.
36167         Do this by constructing a function named "prog" that invokes
36168         "prog.exe" for each .exe file in selected directories.
36169         * tests/init.sh (find_exe_basenames_): New function.
36170         (create_exe_shim_functions_): New function.
36171         (path_prepend_): Use it.
36172
36173         maint.mk: mark syntax-check sc_*.m rules as .PHONY
36174         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
36175         "make -t syntax-check" doesn't create a ton of sc_*.m files.
36176
36177 2010-02-14  Jim Meyering  <meyering@redhat.com>
36178
36179         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
36180         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
36181         (sc_prohibit_hash_pjw_without_use): New rule.
36182
36183         maint.mk: allow the default upload destination dir to be overridden
36184         * top/maint.mk (upload_dest_dir_): Define with a default that
36185         preserves the status quo.
36186         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
36187         Reported by Peter Simons.
36188
36189         maint.mk: prohibit inclusion of "hash.h" without_use
36190         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
36191
36192 2010-02-10  Jim Meyering  <meyering@redhat.com>
36193
36194         maint.mk: prohibit inclusion of "ignore-value.h" without_use
36195         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
36196
36197 2010-02-09  Eric Blake  <ebb9@byu.net>
36198         and Bruno Haible  <bruno@clisp.org>
36199
36200         obstack-printf-posix: ensure declaration
36201         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
36202         extracted from gl_FUNC_OBSTACK_PRINTF.
36203         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
36204         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36205         Likewise.
36206         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
36207         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
36208         0.
36209
36210 2010-02-08  Bruno Haible  <bruno@clisp.org>
36211
36212         gnulib-tool: Fix typo in 2010-02-07 commit.
36213         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
36214         Reported by Eric Blake.
36215
36216 2010-02-07  Bruno Haible  <bruno@clisp.org>
36217
36218         gnulib-tool: Fix up caching patches.
36219         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
36220         option --no-cache. Use associative arrays when supported by the shell.
36221         (sed_comments): New variable.
36222         (modcache): Renamed from do_cache.
36223         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
36224         abbreviate unnecessarily.
36225         (have_associative): New variable.
36226         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
36227         way also for ksh and zsh.
36228         (func_init_sed_convert_to_cache_statements): New function, extracted
36229         from func_cache_lookup_module. Add support for associative arrays.
36230         Don't set the c_MODULE_cached variable here. Ignore all lines before
36231         the first field header. Remove only the final newline, not all trailing
36232         newlines. Support empty fields correctly. Limit the use of 'eval' to
36233         assignments.
36234         (func_get_description, func_get_status, func_get_notice,
36235         func_get_applicability, func_get_filelist, func_get_dependencies,
36236         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
36237         func_get_automake_snippet, func_get_include_directive,
36238         func_get_link_directive, func_get_license, func_get_maintainer):
36239         Update documentation. List the unoptimized code first. Add support for
36240         associative arrays. Limit the use of 'eval' to assignments.
36241         (func_get_applicability): Undo stylistic pessimisations.
36242         (func_get_automake_snippet, func_get_include_directive): Reduce code
36243         duplication.
36244         (func_modules_transitive_closure, func_modules_add_dummy,
36245         func_modules_notice, func_modules_to_filelist, func_add_file,
36246         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
36247         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
36248         func_create_testdir, func_create_megatestdir): Update documentation.
36249
36250 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36251
36252         * gnulib-tool (func_cache_lookup_module): Store the module name
36253         belonging to the cache variable; error out if two different
36254         module names map to the same cache variable name.
36255
36256 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36257
36258         gnulib-tool: Make caching optional.
36259         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
36260         Update matching short versions of --no-changelog.
36261         (func_usage): Update.
36262         (sed_extract_cache_prog): Renamed from ...
36263         (sed_extract_prog): ... this; revert to old extraction script.
36264         (func_get_description, func_get_status)
36265         (func_get_notice, func_get_applicability, func_get_filelist)
36266         (func_get_dependencies, func_get_autoconf_early_snippet)
36267         (func_get_autoconf_snippet, func_get_automake_snippet)
36268         (func_get_include_directive, func_get_link_directive)
36269         (func_get_license, func_get_maintainer): If $do_cache is false,
36270         use old, non-caching extraction scripts.
36271         Suggestion by Bruno Haible.
36272
36273 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36274
36275         gnulib-tool: cache module metainformation.
36276         * gnulib-tool (sed_extract_prog): Match newline before each
36277         header, and rewrite header to a shell variable suffix.
36278         (func_cache_var, func_cache_lookup_module): New functions,
36279         to turn a module name into a cache variable prefix, and to
36280         look up and cache module metainformation.
36281         (func_get_description, func_get_status)
36282         (func_get_notice, func_get_applicability, func_get_filelist)
36283         (func_get_dependencies, func_get_autoconf_early_snippet)
36284         (func_get_autoconf_snippet, func_get_automake_snippet)
36285         (func_get_include_directive, func_get_link_directive)
36286         (func_get_license, func_get_maintainer): Use
36287         func_cache_lookup_module.
36288
36289 2010-02-07  Bruno Haible  <bruno@clisp.org>
36290
36291         fnctl: Fix missing dependency.
36292         * modules/fcntl (Depends-on): Add getdtablesize.
36293         Reported by John W. Eaton <jwe@gnu.org>.
36294
36295 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36296
36297         Argp: fix recognition of short alias options.
36298
36299         * lib/argp-parse.c (convert_options): Fix improper use of
36300         `|' between character values.
36301         * tests/test-argp.c (group1_option): New alias option
36302         --read (-r).
36303         (group1_parser): Special handling for 'r'.
36304         (test15): New test case.
36305         (test_fun): Add test15.
36306         * tests/test-argp-2.sh: Update expected --help and --usage
36307         outputs.
36308
36309 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36310
36311         * tests/test-argp.c: Fix indentation.
36312
36313 2010-02-04  Eric Blake  <ebb9@byu.net>
36314
36315         gettimeofday: expose type of second argument
36316         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
36317         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
36318         * tests/test-gettimeofday.c: Use it to silence warning.
36319         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
36320         the issue.
36321
36322 2010-02-03  Jim Meyering  <meyering@redhat.com>
36323
36324         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
36325         * lib/regcomp.c (TYPE_SIGNED): Define.
36326         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
36327
36328         regcomp.c: avoid a new -Wshadow warning
36329         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
36330
36331 2010-02-01  Jim Meyering  <meyering@redhat.com>
36332
36333         removing useless parentheses in cpp #define directives
36334         For motivation, see commit c0221df4, "define STREQ(a,b)
36335         consistently, removing useless parentheses"
36336         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
36337         * lib/mountlist.c (MNT_IGNORE): Likewise.
36338         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
36339
36340 2010-02-01  Eric Blake  <ebb9@byu.net>
36341
36342         sys_time: use link-warning
36343         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
36344         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
36345         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
36346         * modules/sys_time (Depends-on): Add warn-on-use.
36347         (Makefile.am): Always build replacement.
36348         (configure.ac): Update substitutions.
36349         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
36350         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
36351         bother with SYS_TIME_H.
36352         * modules/gettimeofday (configure.ac): Declare indicator.
36353         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
36354         in use.
36355
36356         closein-tests: silence compiler warning
36357         * tests/test-closein.c (main): Ignore fread result.
36358         * modules/closein-tests (Depends-on): Add ignore-value.
36359
36360         tests: silence warning about system return
36361         * tests/test-areadlink-with-size.c (main): Ignore system result.
36362         * tests/test-areadlink.c (main): Likewise.
36363         * tests/test-areadlinkat-with-size.c (main): Likewise.
36364         * tests/test-areadlinkat.c (main): Likewise.
36365         * tests/test-canonicalize-lgpl.c (main): Likewise.
36366         * tests/test-canonicalize.c (main): Likewise.
36367         * tests/test-chown.c (main): Likewise.
36368         * tests/test-fchownat.c (main): Likewise.
36369         * tests/test-fdutimensat.c (main): Likewise.
36370         * tests/test-fstatat.c (main): Likewise.
36371         * tests/test-futimens.c (main): Likewise.
36372         * tests/test-lchown.c (main): Likewise.
36373         * tests/test-link.c (main): Likewise.
36374         * tests/test-linkat.c (main): Likewise.
36375         * tests/test-lstat.c (main): Likewise.
36376         * tests/test-mkdir.c (main): Likewise.
36377         * tests/test-mkdirat.c (main): Likewise.
36378         * tests/test-mkfifo.c (main): Likewise.
36379         * tests/test-mkfifoat.c (main): Likewise.
36380         * tests/test-mknod.c (main): Likewise.
36381         * tests/test-readlink.c (main): Likewise.
36382         * tests/test-remove.c (main): Likewise.
36383         * tests/test-rename.c (main): Likewise.
36384         * tests/test-renameat.c (main): Likewise.
36385         * tests/test-rmdir.c (main): Likewise.
36386         * tests/test-symlink.c (main): Likewise.
36387         * tests/test-symlinkat.c (main): Likewise.
36388         * tests/test-unlink.c (main): Likewise.
36389         * tests/test-unlinkat.c (main): Likewise.
36390         * tests/test-utimens.c (main): Likewise.
36391         * tests/test-utimensat.c (main): Likewise.
36392         * modules/areadlink-tests (Depends-on): Add ignore-value.
36393         * modules/areadlink-with-size-tests (Depends-on): Likewise.
36394         * modules/areadlinkat-tests (Depends-on): Likewise.
36395         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
36396         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36397         * modules/canonicalize-tests (Depends-on): Likewise.
36398         * modules/chown-tests (Depends-on): Likewise.
36399         * modules/fdutimensat-tests (Depends-on): Likewise.
36400         * modules/futimens-tests (Depends-on): Likewise.
36401         * modules/lchown-tests (Depends-on): Likewise.
36402         * modules/link-tests (Depends-on): Likewise.
36403         * modules/linkat-tests (Depends-on): Likewise.
36404         * modules/lstat-tests (Depends-on): Likewise.
36405         * modules/mkdir-tests (Depends-on): Likewise.
36406         * modules/mkfifo-tests (Depends-on): Likewise.
36407         * modules/mkfifoat-tests (Depends-on): Likewise.
36408         * modules/mknod-tests (Depends-on): Likewise.
36409         * modules/openat-tests (Depends-on): Likewise.
36410         * modules/readlink-tests (Depends-on): Likewise.
36411         * modules/remove-tests (Depends-on): Likewise.
36412         * modules/rename-tests (Depends-on): Likewise.
36413         * modules/renameat-tests (Depends-on): Likewise.
36414         * modules/rmdir-tests (Depends-on): Likewise.
36415         * modules/symlink-tests (Depends-on): Likewise.
36416         * modules/symlinkat-tests (Depends-on): Likewise.
36417         * modules/unlink-tests (Depends-on): Likewise.
36418         * modules/utimens-tests (Depends-on): Likewise.
36419         * modules/utimensat-tests (Depends-on): Likewise.
36420
36421 2010-01-31  Bruno Haible  <bruno@clisp.org>
36422
36423         Perform the same test for many <math.h> functions.
36424         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
36425         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
36426         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
36427         of gl_MATHFUNC.
36428         * modules/acos (configure.ac): Likewise.
36429         * modules/asin (configure.ac): Likewise.
36430         * modules/atan (configure.ac): Likewise.
36431         * modules/atan2 (configure.ac): Likewise.
36432         * modules/cbrt (configure.ac): Likewise.
36433         * modules/copysign (configure.ac): Likewise.
36434         * modules/cos (configure.ac): Likewise.
36435         * modules/cosh (configure.ac): Likewise.
36436         * modules/erf (configure.ac): Likewise.
36437         * modules/erfc (configure.ac): Likewise.
36438         * modules/exp (configure.ac): Likewise.
36439         * modules/fmod (configure.ac): Likewise.
36440         * modules/hypot (configure.ac): Likewise.
36441         * modules/j0 (configure.ac): Likewise.
36442         * modules/j1 (configure.ac): Likewise.
36443         * modules/jn (configure.ac): Likewise.
36444         * modules/lgamma (configure.ac): Likewise.
36445         * modules/log (configure.ac): Likewise.
36446         * modules/log10 (configure.ac): Likewise.
36447         * modules/log1p (configure.ac): Likewise.
36448         * modules/pow (configure.ac): Likewise.
36449         * modules/remainder (configure.ac): Likewise.
36450         * modules/sin (configure.ac): Likewise.
36451         * modules/sinh (configure.ac): Likewise.
36452         * modules/tan (configure.ac): Likewise.
36453         * modules/tanh (configure.ac): Likewise.
36454         * modules/y0 (configure.ac): Likewise.
36455         * modules/y1 (configure.ac): Likewise.
36456         * modules/yn (configure.ac): Likewise.
36457         Suggested by Paolo Bonzini.
36458
36459 2010-01-31  Bruno Haible  <bruno@clisp.org>
36460
36461         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
36462
36463 2010-01-31  Bruno Haible  <bruno@clisp.org>
36464
36465         Work around getdelim() bug on FreeBSD 8.0.
36466         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
36467         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
36468         not work.
36469         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
36470         is 1.
36471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
36472         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
36473         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
36474         a non-zero size.
36475         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
36476
36477 2010-01-31  Bruno Haible  <bruno@clisp.org>
36478
36479         Work around getline() bug on FreeBSD 8.0.
36480         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
36481         and a non-zero size.
36482         * tests/test-getline.c (main): Likewise.
36483         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
36484         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
36485
36486 2010-01-28  Eric Blake  <ebb9@byu.net>
36487
36488         regex: fix build failure
36489         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
36490         platforms.
36491
36492 2010-01-28  Jim Meyering  <meyering@redhat.com>
36493
36494         regex: do not ignore memory allocation failure
36495         * lib/regex_internal.c (create_cd_newstate): Detect
36496         re_node_set_init_copy failure.   Extracted from glibc commit
36497         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36498
36499         regex: sync more white-space changes from libc
36500         * lib/regex_internal.c: White-space only changes.
36501         * lib/regexec.c: Likewise.
36502
36503         regex: add many uses of __attribute_warn_unused_result__
36504         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
36505         * lib/regexec.c: Likewise.
36506         Extracted from a messy glibc commit.
36507
36508         regcomp.c: spelling and merge-artifact from glibc
36509         * lib/regcomp.c: Merge remainder of glibc's
36510         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36511
36512         regcomp.c: sync white-space changes from glibc
36513         * lib/regcomp.c: Merge to accommodate white space
36514         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36515
36516         regcomp.c: do not ignore internal return values
36517         * lib/regcomp.c: Do not ignore internal return values.
36518         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
36519         but without its white-space changes and spelling fixes.
36520
36521         regex_internal.h: define __attribute_warn_unused_result__
36522         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
36523
36524         maint: add a syntax-check rule to check for vulnerable Makefile.in
36525         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
36526
36527 2010-01-27  Jim Meyering  <meyering@redhat.com>
36528
36529         ncftpput-ftp: clean up spaces
36530         * build-aux/ncftpput-ftp: Make Copyright line consistent.
36531         Remove trailing blanks.
36532
36533 2010-01-27  Simon Josefsson  <simon@josefsson.org>
36534
36535         * build-aux/git-version-gen: Fix copyright statement.
36536         * build-aux/gnupload: Likewise.
36537         * tests/test-arcfour.c: Likewise.
36538         * tests/test-arctwo.c: Likewise.
36539         * tests/test-count-one-bits.c: Likewise.
36540         * tests/test-crc.c: Likewise.
36541         * tests/test-des.c: Likewise.
36542         * tests/test-gc-arcfour.c: Likewise.
36543         * tests/test-gc-arctwo.c: Likewise.
36544         * tests/test-gc-des.c: Likewise.
36545         * tests/test-gc-hmac-md5.c: Likewise.
36546         * tests/test-gc-hmac-sha1.c: Likewise.
36547         * tests/test-gc-md2.c: Likewise.
36548         * tests/test-gc-md4.c: Likewise.
36549         * tests/test-gc-md5.c: Likewise.
36550         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36551         * tests/test-gc-rijndael.c: Likewise.
36552         * tests/test-gc-sha1.c: Likewise.
36553         * tests/test-gc.c: Likewise.
36554         * tests/test-gethostname.c: Likewise.
36555         * tests/test-gettimeofday.c: Likewise.
36556         * tests/test-hash.c: Likewise.
36557         * tests/test-hmac-md5.c: Likewise.
36558         * tests/test-hmac-sha1.c: Likewise.
36559         * tests/test-md2.c: Likewise.
36560         * tests/test-md4.c: Likewise.
36561         * tests/test-md5.c: Likewise.
36562         * tests/test-memchr.c: Likewise.
36563         * tests/test-memchr2.c: Likewise.
36564         * tests/test-memcmp.c: Likewise.
36565         * tests/test-memmem.c: Likewise.
36566         * tests/test-memrchr.c: Likewise.
36567         * tests/test-rawmemchr.c: Likewise.
36568         * tests/test-read-file.c: Likewise.
36569         * tests/test-rijndael.c: Likewise.
36570         * tests/test-sockets.c: Likewise.
36571         * tests/test-strchrnul.c: Likewise.
36572         * tests/test-strstr.c: Likewise.
36573         * tests/test-strtod.c: Likewise.
36574         * build-aux/ncftpput-ftp: Likewise.
36575
36576 2010-01-26  Eric Blake  <ebb9@byu.net>
36577
36578         ignore-value: update recommended header name
36579         * modules/ignore-value (Include): Only use <> for headers that
36580         exist in glibc.
36581
36582 2010-01-26  Jim Meyering  <meyering@redhat.com>
36583
36584         test-userspec.c: avoid compiler warnings
36585         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
36586         and "initialization discards qualifiers..." warnings.
36587         Put the first "uid" in its own scope, and make char* members "const".
36588
36589 2010-01-25  Bruno Haible  <bruno@clisp.org>
36590
36591         gnulib-tool: Make warning diagnostics consistent.
36592         * gnulib-tool (func_warning): New function.
36593         Use it everywhere where gnulib-tool produces output to stderr and it is
36594         not a fatal error.
36595
36596 2010-01-25  Bruno Haible  <bruno@clisp.org>
36597
36598         Fix test dependencies.
36599         * modules/xstrtol-tests (Depends-on): Add inttypes.
36600         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
36601
36602 2010-01-25 Pádraig Brady <P@draigBrady.com>
36603
36604         syntax-check: detect incorrect boolean macro values in config.h
36605         * modules/maintainer-makefile (configure.ac): Parameterize the location
36606         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
36607         The logic is from Eric Blake and the location indicated by Jim Meyering.
36608         Note the more natural CONFIG_HEADER name is prohibited by automake
36609         for backwards compatibility reasons.
36610         * top/maint.mk (sc_Wundef_boolean): New rule.
36611
36612 2010-01-25  Jim Meyering  <meyering@redhat.com>
36613
36614         bootstrap: detect MacOS 10.6's shasum, too
36615         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
36616         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
36617
36618 2010-01-23  Jim Meyering  <meyering@redhat.com>
36619
36620         xstrtoll: new module
36621         * modules/xstrtoll: New file.
36622         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
36623         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
36624         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
36625         ./configure fails if you use this module and lack "long long".
36626         * modules/xstrtoll-tests: New module.
36627         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
36628         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
36629         new init.sh-based test framework.
36630
36631 2010-01-24  Bruno Haible  <bruno@clisp.org>
36632
36633         Tests for module 'yn'.
36634         * modules/yn-tests: New file.
36635         * tests/test-yn.c: New file.
36636
36637         Tests for module 'y1'.
36638         * modules/y1-tests: New file.
36639         * tests/test-y1.c: New file.
36640
36641         Tests for module 'y0'.
36642         * modules/y0-tests: New file.
36643         * tests/test-y0.c: New file.
36644
36645         Tests for module 'tanh'.
36646         * modules/tanh-tests: New file.
36647         * tests/test-tanh.c: New file.
36648
36649         Tests for module 'tan'.
36650         * modules/tan-tests: New file.
36651         * tests/test-tan.c: New file.
36652
36653         Tests for module 'sqrt'.
36654         * modules/sqrt-tests: New file.
36655         * tests/test-sqrt.c: New file.
36656
36657         Tests for module 'sinh'.
36658         * modules/sinh-tests: New file.
36659         * tests/test-sinh.c: New file.
36660
36661         Tests for module 'sin'.
36662         * modules/sin-tests: New file.
36663         * tests/test-sin.c: New file.
36664
36665         Tests for module 'rint'.
36666         * modules/rint-tests: New file.
36667         * tests/test-rint.c: New file.
36668
36669         Tests for module 'remainder'.
36670         * modules/remainder-tests: New file.
36671         * tests/test-remainder.c: New file.
36672
36673         Tests for module 'pow'.
36674         * modules/pow-tests: New file.
36675         * tests/test-pow.c: New file.
36676
36677         Tests for module 'nextafter'.
36678         * modules/nextafter-tests: New file.
36679         * tests/test-nextafter.c: New file.
36680
36681         Tests for module 'modf'.
36682         * modules/modf-tests: New file.
36683         * tests/test-modf.c: New file.
36684
36685         Tests for module 'logb'.
36686         * modules/logb-tests: New file.
36687         * tests/test-logb.c: New file.
36688
36689         Tests for module 'log1p'.
36690         * modules/log1p-tests: New file.
36691         * tests/test-log1p.c: New file.
36692
36693         Tests for module 'log10'.
36694         * modules/log10-tests: New file.
36695         * tests/test-log10.c: New file.
36696
36697         Tests for module 'log'.
36698         * modules/log-tests: New file.
36699         * tests/test-log.c: New file.
36700
36701         Tests for module 'lgamma'.
36702         * modules/lgamma-tests: New file.
36703         * tests/test-lgamma.c: New file.
36704
36705         Tests for module 'ldexp'.
36706         * modules/ldexp-tests: New file.
36707         * tests/test-ldexp.c: New file.
36708
36709         Tests for module 'jn'.
36710         * modules/jn-tests: New file.
36711         * tests/test-jn.c: New file.
36712
36713         Tests for module 'j1'.
36714         * modules/j1-tests: New file.
36715         * tests/test-j1.c: New file.
36716
36717         Tests for module 'j0'.
36718         * modules/j0-tests: New file.
36719         * tests/test-j0.c: New file.
36720
36721         Tests for module 'hypot'.
36722         * modules/hypot-tests: New file.
36723         * tests/test-hypot.c: New file.
36724
36725         Tests for module 'fmod'.
36726         * modules/fmod-tests: New file.
36727         * tests/test-fmod.c: New file.
36728
36729         Tests for module 'fabs'.
36730         * modules/fabs-tests: New file.
36731         * tests/test-fabs.c: New file.
36732
36733         Tests for module 'exp'.
36734         * modules/exp-tests: New file.
36735         * tests/test-exp.c: New file.
36736
36737         Tests for module 'erfc'.
36738         * modules/erfc-tests: New file.
36739         * tests/test-erfc.c: New file.
36740
36741         Tests for module 'erf'.
36742         * modules/erf-tests: New file.
36743         * tests/test-erf.c: New file.
36744
36745         Tests for module 'cosh'.
36746         * modules/cosh-tests: New file.
36747         * tests/test-cosh.c: New file.
36748
36749         Tests for module 'cos'.
36750         * modules/cos-tests: New file.
36751         * tests/test-cos.c: New file.
36752
36753         Tests for module 'copysign'.
36754         * modules/copysign-tests: New file.
36755         * tests/test-copysign.c: New file.
36756
36757         Tests for module 'cbrt'.
36758         * modules/cbrt-tests: New file.
36759         * tests/test-cbrt.c: New file.
36760
36761         Tests for module 'atan2'.
36762         * modules/atan2-tests: New file.
36763         * tests/test-atan2.c: New file.
36764
36765         Tests for module 'atan'.
36766         * modules/atan-tests: New file.
36767         * tests/test-atan.c: New file.
36768
36769         Tests for module 'asin'.
36770         * modules/asin-tests: New file.
36771         * tests/test-asin.c: New file.
36772
36773         Tests for module 'acos'.
36774         * modules/acos-tests: New file.
36775         * tests/test-acos.c: New file.
36776
36777 2010-01-24  Bruno Haible  <bruno@clisp.org>
36778
36779         Fix tests for common <math.h> functions.
36780         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
36781         code snippet that references the function pointer, rather than merely
36782         calling the function. Substitute the FUNC_LIBM variable.
36783         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
36784         * modules/acos (configure.ac): Likewise.
36785         * modules/asin (configure.ac): Likewise.
36786         * modules/atan (configure.ac): Likewise.
36787         * modules/atan2 (configure.ac): Likewise.
36788         * modules/cbrt (configure.ac): Likewise.
36789         * modules/copysign (configure.ac): Likewise.
36790         * modules/cos (configure.ac): Likewise.
36791         * modules/cosh (configure.ac): Likewise.
36792         * modules/erf (configure.ac): Likewise.
36793         * modules/erfc (configure.ac): Likewise.
36794         * modules/exp (configure.ac): Likewise.
36795         * modules/fabs (configure.ac): Likewise.
36796         * modules/fmod (configure.ac): Likewise.
36797         * modules/hypot (configure.ac): Likewise.
36798         * modules/j0 (configure.ac): Likewise.
36799         * modules/j1 (configure.ac): Likewise.
36800         * modules/jn (configure.ac): Likewise.
36801         * modules/ldexp (configure.ac): Likewise.
36802         * modules/lgamma (configure.ac): Likewise.
36803         * modules/log (configure.ac): Likewise.
36804         * modules/log10 (configure.ac): Likewise.
36805         * modules/log1p (configure.ac): Likewise.
36806         * modules/logb (configure.ac): Likewise.
36807         * modules/modf (configure.ac): Likewise.
36808         * modules/nextafter (configure.ac): Likewise.
36809         * modules/pow (configure.ac): Likewise.
36810         * modules/remainder (configure.ac): Likewise.
36811         * modules/rint (configure.ac): Likewise.
36812         * modules/sin (configure.ac): Likewise.
36813         * modules/sinh (configure.ac): Likewise.
36814         * modules/tan (configure.ac): Likewise.
36815         * modules/tanh (configure.ac): Likewise.
36816         * modules/y0 (configure.ac): Likewise.
36817         * modules/y1 (configure.ac): Likewise.
36818         * modules/yn (configure.ac): Likewise.
36819
36820 2010-01-24  Bruno Haible  <bruno@clisp.org>
36821
36822         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
36823         * tests/test-acosl.c (x): New variable.
36824         (main): Store argument in x and fetch it from x.
36825         * tests/test-asinl.c (x): New variable.
36826         (main): Store argument in x and fetch it from x.
36827         * tests/test-atanl.c (x): New variable.
36828         (main): Store argument in x and fetch it from x.
36829         * tests/test-cosl.c (x): New variable.
36830         (main): Store argument in x and fetch it from x.
36831         * tests/test-expl.c (x): New variable.
36832         (main): Store argument in x and fetch it from x.
36833         * tests/test-logl.c (x): New variable.
36834         (main): Store argument in x and fetch it from x.
36835         * tests/test-sinl.c (x): New variable.
36836         (main): Store argument in x and fetch it from x.
36837         * tests/test-sqrtl.c (x): New variable.
36838         (main): Store argument in x and fetch it from x.
36839         * tests/test-tanl.c (x): New variable.
36840         (main): Store argument in x and fetch it from x.
36841
36842 2010-01-24  Bruno Haible  <bruno@clisp.org>
36843
36844         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
36845         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
36846         assignments to the initial TESTS_ENVIRONMENT.
36847         * doc/gnulib.texi (Unit test modules): Document it.
36848         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
36849         TESTS_ENVIRONMENT.
36850         * modules/btowc-tests (Makefile.am): Likewise.
36851         * modules/c-stack-tests (Makefile.am): Likewise.
36852         * modules/c-strcase-tests (Makefile.am): Likewise.
36853         * modules/copy-file-tests (Makefile.am): Likewise.
36854         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
36855         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
36856         * modules/mbrtowc-tests (Makefile.am): Likewise.
36857         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36858         * modules/mbscasestr-tests (Makefile.am): Likewise.
36859         * modules/mbschr-tests (Makefile.am): Likewise.
36860         * modules/mbscspn-tests (Makefile.am): Likewise.
36861         * modules/mbsinit-tests (Makefile.am): Likewise.
36862         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36863         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
36864         * modules/mbspbrk-tests (Makefile.am): Likewise.
36865         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36866         * modules/mbsrchr-tests (Makefile.am): Likewise.
36867         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
36868         * modules/mbsspn-tests (Makefile.am): Likewise.
36869         * modules/mbsstr-tests (Makefile.am): Likewise.
36870         * modules/nl_langinfo-tests (Makefile.am): Likewise.
36871         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
36872         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36873         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36874         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36875         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36876         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
36877         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36878         * modules/wcrtomb-tests (Makefile.am): Likewise.
36879         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
36880         * modules/wcsrtombs-tests (Makefile.am): Likewise.
36881         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
36882         assignments from TESTS_ENVIRONMENT.
36883         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
36884         augmentation.
36885         * modules/argp-version-etc-tests (Makefile.am): Likewise.
36886         * modules/atexit-tests (Makefile.am): Likewise.
36887         * modules/binary-io-tests (Makefile.am): Likewise.
36888         * modules/closein-tests (Makefile.am): Likewise.
36889         * modules/dprintf-posix-tests (Makefile.am): Likewise.
36890         * modules/exclude-tests (Makefile.am): Likewise.
36891         * modules/fflush-tests (Makefile.am): Likewise.
36892         * modules/fpending-tests (Makefile.am): Likewise.
36893         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36894         * modules/freadahead-tests (Makefile.am): Likewise.
36895         * modules/freadptr-tests (Makefile.am): Likewise.
36896         * modules/freadseek-tests (Makefile.am): Likewise.
36897         * modules/fseek-tests (Makefile.am): Likewise.
36898         * modules/fseeko-tests (Makefile.am): Likewise.
36899         * modules/ftell-tests (Makefile.am): Likewise.
36900         * modules/ftello-tests (Makefile.am): Likewise.
36901         * modules/idpriv-drop-tests (Makefile.am): Likewise.
36902         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
36903         * modules/lseek-tests (Makefile.am): Likewise.
36904         * modules/parse-duration-tests (Makefile.am): Likewise.
36905         * modules/perror-tests (Makefile.am): Likewise.
36906         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
36907         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
36908         * modules/pipe-tests (Makefile.am): Likewise.
36909         * modules/pread-tests (Makefile.am): Likewise.
36910         * modules/printf-posix-tests (Makefile.am): Likewise.
36911         * modules/select-tests (Makefile.am): Likewise.
36912         * modules/sigpipe-tests (Makefile.am): Likewise.
36913         * modules/tsearch-tests (Makefile.am): Likewise.
36914         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
36915         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
36916         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36917         * modules/uniwidth/width-tests (Makefile.am): Likewise.
36918         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
36919         * modules/version-etc-tests (Makefile.am): Likewise.
36920         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36921         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36922         * modules/xalloc-die-tests (Makefile.am): Likewise.
36923         * modules/xprintf-posix-tests (Makefile.am): Likewise.
36924         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36925         * modules/xstrtol-tests (Makefile.am): Likewise.
36926         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36927         * modules/yesno-tests (Makefile.am): Likewise.
36928         Suggested by Jim Meyering.
36929
36930 2010-01-24  Bruno Haible  <bruno@clisp.org>
36931
36932         More documentation.
36933         * doc/gnulib.texi (Writing modules): New chapter.
36934         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
36935         the new chapter.
36936
36937 2010-01-24  Jim Meyering  <meyering@redhat.com>
36938
36939         maint.mk: do not prepend "./" after filtering
36940         * top/maint.mk (_prepend_srcdir_prefix): New variable
36941         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
36942         "./" when $(srcdir) is ".".
36943
36944         define STREQ(a,b) consistently, removing useless parentheses
36945         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
36946         since the only risk is that "a" or "b" contains an unparenthesized
36947         comma, but if either did that, STREQ would have 3 or more arguments.
36948         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
36949         * lib/fts.c (STREQ): Remove unnecessary parentheses.
36950         * lib/hash-triple.c (STREQ): Likewise.
36951         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
36952         * lib/getugroups.c (STREQ): Likewise.
36953
36954 2010-01-23  Jim Meyering  <meyering@redhat.com>
36955
36956         maint.mk: fix syntax-check in a non-srcdir build directory
36957         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
36958         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
36959
36960 2010-01-22  Jim Meyering  <meyering@redhat.com>
36961
36962         userspec: add unit tests
36963         * tests/test-userspec.c: New file.
36964         * modules/userspec-tests: Likewise.
36965
36966 2010-01-21  Jim Meyering  <meyering@redhat.com>
36967
36968         maint.mk: handle source file names containing "." robustly
36969         * top/maint.mk (_dot_escaped_srcdir): Define.
36970         (VC_LIST): Use it in LHS of sed substitution.
36971
36972 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
36973
36974         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
36975         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
36976         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
36977         from a non-srcdir build.
36978
36979 2010-01-20  Eric Blake  <ebb9@byu.net>
36980
36981         warn-on-use: use instead of link-warning
36982         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
36983         * modules/unistd (Depends-on, Makefile.am): Likewise.
36984         * modules/arpa_inet (Depends-on): Replace link-warning with
36985         warn-on-use.
36986         (Makefile.am): Update rules accordingly.
36987         * modules/ctype (Depends-on, Makefile.am): Likewise.
36988         * modules/dirent (Depends-on, Makefile.am): Likewise.
36989         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
36990         * modules/inttypes (Depends-on, Makefile.am): Likewise.
36991         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36992         * modules/locale (Depends-on, Makefile.am): Likewise.
36993         * modules/math (Depends-on, Makefile.am): Likewise.
36994         * modules/search (Depends-on, Makefile.am): Likewise.
36995         * modules/signal (Depends-on, Makefile.am): Likewise.
36996         * modules/spawn (Depends-on, Makefile.am): Likewise.
36997         * modules/stdlib (Depends-on, Makefile.am): Likewise.
36998         * modules/string (Depends-on, Makefile.am): Likewise.
36999         * modules/strings (Depends-on, Makefile.am): Likewise.
37000         * modules/sys_file (Depends-on, Makefile.am): Likewise.
37001         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
37002         * modules/sys_select (Depends-on, Makefile.am): Likewise.
37003         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
37004         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
37005         * modules/sys_times (Depends-on, Makefile.am): Likewise.
37006         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37007         * modules/wchar (Depends-on, Makefile.am): Likewise.
37008         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
37009         should be poisoned.
37010         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
37011         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
37012         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
37013         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37014         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37015         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
37016         * m4/math_h.m4 (gl_MATH_H): Likewise.
37017         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37018         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
37019         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37020         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
37021         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
37022         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
37023         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
37024         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
37025         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
37026         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37027         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37028         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37029         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37030         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37031         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37032         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37033         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
37034         GL_LINK_WARNING.
37035         * lib/ctype.in.h: Likewise.
37036         * lib/dirent.in.h: Likewise.
37037         * lib/fcntl.in.h: Likewise.
37038         * lib/inttypes.in.h: Likewise.
37039         * lib/langinfo.in.h: Likewise.
37040         * lib/locale.in.h: Likewise.
37041         * lib/math.in.h: Likewise.
37042         * lib/search.in.h: Likewise.
37043         * lib/signal.in.h: Likewise.
37044         * lib/spawn.in.h: Likewise.
37045         * lib/stdio.in.h: Likewise.
37046         * lib/stdlib.in.h: Likewise.
37047         * lib/string.in.h: Likewise.
37048         * lib/strings.in.h: Likewise.
37049         * lib/sys_file.in.h: Likewise.
37050         * lib/sys_ioctl.in.h: Likewise.
37051         * lib/sys_select.in.h: Likewise.
37052         * lib/sys_socket.in.h: Likewise.
37053         * lib/sys_stat.in.h: Likewise.
37054         * lib/sys_times.in.h: Likewise.
37055         * lib/sys_utsname.in.h: Likewise.
37056         * lib/unistd.in.h: Likewise.
37057         * lib/wchar.in.h: Likewise.
37058
37059 2010-01-20  Bruno Haible  <bruno@clisp.org>
37060
37061         Avoid duplicate -lm.
37062         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
37063         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
37064         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
37065         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
37066         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
37067         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
37068         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
37069         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
37070         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
37071         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
37072         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
37073         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
37074         Reported by Paolo Bonzini.
37075
37076 2010-01-19  Bruno Haible  <bruno@clisp.org>
37077
37078         langinfo, nl_langinfo: Relicense under LGPLv2+.
37079         * modules/langinfo (License): Change to LGPLv2+.
37080         * modules/nl_langinfo (License): Likewise.
37081         Patch by David Lutterkort <lutter@redhat.com>.
37082
37083 2010-01-19  Bruno Haible  <bruno@clisp.org>
37084
37085         Avoid compilation error with cc on OSF/1 5.1.
37086         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
37087         statement, not before.
37088         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37089
37090 2010-01-18  Bruno Haible  <bruno@clisp.org>
37091
37092         Avoid a link error due to the __printf__ symbol.
37093         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
37094         and 2.6.x.
37095         (__format__, __printf__): Remove definitions.
37096         * lib/argp-fmtstream.h: Likewise.
37097         * lib/argp.h: Likewise.
37098         * lib/error.h: Likewise.
37099         * lib/vasnprintf.h: Likewise.
37100         * lib/xprintf.h: Likewise.
37101         * lib/xvasprintf.h: Likewise.
37102         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37103
37104 2010-01-18  Bruno Haible  <bruno@clisp.org>
37105
37106         Tests for module 'tanl'.
37107         * modules/tanl-tests: New file.
37108         * tests/test-tanl.c: New file.
37109
37110         Tests for module 'sqrtl'.
37111         * modules/sqrtl-tests: New file.
37112         * tests/test-sqrtl.c: New file.
37113
37114         Tests for module 'sinl'.
37115         * modules/sinl-tests: New file.
37116         * tests/test-sinl.c: New file.
37117
37118         Tests for module 'logl'.
37119         * modules/logl-tests: New file.
37120         * tests/test-logl.c: New file.
37121
37122         Tests for module 'expl'.
37123         * modules/expl-tests: New file.
37124         * tests/test-expl.c: New file.
37125
37126         Tests for module 'cosl'.
37127         * modules/cosl-tests: New file.
37128         * tests/test-cosl.c: New file.
37129
37130         Tests for module 'atanl'.
37131         * modules/atanl-tests: New file.
37132         * tests/test-atanl.c: New file.
37133
37134         Tests for module 'asinl'.
37135         * modules/asinl-tests: New file.
37136         * tests/test-asinl.c: New file.
37137
37138         Tests for module 'acosl'.
37139         * modules/acosl-tests: New file.
37140         * tests/test-acosl.c: New file.
37141
37142         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37143         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37144         tanl): Use the standard gnulib idiom.
37145         * lib/cosl.c: Don't include trigl.c and sincosl.c.
37146         * lib/sinl.c: Likewise.
37147         * lib/tanl.c: Don't include trigl.c.
37148         (kernel_tanl): Make static.
37149         * lib/sincosl.c: Include trigl.h first.
37150         * lib/trigl.c: Likewise.
37151         * m4/acosl.m4: New file.
37152         * m4/asinl.m4: New file.
37153         * m4/atanl.m4: New file.
37154         * m4/cosl.m4: New file.
37155         * m4/expl.m4: New file.
37156         * m4/logl.m4: New file.
37157         * m4/sinl.m4: New file.
37158         * m4/sqrtl.m4: New file.
37159         * m4/tanl.m4: New file.
37160         * m4/mathl.m4: Remove file.
37161         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
37162         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37163         Don't initialize GNULIB_MATHL.
37164         * modules/acosl: New file.
37165         * modules/asinl: New file.
37166         * modules/atanl: New file.
37167         * modules/cosl: New file.
37168         * modules/expl: New file.
37169         * modules/logl: New file.
37170         * modules/sinl: New file.
37171         * modules/sqrtl: New file.
37172         * modules/tanl: New file.
37173         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
37174         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
37175         substitute GNULIB_MATHL.
37176         * modules/mathl: Rewritten.
37177         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
37178         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
37179         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
37180         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
37181         * doc/posix-functions/expl.texi: Mention the 'expl' module.
37182         * doc/posix-functions/logl.texi: Mention the 'logl' module.
37183         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
37184         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
37185         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
37186
37187 2010-01-18  Bruno Haible  <bruno@clisp.org>
37188
37189         sqrt: Make gl_FUNC_SQRT requirable.
37190         * m4/sqrt.m4: New file.
37191         * modules/sqrt (Files): Add it.
37192         (configure.ac): Invoke gl_FUNC_SQRT.
37193
37194 2010-01-18  Bruno Haible  <bruno@clisp.org>
37195
37196         New modules for common <math.h> functions.
37197         * m4/mathfunc.m4: New file.
37198         * modules/acos: New file.
37199         * modules/asin: New file.
37200         * modules/atan: New file.
37201         * modules/atan2: New file.
37202         * modules/cbrt: New file.
37203         * modules/copysign: New file.
37204         * modules/cos: New file.
37205         * modules/cosh: New file.
37206         * modules/erf: New file.
37207         * modules/erfc: New file.
37208         * modules/exp: New file.
37209         * modules/fabs: New file.
37210         * modules/fmod: New file.
37211         * modules/hypot: New file.
37212         * modules/j0: New file.
37213         * modules/j1: New file.
37214         * modules/jn: New file.
37215         * modules/ldexp: New file.
37216         * modules/lgamma: New file.
37217         * modules/log: New file.
37218         * modules/log10: New file.
37219         * modules/log1p: New file.
37220         * modules/logb: New file.
37221         * modules/modf: New file.
37222         * modules/nextafter: New file.
37223         * modules/pow: New file.
37224         * modules/remainder: New file.
37225         * modules/rint: New file.
37226         * modules/sin: New file.
37227         * modules/sinh: New file.
37228         * modules/sqrt: New file.
37229         * modules/tan: New file.
37230         * modules/tanh: New file.
37231         * modules/y0: New file.
37232         * modules/y1: New file.
37233         * modules/yn: New file.
37234         * doc/posix-functions/acos.texi: Mention the 'acos' module.
37235         * doc/posix-functions/asin.texi: Mention the 'asin' module.
37236         * doc/posix-functions/atan.texi: Mention the 'atan' module.
37237         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
37238         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
37239         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
37240         * doc/posix-functions/cos.texi: Mention the 'cos' module.
37241         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
37242         * doc/posix-functions/erf.texi: Mention the 'erf' module.
37243         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
37244         * doc/posix-functions/exp.texi: Mention the 'exp' module.
37245         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
37246         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
37247         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
37248         * doc/posix-functions/j0.texi: Mention the 'j0' module.
37249         * doc/posix-functions/j1.texi: Mention the 'j1' module.
37250         * doc/posix-functions/jn.texi: Mention the 'jn' module.
37251         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
37252         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
37253         * doc/posix-functions/log.texi: Mention the 'log' module.
37254         * doc/posix-functions/log10.texi: Mention the 'log10' module.
37255         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
37256         * doc/posix-functions/logb.texi: Mention the 'logb' module.
37257         * doc/posix-functions/modf.texi: Mention the 'modf' module.
37258         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
37259         * doc/posix-functions/pow.texi: Mention the 'pow' module.
37260         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
37261         * doc/posix-functions/rint.texi: Mention the 'rint' module.
37262         * doc/posix-functions/sin.texi: Mention the 'sin' module.
37263         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
37264         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
37265         * doc/posix-functions/tan.texi: Mention the 'tan' module.
37266         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
37267         * doc/posix-functions/y0.texi: Mention the 'y0' module.
37268         * doc/posix-functions/y1.texi: Mention the 'y1' module.
37269         * doc/posix-functions/yn.texi: Mention the 'yn' module.
37270
37271 2010-01-18  Jim Meyering  <meyering@redhat.com>
37272
37273         ignore-value: relax license to LGPLv2+
37274         * modules/ignore-value (License): Relax to LGPLv2+.
37275
37276         getdate: don't leak when TZ contains two or more '"'s
37277         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
37278         double quote in TZ after the first one.
37279
37280         readtokens: do not leak internal token_lengths buffer
37281         * lib/readtokens.c (readtokens): Free the local, lengths,
37282         when the supplied "token_lengths" parameter is NULL.
37283
37284 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37285
37286         Fix a couple of missing LIBTHREAD link failures on AIX.
37287         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
37288         $(LIBTHREAD).
37289         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
37290
37291         Link test-poll against INET_PTON_LIB.
37292         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
37293         for inet_pton on Solaris 10.
37294
37295 2010-01-17  Bruno Haible  <bruno@clisp.org>
37296
37297         unistdio/*-sprintf: Fix typo in module description.
37298         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
37299         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
37300         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
37301         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
37302         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
37303         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
37304         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
37305         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37306
37307 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37308
37309         gnulib-tool: fix filelist for AIX, HP-UX ksh.
37310         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
37311         variables in shell case patterns, for AIX and HP-UX ksh.
37312
37313         Split large sed scripts, for HP-UX sed.
37314         * modules/stdio: Split sed scripts around 50 sed commands,
37315         to avoid HP-UX limit of 99 commands, in the near future.
37316         * modules/string: Likewise.
37317         * modules/unistd: Likewise.
37318
37319         gnulib-tool: avoid writing in the current directory.
37320         * gnulib-tool (func_emit_lib_Makefile_am)
37321         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
37322         not in the current directory, so concurrent gnulib-tool
37323         instances do not interfere.
37324
37325 2010-01-16  Jim Meyering  <meyering@redhat.com>
37326
37327         doc: update users.txt
37328         * users.txt: Add grep.
37329         (diffutils, gzip): Update URLs.
37330
37331 2010-01-12  Bruno Haible  <bruno@clisp.org>
37332
37333         posix_spawn: Avoid test failure on Cygwin.
37334         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
37335         characters.
37336         Reported by Simon Josefsson.
37337
37338 2010-01-12  Bruno Haible  <bruno@clisp.org>
37339
37340         * tests/test-cond.c (main): When skipping the test, show the reason.
37341
37342 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37343
37344         * lib/striconv.c (str_cd_iconv): Avoid if before free.
37345
37346 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37347
37348         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
37349         VC_LIST_ALWAYS_EXCLUDE_REGEX.
37350
37351 2010-01-12  Eric Blake  <ebb9@byu.net>
37352
37353         build: guarantee AS_VAR_IF
37354         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
37355         (gl_AS_VAR_IF): Move...
37356         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
37357         Reported by Simon Josefsson.
37358
37359 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37360
37361         * lib/stdio.in.h: Fix typo.
37362
37363 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37364
37365         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
37366         libgpg-error.
37367
37368 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37369
37370         * tests/test-xalloc-die.sh: Use $EXEEXT.
37371
37372 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37373             Bruno Haible  <bruno@clisp.org>
37374
37375         getlogin, getlogin_r: Avoid test failure.
37376         * tests/test-getlogin.c: Include <stdio.h>.
37377         (main): Skip the test when the function fails because stdin is not a
37378         tty.
37379         * tests/test-getlogin_r.c: Include <stdio.h>.
37380         (main): Skip the test when the function fails because stdin is not a
37381         tty.
37382
37383 2010-01-11  Eric Blake  <ebb9@byu.net>
37384
37385         tests: avoid more large file warnings
37386         * tests/test-fflush.c: Avoid warning about ftell use.
37387         * tests/test-fseek.c: Avoid warning about fseek use.
37388
37389 2010-01-10  Bruno Haible  <bruno@clisp.org>
37390
37391         nproc: Work better on Linux when /proc and /sys are not mounted.
37392         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
37393         as lower bound when, on glibc/Linux systems,
37394         sysconf (_SC_NPROCESSORS_CONF) returns 1.
37395         Suggested by Pádraig Brady <P@draigbrady.com>.
37396         Reported by Dmitry V. Levin <ldv@altlinux.org>.
37397
37398         nproc: Refactor.
37399         * lib/nproc.c (num_processors_via_affinity_mask): New function,
37400         extracted from num_processors.
37401         (num_processors): Call it.
37402
37403 2010-01-11  Jim Meyering  <meyering@redhat.com>
37404
37405         utimecmp: avoid new warning from upcoming gcc-4.5.0
37406         * lib/utimecmp.c (BILLION): Define using #define rather than an
37407         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
37408
37409 2010-01-11  Eric Blake  <ebb9@byu.net>
37410
37411         math: add portability warnings for classification macros
37412         * modules/math (Depends-on): Add warn-on-use.
37413         (Makefile.am): Provide new substitutions.
37414         * m4/math_h.m4 (gl_MATH_H): Require inline.
37415         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
37416         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
37417         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
37418         implement warnings.
37419
37420         unistd: warn on use of environ without module
37421         * modules/unistd (Depends-on): Add warn-on-use.
37422         (Makefile.am): Provide new substitutions.
37423         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
37424         * lib/unistd.in.h (environ): Wrap with a warning helper function.
37425
37426         stdio: warn on suspicious uses
37427         * modules/stdio (Depends-on): Add warn-on-use.
37428         (Makefile.am): Provide new substitutions.
37429         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
37430         fseeko.
37431         * lib/stdio.in.h (gets): Always warn on use.
37432         (fseek, ftell): Adjust when warnings are issued, and honor
37433         _GL_NO_LARGE_FILES as a way to silence the warning.
37434         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
37435         any warning about large file offsets.
37436         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
37437         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
37438         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
37439         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
37440         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
37441         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
37442         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
37443         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
37444
37445         warn-on-use: new module
37446         * modules/warn-on-use: New file.
37447         * build-aux/warn-on-use.h: Likewise.
37448         * m4/warn-on-use.m4: Likewise.
37449         * MODULES.html.sh (Support for building): Mention it.
37450
37451 2010-01-10  Bruno Haible  <bruno@clisp.org>
37452
37453         Tests for module 'unistr/u32-strdup'.
37454         * modules/unistr/u32-strdup-tests: New file.
37455         * tests/unistr/test-u32-strdup.c: New file.
37456
37457         Tests for module 'unistr/u16-strdup'.
37458         * modules/unistr/u16-strdup-tests: New file.
37459         * tests/unistr/test-u16-strdup.c: New file.
37460
37461         Tests for module 'unistr/u8-strdup'.
37462         * modules/unistr/u8-strdup-tests: New file.
37463         * tests/unistr/test-u8-strdup.c: New file.
37464         * tests/unistr/test-strdup.h: New file.
37465
37466         Tests for module 'unistr/u32-strncmp'.
37467         * modules/unistr/u32-strncmp-tests: New file.
37468         * tests/unistr/test-u32-strncmp.c: New file.
37469
37470         Tests for module 'unistr/u16-strncmp'.
37471         * modules/unistr/u16-strncmp-tests: New file.
37472         * tests/unistr/test-u16-strncmp.c: New file.
37473
37474         Tests for module 'unistr/u8-strncmp'.
37475         * modules/unistr/u8-strncmp-tests: New file.
37476         * tests/unistr/test-u8-strncmp.c: New file.
37477         * tests/unistr/test-strncmp.h: New file.
37478
37479         Tests for module 'unistr/u32-strcoll'.
37480         * modules/unistr/u32-strcoll-tests: New file.
37481         * tests/unistr/test-u32-strcoll.c: New file.
37482
37483         Tests for module 'unistr/u16-strcoll'.
37484         * modules/unistr/u16-strcoll-tests: New file.
37485         * tests/unistr/test-u16-strcoll.c: New file.
37486
37487         Tests for module 'unistr/u8-strcoll'.
37488         * modules/unistr/u8-strcoll-tests: New file.
37489         * tests/unistr/test-u8-strcoll.c: New file.
37490
37491         Tests for module 'unistr/u32-strcmp'.
37492         * modules/unistr/u32-strcmp-tests: New file.
37493         * tests/unistr/test-u32-strcmp.c: New file.
37494         * tests/unistr/test-u32-strcmp.h: New file.
37495
37496         Tests for module 'unistr/u16-strcmp'.
37497         * modules/unistr/u16-strcmp-tests: New file.
37498         * tests/unistr/test-u16-strcmp.c: New file.
37499         * tests/unistr/test-u16-strcmp.h: New file.
37500
37501         Tests for module 'unistr/u8-strcmp'.
37502         * modules/unistr/u8-strcmp-tests: New file.
37503         * tests/unistr/test-u8-strcmp.c: New file.
37504         * tests/unistr/test-u8-strcmp.h: New file.
37505         * tests/unistr/test-strcmp.h: New file.
37506
37507         Tests for module 'unistr/u32-strncat'.
37508         * modules/unistr/u32-strncat-tests: New file.
37509         * tests/unistr/test-u32-strncat.c: New file.
37510
37511         Tests for module 'unistr/u16-strncat'.
37512         * modules/unistr/u16-strncat-tests: New file.
37513         * tests/unistr/test-u16-strncat.c: New file.
37514
37515         Tests for module 'unistr/u8-strncat'.
37516         * modules/unistr/u8-strncat-tests: New file.
37517         * tests/unistr/test-u8-strncat.c: New file.
37518         * tests/unistr/test-strncat.h: New file.
37519
37520         Tests for module 'unistr/u32-strcat'.
37521         * modules/unistr/u32-strcat-tests: New file.
37522         * tests/unistr/test-u32-strcat.c: New file.
37523
37524         Tests for module 'unistr/u16-strcat'.
37525         * modules/unistr/u16-strcat-tests: New file.
37526         * tests/unistr/test-u16-strcat.c: New file.
37527
37528         Tests for module 'unistr/u8-strcat'.
37529         * modules/unistr/u8-strcat-tests: New file.
37530         * tests/unistr/test-u8-strcat.c: New file.
37531         * tests/unistr/test-strcat.h: New file.
37532
37533         Tests for module 'unistr/u32-stpncpy'.
37534         * modules/unistr/u32-stpncpy-tests: New file.
37535         * tests/unistr/test-u32-stpncpy.c: New file.
37536
37537         Tests for module 'unistr/u16-stpncpy'.
37538         * modules/unistr/u16-stpncpy-tests: New file.
37539         * tests/unistr/test-u16-stpncpy.c: New file.
37540
37541         Tests for module 'unistr/u8-stpncpy'.
37542         * modules/unistr/u8-stpncpy-tests: New file.
37543         * tests/unistr/test-u8-stpncpy.c: New file.
37544         * tests/unistr/test-stpncpy.h: New file.
37545
37546         Tests for module 'unistr/u32-strncpy'.
37547         * modules/unistr/u32-strncpy-tests: New file.
37548         * tests/unistr/test-u32-strncpy.c: New file.
37549
37550         Tests for module 'unistr/u16-strncpy'.
37551         * modules/unistr/u16-strncpy-tests: New file.
37552         * tests/unistr/test-u16-strncpy.c: New file.
37553
37554         Tests for module 'unistr/u8-strncpy'.
37555         * modules/unistr/u8-strncpy-tests: New file.
37556         * tests/unistr/test-u8-strncpy.c: New file.
37557         * tests/unistr/test-strncpy.h: New file.
37558
37559         Tests for module 'unistr/u32-stpcpy'.
37560         * modules/unistr/u32-stpcpy-tests: New file.
37561         * tests/unistr/test-u32-stpcpy.c: New file.
37562
37563         Tests for module 'unistr/u16-stpcpy'.
37564         * modules/unistr/u16-stpcpy-tests: New file.
37565         * tests/unistr/test-u16-stpcpy.c: New file.
37566
37567         Tests for module 'unistr/u8-stpcpy'.
37568         * modules/unistr/u8-stpcpy-tests: New file.
37569         * tests/unistr/test-u8-stpcpy.c: New file.
37570         * tests/unistr/test-stpcpy.h: New file.
37571
37572         Tests for module 'unistr/u32-strcpy'.
37573         * modules/unistr/u32-strcpy-tests: New file.
37574         * tests/unistr/test-u32-strcpy.c: New file.
37575
37576         Tests for module 'unistr/u16-strcpy'.
37577         * modules/unistr/u16-strcpy-tests: New file.
37578         * tests/unistr/test-u16-strcpy.c: New file.
37579
37580         Tests for module 'unistr/u8-strcpy'.
37581         * modules/unistr/u8-strcpy-tests: New file.
37582         * tests/unistr/test-u8-strcpy.c: New file.
37583         * tests/unistr/test-strcpy.h: New file.
37584
37585         Tests for module 'unistr/u32-strnlen'.
37586         * modules/unistr/u32-strnlen-tests: New file.
37587         * tests/unistr/test-u32-strnlen.c: New file.
37588
37589         Tests for module 'unistr/u16-strnlen'.
37590         * modules/unistr/u16-strnlen-tests: New file.
37591         * tests/unistr/test-u16-strnlen.c: New file.
37592
37593         Tests for module 'unistr/u8-strnlen'.
37594         * modules/unistr/u8-strnlen-tests: New file.
37595         * tests/unistr/test-u8-strnlen.c: New file.
37596         * tests/unistr/test-strnlen.h: New file.
37597
37598         Tests for module 'unistr/u32-strlen'.
37599         * modules/unistr/u32-strlen-tests: New file.
37600         * tests/unistr/test-u32-strlen.c: New file.
37601
37602         Tests for module 'unistr/u16-strlen'.
37603         * modules/unistr/u16-strlen-tests: New file.
37604         * tests/unistr/test-u16-strlen.c: New file.
37605
37606         Tests for module 'unistr/u8-strlen'.
37607         * modules/unistr/u8-strlen-tests: New file.
37608         * tests/unistr/test-u8-strlen.c: New file.
37609
37610         Tests for module 'unistr/u32-prev'.
37611         * modules/unistr/u32-prev-tests: New file.
37612         * tests/unistr/test-u32-prev.c: New file.
37613
37614         Tests for module 'unistr/u16-prev'.
37615         * modules/unistr/u16-prev-tests: New file.
37616         * tests/unistr/test-u16-prev.c: New file.
37617
37618         Tests for module 'unistr/u8-prev'.
37619         * modules/unistr/u8-prev-tests: New file.
37620         * tests/unistr/test-u8-prev.c: New file.
37621
37622         Tests for module 'unistr/u32-next'.
37623         * modules/unistr/u32-next-tests: New file.
37624         * tests/unistr/test-u32-next.c: New file.
37625
37626         Tests for module 'unistr/u16-next'.
37627         * modules/unistr/u16-next-tests: New file.
37628         * tests/unistr/test-u16-next.c: New file.
37629
37630         Tests for module 'unistr/u8-next'.
37631         * modules/unistr/u8-next-tests: New file.
37632         * tests/unistr/test-u8-next.c: New file.
37633
37634         Tests for module 'unistr/u32-strmbtouc'.
37635         * modules/unistr/u32-strmbtouc-tests: New file.
37636         * tests/unistr/test-u32-strmbtouc.c: New file.
37637
37638         Tests for module 'unistr/u16-strmbtouc'.
37639         * modules/unistr/u16-strmbtouc-tests: New file.
37640         * tests/unistr/test-u16-strmbtouc.c: New file.
37641
37642         Tests for module 'unistr/u8-strmbtouc'.
37643         * modules/unistr/u8-strmbtouc-tests: New file.
37644         * tests/unistr/test-u8-strmbtouc.c: New file.
37645
37646         Tests for module 'unistr/u32-strmblen'.
37647         * modules/unistr/u32-strmblen-tests: New file.
37648         * tests/unistr/test-u32-strmblen.c: New file.
37649
37650         Tests for module 'unistr/u16-strmblen'.
37651         * modules/unistr/u16-strmblen-tests: New file.
37652         * tests/unistr/test-u16-strmblen.c: New file.
37653
37654         Tests for module 'unistr/u8-strmblen'.
37655         * modules/unistr/u8-strmblen-tests: New file.
37656         * tests/unistr/test-u8-strmblen.c: New file.
37657
37658         Tests for module 'unistr/u32-cpy-alloc'.
37659         * modules/unistr/u32-cpy-alloc-tests: New file.
37660         * tests/unistr/test-u32-cpy-alloc.c: New file.
37661
37662         Tests for module 'unistr/u16-cpy-alloc'.
37663         * modules/unistr/u16-cpy-alloc-tests: New file.
37664         * tests/unistr/test-u16-cpy-alloc.c: New file.
37665
37666         Tests for module 'unistr/u8-cpy-alloc'.
37667         * modules/unistr/u8-cpy-alloc-tests: New file.
37668         * tests/unistr/test-u8-cpy-alloc.c: New file.
37669         * tests/unistr/test-cpy-alloc.h: New file.
37670
37671         Tests for module 'unistr/u32-mbsnlen'.
37672         * modules/unistr/u32-mbsnlen-tests: New file.
37673         * tests/unistr/test-u32-mbsnlen.c: New file.
37674
37675         Tests for module 'unistr/u16-mbsnlen'.
37676         * modules/unistr/u16-mbsnlen-tests: New file.
37677         * tests/unistr/test-u16-mbsnlen.c: New file.
37678
37679         Tests for module 'unistr/u8-mbsnlen'.
37680         * modules/unistr/u8-mbsnlen-tests: New file.
37681         * tests/unistr/test-u8-mbsnlen.c: New file.
37682
37683         Tests for module 'unistr/u32-chr'.
37684         * modules/unistr/u32-chr-tests: New file.
37685         * tests/unistr/test-u32-chr.c: New file.
37686
37687         Tests for module 'unistr/u16-chr'.
37688         * modules/unistr/u16-chr-tests: New file.
37689         * tests/unistr/test-u16-chr.c: New file.
37690
37691         Tests for module 'unistr/u8-chr'.
37692         * modules/unistr/u8-chr-tests: New file.
37693         * tests/unistr/test-u8-chr.c: New file.
37694         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
37695
37696         Tests for module 'unistr/u32-cmp2'.
37697         * modules/unistr/u32-cmp2-tests: New file.
37698         * tests/unistr/test-u32-cmp2.c: New file.
37699
37700         Tests for module 'unistr/u16-cmp2'.
37701         * modules/unistr/u16-cmp2-tests: New file.
37702         * tests/unistr/test-u16-cmp2.c: New file.
37703
37704         Tests for module 'unistr/u8-cmp2'.
37705         * modules/unistr/u8-cmp2-tests: New file.
37706         * tests/unistr/test-u8-cmp2.c: New file.
37707         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
37708
37709         Tests for module 'unistr/u32-cmp'.
37710         * modules/unistr/u32-cmp-tests: New file.
37711         * tests/unistr/test-u32-cmp.c: New file.
37712
37713         Tests for module 'unistr/u16-cmp'.
37714         * modules/unistr/u16-cmp-tests: New file.
37715         * tests/unistr/test-u16-cmp.c: New file.
37716
37717         Tests for module 'unistr/u8-cmp'.
37718         * modules/unistr/u8-cmp-tests: New file.
37719         * tests/unistr/test-u8-cmp.c: New file.
37720         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
37721
37722         Tests for module 'unistr/u32-set'.
37723         * modules/unistr/u32-set-tests: New file.
37724         * tests/unistr/test-u32-set.c: New file.
37725
37726         Tests for module 'unistr/u16-set'.
37727         * modules/unistr/u16-set-tests: New file.
37728         * tests/unistr/test-u16-set.c: New file.
37729
37730         Tests for module 'unistr/u8-set'.
37731         * modules/unistr/u8-set-tests: New file.
37732         * tests/unistr/test-u8-set.c: New file.
37733         * tests/unistr/test-set.h: New file.
37734
37735         Tests for module 'unistr/u32-move'.
37736         * modules/unistr/u32-move-tests: New file.
37737         * tests/unistr/test-u32-move.c: New file.
37738
37739         Tests for module 'unistr/u16-move'.
37740         * modules/unistr/u16-move-tests: New file.
37741         * tests/unistr/test-u16-move.c: New file.
37742
37743         Tests for module 'unistr/u8-move'.
37744         * modules/unistr/u8-move-tests: New file.
37745         * tests/unistr/test-u8-move.c: New file.
37746         * tests/unistr/test-move.h: New file.
37747
37748         Tests for module 'unistr/u32-cpy'.
37749         * modules/unistr/u32-cpy-tests: New file.
37750         * tests/unistr/test-u32-cpy.c: New file.
37751
37752         Tests for module 'unistr/u16-cpy'.
37753         * modules/unistr/u16-cpy-tests: New file.
37754         * tests/unistr/test-u16-cpy.c: New file.
37755
37756         Tests for module 'unistr/u8-cpy'.
37757         * modules/unistr/u8-cpy-tests: New file.
37758         * tests/unistr/test-u8-cpy.c: New file.
37759         * tests/unistr/test-cpy.h: New file.
37760
37761 2010-01-09  Bruno Haible  <bruno@clisp.org>
37762
37763         Tests for module 'unistr/u32-uctomb'.
37764         * modules/unistr/u32-uctomb-tests: New file.
37765         * tests/unistr/test-u32-uctomb.c: New file.
37766
37767         Tests for module 'unistr/u16-uctomb'.
37768         * modules/unistr/u16-uctomb-tests: New file.
37769         * tests/unistr/test-u16-uctomb.c: New file.
37770
37771         Tests for module 'unistr/u8-uctomb'.
37772         * modules/unistr/u8-uctomb-tests: New file.
37773         * tests/unistr/test-u8-uctomb.c: New file.
37774
37775         Tests for module 'unistr/u32-mbtoucr'.
37776         * modules/unistr/u32-mbtoucr-tests: New file.
37777         * tests/unistr/test-u32-mbtoucr.c: New file.
37778
37779         Tests for module 'unistr/u16-mbtoucr'.
37780         * modules/unistr/u16-mbtoucr-tests: New file.
37781         * tests/unistr/test-u16-mbtoucr.c: New file.
37782
37783         Tests for module 'unistr/u8-mbtoucr'.
37784         * modules/unistr/u8-mbtoucr-tests: New file.
37785         * tests/unistr/test-u8-mbtoucr.c: New file.
37786
37787         Tests for module 'unistr/u32-mbtouc'.
37788         * modules/unistr/u32-mbtouc-tests: New file.
37789         * tests/unistr/test-u32-mbtouc.c: New file.
37790
37791         Tests for module 'unistr/u16-mbtouc'.
37792         * modules/unistr/u16-mbtouc-tests: New file.
37793         * tests/unistr/test-u16-mbtouc.c: New file.
37794
37795         Tests for module 'unistr/u8-mbtouc'.
37796         * modules/unistr/u8-mbtouc-tests: New file.
37797         * tests/unistr/test-u8-mbtouc.c: New file.
37798
37799         Tests for module 'unistr/u32-mbtouc-unsafe'.
37800         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
37801         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
37802         * tests/unistr/test-u32-mbtouc.h: New file.
37803
37804         Tests for module 'unistr/u16-mbtouc-unsafe'.
37805         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
37806         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
37807         * tests/unistr/test-u16-mbtouc.h: New file.
37808
37809         Tests for module 'unistr/u8-mbtouc-unsafe'.
37810         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
37811         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
37812         * tests/unistr/test-u8-mbtouc.h: New file.
37813
37814         Tests for module 'unistr/u32-mblen'.
37815         * modules/unistr/u32-mblen-tests: New file.
37816         * tests/unistr/test-u32-mblen.c: New file.
37817
37818         Tests for module 'unistr/u16-mblen'.
37819         * modules/unistr/u16-mblen-tests: New file.
37820         * tests/unistr/test-u16-mblen.c: New file.
37821
37822         Tests for module 'unistr/u8-mblen'.
37823         * modules/unistr/u8-mblen-tests: New file.
37824         * tests/unistr/test-u8-mblen.c: New file.
37825
37826         Tests for module 'unistr/u32-to-u16'.
37827         * modules/unistr/u32-to-u16-tests: New file.
37828         * tests/unistr/test-u32-to-u16.c: New file.
37829
37830         Tests for module 'unistr/u32-to-u8'.
37831         * modules/unistr/u32-to-u8-tests: New file.
37832         * tests/unistr/test-u32-to-u8.c: New file.
37833
37834         Tests for module 'unistr/u16-to-u32'.
37835         * modules/unistr/u16-to-u32-tests: New file.
37836         * tests/unistr/test-u16-to-u32.c: New file.
37837
37838         Tests for module 'unistr/u16-to-u8'.
37839         * modules/unistr/u16-to-u8-tests: New file.
37840         * tests/unistr/test-u16-to-u8.c: New file.
37841
37842         Tests for module 'unistr/u8-to-u32'.
37843         * modules/unistr/u8-to-u32-tests: New file.
37844         * tests/unistr/test-u8-to-u32.c: New file.
37845
37846         Tests for module 'unistr/u8-to-u16'.
37847         * modules/unistr/u8-to-u16-tests: New file.
37848         * tests/unistr/test-u8-to-u16.c: New file.
37849
37850         Tests for module 'unistr/u32-check'.
37851         * modules/unistr/u32-check-tests: New file.
37852         * tests/unistr/test-u32-check.c: New file.
37853
37854         Tests for module 'unistr/u16-check'.
37855         * modules/unistr/u16-check-tests: New file.
37856         * tests/unistr/test-u16-check.c: New file.
37857
37858         Tests for module 'unistr/u8-check'.
37859         * modules/unistr/u8-check-tests: New file.
37860         * tests/unistr/test-u8-check.c: New file.
37861
37862         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
37863         (category_equals): New function.
37864         (main): Add more tests.
37865         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
37866
37867         * tests/unictype/test-bidi_byname.c (main): Add more tests.
37868
37869 2010-01-10  Bruno Haible  <bruno@clisp.org>
37870
37871         unistr/u*-strcoll: Try harder to distinguish different strings.
37872         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
37873         compare s1 and s2 to see if they are different.
37874
37875 2010-01-10  Bruno Haible  <bruno@clisp.org>
37876
37877         unistr/u*-stpncpy: Fix the return value.
37878         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
37879         description of the return value consistent with stpncpy in glibc.
37880         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
37881         written non-NUL unit.
37882
37883 2010-01-10  Bruno Haible  <bruno@clisp.org>
37884
37885         unistr/u*-next: Add missing dependencies.
37886         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
37887         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
37888         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
37889
37890 2010-01-10  Bruno Haible  <bruno@clisp.org>
37891
37892         unistr/u8-mbsnlen: Fix return value for incomplete character.
37893         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
37894         u8_mblen.
37895         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
37896         Remove unistr/u8-mblen.
37897         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
37898         u16_mblen.
37899         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
37900         Remove unistr/u16-mblen.
37901
37902 2010-01-10  Bruno Haible  <bruno@clisp.org>
37903
37904         wchar: Fix compilation error when <wchar.h> is used from coreutils.
37905         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
37906         Reported by Brian Gough <bjg@gnu.org> and
37907         Chris Clayton <chris2553@googlemail.com> via
37908         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
37909
37910 2010-01-09  Bruno Haible  <bruno@clisp.org>
37911
37912         unistr/u16-to-u32: Reject invalid input.
37913         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
37914         u16_mbtouc.
37915         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
37916         Remove unistr/u16-mbtouc.
37917
37918         unistr/u16-to-u8: Reject invalid input.
37919         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
37920         u16_mbtouc.
37921         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
37922         Remove unistr/u16-mbtouc.
37923
37924         unistr/u8-to-u32: Reject invalid input.
37925         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
37926         u8_mbtouc.
37927         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
37928         Remove unistr/u8-mbtouc.
37929
37930         unistr/u8-to-u16: Reject invalid input.
37931         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
37932         u8_mbtouc.
37933         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
37934         Remove unistr/u8-mbtouc.
37935
37936 2010-01-09  Bruno Haible  <bruno@clisp.org>
37937
37938         Tests for module 'getlogin'.
37939         * modules/getlogin-tests: New file.
37940         * tests/test-getlogin.c: New file.
37941
37942         New module 'getlogin'.
37943         * lib/unistd.in.h (getlogin): New declaration.
37944         * lib/getlogin.c: New file.
37945         * m4/getlogin.m4: New file.
37946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
37947         HAVE_GETLOGIN.
37948         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
37949         HAVE_GETLOGIN.
37950         * modules/getlogin: New file.
37951         * doc/posix-functions/getlogin.texi: Mention the new module.
37952         Reported by John W. Eaton <jwe@gnu.org>.
37953
37954 2010-01-09  Bruno Haible  <bruno@clisp.org>
37955
37956         getlogin_r: Support for native Windows.
37957         * lib/getlogin_r.c: Include <windows.h>
37958         (getlogin_r): Implement for native Windows.
37959         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
37960         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
37961         via John W. Eaton <jwe@gnu.org>.
37962
37963 2010-01-09  Bruno Haible  <bruno@clisp.org>
37964
37965         getlogin_r: Small fixes.
37966         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
37967         succeeds.
37968         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
37969         before testing whether getlogin_r is declared. No need to set
37970         HAVE_DECL_GETLOGIN_R to 1.
37971         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
37972
37973 2010-01-09  Bruno Haible  <bruno@clisp.org>
37974
37975         * lib/unistd.in.h (getlogin_r): Add comment.
37976
37977 2010-01-09  Bruno Haible  <bruno@clisp.org>
37978
37979         Tests for module 'getlogin_r'.
37980         * modules/getlogin_r-tests: New file.
37981         * tests/test-getlogin_r.c: New file.
37982
37983 2010-01-09  Jim Meyering  <meyering@redhat.com>
37984
37985         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
37986         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
37987         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
37988
37989 2010-01-08  Simon Josefsson  <simon@josefsson.org>
37990
37991         * lib/dup2.c (rpl_dup2): Improve comment.
37992
37993 2010-01-08  Eric Blake  <ebb9@byu.net>
37994
37995         maint.mk: allow packages to add makefile @@ exceptions
37996         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
37997         (sc_makefile_check): Rename...
37998         (sc_makefile_at_at_check): ...to this, and use hook.
37999
38000         dup2: work around mingw bug
38001         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
38002         Reported by Simon Josefsson.
38003
38004 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
38005
38006         glob: Fix C++ compilation.
38007         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
38008         C++.
38009
38010 2010-01-07  Bruno Haible  <bruno@clisp.org>
38011
38012         Fix indentation of wctype.in.h, broken since 2007-01-06.
38013         * lib/wctype.in.h: Fix indentation of preprocessor directives.
38014
38015 2010-01-07  Bruno Haible  <bruno@clisp.org>
38016
38017         mbslen: Avoid collision with system function.
38018         * lib/string.in.h [MirBSD]: Include <wchar.h>.
38019         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
38020         * m4/mbslen.m4: New file.
38021         * modules/mbslen (Files): Add it.
38022         (configure.ac): Invoke gl_MBSLEN.
38023         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
38024         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
38025         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
38026         via Ian Beckwith <ianb@erislabs.net>.
38027
38028 2010-01-07  Bruno Haible  <bruno@clisp.org>
38029
38030         dirent: Document the last fix.
38031         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
38032
38033 2010-01-07  Bruno Haible  <bruno@clisp.org>
38034
38035         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
38036         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
38037         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
38038         va_list are defined.
38039         * doc/posix-headers/stdio.texi: Document the bug of missing types.
38040         Reported by Eric Blake.
38041
38042 2010-01-07  Bruno Haible  <bruno@clisp.org>
38043
38044         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
38045         * modules/xlist (Depends-on): Add 'list',
38046         * modules/xoset (Depends-on): Add 'oset'.
38047         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38048
38049 2010-01-07  Bruno Haible  <bruno@clisp.org>
38050
38051         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
38052         * doc/posix-functions/strncasecmp.texi: Likewise.
38053
38054 2010-01-07  Bruno Haible  <bruno@clisp.org>
38055
38056         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
38057
38058 2010-01-07  John W. Eaton  <jwe@octave.org>
38059
38060         wctype: allow C++ use
38061         * lib/wctype.in.h: Add extern "C" block for C++.
38062
38063 2010-01-06  Eric Blake  <ebb9@byu.net>
38064
38065         maint.mk: detect incorrect GFDL usage
38066         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
38067
38068 2010-01-06  Jim Meyering  <meyering@redhat.com>
38069         and Eric Blake  <ebb9@byu.net>
38070
38071         maint.mk: ignore multi-line copyright in NEWS
38072         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
38073
38074 2010-01-06  Eric Blake  <ebb9@byu.net>
38075
38076         select: add missing dependency
38077         * modules/select-tests (Depends-on): Move sockets dependency...
38078         * modules/select (Depends-on): ...here.
38079         Reported by Ian Beckwith.
38080
38081         doc: regenerate INSTALL
38082         * doc/INSTALL: Reflect recent autoconf update.
38083         * doc/INSTALL.ISO: Likewise.
38084         * doc/INSTALL.UTF-8: Likewise.
38085
38086         pread: fix compilation on glibc
38087         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
38088         Reported by Ralf Wildenhues.
38089
38090         dirent: fix test failure
38091         * lib/dirent.in.h (includes): Guarantee ino_t.
38092         Reported by Ralf Wildenhues.
38093
38094 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
38095
38096         linkat, renameat: avoid bad free
38097         * lib/at-func2.c (at_func2): Fix typo.
38098         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
38099
38100 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38101
38102         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
38103         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
38104         to avoid failure of symlink test later.
38105
38106 2010-01-06  Eric Blake  <ebb9@byu.net>
38107
38108         stdio, unistd: guarantee ssize_t
38109         * lib/unistd.in.h (includes): Ensure that types required by POSIX
38110         2008 are exposed when needed.
38111         * lib/stdio.in.h (includes): Likewise.
38112         Reported by Ralf Wildenhues.
38113
38114 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
38115
38116         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
38117         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
38118         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
38119
38120 2010-01-06  Jim Meyering  <meyering@redhat.com>
38121
38122         readtokens: this module *does* require xalloc.h
38123         It uses only functions that were omitted by the old syntax-check rule.
38124         * lib/readtokens.c: Include "xalloc.h" once again.
38125         * modules/readtokens (Depends-on): Add xalloc.
38126         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
38127
38128 2010-01-05  Eric Blake  <ebb9@byu.net>
38129
38130         maint: support 'make announcement' from a VPATH build
38131         * top/maint.mk (announcement): Look for correct NEWS file.
38132
38133 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
38134
38135         utimens (fdutimens): ignore a negative FD, per contract
38136         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
38137         when we have a valid file descriptor.  Otherwise, using a brand
38138         new glibc (with just-patched futimens that now fails with EBADF)
38139         would cause this function to fail with ENOSYS.
38140         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
38141         See also http://bugzilla.redhat.com/552320.
38142
38143 2010-01-05  Eric Blake  <ebb9@byu.net>
38144
38145         strcase: document what it provides
38146         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
38147         gnulib module.
38148         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
38149         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
38150
38151 2010-01-05  Jim Meyering  <meyering@redhat.com>
38152
38153         maint: remove useless inclusions of "xalloc.h"
38154         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
38155         * lib/readtokens.c: Likewise.
38156         * lib/same.c: Likewise.
38157         * modules/getloadavg (Depends-on): Remove xalloc.
38158         * modules/readtokens: Likewise.
38159         * modules/same: Likewise.
38160
38161         maint.mk: include 4 more function names in alloca.h-checking regexp
38162         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
38163         regexp.  Before, we would give a false-positive (saying alloca.h
38164         is included unnecessarily) when the only uses involved omitted symbols.
38165
38166         xalloc.h: use consistent formatting
38167         * lib/xalloc.h: Move declarations to start in the first column.
38168
38169 2010-01-05  Eric Blake  <ebb9@byu.net>
38170
38171         mkdir: avoid xalloc
38172         * lib/mkdir.c (includes): Drop unused header.
38173         Reported by John W. Eaton.
38174
38175 2010-01-04  Jim Meyering  <meyering@redhat.com>
38176
38177         nl_langinfo: avoid configure-time syntax error
38178         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
38179         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
38180         the empty string.  Don't let that provoke a shell syntax error.
38181
38182         regcomp, regexec, fnmatch: avoid array bounds read error
38183         * lib/regcomp.c (build_equiv_class): From glibc:
38184         Use only the low 24 bits of a findidx return value as an index
38185         into the weights array.  Patch by Ulrich Drepper:
38186         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
38187         * lib/regexec.c (check_node_accept_bytes): Likewise.
38188         * lib/fnmatch_loop.c (FCT): Likewise.
38189
38190         regcomp: skip collseq lookup when there are no rules
38191         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
38192         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
38193
38194         regcomp: recognize ill-formed { } expressions
38195         * lib/regcomp.c (parse_dup_op): From glibc:
38196         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
38197
38198         regcomp: fix typo in comment
38199         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
38200         s/satisfy/satisfies/.
38201
38202         regcomp: sync from glibc: remove dead store
38203         * lib/regcomp.c (duplicate_node_closure): Remove useless
38204         search_duplicated_node call and dead store.
38205
38206         regcomp: sync from glibc; always use nl_langinfo
38207         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
38208         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
38209         * modules/regex (Depends-on): Add nl_langinfo.
38210
38211 2010-01-04  Eric Blake  <ebb9@byu.net>
38212
38213         fdopendir: fix configure test
38214         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
38215
38216 2010-01-01  Bruno Haible  <bruno@clisp.org>
38217
38218         wchar: Remove unused configure check.
38219         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
38220
38221 2010-01-01  Eric Blake  <ebb9@byu.net>
38222
38223         headers: make check of system header explicit
38224         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
38225         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
38226         ourselves.
38227         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38228         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38229         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38230         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
38231         internals.
38232         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
38233         missing.
38234         Suggested by Bruno Haible.
38235
38236 2010-01-01  Jim Meyering  <meyering@redhat.com>
38237
38238         ChangeLog: tweak to eliminate unnecessary copyright line
38239         * ChangeLog: Remove a copyright line that was mistakenly updated
38240         by today's update-copyright run.  Reported by Eric Blake.
38241
38242         test-update-copyright: don't let envvar setting cause test failure
38243         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38244
38245 2010-01-01  Bruno Haible  <bruno@clisp.org>
38246
38247         localename: Avoid gcc warning.
38248         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
38249         function if it is not used.
38250
38251 2010-01-01  Jim Meyering  <meyering@redhat.com>
38252
38253         update nearly all FSF copyright year lists to include 2010
38254         Use the same procedure as for 2009, outlined in
38255         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
38256
38257         version-etc: set COPYRIGHT_YEAR to 2010
38258         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
38259
38260 2009-12-31  Eric Blake  <ebb9@byu.net>
38261
38262         doc: correct availability of cygwin 1.5.x getopt
38263         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
38264         variables.
38265         * doc/posix-functions/opterr.texi (opterr): Likewise.
38266         * doc/posix-functions/optind.texi (optind): Likewise.
38267         * doc/posix-functions/optopt.texi (optopt): Likewise.
38268         * doc/posix-functions/tzname.texi (tzname): Likewise.
38269
38270         openat: update maintainer
38271         * modules/openat (Maintainer): Add myself.
38272
38273         utimens: avoid shadowing warning
38274         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
38275         buffers into one, to avoid shadowing, as well as avoiding a
38276         redundant stat.
38277         Reported by Jim Meyering.
38278
38279         test-dup2: avoid compiler warning
38280         * tests/test-dup2.c (is_inheritable): Only define if used.
38281
38282 2010-01-01  Bruno Haible  <bruno@clisp.org>
38283
38284         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
38285         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
38286         defined, use wctomb instead of wcrtomb.
38287
38288 2010-01-01  Bruno Haible  <bruno@clisp.org>
38289
38290         iconv: Reject native Solaris iconv.
38291         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
38292         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
38293
38294 2009-12-31  Bruno Haible  <bruno@clisp.org>
38295
38296         * tests/test-signal.c (main): Remove test of 'SIG'.
38297
38298 2009-12-31  Bruno Haible  <bruno@clisp.org>
38299
38300         spawn: Fix incomplete fix.
38301         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38302         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38303         warnings for GNULIB_POSIXCHECK again.
38304         Reported by Eric Blake.
38305
38306 2009-12-31  Bruno Haible  <bruno@clisp.org>
38307
38308         Avoid namespace pollution on glibc systems.
38309         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
38310         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
38311         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
38312         glibc systems.
38313
38314 2009-12-31  Bruno Haible  <bruno@clisp.org>
38315
38316         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
38317         (gl_REPLACE_WCHAR_H): Turn into a no-op.
38318         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
38319         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
38320         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
38321         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
38322         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
38323
38324 2009-12-31  Bruno Haible  <bruno@clisp.org>
38325
38326         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
38327         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
38328         afterwards.
38329
38330 2009-12-31  Bruno Haible  <bruno@clisp.org>
38331
38332         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
38333         SYS_UTSNAME_H.
38334
38335 2009-12-31  Bruno Haible  <bruno@clisp.org>
38336
38337         spawn: Fix misapplied patch.
38338         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38339         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38340         warnings for GNULIB_POSIXCHECK.
38341
38342 2009-12-31  Bruno Haible  <bruno@clisp.org>
38343
38344         times: Update after sys_times changed.
38345         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
38346         * modules/times (Files): Add it.
38347         (configure.ac): Invoke gl_FUNC_TIMES.
38348
38349 2009-12-31  Bruno Haible  <bruno@clisp.org>
38350
38351         Use AC_C_INLINE where necessary.
38352         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
38353         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38354         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
38355         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38356         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38357         * m4/mbiter.m4 (gl_MBITER): Likewise.
38358         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38359         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38360         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
38361         * modules/u64 (configure.ac): Likewise.
38362
38363 2009-12-31  Bruno Haible  <bruno@clisp.org>
38364
38365         Use AC_C_INLINE instead of module 'inline' where possible.
38366         * modules/inline (Description): Clarify purpose.
38367         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
38368         * modules/count-one-bits (Depends-on): Remove inline.
38369         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
38370         * modules/openat (Depends-on): Remove inline.
38371         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
38372         instead of depending on module 'inline'.
38373         * modules/filevercmp (Depends-on, configure.ac): Likewise.
38374         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
38375         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
38376         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
38377         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
38378         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
38379         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
38380         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
38381         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
38382         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
38383         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
38384         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
38385         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
38386         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
38387         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
38388         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
38389         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
38390         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
38391         Likewise.
38392         * modules/unictype/property-ascii-hex-digit (Depends-on,
38393         configure.ac): Likewise.
38394         * modules/unictype/property-bidi-arabic-digit (Depends-on,
38395         configure.ac): Likewise.
38396         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
38397         configure.ac): Likewise.
38398         * modules/unictype/property-bidi-block-separator (Depends-on,
38399         configure.ac): Likewise.
38400         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
38401         configure.ac): Likewise.
38402         * modules/unictype/property-bidi-common-separator (Depends-on,
38403         configure.ac): Likewise.
38404         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
38405         Likewise.
38406         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
38407         configure.ac): Likewise.
38408         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
38409         configure.ac): Likewise.
38410         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
38411         configure.ac): Likewise.
38412         * modules/unictype/property-bidi-european-digit (Depends-on,
38413         configure.ac): Likewise.
38414         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
38415         configure.ac): Likewise.
38416         * modules/unictype/property-bidi-left-to-right (Depends-on,
38417         configure.ac): Likewise.
38418         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
38419         configure.ac): Likewise.
38420         * modules/unictype/property-bidi-other-neutral (Depends-on,
38421         configure.ac): Likewise.
38422         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
38423         Likewise.
38424         * modules/unictype/property-bidi-segment-separator (Depends-on,
38425         configure.ac): Likewise.
38426         * modules/unictype/property-bidi-whitespace (Depends-on,
38427         configure.ac): Likewise.
38428         * modules/unictype/property-combining (Depends-on, configure.ac):
38429         Likewise.
38430         * modules/unictype/property-composite (Depends-on, configure.ac):
38431         Likewise.
38432         * modules/unictype/property-currency-symbol (Depends-on,
38433         configure.ac): Likewise.
38434         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
38435         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
38436         Likewise.
38437         * modules/unictype/property-default-ignorable-code-point (Depends-on,
38438         configure.ac): Likewise.
38439         * modules/unictype/property-deprecated (Depends-on, configure.ac):
38440         Likewise.
38441         * modules/unictype/property-diacritic (Depends-on, configure.ac):
38442         Likewise.
38443         * modules/unictype/property-extender (Depends-on, configure.ac):
38444         Likewise.
38445         * modules/unictype/property-format-control (Depends-on, configure.ac):
38446         Likewise.
38447         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
38448         Likewise.
38449         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
38450         Likewise.
38451         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
38452         Likewise.
38453         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
38454         Likewise.
38455         * modules/unictype/property-hyphen (Depends-on, configure.ac):
38456         Likewise.
38457         * modules/unictype/property-id-continue (Depends-on, configure.ac):
38458         Likewise.
38459         * modules/unictype/property-id-start (Depends-on, configure.ac):
38460         Likewise.
38461         * modules/unictype/property-ideographic (Depends-on, configure.ac):
38462         Likewise.
38463         * modules/unictype/property-ids-binary-operator (Depends-on,
38464         configure.ac): Likewise.
38465         * modules/unictype/property-ids-trinary-operator (Depends-on,
38466         configure.ac): Likewise.
38467         * modules/unictype/property-ignorable-control (Depends-on,
38468         configure.ac): Likewise.
38469         * modules/unictype/property-iso-control (Depends-on, configure.ac):
38470         Likewise.
38471         * modules/unictype/property-join-control (Depends-on, configure.ac):
38472         Likewise.
38473         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
38474         Likewise.
38475         * modules/unictype/property-line-separator (Depends-on, configure.ac):
38476         Likewise.
38477         * modules/unictype/property-logical-order-exception (Depends-on,
38478         configure.ac): Likewise.
38479         * modules/unictype/property-lowercase (Depends-on, configure.ac):
38480         Likewise.
38481         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
38482         * modules/unictype/property-non-break (Depends-on, configure.ac):
38483         Likewise.
38484         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
38485         Likewise.
38486         * modules/unictype/property-numeric (Depends-on, configure.ac):
38487         Likewise.
38488         * modules/unictype/property-other-alphabetic (Depends-on,
38489         configure.ac): Likewise.
38490         * modules/unictype/property-other-default-ignorable-code-point
38491         (Depends-on, configure.ac): Likewise.
38492         * modules/unictype/property-other-grapheme-extend (Depends-on,
38493         configure.ac): Likewise.
38494         * modules/unictype/property-other-id-continue (Depends-on,
38495         configure.ac): Likewise.
38496         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
38497         Likewise.
38498         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
38499         Likewise.
38500         * modules/unictype/property-other-math (Depends-on, configure.ac):
38501         Likewise.
38502         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
38503         Likewise.
38504         * modules/unictype/property-paired-punctuation (Depends-on,
38505         configure.ac): Likewise.
38506         * modules/unictype/property-paragraph-separator (Depends-on,
38507         configure.ac): Likewise.
38508         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
38509         Likewise.
38510         * modules/unictype/property-pattern-white-space (Depends-on,
38511         configure.ac): Likewise.
38512         * modules/unictype/property-private-use (Depends-on, configure.ac):
38513         Likewise.
38514         * modules/unictype/property-punctuation (Depends-on, configure.ac):
38515         Likewise.
38516         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
38517         Likewise.
38518         * modules/unictype/property-radical (Depends-on, configure.ac):
38519         Likewise.
38520         * modules/unictype/property-sentence-terminal (Depends-on,
38521         configure.ac): Likewise.
38522         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
38523         Likewise.
38524         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
38525         * modules/unictype/property-terminal-punctuation (Depends-on,
38526         configure.ac): Likewise.
38527         * modules/unictype/property-titlecase (Depends-on, configure.ac):
38528         Likewise.
38529         * modules/unictype/property-unassigned-code-value (Depends-on,
38530         configure.ac): Likewise.
38531         * modules/unictype/property-unified-ideograph (Depends-on,
38532         configure.ac): Likewise.
38533         * modules/unictype/property-uppercase (Depends-on, configure.ac):
38534         Likewise.
38535         * modules/unictype/property-variation-selector (Depends-on,
38536         configure.ac): Likewise.
38537         * modules/unictype/property-white-space (Depends-on, configure.ac):
38538         Likewise.
38539         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
38540         Likewise.
38541         * modules/unictype/property-xid-start (Depends-on, configure.ac):
38542         Likewise.
38543         * modules/unictype/property-zero-width (Depends-on, configure.ac):
38544         Likewise.
38545         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
38546         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
38547         Likewise.
38548
38549 2009-12-31  Bruno Haible  <bruno@clisp.org>
38550
38551         Remove unnecessary AC_C_INLINE invocation.
38552         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
38553         since 2009-08-21.
38554
38555 2009-12-31  Jim Meyering  <meyering@redhat.com>
38556
38557         maint.mk: don't require explicit gpg_key_ID in cfg.mk
38558         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
38559         With this change, we can all remove the gpg_key_ID = ... definition
38560         from our respective cfg.mk files.
38561
38562         maint.mk: create announcement template in ~/, not in /tmp
38563         * top/maint.mk (emit_upload_commands): Adjust.
38564         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
38565         Remove temporary file, .ci-msg.
38566
38567 2009-12-31  Eric Blake  <ebb9@byu.net>
38568
38569         link-warning: always build headers with link warnings
38570         * modules/arpa_inet (Makefile.am): Always build replacement
38571         header.
38572         * modules/ctype (Makefile.am): Likewise.
38573         * modules/dirent (Makefile.am): Likewise.
38574         * modules/inttypes (Makefile.am): Likewise.
38575         * modules/langinfo (Makefile.am): Likewise.
38576         * modules/locale (Makefile.am): Likewise.
38577         * modules/spawn (Makefile.am): Likewise.
38578         * modules/sys_file (Makefile.am): Likewise.
38579         * modules/sys_ioctl (Makefile.am): Likewise.
38580         * modules/sys_select (Makefile.am): Likewise.
38581         * modules/sys_socket (Makefile.am): Likewise.
38582         * modules/sys_times (Makefile.am): Likewise.
38583         * modules/sys_utsname (Makefile.am): Likewise.
38584         * modules/sys_wait (Makefile.am): Likewise.
38585         * modules/wchar (Makefile.am): Likewise.
38586         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
38587         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
38588         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
38589         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
38590         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
38591         Likewise.
38592         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38593         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38594         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
38595         Likewise.
38596         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
38597         Likewise.
38598         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
38599         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
38600         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
38601         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38602         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38603         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38604         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38605         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
38606         (gl_WCHAR_H_DEFAULTS): Likewise.
38607
38608 2009-12-31  Eric Blake  <ebb9@byu.net>
38609
38610         signal, spawn: use link warnings
38611         * lib/signal.in.h (sigset_t): Make unconditional.
38612         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
38613         (sigpending, sigprocmask, sigaction): Add link warnings.
38614         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
38615         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
38616         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
38617         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
38618         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
38619         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
38620         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
38621         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
38622         (posix_spawn_file_actions_destroy)
38623         (posix_spawn_file_actions_addopen)
38624         (posix_spawn_file_actions_addclose)
38625         (posix_spawn_file_actions_adddup2): Likewise.
38626         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
38627         * tests/test-signal.c (main): Enhance test.
38628
38629         spawn: improve wrapper support
38630         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
38631         (gl_SPAWN_H_DEFAULTS): New defaults.
38632         * modules/spawn (Makefile.am): Substitute them.
38633         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
38634         Only declare if missing or broken.
38635
38636         sys_times, sys_utsname: use include_next
38637         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
38638         header.
38639         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
38640         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38641         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38642         * modules/sys_times (Depends-on): Add include_next.
38643         (Makefile.am): Substitute additional values.
38644         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38645         * lib/sys_times.in.h (includes): Include native header, if
38646         available.
38647         * lib/sys_utsname.in.h (includes): Likewise.
38648         * tests/test-sys_times.c (main): Enhance test.
38649
38650         fdutimensat: revert prior patch
38651         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
38652         utimens.h.
38653         Reported by Bruno Haible.
38654
38655 2009-12-30  Eric Blake  <ebb9@byu.net>
38656
38657         sys_wait: drop link-warning dependency
38658         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
38659         link-warning efforts.
38660         * lib/sys_wait.in.h: Likewise.
38661
38662         fdutimensat: remove bogus dependency
38663         * modules/fdutimensat (Depends-on): Drop inline.
38664
38665         unistd: fix typo
38666         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
38667
38668 2009-12-30  Bruno Haible  <bruno@clisp.org>
38669
38670         Fix compilation error with Solaris cc.
38671         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
38672         * lib/unicase/u16-is-invariant.c: Likewise.
38673         * lib/unicase/u32-is-invariant.c: Likewise.
38674         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38675
38676 2009-12-30  Bruno Haible  <bruno@clisp.org>
38677
38678         Fix test crash.
38679         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
38680         locales.
38681         Reported by Simon Josefsson <simon@josefsson.org>.
38682
38683 2009-12-30  Bruno Haible  <bruno@clisp.org>
38684
38685         Fix compilation error on most platforms.
38686         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
38687         Reported by Simon Josefsson <simon@josefsson.org>
38688         and Nelson H. F. Beebe <beebe@math.utah.edu>.
38689
38690 2009-12-30  Eric Blake  <ebb9@byu.net>
38691
38692         futimens, utimensat: work around ntfs-3g bug
38693         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
38694         a ctime bug is present, and expand workaround to cover ntfs-3g.
38695         * lib/utimens.c (fdutimens, lutimens): Likewise.
38696         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
38697         (validate_timespec): Adjust return value.
38698         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
38699         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38700         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
38701
38702 2009-12-29  Eric Blake  <ebb9@byu.net>
38703
38704         link-warning: make usage consistent
38705         * modules/ctype (Depends-on): Add link-warning.
38706         (Makefile.am): Update rules accordingly.
38707         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38708         * modules/locale (Depends-on, Makefile.am): Likewise.
38709         * modules/sys_file (Makefile.am): Likewise.
38710         * modules/getopt-posix (Makefile.am): Delete unused link warning
38711         efforts.
38712         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
38713         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
38714         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
38715         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
38716
38717         stdio: remove unused variables
38718         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
38719         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
38720         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
38721
38722         tests: test more substitute headers
38723         * modules/ctype-tests: New file.
38724         * modules/dirent-tests: Likewise.
38725         * modules/spawn-tests: Likewise.
38726         * modules/sys_file-tests: Likewise.
38727         * modules/sys_ioctl-tests: Likewise.
38728         * modules/sys_wait-tests: Likewise.
38729         * tests/test-ctype.c: Likewise.
38730         * tests/test-dirent.c: Likewise.
38731         * tests/test-spawn.c: Likewise.
38732         * tests/test-sys_file.c: Likewise.
38733         * tests/test-sys_ioctl.c: Likewise.
38734         * tests/test-sys_wait.c: Likewise.
38735         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
38736         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
38737         whether or not flock is in use.
38738
38739         tests: remove License section from module
38740         * modules/arpa_inet-tests: Remove unneeded section.
38741         * modules/byteswap-tests: Likewise.
38742         * modules/ceilf-tests: Likewise.
38743         * modules/ceill-tests: Likewise.
38744         * modules/crypto/des-tests: Likewise.
38745         * modules/crypto/gc-arcfour-tests: Likewise.
38746         * modules/crypto/gc-arctwo-tests: Likewise.
38747         * modules/crypto/gc-des-tests: Likewise.
38748         * modules/crypto/gc-hmac-md5-tests: Likewise.
38749         * modules/crypto/gc-hmac-sha1-tests: Likewise.
38750         * modules/crypto/gc-md2-tests: Likewise.
38751         * modules/crypto/gc-md4-tests: Likewise.
38752         * modules/crypto/gc-md5-tests: Likewise.
38753         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
38754         * modules/crypto/gc-rijndael-tests: Likewise.
38755         * modules/crypto/gc-sha1-tests: Likewise.
38756         * modules/crypto/gc-tests: Likewise.
38757         * modules/crypto/md2-tests: Likewise.
38758         * modules/crypto/md4-tests: Likewise.
38759         * modules/fcntl-h-tests: Likewise.
38760         * modules/floorf-tests: Likewise.
38761         * modules/floorl-tests: Likewise.
38762         * modules/frexp-nolibm-tests: Likewise.
38763         * modules/frexp-tests: Likewise.
38764         * modules/frexpl-nolibm-tests: Likewise.
38765         * modules/frexpl-tests: Likewise.
38766         * modules/getaddrinfo-tests: Likewise.
38767         * modules/inttypes-tests: Likewise.
38768         * modules/isfinite-tests: Likewise.
38769         * modules/isinf-tests: Likewise.
38770         * modules/ldexpl-tests: Likewise.
38771         * modules/locale-tests: Likewise.
38772         * modules/math-tests: Likewise.
38773         * modules/netdb-tests: Likewise.
38774         * modules/netinet_in-tests: Likewise.
38775         * modules/printf-frexp-tests: Likewise.
38776         * modules/printf-frexpl-tests: Likewise.
38777         * modules/priv-set-tests: Likewise.
38778         * modules/random_r-tests: Likewise.
38779         * modules/round-tests: Likewise.
38780         * modules/roundf-tests: Likewise.
38781         * modules/roundl-tests: Likewise.
38782         * modules/search-tests: Likewise.
38783         * modules/select-tests: Likewise.
38784         * modules/signal-tests: Likewise.
38785         * modules/stdbool-tests: Likewise.
38786         * modules/stddef-tests: Likewise.
38787         * modules/stdint-tests: Likewise.
38788         * modules/stdio-tests: Likewise.
38789         * modules/stdlib-tests: Likewise.
38790         * modules/string-tests: Likewise.
38791         * modules/strings-tests: Likewise.
38792         * modules/sys_select-tests: Likewise.
38793         * modules/sys_socket-tests: Likewise.
38794         * modules/sys_stat-tests: Likewise.
38795         * modules/sys_time-tests: Likewise.
38796         * modules/sys_utsname-tests: Likewise.
38797         * modules/sysexits-tests: Likewise.
38798         * modules/time-tests: Likewise.
38799         * modules/trunc-tests: Likewise.
38800         * modules/truncf-tests: Likewise.
38801         * modules/truncl-tests: Likewise.
38802         * modules/tsearch-tests: Likewise.
38803         * modules/unistd-tests: Likewise.
38804         * modules/wchar-tests: Likewise.
38805         * modules/wctype-tests: Likewise.
38806
38807         tests: fix license on several tests
38808         * tests/test-des.c: Update to GPLv3+.
38809         * tests/test-flock.c: Likewise.
38810         * tests/test-fsync.c: Likewise.
38811         * tests/test-futimens.h: Likewise.
38812         * tests/test-gc-arcfour.c: Likewise.
38813         * tests/test-gc-arctwo.c: Likewise.
38814         * tests/test-gc-des.c: Likewise.
38815         * tests/test-gc-hmac-md5.c: Likewise.
38816         * tests/test-gc-hmac-sha1.c: Likewise.
38817         * tests/test-gc-md2.c: Likewise.
38818         * tests/test-gc-md4.c: Likewise.
38819         * tests/test-gc-md5.c: Likewise.
38820         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38821         * tests/test-gc-rijndael.c: Likewise.
38822         * tests/test-gc-sha1.c: Likewise.
38823         * tests/test-gc.c: Likewise.
38824         * tests/test-getcwd.c: Likewise.
38825         * tests/test-link.c: Likewise.
38826         * tests/test-link.h: Likewise.
38827         * tests/test-lutimens.h: Likewise.
38828         * tests/test-md2.c: Likewise.
38829         * tests/test-md4.c: Likewise.
38830         * tests/test-mkdir.h: Likewise.
38831         * tests/test-rename.c: Likewise.
38832         * tests/test-rename.h: Likewise.
38833         * tests/test-safe-alloc.c: Likewise.
38834         * tests/test-utimens-common.h: Likewise.
38835         * tests/test-utimens.h: Likewise.
38836
38837         maint: sync license texts
38838         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
38839         * doc/gpl-3.0.texi: Revert copyright year update.
38840         * doc/lgpl-3.0.texi: Likewise.
38841
38842 2009-12-29  Jim Meyering  <meyering@redhat.com>
38843
38844         update nearly all FSF copyright year lists to include 2009
38845         The files named by the following are exempted:
38846             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
38847               test -f "$dst" && { echo "$dst"; continue; }
38848               test -d "$dst" || continue
38849               echo "$dst"/$(basename "$src")
38850             done > exempt
38851             git ls-files tests/unictype >> exempt
38852         In the remaining files, convert to all-interval notation if
38853         - there is already at least one year interval like 2000-2003
38854         - the file is maintained by me
38855         - the file is in lib/uni*/, where that style already prevails
38856         Otherwise, use update-copyright's default.
38857
38858 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38859         and Eric Blake  <ebb9@byu.net>
38860
38861         tests: don't require debug system() to pass
38862         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
38863         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38864         * tests/test-unlink.h (test_unlink_func): Likewise.
38865         * tests/test-fstatat.c (main): ...into callers.
38866         * tests/test-lstat.c (main): Likewise.
38867         * tests/test-rmdir.c (main): Likewise.
38868         * tests/test-unlink.c (main): Likewise.
38869         * tests/test-unlinkat.c (main): Likewise.
38870         * tests/test-areadlink-with-size.c (main): Don't require a
38871         debug-only system call to pass, aiding cross-testing to mingw.
38872         * tests/test-areadlink.c (main): Likewise.
38873         * tests/test-areadlinkat-with-size.c (main): Likewise.
38874         * tests/test-areadlinkat.c (main): Likewise.
38875         * tests/test-canonicalize-lgpl.c (main): Likewise.
38876         * tests/test-canonicalize.c (main): Likewise.
38877         * tests/test-chown.c (main): Likewise.
38878         * tests/test-fchownat.c (main): Likewise.
38879         * tests/test-lchown.c (main): Likewise.
38880         * tests/test-fdutimensat.c (main): Likewise.
38881         * tests/test-futimens.c (main): Likewise.
38882         * tests/test-link.c (main): Likewise.
38883         * tests/test-linkat.c (main): Likewise.
38884         * tests/test-mkdir.c (main): Likewise.
38885         * tests/test-mkdirat.c (main): Likewise.
38886         * tests/test-mkfifo.c (main): Likewise.
38887         * tests/test-mkfifoat.c (main): Likewise.
38888         * tests/test-mknod.c (main): Likewise.
38889         * tests/test-readlink.c (main): Likewise.
38890         * tests/test-remove.c (main): Likewise.
38891         * tests/test-rename.c (main): Likewise.
38892         * tests/test-renameat.c (main): Likewise.
38893         * tests/test-symlink.c (main): Likewise.
38894         * tests/test-symlinkat.c (main): Likewise.
38895         * tests/test-utimens.c (main): Likewise.
38896         * tests/test-utimensat.c (main): Likewise.
38897
38898 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38899
38900         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
38901         on $(UNUSED_PARAMETER_H) to avoid build failure.
38902
38903 2009-12-28  Jim Meyering  <meyering@redhat.com>
38904
38905         update-copyright: you may specify a max. line length other than 72
38906         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38907
38908         maint: use consistent FSF copyright line syntax
38909         * lib/posixtm.c: Add missing comma in FSF copyright line.
38910         * lib/posixtm.h: Likewise.
38911         * lib/getugroups.c: Add missing ", Inc.".
38912
38913         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
38914         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
38915         FSF copyright line.  Remove trailing blanks.
38916
38917 2009-12-28  Eric Blake  <ebb9@byu.net>
38918
38919         test-dup2: reduce dependencies
38920         * modules/cloexec (Configure.ac): Set witness.
38921         * modules/dup2-tests (Depends-on): Drop cloexec.
38922         * tests/test-dup2.c (main): Skip portion of test if cloexec module
38923         not present.
38924         Suggested by Bruno Haible.
38925
38926 2009-12-26  Bruno Haible  <bruno@clisp.org>
38927
38928         Remove an unneeded dependency.
38929         * modules/fseterr (Depends-on): Remove dup2.
38930
38931 2009-12-26  Eric Blake  <ebb9@byu.net>
38932
38933         tests: use macros.h in more places
38934         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
38935         (ASSERT_STREAM): Provide default of stderr.
38936         * tests/test-dirent-safer.c: Include macros.h, using alternate
38937         stream for assertions.
38938         * tests/test-dup-safer.c: Likewise.
38939         * tests/test-freopen-safer.c: Likewise.
38940         * tests/test-getopt.c: Likewise.
38941         * tests/test-openat-safer.c: Likewise.
38942         * tests/test-pipe.c: Likewise.
38943         * tests/test-popen-safer.c: Likewise.
38944         * modules/dirent-safer-tests (Files): Include macros.h.
38945         * modules/unistd-safer-tests (Files): Likewise.
38946         * modules/freopen-safer-tests (Files): Likewise.
38947         * modules/getopt-posix-tests (Files): Likewise.
38948         * modules/openat-safer-tests (Files): Likewise.
38949         * modules/pipe-tests (Files): Likewise.
38950
38951 2009-12-26  Bruno Haible  <bruno@clisp.org>
38952
38953         javacomp: Portability fix.
38954         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
38955         that it also works on Solaris.
38956
38957 2009-12-26  Bruno Haible  <bruno@clisp.org>
38958
38959         localename: Fix storage allocation of gl_locale_name_thread's result.
38960         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
38961         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
38962         all platforms that have 'uselocale'.
38963         (gl_locale_name_thread_unsafe): New function, extracted from
38964         gl_locale_name_thread.
38965         (gl_locale_name_thread): Call struniq on all platforms that have
38966         'uselocale'.
38967         * tests/test-localename.c (test_locale_name_thread): Check that the
38968         resulting strings are permanently allocated.
38969         * modules/localename-tests (Depends-on): Add strdup.
38970
38971 2009-12-26  Bruno Haible  <bruno@clisp.org>
38972
38973         * tests/test-localename.c (categories): Fill in the strings.
38974
38975 2009-12-26  Jim Meyering  <meyering@redhat.com>
38976
38977         isdir: complete the removal of m4/isdir.m4
38978         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
38979
38980         isdir: clean up, since at least grep still uses it
38981         * lib/isdir.c: Include "isdir.h".
38982         (S_ISDIR): Remove now-unneeded definition.
38983         * modules/isdir (Files): Add lib/isdir.h.
38984         * lib/isdir.h: New file, with declaration.
38985         * m4/isdir.m4: Remove file -- unneeded.
38986
38987 2009-12-25  Bruno Haible  <bruno@clisp.org>
38988
38989         selinux-h: Make generated .h files standalone.
38990         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
38991         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
38992         * lib/se-selinux.in.h: Likewise.
38993         * modules/selinux-h (Depends-on): Add unused-parameter.
38994         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
38995         selinux/selinux.h and selinux/context.h.
38996         Suggested by Eric Blake.
38997
38998 2009-12-25  Bruno Haible  <bruno@clisp.org>
38999
39000         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
39001         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
39002         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
39003         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
39004         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
39005
39006 2009-12-24  Bruno Haible  <bruno@clisp.org>
39007
39008         openat: Fix warning.
39009         * lib/openat-proc.c: Include <unistd.h>.
39010
39011 2009-12-24  Bruno Haible  <bruno@clisp.org>
39012
39013         New module 'unused-parameter'.
39014         * build-aux/unused-parameter.h: New file, extracted from earlier
39015         gnulib-common.m4.
39016         * modules/unused-parameter: New file.
39017         * lib/unistr.h: Include unused-parameter.h.
39018         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
39019         _GL_UNUSED.
39020         * modules/unistr/base (Depends-on): Add unused-parameter.
39021
39022 2009-12-24  Bruno Haible  <bruno@clisp.org>
39023
39024         Add missing dependencies to 'extensions' module.
39025         * m4/extensions.m4: Add comment.
39026         * modules/accept4 (Depends-on): Add extensions.
39027         * modules/dup3 (Depends-on): Likewise.
39028         * modules/fcntl (Depends-on): Likewise.
39029         * modules/futimens (Depends-on): Likewise.
39030         * modules/mknod (Depends-on): Likewise.
39031         * modules/pipe2 (Depends-on): Likewise.
39032         * modules/stat-time (Depends-on): Likewise.
39033         * modules/strcasestr-simple (Depends-on): Likewise.
39034         * modules/strsignal (Depends-on): Likewise.
39035         * modules/utimensat (Depends-on): Likewise.
39036         * modules/localcharset (Depends-on): Likewise. Needed because of
39037         gl_FCNTL_O_FLAGS.
39038         * modules/wcrtomb (Depends-on): Likewise. Needed because of
39039         AC_TYPE_MBSTATE_T.
39040         * modules/wcsnrtombs (Depends-on): Likewise.
39041         * modules/wcsrtombs (Depends-on): Likewise.
39042
39043 2009-12-24  Bruno Haible  <bruno@clisp.org>
39044
39045         binary-io: Avoid gcc warning due to SET_BINARY.
39046         * lib/binary-io.h (SET_BINARY): Cast the result to void.
39047         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
39048
39049 2009-12-24  Bruno Haible  <bruno@clisp.org>
39050
39051         Avoid future namespace pollution on glibc systems.
39052         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
39053         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
39054         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
39055         glibc systems.
39056
39057 2009-12-24  Bruno Haible  <bruno@clisp.org>
39058
39059         Refactor common macros used in tests.
39060         * tests/macros.h: New file.
39061         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
39062         and/or <stdlib.h>, if appropriate.
39063         (ASSERT, SIZEOF): Remove macros.
39064         * tests/test-areadlink-with-size.c: Likewise.
39065         * tests/test-areadlinkat.c: Likewise.
39066         * tests/test-areadlinkat-with-size.c: Likewise.
39067         * tests/test-argmatch.c: Likewise.
39068         * tests/test-argv-iter.c: Likewise.
39069         * tests/test-array-mergesort.c: Likewise.
39070         * tests/test-array_list.c: Likewise.
39071         * tests/test-array_oset.c: Likewise.
39072         * tests/test-avltree_list.c: Likewise.
39073         * tests/test-avltree_oset.c: Likewise.
39074         * tests/test-avltreehash_list.c: Likewise.
39075         * tests/test-base64.c: Likewise.
39076         * tests/test-binary-io.c: Likewise.
39077         * tests/test-bitrotate.c: Likewise.
39078         * tests/test-btowc.c: Likewise.
39079         * tests/test-byteswap.c: Likewise.
39080         * tests/test-c-ctype.c: Likewise.
39081         * tests/test-c-stack.c: Likewise.
39082         * tests/test-c-strcasecmp.c: Likewise.
39083         * tests/test-c-strcasestr.c: Likewise.
39084         * tests/test-c-strncasecmp.c: Likewise.
39085         * tests/test-c-strstr.c: Likewise.
39086         * tests/test-canonicalize-lgpl.c: Likewise.
39087         * tests/test-canonicalize.c: Likewise.
39088         * tests/test-carray_list.c: Likewise.
39089         * tests/test-ceilf1.c: Likewise.
39090         * tests/test-ceilf2.c: Likewise.
39091         * tests/test-ceill.c: Likewise.
39092         * tests/test-chown.c: Likewise.
39093         * tests/test-cloexec.c: Likewise.
39094         * tests/test-copy-acl.c: Likewise.
39095         * tests/test-copy-file.c: Likewise.
39096         * tests/test-count-one-bits.c: Likewise.
39097         * tests/test-dprintf-posix.c: Likewise.
39098         * tests/test-dup2.c: Likewise.
39099         * tests/test-dup3.c: Likewise.
39100         * tests/test-duplocale.c: Likewise.
39101         * tests/test-fbufmode.c: Likewise.
39102         * tests/test-fchdir.c: Likewise.
39103         * tests/test-fchownat.c: Likewise.
39104         * tests/test-fcntl-safer.c: Likewise.
39105         * tests/test-fcntl.c: Likewise.
39106         * tests/test-fdopendir.c: Likewise.
39107         * tests/test-fdutimensat.c: Likewise.
39108         * tests/test-fflush2.c: Likewise.
39109         * tests/test-file-has-acl.c: Likewise.
39110         * tests/test-filevercmp.c: Likewise.
39111         * tests/test-flock.c: Likewise.
39112         * tests/test-floorf1.c: Likewise.
39113         * tests/test-floorf2.c: Likewise.
39114         * tests/test-floorl.c: Likewise.
39115         * tests/test-fnmatch.c: Likewise.
39116         * tests/test-fopen.h: Likewise.
39117         * tests/test-fpending.c: Likewise.
39118         * tests/test-fprintf-posix.c: Likewise.
39119         * tests/test-fpurge.c: Likewise.
39120         * tests/test-freadable.c: Likewise.
39121         * tests/test-freadahead.c: Likewise.
39122         * tests/test-freading.c: Likewise.
39123         * tests/test-freadptr.c: Likewise.
39124         * tests/test-freadptr2.c: Likewise.
39125         * tests/test-freadseek.c: Likewise.
39126         * tests/test-freopen.c: Likewise.
39127         * tests/test-frexp.c: Likewise.
39128         * tests/test-frexpl.c: Likewise.
39129         * tests/test-fseek.c: Likewise.
39130         * tests/test-fseeko.c: Likewise.
39131         * tests/test-fstatat.c: Likewise.
39132         * tests/test-fstrcmp.c: Likewise.
39133         * tests/test-fsync.c: Likewise.
39134         * tests/test-ftell.c: Likewise.
39135         * tests/test-ftello.c: Likewise.
39136         * tests/test-func.c: Likewise.
39137         * tests/test-futimens.c: Likewise.
39138         * tests/test-fwritable.c: Likewise.
39139         * tests/test-fwriting.c: Likewise.
39140         * tests/test-getcwd.c: Likewise.
39141         * tests/test-getdate.c: Likewise.
39142         * tests/test-getdelim.c: Likewise.
39143         * tests/test-getdtablesize.c: Likewise.
39144         * tests/test-getgroups.c: Likewise.
39145         * tests/test-getline.c: Likewise.
39146         * tests/test-getndelim2.c: Likewise.
39147         * tests/test-glob.c: Likewise.
39148         * tests/test-hash.c: Likewise.
39149         * tests/test-i-ring.c: Likewise.
39150         * tests/test-iconv-utf.c: Likewise.
39151         * tests/test-iconv.c: Likewise.
39152         * tests/test-idpriv-drop.c: Likewise.
39153         * tests/test-idpriv-droptemp.c: Likewise.
39154         * tests/test-inet_ntop.c: Likewise.
39155         * tests/test-inet_pton.c: Likewise.
39156         * tests/test-isblank.c: Likewise.
39157         * tests/test-isfinite.c: Likewise.
39158         * tests/test-isinf.c: Likewise.
39159         * tests/test-isnan.c: Likewise.
39160         * tests/test-isnand.h: Likewise.
39161         * tests/test-isnanf.h: Likewise.
39162         * tests/test-isnanl.h: Likewise.
39163         * tests/test-lchown.c: Likewise.
39164         * tests/test-ldexpl.c: Likewise.
39165         * tests/test-link.c: Likewise.
39166         * tests/test-linkat.c: Likewise.
39167         * tests/test-linked_list.c: Likewise.
39168         * tests/test-linkedhash_list.c: Likewise.
39169         * tests/test-localename.c: Likewise.
39170         * tests/test-lseek.c: Likewise.
39171         * tests/test-lstat.c: Likewise.
39172         * tests/test-mbmemcasecmp.c: Likewise.
39173         * tests/test-mbmemcasecoll.c: Likewise.
39174         * tests/test-mbrtowc.c: Likewise.
39175         * tests/test-mbscasecmp.c: Likewise.
39176         * tests/test-mbscasestr1.c: Likewise.
39177         * tests/test-mbscasestr2.c: Likewise.
39178         * tests/test-mbscasestr3.c: Likewise.
39179         * tests/test-mbscasestr4.c: Likewise.
39180         * tests/test-mbschr.c: Likewise.
39181         * tests/test-mbscspn.c: Likewise.
39182         * tests/test-mbsinit.c: Likewise.
39183         * tests/test-mbsncasecmp.c: Likewise.
39184         * tests/test-mbsnrtowcs.c: Likewise.
39185         * tests/test-mbspbrk.c: Likewise.
39186         * tests/test-mbspcasecmp.c: Likewise.
39187         * tests/test-mbsrchr.c: Likewise.
39188         * tests/test-mbsrtowcs.c: Likewise.
39189         * tests/test-mbsspn.c: Likewise.
39190         * tests/test-mbsstr1.c: Likewise.
39191         * tests/test-mbsstr2.c: Likewise.
39192         * tests/test-mbsstr3.c: Likewise.
39193         * tests/test-memchr.c: Likewise.
39194         * tests/test-memchr2.c: Likewise.
39195         * tests/test-memcmp.c: Likewise.
39196         * tests/test-memmem.c: Likewise.
39197         * tests/test-memrchr.c: Likewise.
39198         * tests/test-mkdir.c: Likewise.
39199         * tests/test-mkdirat.c: Likewise.
39200         * tests/test-mkfifo.c: Likewise.
39201         * tests/test-mkfifoat.c: Likewise.
39202         * tests/test-mknod.c: Likewise.
39203         * tests/test-nanosleep.c: Likewise.
39204         * tests/test-nl_langinfo.c: Likewise.
39205         * tests/test-obstack-printf.c: Likewise.
39206         * tests/test-open.c: Likewise.
39207         * tests/test-openat.c: Likewise.
39208         * tests/test-pipe-filter-gi1.c: Likewise.
39209         * tests/test-pipe-filter-gi2-main.c: Likewise.
39210         * tests/test-pipe-filter-ii1.c: Likewise.
39211         * tests/test-pipe-filter-ii2-main.c: Likewise.
39212         * tests/test-pipe2.c: Likewise.
39213         * tests/test-popen.h: Likewise.
39214         * tests/test-posixtm.c: Likewise.
39215         * tests/test-pread.c: Likewise.
39216         * tests/test-printf-frexp.c: Likewise.
39217         * tests/test-printf-frexpl.c: Likewise.
39218         * tests/test-printf-posix.c: Likewise.
39219         * tests/test-priv-set.c: Likewise.
39220         * tests/test-quotearg.c: Likewise.
39221         * tests/test-random_r.c: Likewise.
39222         * tests/test-rawmemchr.c: Likewise.
39223         * tests/test-rbtree_list.c: Likewise.
39224         * tests/test-rbtree_oset.c: Likewise.
39225         * tests/test-rbtreehash_list.c: Likewise.
39226         * tests/test-readlink.c: Likewise.
39227         * tests/test-remove.c: Likewise.
39228         * tests/test-rename.c: Likewise.
39229         * tests/test-renameat.c: Likewise.
39230         * tests/test-rmdir.c: Likewise.
39231         * tests/test-round1.c: Likewise.
39232         * tests/test-roundf1.c: Likewise.
39233         * tests/test-roundl.c: Likewise.
39234         * tests/test-safe-alloc.c: Likewise.
39235         * tests/test-sameacls.c: Likewise.
39236         * tests/test-set-mode-acl.c: Likewise.
39237         * tests/test-setenv.c: Likewise.
39238         * tests/test-sigaction.c: Likewise.
39239         * tests/test-signbit.c: Likewise.
39240         * tests/test-sleep.c: Likewise.
39241         * tests/test-snprintf-posix.c: Likewise.
39242         * tests/test-snprintf.c: Likewise.
39243         * tests/test-sprintf-posix.c: Likewise.
39244         * tests/test-stat-time.c: Likewise.
39245         * tests/test-stat.c: Likewise.
39246         * tests/test-strcasestr.c: Likewise.
39247         * tests/test-strchrnul.c: Likewise.
39248         * tests/test-strerror.c: Likewise.
39249         * tests/test-striconv.c: Likewise.
39250         * tests/test-striconveh.c: Likewise.
39251         * tests/test-striconveha.c: Likewise.
39252         * tests/test-strsignal.c: Likewise.
39253         * tests/test-strstr.c: Likewise.
39254         * tests/test-strtod.c: Likewise.
39255         * tests/test-strverscmp.c: Likewise.
39256         * tests/test-symlink.c: Likewise.
39257         * tests/test-symlinkat.c: Likewise.
39258         * tests/test-trunc1.c: Likewise.
39259         * tests/test-trunc2.c: Likewise.
39260         * tests/test-truncf1.c: Likewise.
39261         * tests/test-truncf2.c: Likewise.
39262         * tests/test-truncl.c: Likewise.
39263         * tests/test-uname.c: Likewise.
39264         * tests/test-unlink.c: Likewise.
39265         * tests/test-unlinkat.c: Likewise.
39266         * tests/test-unsetenv.c: Likewise.
39267         * tests/test-usleep.c: Likewise.
39268         * tests/test-utimens.c: Likewise.
39269         * tests/test-utimensat.c: Likewise.
39270         * tests/test-vasnprintf-posix.c: Likewise.
39271         * tests/test-vasnprintf-posix2.c: Likewise.
39272         * tests/test-vasnprintf.c: Likewise.
39273         * tests/test-vasprintf-posix.c: Likewise.
39274         * tests/test-vasprintf.c: Likewise.
39275         * tests/test-vdprintf-posix.c: Likewise.
39276         * tests/test-vfprintf-posix.c: Likewise.
39277         * tests/test-vprintf-posix.c: Likewise.
39278         * tests/test-vsnprintf-posix.c: Likewise.
39279         * tests/test-vsnprintf.c: Likewise.
39280         * tests/test-vsprintf-posix.c: Likewise.
39281         * tests/test-wcrtomb.c: Likewise.
39282         * tests/test-wcsnrtombs.c: Likewise.
39283         * tests/test-wcsrtombs.c: Likewise.
39284         * tests/test-wctype.c: Likewise.
39285         * tests/test-wcwidth.c: Likewise.
39286         * tests/test-xfprintf-posix.c: Likewise.
39287         * tests/test-xmemdup0.c: Likewise.
39288         * tests/test-xprintf-posix.c: Likewise.
39289         * tests/test-xvasprintf.c: Likewise.
39290         * tests/unicase/test-locale-language.c: Likewise.
39291         * tests/unicase/test-mapping-part1.h: Likewise.
39292         * tests/unicase/test-predicate-part1.h: Likewise.
39293         * tests/unicase/test-u8-casecmp.c: Likewise.
39294         * tests/unicase/test-u8-casecoll.c: Likewise.
39295         * tests/unicase/test-u8-casefold.c: Likewise.
39296         * tests/unicase/test-u8-is-cased.c: Likewise.
39297         * tests/unicase/test-u8-is-casefolded.c: Likewise.
39298         * tests/unicase/test-u8-is-lowercase.c: Likewise.
39299         * tests/unicase/test-u8-is-titlecase.c: Likewise.
39300         * tests/unicase/test-u8-is-uppercase.c: Likewise.
39301         * tests/unicase/test-u8-tolower.c: Likewise.
39302         * tests/unicase/test-u8-totitle.c: Likewise.
39303         * tests/unicase/test-u8-toupper.c: Likewise.
39304         * tests/unicase/test-u16-casecmp.c: Likewise.
39305         * tests/unicase/test-u16-casecoll.c: Likewise.
39306         * tests/unicase/test-u16-casefold.c: Likewise.
39307         * tests/unicase/test-u16-is-cased.c: Likewise.
39308         * tests/unicase/test-u16-is-casefolded.c: Likewise.
39309         * tests/unicase/test-u16-is-lowercase.c: Likewise.
39310         * tests/unicase/test-u16-is-titlecase.c: Likewise.
39311         * tests/unicase/test-u16-is-uppercase.c: Likewise.
39312         * tests/unicase/test-u16-tolower.c: Likewise.
39313         * tests/unicase/test-u16-totitle.c: Likewise.
39314         * tests/unicase/test-u16-toupper.c: Likewise.
39315         * tests/unicase/test-u32-casecmp.c: Likewise.
39316         * tests/unicase/test-u32-casecoll.c: Likewise.
39317         * tests/unicase/test-u32-casefold.c: Likewise.
39318         * tests/unicase/test-u32-is-cased.c: Likewise.
39319         * tests/unicase/test-u32-is-casefolded.c: Likewise.
39320         * tests/unicase/test-u32-is-lowercase.c: Likewise.
39321         * tests/unicase/test-u32-is-titlecase.c: Likewise.
39322         * tests/unicase/test-u32-is-uppercase.c: Likewise.
39323         * tests/unicase/test-u32-tolower.c: Likewise.
39324         * tests/unicase/test-u32-totitle.c: Likewise.
39325         * tests/unicase/test-u32-toupper.c: Likewise.
39326         * tests/unicase/test-ulc-casecmp.c: Likewise.
39327         * tests/unicase/test-ulc-casecoll.c: Likewise.
39328         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39329         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39330         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39331         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39332         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39333         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39334         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39335         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39336         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39337         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39338         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39339         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39340         * tests/unictype/test-bidi_byname.c: Likewise.
39341         * tests/unictype/test-bidi_name.c: Likewise.
39342         * tests/unictype/test-bidi_of.c: Likewise.
39343         * tests/unictype/test-bidi_test.c: Likewise.
39344         * tests/unictype/test-block_list.c: Likewise.
39345         * tests/unictype/test-block_of.c: Likewise.
39346         * tests/unictype/test-block_test.c: Likewise.
39347         * tests/unictype/test-categ_and.c: Likewise.
39348         * tests/unictype/test-categ_and_not.c: Likewise.
39349         * tests/unictype/test-categ_byname.c: Likewise.
39350         * tests/unictype/test-categ_name.c: Likewise.
39351         * tests/unictype/test-categ_none.c: Likewise.
39352         * tests/unictype/test-categ_of.c: Likewise.
39353         * tests/unictype/test-categ_or.c: Likewise.
39354         * tests/unictype/test-categ_test_withtable.c: Likewise.
39355         * tests/unictype/test-combining.c: Likewise.
39356         * tests/unictype/test-decdigit.c: Likewise.
39357         * tests/unictype/test-digit.c: Likewise.
39358         * tests/unictype/test-mirror.c: Likewise.
39359         * tests/unictype/test-numeric.c: Likewise.
39360         * tests/unictype/test-pr_byname.c: Likewise.
39361         * tests/unictype/test-pr_test.c: Likewise.
39362         * tests/unictype/test-predicate-part1.h: Likewise.
39363         * tests/unictype/test-scripts.c: Likewise.
39364         * tests/unictype/test-sy_c_ident.c: Likewise.
39365         * tests/unictype/test-sy_java_ident.c: Likewise.
39366         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
39367         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
39368         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
39369         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
39370         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
39371         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
39372         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
39373         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
39374         * tests/uninorm/test-canonical-decomposition.c: Likewise.
39375         * tests/uninorm/test-compat-decomposition.c: Likewise.
39376         * tests/uninorm/test-composition.c: Likewise.
39377         * tests/uninorm/test-decomposing-form.c: Likewise.
39378         * tests/uninorm/test-decomposition.c: Likewise.
39379         * tests/uninorm/test-u8-nfc.c: Likewise.
39380         * tests/uninorm/test-u8-nfd.c: Likewise.
39381         * tests/uninorm/test-u8-nfkc.c: Likewise.
39382         * tests/uninorm/test-u8-nfkd.c: Likewise.
39383         * tests/uninorm/test-u8-normcmp.c: Likewise.
39384         * tests/uninorm/test-u8-normcoll.c: Likewise.
39385         * tests/uninorm/test-u16-nfc.c: Likewise.
39386         * tests/uninorm/test-u16-nfd.c: Likewise.
39387         * tests/uninorm/test-u16-nfkc.c: Likewise.
39388         * tests/uninorm/test-u16-nfkd.c: Likewise.
39389         * tests/uninorm/test-u16-normcmp.c: Likewise.
39390         * tests/uninorm/test-u16-normcoll.c: Likewise.
39391         * tests/uninorm/test-u32-nfc.c: Likewise.
39392         * tests/uninorm/test-u32-nfd.c: Likewise.
39393         * tests/uninorm/test-u32-nfkc.c: Likewise.
39394         * tests/uninorm/test-u32-nfkd.c: Likewise.
39395         * tests/uninorm/test-u32-normalize-big.c: Likewise.
39396         * tests/uninorm/test-u32-normcmp.c: Likewise.
39397         * tests/uninorm/test-u32-normcoll.c: Likewise.
39398         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
39399         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39400         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39401         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39402         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39403         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39404         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39405         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39406         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39407         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39408         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39409         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39410         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39411         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39412         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39413         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39414         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39415         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39416         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39417         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39418         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39419         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39420         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39421         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39422         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39423         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39424         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39425         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39426         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39427         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
39428         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
39429         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
39430         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
39431         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39432         * tests/uniwidth/test-u8-width.c: Likewise.
39433         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39434         * tests/uniwidth/test-u16-width.c: Likewise.
39435         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39436         * tests/uniwidth/test-u32-width.c: Likewise.
39437         * tests/uniwidth/test-uc_width.c: Likewise.
39438         * tests/uniwidth/test-uc_width2.c: Likewise.
39439         * modules/acl-tests (Files): Add tests/macros.h.
39440         * modules/areadlink-tests (Files): Likewise.
39441         * modules/areadlink-with-size-tests (Files): Likewise.
39442         * modules/areadlinkat-tests (Files): Likewise.
39443         * modules/areadlinkat-with-size-tests (Files): Likewise.
39444         * modules/argmatch-tests (Files): Likewise.
39445         * modules/argv-iter-tests (Files): Likewise.
39446         * modules/array-list-tests (Files): Likewise.
39447         * modules/array-mergesort-tests (Files): Likewise.
39448         * modules/array-oset-tests (Files): Likewise.
39449         * modules/avltree-list-tests (Files): Likewise.
39450         * modules/avltree-oset-tests (Files): Likewise.
39451         * modules/avltreehash-list-tests (Files): Likewise.
39452         * modules/base64-tests (Files): Likewise.
39453         * modules/binary-io-tests (Files): Likewise.
39454         * modules/bitrotate-tests (Files): Likewise.
39455         * modules/btowc-tests (Files): Likewise.
39456         * modules/byteswap-tests (Files): Likewise.
39457         * modules/c-ctype-tests (Files): Likewise.
39458         * modules/c-stack-tests (Files): Likewise.
39459         * modules/c-strcase-tests (Files): Likewise.
39460         * modules/c-strcasestr-tests (Files): Likewise.
39461         * modules/c-strstr-tests (Files): Likewise.
39462         * modules/canonicalize-lgpl-tests (Files): Likewise.
39463         * modules/canonicalize-tests (Files): Likewise.
39464         * modules/carray-list-tests (Files): Likewise.
39465         * modules/ceilf-tests (Files): Likewise.
39466         * modules/ceill-tests (Files): Likewise.
39467         * modules/chown-tests (Files): Likewise.
39468         * modules/cloexec-tests (Files): Likewise.
39469         * modules/copy-file-tests (Files): Likewise.
39470         * modules/count-one-bits-tests (Files): Likewise.
39471         * modules/dprintf-posix-tests (Files): Likewise.
39472         * modules/dup2-tests (Files): Likewise.
39473         * modules/dup3-tests (Files): Likewise.
39474         * modules/duplocale-tests (Files): Likewise.
39475         * modules/fbufmode-tests (Files): Likewise.
39476         * modules/fchdir-tests (Files): Likewise.
39477         * modules/fcntl-safer-tests (Files): Likewise.
39478         * modules/fcntl-tests (Files): Likewise.
39479         * modules/fdopendir-tests (Files): Likewise.
39480         * modules/fdutimensat-tests (Files): Likewise.
39481         * modules/fflush-tests (Files): Likewise.
39482         * modules/filevercmp-tests (Files): Likewise.
39483         * modules/flock-tests (Files): Likewise.
39484         * modules/floorf-tests (Files): Likewise.
39485         * modules/floorl-tests (Files): Likewise.
39486         * modules/fnmatch-tests (Files): Likewise.
39487         * modules/fopen-safer-tests (Files): Likewise.
39488         * modules/fopen-tests (Files): Likewise.
39489         * modules/fpending-tests (Files): Likewise.
39490         * modules/fprintf-posix-tests (Files): Likewise.
39491         * modules/fpurge-tests (Files): Likewise.
39492         * modules/freadable-tests (Files): Likewise.
39493         * modules/freadahead-tests (Files): Likewise.
39494         * modules/freading-tests (Files): Likewise.
39495         * modules/freadptr-tests (Files): Likewise.
39496         * modules/freadseek-tests (Files): Likewise.
39497         * modules/freopen-tests (Files): Likewise.
39498         * modules/frexp-nolibm-tests (Files): Likewise.
39499         * modules/frexp-tests (Files): Likewise.
39500         * modules/frexpl-nolibm-tests (Files): Likewise.
39501         * modules/frexpl-tests (Files): Likewise.
39502         * modules/fseek-tests (Files): Likewise.
39503         * modules/fseeko-tests (Files): Likewise.
39504         * modules/fstrcmp-tests (Files): Likewise.
39505         * modules/fsync-tests (Files): Likewise.
39506         * modules/ftell-tests (Files): Likewise.
39507         * modules/ftello-tests (Files): Likewise.
39508         * modules/func-tests (Files): Likewise.
39509         * modules/futimens-tests (Files): Likewise.
39510         * modules/fwritable-tests (Files): Likewise.
39511         * modules/fwriting-tests (Files): Likewise.
39512         * modules/getcwd-tests (Files): Likewise.
39513         * modules/getdate-tests (Files): Likewise.
39514         * modules/getdelim-tests (Files): Likewise.
39515         * modules/getdtablesize-tests (Files): Likewise.
39516         * modules/getgroups-tests (Files): Likewise.
39517         * modules/getline-tests (Files): Likewise.
39518         * modules/getndelim2-tests (Files): Likewise.
39519         * modules/glob-tests (Files): Likewise.
39520         * modules/hash-tests (Files): Likewise.
39521         * modules/i-ring-tests (Files): Likewise.
39522         * modules/iconv-tests (Files): Likewise.
39523         * modules/iconv_open-utf-tests (Files): Likewise.
39524         * modules/idpriv-drop-tests (Files): Likewise.
39525         * modules/idpriv-droptemp-tests (Files): Likewise.
39526         * modules/inet_ntop-tests (Files): Likewise.
39527         * modules/inet_pton-tests (Files): Likewise.
39528         * modules/isblank-tests (Files): Likewise.
39529         * modules/isfinite-tests (Files): Likewise.
39530         * modules/isinf-tests (Files): Likewise.
39531         * modules/isnan-tests (Files): Likewise.
39532         * modules/isnand-nolibm-tests (Files): Likewise.
39533         * modules/isnand-tests (Files): Likewise.
39534         * modules/isnanf-nolibm-tests (Files): Likewise.
39535         * modules/isnanf-tests (Files): Likewise.
39536         * modules/isnanl-nolibm-tests (Files): Likewise.
39537         * modules/isnanl-tests (Files): Likewise.
39538         * modules/lchown-tests (Files): Likewise.
39539         * modules/ldexpl-tests (Files): Likewise.
39540         * modules/link-tests (Files): Likewise.
39541         * modules/linkat-tests (Files): Likewise.
39542         * modules/linked-list-tests (Files): Likewise.
39543         * modules/linkedhash-list-tests (Files): Likewise.
39544         * modules/localename-tests (Files): Likewise.
39545         * modules/lseek-tests (Files): Likewise.
39546         * modules/lstat-tests (Files): Likewise.
39547         * modules/mbmemcasecmp-tests (Files): Likewise.
39548         * modules/mbmemcasecoll-tests (Files): Likewise.
39549         * modules/mbrtowc-tests (Files): Likewise.
39550         * modules/mbscasecmp-tests (Files): Likewise.
39551         * modules/mbscasestr-tests (Files): Likewise.
39552         * modules/mbschr-tests (Files): Likewise.
39553         * modules/mbscspn-tests (Files): Likewise.
39554         * modules/mbsinit-tests (Files): Likewise.
39555         * modules/mbsncasecmp-tests (Files): Likewise.
39556         * modules/mbsnrtowcs-tests (Files): Likewise.
39557         * modules/mbspbrk-tests (Files): Likewise.
39558         * modules/mbspcasecmp-tests (Files): Likewise.
39559         * modules/mbsrchr-tests (Files): Likewise.
39560         * modules/mbsrtowcs-tests (Files): Likewise.
39561         * modules/mbsspn-tests (Files): Likewise.
39562         * modules/mbsstr-tests (Files): Likewise.
39563         * modules/memchr-tests (Files): Likewise.
39564         * modules/memchr2-tests (Files): Likewise.
39565         * modules/memcmp-tests (Files): Likewise.
39566         * modules/memmem-tests (Files): Likewise.
39567         * modules/memrchr-tests (Files): Likewise.
39568         * modules/mkdir-tests (Files): Likewise.
39569         * modules/mkfifo-tests (Files): Likewise.
39570         * modules/mkfifoat-tests (Files): Likewise.
39571         * modules/mknod-tests (Files): Likewise.
39572         * modules/nanosleep-tests (Files): Likewise.
39573         * modules/nl_langinfo-tests (Files): Likewise.
39574         * modules/obstack-printf-tests (Files): Likewise.
39575         * modules/open-tests (Files): Likewise.
39576         * modules/openat-tests (Files): Likewise.
39577         * modules/pipe-filter-gi-tests (Files): Likewise.
39578         * modules/pipe-filter-ii-tests (Files): Likewise.
39579         * modules/pipe2-tests (Files): Likewise.
39580         * modules/popen-safer-tests (Files): Likewise.
39581         * modules/popen-tests (Files): Likewise.
39582         * modules/posixtm-tests (Files): Likewise.
39583         * modules/pread-tests (Files): Likewise.
39584         * modules/printf-frexp-tests (Files): Likewise.
39585         * modules/printf-frexpl-tests (Files): Likewise.
39586         * modules/printf-posix-tests (Files): Likewise.
39587         * modules/priv-set-tests (Files): Likewise.
39588         * modules/quotearg-tests (Files): Likewise.
39589         * modules/random_r-tests (Files): Likewise.
39590         * modules/rawmemchr-tests (Files): Likewise.
39591         * modules/rbtree-list-tests (Files): Likewise.
39592         * modules/rbtree-oset-tests (Files): Likewise.
39593         * modules/rbtreehash-list-tests (Files): Likewise.
39594         * modules/readlink-tests (Files): Likewise.
39595         * modules/remove-tests (Files): Likewise.
39596         * modules/rename-tests (Files): Likewise.
39597         * modules/renameat-tests (Files): Likewise.
39598         * modules/rmdir-tests (Files): Likewise.
39599         * modules/round-tests (Files): Likewise.
39600         * modules/roundf-tests (Files): Likewise.
39601         * modules/roundl-tests (Files): Likewise.
39602         * modules/safe-alloc-tests (Files): Likewise.
39603         * modules/setenv-tests (Files): Likewise.
39604         * modules/sigaction-tests (Files): Likewise.
39605         * modules/signbit-tests (Files): Likewise.
39606         * modules/sleep-tests (Files): Likewise.
39607         * modules/snprintf-posix-tests (Files): Likewise.
39608         * modules/snprintf-tests (Files): Likewise.
39609         * modules/sprintf-posix-tests (Files): Likewise.
39610         * modules/stat-tests (Files): Likewise.
39611         * modules/stat-time-tests (Files): Likewise.
39612         * modules/strcasestr-tests (Files): Likewise.
39613         * modules/strchrnul-tests (Files): Likewise.
39614         * modules/strerror-tests (Files): Likewise.
39615         * modules/striconv-tests (Files): Likewise.
39616         * modules/striconveh-tests (Files): Likewise.
39617         * modules/striconveha-tests (Files): Likewise.
39618         * modules/strsignal-tests (Files): Likewise.
39619         * modules/strstr-tests (Files): Likewise.
39620         * modules/strtod-tests (Files): Likewise.
39621         * modules/strverscmp-tests (Files): Likewise.
39622         * modules/symlink-tests (Files): Likewise.
39623         * modules/symlinkat-tests (Files): Likewise.
39624         * modules/trunc-tests (Files): Likewise.
39625         * modules/truncf-tests (Files): Likewise.
39626         * modules/truncl-tests (Files): Likewise.
39627         * modules/uname-tests (Files): Likewise.
39628         * modules/unicase/cased-tests (Files): Likewise.
39629         * modules/unicase/ignorable-tests (Files): Likewise.
39630         * modules/unicase/locale-language-tests (Files): Likewise.
39631         * modules/unicase/tolower-tests (Files): Likewise.
39632         * modules/unicase/totitle-tests (Files): Likewise.
39633         * modules/unicase/toupper-tests (Files): Likewise.
39634         * modules/unicase/u8-casecmp-tests (Files): Likewise.
39635         * modules/unicase/u8-casecoll-tests (Files): Likewise.
39636         * modules/unicase/u8-casefold-tests (Files): Likewise.
39637         * modules/unicase/u8-is-cased-tests (Files): Likewise.
39638         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
39639         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
39640         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
39641         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
39642         * modules/unicase/u8-tolower-tests (Files): Likewise.
39643         * modules/unicase/u8-totitle-tests (Files): Likewise.
39644         * modules/unicase/u8-toupper-tests (Files): Likewise.
39645         * modules/unicase/u16-casecmp-tests (Files): Likewise.
39646         * modules/unicase/u16-casecoll-tests (Files): Likewise.
39647         * modules/unicase/u16-casefold-tests (Files): Likewise.
39648         * modules/unicase/u16-is-cased-tests (Files): Likewise.
39649         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
39650         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
39651         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
39652         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
39653         * modules/unicase/u16-tolower-tests (Files): Likewise.
39654         * modules/unicase/u16-totitle-tests (Files): Likewise.
39655         * modules/unicase/u16-toupper-tests (Files): Likewise.
39656         * modules/unicase/u32-casecmp-tests (Files): Likewise.
39657         * modules/unicase/u32-casecoll-tests (Files): Likewise.
39658         * modules/unicase/u32-casefold-tests (Files): Likewise.
39659         * modules/unicase/u32-is-cased-tests (Files): Likewise.
39660         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
39661         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
39662         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
39663         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
39664         * modules/unicase/u32-tolower-tests (Files): Likewise.
39665         * modules/unicase/u32-totitle-tests (Files): Likewise.
39666         * modules/unicase/u32-toupper-tests (Files): Likewise.
39667         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
39668         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
39669         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
39670         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
39671         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
39672         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
39673         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
39674         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
39675         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
39676         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
39677         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
39678         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
39679         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
39680         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
39681         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
39682         * modules/unictype/bidicategory-name-tests (Files): Likewise.
39683         * modules/unictype/bidicategory-of-tests (Files): Likewise.
39684         * modules/unictype/bidicategory-test-tests (Files): Likewise.
39685         * modules/unictype/block-list-tests (Files): Likewise.
39686         * modules/unictype/block-of-tests (Files): Likewise.
39687         * modules/unictype/block-test-tests (Files): Likewise.
39688         * modules/unictype/category-C-tests (Files): Likewise.
39689         * modules/unictype/category-Cc-tests (Files): Likewise.
39690         * modules/unictype/category-Cf-tests (Files): Likewise.
39691         * modules/unictype/category-Cn-tests (Files): Likewise.
39692         * modules/unictype/category-Co-tests (Files): Likewise.
39693         * modules/unictype/category-Cs-tests (Files): Likewise.
39694         * modules/unictype/category-L-tests (Files): Likewise.
39695         * modules/unictype/category-Ll-tests (Files): Likewise.
39696         * modules/unictype/category-Lm-tests (Files): Likewise.
39697         * modules/unictype/category-Lo-tests (Files): Likewise.
39698         * modules/unictype/category-Lt-tests (Files): Likewise.
39699         * modules/unictype/category-Lu-tests (Files): Likewise.
39700         * modules/unictype/category-M-tests (Files): Likewise.
39701         * modules/unictype/category-Mc-tests (Files): Likewise.
39702         * modules/unictype/category-Me-tests (Files): Likewise.
39703         * modules/unictype/category-Mn-tests (Files): Likewise.
39704         * modules/unictype/category-N-tests (Files): Likewise.
39705         * modules/unictype/category-Nd-tests (Files): Likewise.
39706         * modules/unictype/category-Nl-tests (Files): Likewise.
39707         * modules/unictype/category-No-tests (Files): Likewise.
39708         * modules/unictype/category-P-tests (Files): Likewise.
39709         * modules/unictype/category-Pc-tests (Files): Likewise.
39710         * modules/unictype/category-Pd-tests (Files): Likewise.
39711         * modules/unictype/category-Pe-tests (Files): Likewise.
39712         * modules/unictype/category-Pf-tests (Files): Likewise.
39713         * modules/unictype/category-Pi-tests (Files): Likewise.
39714         * modules/unictype/category-Po-tests (Files): Likewise.
39715         * modules/unictype/category-Ps-tests (Files): Likewise.
39716         * modules/unictype/category-S-tests (Files): Likewise.
39717         * modules/unictype/category-Sc-tests (Files): Likewise.
39718         * modules/unictype/category-Sk-tests (Files): Likewise.
39719         * modules/unictype/category-Sm-tests (Files): Likewise.
39720         * modules/unictype/category-So-tests (Files): Likewise.
39721         * modules/unictype/category-Z-tests (Files): Likewise.
39722         * modules/unictype/category-Zl-tests (Files): Likewise.
39723         * modules/unictype/category-Zp-tests (Files): Likewise.
39724         * modules/unictype/category-Zs-tests (Files): Likewise.
39725         * modules/unictype/category-and-not-tests (Files): Likewise.
39726         * modules/unictype/category-and-tests (Files): Likewise.
39727         * modules/unictype/category-byname-tests (Files): Likewise.
39728         * modules/unictype/category-name-tests (Files): Likewise.
39729         * modules/unictype/category-none-tests (Files): Likewise.
39730         * modules/unictype/category-of-tests (Files): Likewise.
39731         * modules/unictype/category-or-tests (Files): Likewise.
39732         * modules/unictype/category-test-withtable-tests (Files): Likewise.
39733         * modules/unictype/combining-class-tests (Files): Likewise.
39734         * modules/unictype/ctype-alnum-tests (Files): Likewise.
39735         * modules/unictype/ctype-alpha-tests (Files): Likewise.
39736         * modules/unictype/ctype-blank-tests (Files): Likewise.
39737         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
39738         * modules/unictype/ctype-digit-tests (Files): Likewise.
39739         * modules/unictype/ctype-graph-tests (Files): Likewise.
39740         * modules/unictype/ctype-lower-tests (Files): Likewise.
39741         * modules/unictype/ctype-print-tests (Files): Likewise.
39742         * modules/unictype/ctype-punct-tests (Files): Likewise.
39743         * modules/unictype/ctype-space-tests (Files): Likewise.
39744         * modules/unictype/ctype-upper-tests (Files): Likewise.
39745         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
39746         * modules/unictype/decimal-digit-tests (Files): Likewise.
39747         * modules/unictype/digit-tests (Files): Likewise.
39748         * modules/unictype/mirror-tests (Files): Likewise.
39749         * modules/unictype/numeric-tests (Files): Likewise.
39750         * modules/unictype/property-alphabetic-tests (Files): Likewise.
39751         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
39752         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
39753         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
39754         Likewise.
39755         * modules/unictype/property-bidi-block-separator-tests (Files):
39756         Likewise.
39757         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
39758         Likewise.
39759         * modules/unictype/property-bidi-common-separator-tests (Files):
39760         Likewise.
39761         * modules/unictype/property-bidi-control-tests (Files): Likewise.
39762         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
39763         Likewise.
39764         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
39765         Likewise.
39766         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
39767         Likewise.
39768         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
39769         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
39770         Likewise.
39771         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
39772         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
39773         Likewise.
39774         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
39775         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
39776         * modules/unictype/property-bidi-segment-separator-tests (Files):
39777         Likewise.
39778         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
39779         * modules/unictype/property-byname-tests (Files): Likewise.
39780         * modules/unictype/property-combining-tests (Files): Likewise.
39781         * modules/unictype/property-composite-tests (Files): Likewise.
39782         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
39783         * modules/unictype/property-dash-tests (Files): Likewise.
39784         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
39785         * modules/unictype/property-default-ignorable-code-point-tests (Files):
39786         Likewise.
39787         * modules/unictype/property-deprecated-tests (Files): Likewise.
39788         * modules/unictype/property-diacritic-tests (Files): Likewise.
39789         * modules/unictype/property-extender-tests (Files): Likewise.
39790         * modules/unictype/property-format-control-tests (Files): Likewise.
39791         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
39792         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
39793         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
39794         * modules/unictype/property-hex-digit-tests (Files): Likewise.
39795         * modules/unictype/property-hyphen-tests (Files): Likewise.
39796         * modules/unictype/property-id-continue-tests (Files): Likewise.
39797         * modules/unictype/property-id-start-tests (Files): Likewise.
39798         * modules/unictype/property-ideographic-tests (Files): Likewise.
39799         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
39800         * modules/unictype/property-ids-trinary-operator-tests (Files):
39801         Likewise.
39802         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
39803         * modules/unictype/property-iso-control-tests (Files): Likewise.
39804         * modules/unictype/property-join-control-tests (Files): Likewise.
39805         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
39806         * modules/unictype/property-line-separator-tests (Files): Likewise.
39807         * modules/unictype/property-logical-order-exception-tests (Files):
39808         Likewise.
39809         * modules/unictype/property-lowercase-tests (Files): Likewise.
39810         * modules/unictype/property-math-tests (Files): Likewise.
39811         * modules/unictype/property-non-break-tests (Files): Likewise.
39812         * modules/unictype/property-not-a-character-tests (Files): Likewise.
39813         * modules/unictype/property-numeric-tests (Files): Likewise.
39814         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
39815         * modules/unictype/property-other-default-ignorable-code-point-tests
39816         (Files): Likewise.
39817         * modules/unictype/property-other-grapheme-extend-tests (Files):
39818         Likewise.
39819         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
39820         * modules/unictype/property-other-id-start-tests (Files): Likewise.
39821         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
39822         * modules/unictype/property-other-math-tests (Files): Likewise.
39823         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
39824         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
39825         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
39826         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
39827         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
39828         * modules/unictype/property-private-use-tests (Files): Likewise.
39829         * modules/unictype/property-punctuation-tests (Files): Likewise.
39830         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
39831         * modules/unictype/property-radical-tests (Files): Likewise.
39832         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
39833         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
39834         * modules/unictype/property-space-tests (Files): Likewise.
39835         * modules/unictype/property-terminal-punctuation-tests (Files):
39836         Likewise.
39837         * modules/unictype/property-test-tests (Files): Likewise.
39838         * modules/unictype/property-titlecase-tests (Files): Likewise.
39839         * modules/unictype/property-unassigned-code-value-tests (Files):
39840         Likewise.
39841         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
39842         * modules/unictype/property-uppercase-tests (Files): Likewise.
39843         * modules/unictype/property-variation-selector-tests (Files): Likewise.
39844         * modules/unictype/property-white-space-tests (Files): Likewise.
39845         * modules/unictype/property-xid-continue-tests (Files): Likewise.
39846         * modules/unictype/property-xid-start-tests (Files): Likewise.
39847         * modules/unictype/property-zero-width-tests (Files): Likewise.
39848         * modules/unictype/scripts-tests (Files): Likewise.
39849         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
39850         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
39851         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
39852         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
39853         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
39854         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
39855         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
39856         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
39857         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
39858         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
39859         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
39860         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
39861         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
39862         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
39863         * modules/uninorm/composition-tests (Files): Likewise.
39864         * modules/uninorm/decomposing-form-tests (Files): Likewise.
39865         * modules/uninorm/decomposition-tests (Files): Likewise.
39866         * modules/uninorm/filter-tests (Files): Likewise.
39867         * modules/uninorm/nfc-tests (Files): Likewise.
39868         * modules/uninorm/nfd-tests (Files): Likewise.
39869         * modules/uninorm/nfkc-tests (Files): Likewise.
39870         * modules/uninorm/nfkd-tests (Files): Likewise.
39871         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
39872         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
39873         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
39874         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
39875         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
39876         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
39877         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
39878         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39879         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
39880         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
39881         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
39882         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
39883         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39884         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
39885         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
39886         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
39887         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
39888         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39889         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
39890         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
39891         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
39892         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
39893         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39894         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
39895         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
39896         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
39897         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
39898         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
39899         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
39900         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
39901         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
39902         * modules/uniwidth/u8-width-tests (Files): Likewise.
39903         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
39904         * modules/uniwidth/u16-width-tests (Files): Likewise.
39905         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
39906         * modules/uniwidth/u32-width-tests (Files): Likewise.
39907         * modules/uniwidth/width-tests (Files): Likewise.
39908         * modules/unlink-tests (Files): Likewise.
39909         * modules/unsetenv-tests (Files): Likewise.
39910         * modules/usleep-tests (Files): Likewise.
39911         * modules/utimens-tests (Files): Likewise.
39912         * modules/utimensat-tests (Files): Likewise.
39913         * modules/vasnprintf-posix-tests (Files): Likewise.
39914         * modules/vasnprintf-tests (Files): Likewise.
39915         * modules/vasprintf-posix-tests (Files): Likewise.
39916         * modules/vasprintf-tests (Files): Likewise.
39917         * modules/vdprintf-posix-tests (Files): Likewise.
39918         * modules/vfprintf-posix-tests (Files): Likewise.
39919         * modules/vprintf-posix-tests (Files): Likewise.
39920         * modules/vsnprintf-posix-tests (Files): Likewise.
39921         * modules/vsnprintf-tests (Files): Likewise.
39922         * modules/vsprintf-posix-tests (Files): Likewise.
39923         * modules/wcrtomb-tests (Files): Likewise.
39924         * modules/wcsnrtombs-tests (Files): Likewise.
39925         * modules/wcsrtombs-tests (Files): Likewise.
39926         * modules/wctype-tests (Files): Likewise.
39927         * modules/wcwidth-tests (Files): Likewise.
39928         * modules/xmemdup0-tests (Files): Likewise.
39929         * modules/xprintf-posix-tests (Files): Likewise.
39930         * modules/xvasprintf-tests (Files): Likewise.
39931
39932 2009-12-24  Eric Blake  <ebb9@byu.net>
39933
39934         test-nanosleep: fix typo
39935         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
39936         patch.
39937         Reported by Bruno Haible.
39938
39939 2009-12-24  Bruno Haible  <bruno@clisp.org>
39940
39941         Reduce namespace pollution on glibc systems.
39942         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
39943         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
39944         systems.
39945         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
39946         <getopt.h> on glibc systems.
39947         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
39948         systems.
39949         * lib/fcntl.c: Include <unistd.h> here instead.
39950
39951 2009-12-24  Bruno Haible  <bruno@clisp.org>
39952
39953         * lib/stdlib.in.h (includes): Fix typo in today's commit.
39954
39955 2009-12-24  Eric Blake  <ebb9@byu.net>
39956
39957         tests: add signature checks
39958         * tests/signature.h (SIGNATURE_CHECK): New file.
39959         * modules/atexit-tests (Files): Use it.
39960         * modules/btowc-tests (Files): Likewise.
39961         * modules/canonicalize-lgpl-tests (Files): Likewise.
39962         * modules/ceilf-tests (Files): Likewise.
39963         * modules/ceill-tests (Files): Likewise.
39964         * modules/chown-tests (Files): Likewise.
39965         * modules/dprintf-posix-tests (Files): Likewise.
39966         * modules/dup2-tests (Files): Likewise.
39967         * modules/dup3-tests (Files): Likewise.
39968         * modules/duplocale-tests (Files): Likewise.
39969         * modules/fchdir-tests (Files): Likewise.
39970         * modules/fcntl-tests (Files): Likewise.
39971         * modules/fdopendir-tests (Files): Likewise.
39972         * modules/fflush-tests (Files): Likewise.
39973         * modules/flock-tests (Files): Likewise.
39974         * modules/floorf-tests (Files): Likewise.
39975         * modules/floorl-tests (Files): Likewise.
39976         * modules/fnmatch-tests (Files): Likewise.
39977         * modules/fopen-tests (Files): Likewise.
39978         * modules/fprintf-posix-tests (Files): Likewise.
39979         * modules/freopen-tests (Files): Likewise.
39980         * modules/frexp-nolibm-tests (Files): Likewise.
39981         * modules/frexp-tests (Files): Likewise.
39982         * modules/frexpl-nolibm-tests (Files): Likewise.
39983         * modules/frexpl-tests (Files): Likewise.
39984         * modules/fseek-tests (Files): Likewise.
39985         * modules/fseeko-tests (Files): Likewise.
39986         * modules/fsync-tests (Files): Likewise.
39987         * modules/ftell-tests (Files): Likewise.
39988         * modules/ftello-tests (Files): Likewise.
39989         * modules/futimens-tests (Files): Likewise.
39990         * modules/getaddrinfo-tests (Files): Likewise.
39991         * modules/getcwd-tests (Files): Likewise.
39992         * modules/getdelim-tests (Files): Likewise.
39993         * modules/getdtablesize-tests (Files): Likewise.
39994         * modules/getgroups-tests (Files): Likewise.
39995         * modules/gethostname-tests (Files): Likewise.
39996         * modules/getline-tests (Files): Likewise.
39997         * modules/getopt-posix-tests (Files): Likewise.
39998         * modules/gettimeofday-tests (Files): Likewise.
39999         * modules/glob-tests (Files): Likewise.
40000         * modules/iconv-tests (Files): Likewise.
40001         * modules/inet_ntop-tests (Files): Likewise.
40002         * modules/inet_pton-tests (Files): Likewise.
40003         * modules/isblank-tests (Files): Likewise.
40004         * modules/lchown-tests (Files): Likewise.
40005         * modules/ldexpl-tests (Files): Likewise.
40006         * modules/link-tests (Files): Likewise.
40007         * modules/linkat-tests (Files): Likewise.
40008         * modules/lseek-tests (Files): Likewise.
40009         * modules/lstat-tests (Files): Likewise.
40010         * modules/mbrtowc-tests (Files): Likewise.
40011         * modules/mbsinit-tests (Files): Likewise.
40012         * modules/mbsnrtowcs-tests (Files): Likewise.
40013         * modules/mbsrtowcs-tests (Files): Likewise.
40014         * modules/memchr-tests (Files): Likewise.
40015         * modules/memcmp-tests (Files): Likewise.
40016         * modules/memmem-tests (Files): Likewise.
40017         * modules/memrchr-tests (Files): Likewise.
40018         * modules/mkdir-tests (Files): Likewise.
40019         * modules/mkfifo-tests (Files): Likewise.
40020         * modules/mkfifoat-tests (Files): Likewise.
40021         * modules/mknod-tests (Files): Likewise.
40022         * modules/nanosleep-tests (Files): Likewise.
40023         * modules/nl_langinfo-tests (Files): Likewise.
40024         * modules/obstack-printf-tests (Files): Likewise.
40025         * modules/open-tests (Files): Likewise.
40026         * modules/openat-tests (Files): Likewise.
40027         * modules/perror-tests (Files): Likewise.
40028         * modules/pipe2-tests (Files): Likewise.
40029         * modules/poll-tests (Files): Likewise.
40030         * modules/popen-tests (Files): Likewise.
40031         * modules/posix_spawn-tests (Files): Likewise.
40032         * modules/posix_spawnp-tests (Files): Likewise.
40033         * modules/pread-tests (Files): Likewise.
40034         * modules/printf-posix-tests (Files): Likewise.
40035         * modules/pty-tests (Files): Likewise.
40036         * modules/random_r-tests (Files): Likewise.
40037         * modules/rawmemchr-tests (Files): Likewise.
40038         * modules/readlink-tests (Files): Likewise.
40039         * modules/remove-tests (Files): Likewise.
40040         * modules/rename-tests (Files): Likewise.
40041         * modules/renameat-tests (Files): Likewise.
40042         * modules/rmdir-tests (Files): Likewise.
40043         * modules/round-tests (Files): Likewise.
40044         * modules/roundf-tests (Files): Likewise.
40045         * modules/roundl-tests (Files): Likewise.
40046         * modules/select-tests (Files): Likewise.
40047         * modules/setenv-tests (Files): Likewise.
40048         * modules/sigaction-tests (Files): Likewise.
40049         * modules/sleep-tests (Files): Likewise.
40050         * modules/snprintf-posix-tests (Files): Likewise.
40051         * modules/snprintf-tests (Files): Likewise.
40052         * modules/sprintf-posix-tests (Files): Likewise.
40053         * modules/stat-tests (Files): Likewise.
40054         * modules/strcasestr-tests (Files): Likewise.
40055         * modules/strchrnul-tests (Files): Likewise.
40056         * modules/strerror-tests (Files): Likewise.
40057         * modules/strsignal-tests (Files): Likewise.
40058         * modules/strstr-tests (Files): Likewise.
40059         * modules/strtod-tests (Files): Likewise.
40060         * modules/strverscmp-tests (Files): Likewise.
40061         * modules/symlink-tests (Files): Likewise.
40062         * modules/symlinkat-tests (Files): Likewise.
40063         * modules/times-tests (Files): Likewise.
40064         * modules/trunc-tests (Files): Likewise.
40065         * modules/truncf-tests (Files): Likewise.
40066         * modules/truncl-tests (Files): Likewise.
40067         * modules/tsearch-tests (Files): Likewise.
40068         * modules/uname-tests (Files): Likewise.
40069         * modules/unlink-tests (Files): Likewise.
40070         * modules/unsetenv-tests (Files): Likewise.
40071         * modules/usleep-tests (Files): Likewise.
40072         * modules/utimensat-tests (Files): Likewise.
40073         * modules/vasprintf-tests (Files): Likewise.
40074         * modules/vdprintf-posix-tests (Files): Likewise.
40075         * modules/vfprintf-posix-tests (Files): Likewise.
40076         * modules/vprintf-posix-tests (Files): Likewise.
40077         * modules/vsnprintf-posix-tests (Files): Likewise.
40078         * modules/vsnprintf-tests (Files): Likewise.
40079         * modules/vsprintf-posix-tests (Files): Likewise.
40080         * modules/wcrtomb-tests (Files): Likewise.
40081         * modules/wcsnrtombs-tests (Files): Likewise.
40082         * modules/wcsrtombs-tests (Files): Likewise.
40083         * modules/wcwidth-tests (Files): Likewise.
40084         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
40085         * tests/test-isinf.c (isinf): Likewise.
40086         * tests/test-isnan.c (isnan): Likewise.
40087         * tests/test-signbit.c (signbit): Likewise.
40088         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
40089         declaration, either as macro or with correct signature.
40090         (select): Ensure function under test is declared with correct
40091         signature in correct header.
40092         * tests/test-atexit.c (atexit): Likewise.
40093         * tests/test-btowc.c (btowc): Likewise.
40094         * tests/test-canonicalize-lgpl.c (realpath)
40095         (canonicalize_file_name): Likewise.
40096         * tests/test-ceilf1.c (ceilf): Likewise.
40097         * tests/test-ceill.c (ceill): Likewise.
40098         * tests/test-chown.c (chown): Likewise.
40099         * tests/test-dprintf-posix.c (dprintf): Likewise.
40100         * tests/test-dup2.c (dup2): Likewise.
40101         * tests/test-dup3.c (dup3): Likewise.
40102         * tests/test-duplocale.c (duplocale): Likewise.
40103         * tests/test-fchdir.c (fchdir): Likewise.
40104         * tests/test-fchownat.c (fchownat): Likewise.
40105         * tests/test-fcntl.c (fcntl): Likewise.
40106         * tests/test-fdopendir.c (fdopendir): Likewise.
40107         * tests/test-fflush.c (fflush): Likewise.
40108         * tests/test-flock.c (flock): Likewise.
40109         * tests/test-floorf1.c (floorf): Likewise.
40110         * tests/test-floorl.c (floorl): Likewise.
40111         * tests/test-fnmatch.c (fnmatch): Likewise.
40112         * tests/test-fopen.c (fopen): Likewise.
40113         * tests/test-fprintf-posix.c (fprintf): Likewise.
40114         * tests/test-freopen.c (freopen): Likewise.
40115         * tests/test-frexp.c (frexp): Likewise.
40116         * tests/test-frexpl.c (frexpl): Likewise.
40117         * tests/test-fseek.c (fseek): Likewise.
40118         * tests/test-fseeko.c (fseeko): Likewise.
40119         * tests/test-fstatat.c (fstatat): Likewise.
40120         * tests/test-fsync.c (fsync): Likewise.
40121         * tests/test-ftell.c (ftell): Likewise.
40122         * tests/test-ftello.c (ftello): Likewise.
40123         * tests/test-futimens.c (futimens): Likewise.
40124         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
40125         (gai_strerror): Likewise.
40126         * tests/test-getcwd.c (getcwd): Likewise.
40127         * tests/test-getdelim.c (getdelim): Likewise.
40128         * tests/test-getdtablesize.c (getdtablesize): Likewise.
40129         * tests/test-getgroups.c (getgroups): Likewise.
40130         * tests/test-gethostname.c (gethostname): Likewise.
40131         * tests/test-getline.c (getline): Likewise.
40132         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
40133         Likewise.
40134         * tests/test-gettimeofday.c (gettimeofday): Likewise.
40135         * tests/test-glob.c (glob, globfree): Likewise.
40136         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
40137         * tests/test-inet_ntop.c (inet_ntop): Likewise.
40138         * tests/test-inet_pton.c (inet_pton): Likewise.
40139         * tests/test-isblank.c (isblank): Likewise.
40140         * tests/test-lchown.c (lchown): Likewise.
40141         * tests/test-ldexpl.c (ldexpl): Likewise.
40142         * tests/test-link.c (link): Likewise.
40143         * tests/test-linkat.c (linkat): Likewise.
40144         * tests/test-lseek.c (lseek): Likewise.
40145         * tests/test-lstat.c (lstat): Likewise.
40146         * tests/test-mbrtowc.c (mbrtowc): Likewise.
40147         * tests/test-mbsinit.c (mbsinit): Likewise.
40148         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
40149         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
40150         * tests/test-memchr.c (memchr): Likewise.
40151         * tests/test-memcmp.c (memcmp): Likewise.
40152         * tests/test-memmem.c (memmem): Likewise.
40153         * tests/test-memrchr.c (memrchr): Likewise.
40154         * tests/test-mkdir.c (mkdir): Likewise.
40155         * tests/test-mkdirat.c (mkdirat): Likewise.
40156         * tests/test-mkfifo.c (mkfifo): Likewise.
40157         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
40158         * tests/test-mknod.c (mknod): Likewise.
40159         * tests/test-nanosleep.c (nanosleep): Likewise.
40160         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
40161         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
40162         Likewise.
40163         * tests/test-open.c (open): Likewise.
40164         * tests/test-openat.c (openat): Likewise.
40165         * tests/test-perror.c (perror): Likewise.
40166         * tests/test-pipe2.c (pipe2): Likewise.
40167         * tests/test-poll.c (poll): Likewise.
40168         * tests/test-popen.c (popen, pclose): Likewise.
40169         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
40170         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
40171         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
40172         (posix_spawn_file_actions_destroy)
40173         (posix_spawn_file_actions_addclose)
40174         (posix_spawn_file_actions_addopen)
40175         (posix_spawn_file_actions_adddup2): Likewise.
40176         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
40177         * tests/test-pread.c (pread): Likewise.
40178         * tests/test-printf-posix.c (printf): Likewise.
40179         * tests/test-pty.c (openpty, forkpty): Likewise.
40180         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
40181         (random_r): Likewise.
40182         * tests/test-rawmemchr.c (rawmemchr): Likewise.
40183         * tests/test-readlink.c (readlink): Likewise.
40184         * tests/test-remove.c (remove): Likewise.
40185         * tests/test-rename.c (rename): Likewise.
40186         * tests/test-renameat.c (renameat): Likewise.
40187         * tests/test-rmdir.c (rmdir): Likewise.
40188         * tests/test-round1.c (round): Likewise.
40189         * tests/test-roundf1.c (roundf): Likewise.
40190         * tests/test-roundl.c (roundl): Likewise.
40191         * tests/test-setenv.c (setenv): Likewise.
40192         * tests/test-sigaction.c (sigaction): Likewise.
40193         * tests/test-sleep.c (sleep): Likewise.
40194         * tests/test-snprintf.c (snprintf): Likewise.
40195         * tests/test-sprintf-posix.c (sprintf): Likewise.
40196         * tests/test-stat.c (stat): Likewise.
40197         * tests/test-stpncpy.c (stpncpy): Likewise.
40198         * tests/test-strcasestr.c (strcasestr): Likewise.
40199         * tests/test-strchrnul.c (strchrnul): Likewise.
40200         * tests/test-strerror.c (strerror): Likewise.
40201         * tests/test-strsignal.c (strsignal): Likewise.
40202         * tests/test-strstr.c (strstr): Likewise.
40203         * tests/test-strtod.c (strtod): Likewise.
40204         * tests/test-strverscmp.c (strverscmp): Likewise.
40205         * tests/test-symlink.c (symlink): Likewise.
40206         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
40207         * tests/test-times.c (times): Likewise.
40208         * tests/test-trunc1.c (trunc): Likewise.
40209         * tests/test-truncf1.c (truncf): Likewise.
40210         * tests/test-truncl.c (truncl): Likewise.
40211         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
40212         Likewise.
40213         * tests/test-uname.c (uname): Likewise.
40214         * tests/test-unlink.c (unlink): Likewise.
40215         * tests/test-unlinkat.c (unlinkat): Likewise.
40216         * tests/test-unsetenv.c (unsetenv): Likewise.
40217         * tests/test-usleep.c (usleep): Likewise.
40218         * tests/test-utimensat.c (utimensat): Likewise.
40219         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
40220         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
40221         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
40222         * tests/test-vprintf-posix.c (vprintf): Likewise.
40223         * tests/test-vsnprintf.c (vsnprintf): Likewise.
40224         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
40225         * tests/test-wcrtomb.c (wcrtomb): Likewise.
40226         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
40227         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
40228         * tests/test-wcwidth.c (wcwidth): Likewise.
40229
40230         build: pull in conditional headers during GNULIB_POSIXCHECK
40231         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
40232         definitions from any conditionally-included headers.
40233         * lib/stdlib.in.h (includes): Likewise.
40234         * lib/unistd.in.h (includes): Likewise.
40235
40236 2009-12-24  Bruno Haible  <bruno@clisp.org>
40237
40238         * tests/test-argv-iter.c: Include header file being tested immediately
40239         after config.h.
40240         * tests/test-base64.c: Likewise.
40241         * tests/test-flock.c: Likewise.
40242         * tests/test-fsync.c: Likewise.
40243         * tests/test-getdate.c: Likewise.
40244         * tests/test-getndelim2.c: Likewise.
40245         * tests/test-isfinite.c: Likewise.
40246         * tests/test-isinf.c: Likewise.
40247         * tests/test-strerror.c: Likewise.
40248         * tests/test-strsignal.c: Likewise.
40249
40250 2009-12-23  Eric Blake  <ebb9@byu.net>
40251
40252         unistd: work around cygwin bug
40253         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
40254         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
40255         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40256
40257 2009-12-23  Bruno Haible  <bruno@clisp.org>
40258
40259         localename: More tests.
40260         * tests/test-localename.c (SIZEOF): New macro.
40261         (categories): New variable.
40262         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
40263         test_locale_name_default): Add test w.r.t. thread locale.
40264         (test_locale_name_thread): New function.
40265         (main): Invoke it.
40266
40267         localename: Make aware of thread locale.
40268         * lib/localename.h (gl_locale_name_thread): New declaration.
40269         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
40270         behaviour with respect to thread locale.
40271         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
40272         <langinfo.h>, glthread/lock.h.
40273         (SIZE_BITS): New macro.
40274         (string_hash): New function.
40275         (struct hash_node): New type.
40276         (HASH_TABLE_SIZE): New macro.
40277         (struniq_hash_table, struniq_lock): New variables.
40278         (struniq): New function.
40279         (gl_locale_name_thread): New function.
40280         (gl_locale_name): Invoke it.
40281         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
40282         * modules/localename (Depends-on): Add lock.
40283         Reported by Mike Gran <spk121@yahoo.com>.
40284
40285 2009-12-23  Eric Blake  <ebb9@byu.net>
40286
40287         va-args: new module
40288         * modules/va-args: New file.
40289         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
40290         * MODULES.html.sh (Core language properties): Mention it.
40291
40292         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
40293         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
40294         named alias for __attribute__((__unused__)).
40295         * lib/chown.c: Update client.
40296         * lib/fchmodat.c: Likewise.
40297         * lib/fts.c: Likewise.
40298         * lib/getdate.y: Likewise.
40299         * lib/getgroups.c: Likewise.
40300         * lib/getopt.c: Likewise.
40301         * lib/getugroups.c: Likewise.
40302         * lib/mkdir.c: Likewise.
40303         * lib/mkfifo.c: Likewise.
40304         * lib/mkfifoat.c: Likewise.
40305         * lib/mknod.c: Likewise.
40306         * lib/mknodat.c: Likewise.
40307         * lib/readlink.c: Likewise.
40308         * lib/se-context.in.h: Likewise.
40309         * lib/se-selinux.in.h: Likewise.
40310         * lib/sockets.c: Likewise.
40311         * lib/symlink.c: Likewise.
40312         * lib/symlinkat.c: Likewise.
40313         * lib/unicodeio.c: Likewise.
40314         * lib/unistr.h: Likewise.
40315         * tests/test-areadlink.c: Likewise.
40316         * tests/test-areadlinkat.c: Likewise.
40317         * tests/test-filenamecat.c: Likewise.
40318         * tests/test-fseeko.c: Likewise.
40319         * tests/test-ftello.c: Likewise.
40320         * tests/test-getdate.c: Likewise.
40321         * tests/test-getgroups.c: Likewise.
40322         * tests/test-gethostname.c: Likewise.
40323         * tests/test-quotearg.c: Likewise.
40324         * tests/test-version-etc.c: Likewise.
40325         * tests/test-xalloc-die.c: Likewise.
40326         * tests/test-xfprintf-posix.c: Likewise.
40327         * tests/test-xprintf-posix.c: Likewise.
40328         * tests/test-xvasprintf.c: Likewise.
40329
40330         tests: avoid compiler warnings
40331         * tests/test-fcntl.c (main): Delete unused parameters.
40332         * tests/test-freopen-safer.c (main): Likewise.
40333         * tests/test-xalloc-die.c (main): Mark unused parameters.
40334         * tests/test-fseeko.c (main): Likewise.
40335         * tests/test-ftello.c (main): Likewise.
40336         * tests/test-nanosleep.c (main): Avoid declaration warning.
40337         * tests/test-sleep.c (main): Likewise.
40338         * tests/test-unsetenv.c (main): Silence warning about string
40339         literal.
40340         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
40341
40342 2009-12-23  Bruno Haible  <bruno@clisp.org>
40343
40344         * tests/test-localename.c (test_locale_name): New function, extracted
40345         from main. Also test mixed situations.
40346         (test_locale_name_posix, test_locale_name_environ,
40347         test_locale_name_default): New functions.
40348         (main): Invoke them all.
40349         * modules/localename-tests (configure.ac): Test for newlocale.
40350
40351 2009-12-23  Bruno Haible  <bruno@clisp.org>
40352
40353         unistd: Ensure getcwd gets declared before being overridden.
40354         * lib/unistd.in.h: Conditionally include <io.h>.
40355
40356 2009-12-22  Bruno Haible  <bruno@clisp.org>
40357
40358         wchar: Diagnose broken combination of glibc and gcc versions and flags.
40359         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
40360         (gl_WCHAR_H): Invoke it.
40361         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
40362         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
40363         Reported by Karl Berry <karl@freefriends.org>.
40364
40365 2009-12-22  Eric Blake  <ebb9@byu.net>
40366
40367         math, unistd: avoid redundant includes
40368         * lib/math.in.h (isnan): No need to re-include <math.h>.
40369         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
40370
40371         getsubopt: work around cygwin bug
40372         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
40373         avoid conflicting with system getsubopt.
40374         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
40375         bug.
40376
40377         getopt: synchronize from glibc
40378         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
40379         parameter order.  Adjust all callers.
40380         (_getopt_internal_r, main): Adjust quoting in error messages.
40381         Drop considerations for outdated POSIX 1003.2 error message.
40382         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
40383         callers.
40384         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
40385
40386         test-getopt: test stderr behavior
40387         * modules/getopt-posix-tests (Depends-on): Add dup2.
40388         * tests/test-getopt.c (ASSERT): Avoid stderr.
40389         (main): Move stderr to a temporary file.
40390         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
40391         Instead, add parameter to inform caller if output occurred.
40392         (test_getopt): Adjust all existing tests to expect silence, and
40393         add new tests of leading ":".
40394         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40395         glibc shortcomings with leading "-:" or "+:" in optstring.
40396         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40397         Likewise.
40398         * doc/posix-functions/getopt.texi (getopt): Likewise.
40399
40400         test-getopt: enhance test
40401         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
40402         supports optind=0.
40403         * tests/test-getopt.c (OPTIND_MIN): Move...
40404         * tests/test-getopt.h (OPTIND_MIN): ...here.
40405         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
40406         Require that optind=0 works, since modern BSD supports it in
40407         addition to optreset, and since coreutils expects it.
40408         (test_getopt_long_only): New test.
40409         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40410         glibc shortcomings with 'W;', and enforcement of optind=0.
40411         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40412         Likewise.
40413
40414 2009-12-21  Bruno Haible  <bruno@clisp.org>
40415
40416         localename: Improvements for MacOS X and Cygwin.
40417         * lib/localename.h (gl_locale_name_environ): New declaration.
40418         * lib/localename.c (gl_locale_name_environ): New function, extracted from
40419         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
40420         (gl_locale_name_posix): Invoke it.
40421         (gl_locale_name_default): Add comments. Use Windows native API also on
40422         Cygwin.
40423
40424 2009-12-21  Bruno Haible  <bruno@clisp.org>
40425
40426         Update list of Win32 locale ids.
40427         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
40428         (LANG_SAMI): Renamed from LANG_SAAMI.
40429         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
40430         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
40431         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
40432         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
40433         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
40434         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
40435         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
40436         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
40437         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
40438         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
40439         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
40440         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
40441         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
40442         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
40443         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
40444         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
40445         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
40446         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
40447         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
40448         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
40449         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
40450         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
40451         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
40452         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
40453         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
40454         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
40455         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
40456         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
40457         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
40458         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
40459         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
40460         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
40461         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
40462         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
40463         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
40464         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
40465         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
40466         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
40467         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
40468         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
40469         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
40470         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
40471         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
40472         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
40473         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
40474         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
40475         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
40476         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
40477         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
40478         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
40479         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
40480         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
40481         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
40482         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
40483         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
40484         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
40485         Add more languages and countries for Sami, Sorbian. Add more countries
40486         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
40487         for Pashto. Change country for Syriac, Tswana.
40488
40489 2009-12-21  Eric Blake  <ebb9@byu.net>
40490
40491         test-utimens: avoid spurious failure
40492         * tests/test-chown.h (nap): Factor...
40493         * tests/nap.h: ...into new file.
40494         * tests/test-lchown.h (nap): Avoid duplication.
40495         * tests/test-utimens-common.h (nap): Use shared implementation,
40496         necessary on file systems with 1-second resolution.
40497         * modules/chown-tests (Files): Include new file.
40498         * modules/fdutimensat-tests (Files): Likewise.
40499         * modules/futimens-tests (Files): Likewise.
40500         * modules/lchown-tests (Files): Likewise.
40501         * modules/openat-tests (Files): Likewise.
40502         * modules/utimens-tests (Files): Likewise.
40503         * modules/utimensat-tests (Files): Likewise.
40504
40505 2009-12-19  Eric Blake  <ebb9@byu.net>
40506
40507         futimens, utimensat: work around Linux bug
40508         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
40509         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40510         * lib/utimensat.c (rpl_utimensat): Work around it.
40511         * lib/futimens.c (rpl_futimens): Adjust comment.
40512
40513         utimens: work around Linux ctime bug
40514         * lib/utimens.c (detect_ctime_bug): New helper function.
40515         (update_timespec): Differentiate between workaround needed for
40516         this bug vs. what is needed for systems that lack utimensat.
40517         (fdutimens, lutimens): Work around bug.
40518
40519         utimens: check for ctime update
40520         * tests/test-utimens-common.h (check_ctime): Define.
40521         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
40522         * tests/test-futimens.h (test_futimens): Likewise.
40523         * tests/test-lutimens.h (test_lutimens): Likewise.
40524         * doc/posix-functions/futimens.texi (futimens): Document the bug.
40525         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40526
40527 2009-12-19  Bruno Haible  <bruno@clisp.org>
40528
40529         dprintf-posix: Check against memory leak fixed on 2009-12-15.
40530         * tests/test-dprintf-posix2.sh: New file.
40531         * tests/test-dprintf-posix2.c: New file.
40532         * modules/dprintf-posix-tests (Files): Add them.
40533         (configure.ac): Check for getrlimit and setrlimit.
40534         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40535
40536 2009-12-19  Bruno Haible  <bruno@clisp.org>
40537
40538         fprintf-posix: Check against memory leak fixed on 2009-12-15.
40539         * tests/test-fprintf-posix3.sh: New file.
40540         * tests/test-fprintf-posix3.c: New file.
40541         * modules/fprintf-posix-tests (Files): Add them.
40542         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40543
40544 2009-12-19  Eric Blake  <ebb9@byu.net>
40545
40546         dirfd: fix prototype
40547         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
40548         * lib/dirfd.c (dirfd): Likewise.
40549
40550         canonicalize: reduce memory usage
40551         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
40552         allocation to size.
40553         Reported by Solar Designer <solar@openwall.com>.
40554
40555 2009-12-19  Bruno Haible  <bruno@clisp.org>
40556
40557         New module attribute 'Applicability'.
40558         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
40559         * gnulib-tool: New option --extract-applicability.
40560         (func_usage): Document it.
40561         (sed_extract_prog): Recognize it.
40562         (func_get_applicability): New function.
40563         (func_import): Generalize handling of 'link-warning' module.
40564         * modules/link-warning (Applicability): New section.
40565         * modules/arg-nonnull (Applicability): New section.
40566         Repoted by Simon Josefsson <simon@josefsson.org>.
40567
40568 2009-12-19  Bruno Haible  <bruno@clisp.org>
40569
40570         fflush: tweak
40571         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
40572         * lib/fseeko.c (rpl_fseeko): Likewise.
40573
40574 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
40575
40576         * lib/gl_list.h: Fix typo in comment.
40577
40578 2009-12-16  Eric Blake  <ebb9@byu.net>
40579
40580         fcntl: use to simplify other modules
40581         * modules/cloexec (Depends-on): Add fcntl.
40582         * modules/fchdir (Depends-on): Likewise.
40583         * modules/fd-safer-flag (Depends-on): Likewise.
40584         * modules/unistd-safer (Depends-on): Likewise.
40585         * modules/dup3 (configure.ac): Set module indicator.
40586         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
40587         missing.
40588         * lib/fchdir.c (_gl_register_dup): Fix comment.
40589         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
40590         * lib/dup-safer.c (dup_safer): Likewise.
40591         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
40592         * lib/dup3.c (dup3): Likewise.
40593         * tests/test-fchdir.c (main): Enhance test.
40594         Fixes a dup_cloexec bug reported by Ondřej Vašík.
40595
40596         fcntl: port portions of fcntl to mingw
40597         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
40598         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
40599         replacement for mingw.
40600         * modules/fcntl (Description): Update.
40601         (Depends-on): Add dup2.
40602         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
40603         * modules/fcntl-h (Makefile.am): Substitute it.
40604         * lib/fcntl.in.h (fcntl): Update declaration.
40605         (F_DUPFD, F_GETFD): New macros, when needed.
40606         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40607         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
40608         * tests/test-fcntl.c (check_flags, main): Enhance test for items
40609         we now guarantee.
40610
40611         fcntl: work around cygwin bug in F_DUPFD
40612         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
40613         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
40614         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
40615         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
40616         * doc/posix-functions/fcntl.texi (fcntl): Document it.
40617
40618         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
40619         * modules/fcntl (Files): List new files.
40620         (configure.ac): Run a test.
40621         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
40622         * lib/fcntl.c (rpl_fcntl): Likewise.
40623         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
40624         (gl_FCNTL_H): Always replace fcntl.h.
40625         * modules/fcntl-h (Makefile.am): Substitute witnesses.
40626         * lib/fcntl.in.h (fcntl): Declare replacement.
40627         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
40628         needed, plus a witness.
40629         * doc/posix-functions/fcntl.texi (fcntl): Document this.
40630         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40631         * tests/test-fcntl.c: New file.
40632         * modules/fcntl-tests: Likewise.
40633
40634         binary-io: avoid potential compilation warning
40635         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
40636         directives.
40637
40638         fflush: avoid compilation error on NetBSD
40639         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
40640         between off_t and fpos_t, since the latter is sometimes a struct.
40641         * lib/fseeko.c (rpl_fseeko): Likewise.
40642         Reported by Alexander Nasonov <alnsn@yandex.ru>.
40643
40644 2009-12-15  Eric Blake  <ebb9@byu.net>
40645
40646         fcntl-h, stdio, sys_ioctl: fix declarations
40647         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
40648         function must not take arguments.
40649         * lib/sys_ioctl.in.h (ioctl): Likewise.
40650         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
40651         (open): Add a link warning.
40652
40653 2009-12-15  Jim Meyering  <meyering@redhat.com>
40654
40655         areadlink, areadlink-with-size: relax license to LGPLv2+
40656         * modules/areadlink (License): Relax to LGPLv2+.
40657         * modules/areadlink-with-size (License): Likewise.
40658
40659 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
40660             Bruno Haible  <bruno@clisp.org>
40661
40662         *printf: Fix memory leak.
40663         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
40664         * lib/vfprintf.c (vfprintf): Likewise.
40665         * lib/dprintf.c (dprintf): Likewise.
40666         * lib/vdprintf.c (vdprintf): Likewise.
40667
40668 2009-12-14  Eric Blake  <ebb9@byu.net>
40669
40670         accept4: adjust module dependencies
40671         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
40672
40673         utimens: one more try at avoiding compiler warning
40674         * lib/utimens.c (lutimens): Lower scope of result.
40675
40676 2009-12-13  Bruno Haible  <bruno@clisp.org>
40677
40678         Move the malloc checking from module 'list' to new module 'xlist'.
40679         * modules/xlist: New file.
40680         * lib/gl_xlist.h: New file.
40681         * lib/gl_xlist.c: New file.
40682         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
40683         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
40684         gl_list_add_last, gl_list_add_before, gl_list_add_after,
40685         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
40686         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
40687         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
40688         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
40689         gl_sortedlist_nx_add): New declarations.
40690         (struct gl_list_implementation): Rename and change methods accordingly.
40691         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
40692         (gl_list_nx_create): Renamed from gl_list_create.
40693         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40694         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40695         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40696         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40697         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40698         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40699         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40700         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40701         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
40702         gl_list_create_empty.
40703         (gl_list_nx_create): Renamed from gl_list_create.
40704         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40705         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40706         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40707         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40708         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40709         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40710         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40711         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40712         * lib/gl_array_list.c: Don't include xalloc.h.
40713         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
40714         NULL upon out-of-memory.
40715         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
40716         out-of-memory.
40717         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
40718         Change return type to 'int'.
40719         (gl_array_nx_set_at): Renamed from gl_array_set_at.
40720         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40721         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
40722         upon out-of-memory.
40723         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
40724         upon out-of-memory.
40725         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
40726         upon out-of-memory.
40727         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
40728         upon out-of-memory.
40729         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
40730         out-of-memory.
40731         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
40732         Update.
40733         (gl_array_list_implementation): Update.
40734         * lib/gl_carray_list.c: Don't include xalloc.h.
40735         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
40736         Return NULL upon out-of-memory.
40737         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
40738         out-of-memory.
40739         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
40740         Change return type to 'int'.
40741         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
40742         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40743         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
40744         upon out-of-memory.
40745         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
40746         upon out-of-memory.
40747         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
40748         out-of-memory.
40749         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
40750         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
40751         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
40752         Update.
40753         (gl_carray_list_implementation): Update.
40754         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
40755         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
40756         gl_linked_create_empty. Return NULL upon out-of-memory.
40757         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
40758         out-of-memory.
40759         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
40760         Change return type to 'int'. Return -1 upon out-of-memory.
40761         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
40762         out-of-memory.
40763         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
40764         upon out-of-memory.
40765         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
40766         upon out-of-memory.
40767         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
40768         NULL upon out-of-memory.
40769         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
40770         upon out-of-memory.
40771         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
40772         out-of-memory.
40773         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
40774         Update.
40775         * lib/gl_linked_list.c: Don't include xalloc.h.
40776         (gl_linked_list_implementation): Update.
40777         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
40778         (add_to_bucket): Change return type to 'int'.
40779         (gl_linkedhash_list_implementation): Update.
40780         * lib/gl_anytree_list1.h (free_subtree): New function.
40781         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
40782         gl_tree_create_empty. Return NULL upon out-of-memory.
40783         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
40784         Change return type to 'int'. Return -1 upon out-of-memory.
40785         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
40786         out-of-memory.
40787         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
40788         (gl_tree_remove_node): New function, moved here from
40789         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
40790         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
40791         Update.
40792         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
40793         malloc, not xmalloc. Return NULL upon out-of-memory.
40794         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40795         out-of-memory.
40796         (gl_tree_remove_node_from_tree): New function, extracted from
40797         gl_tree_remove_node.
40798         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40799         upon out-of-memory.
40800         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40801         out-of-memory.
40802         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40803         upon out-of-memory.
40804         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40805         upon out-of-memory.
40806         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40807         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
40808         not xmalloc. Return NULL upon out-of-memory.
40809         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40810         out-of-memory.
40811         (gl_tree_remove_node_from_tree): New function, extracted from
40812         gl_tree_remove_node.
40813         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40814         upon out-of-memory.
40815         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40816         out-of-memory.
40817         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40818         upon out-of-memory.
40819         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40820         upon out-of-memory.
40821         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40822         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
40823         gl_anytree_list1.h before gl_anyavltree_list2.h.
40824         (gl_avltree_list_implementation): Update.
40825         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
40826         gl_anytree_list1.h before gl_anyavltree_list2.h.
40827         (gl_rbtree_list_implementation): Update.
40828         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
40829         Change return type to 'int'. Return -1 upon out-of-memory. Use
40830         __builtin_expect.
40831         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
40832         (gl_avltreehash_list_implementation): Update.
40833         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
40834         (gl_rbtreehash_list_implementation): Update.
40835         * modules/array-list (Depends-on): Remove xalloc.
40836         * modules/carray-list (Depends-on): Likewise.
40837         * modules/linked-list (Depends-on): Likewise.
40838         * modules/linkedhash-list (Depends-on): Likewise.
40839         * modules/avltree-list (Depends-on): Likewise.
40840         * modules/rbtree-list (Depends-on): Likewise.
40841         * modules/avltreehash-list (Depends-on): Likewise.
40842         * modules/rbtreehash-list (Depends-on): Likewise.
40843
40844         * modules/xsublist: New file.
40845         * lib/gl_xsublist.h: New file.
40846         * lib/gl_xsublist.c: New file.
40847         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
40848         (gl_sublist_nx_create): New declaration.
40849         * lib/gl_sublist.c: Don't include xalloc.h.
40850         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
40851         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
40852         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
40853         Change return type to 'int'. Return -1 upon out-of-memory.
40854         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
40855         upon out-of-memory.
40856         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
40857         NULL upon out-of-memory.
40858         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
40859         upon out-of-memory.
40860         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
40861         NULL upon out-of-memory.
40862         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
40863         NULL upon out-of-memory.
40864         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
40865         upon out-of-memory.
40866         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
40867         (gl_sublist_list_implementation): Update.
40868         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
40869         upon out-of-memory.
40870         * modules/sublist (Depends-on): Remove xalloc.
40871
40872         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
40873         * tests/test-carray_list.c: Likewise.
40874         * tests/test-linked_list.c: Likewise.
40875         * tests/test-linkedhash_list.c: Likewise.
40876         * tests/test-avltree_list.c: Likewise.
40877         * tests/test-rbtree_list.c: Likewise.
40878         * tests/test-avltreehash_list.c: Likewise.
40879         * tests/test-rbtreehash_list.c: Likewise.
40880         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
40881         * modules/carray-list-tests (Makefile.am): Likewise.
40882         * modules/linked-list-tests (Makefile.am): Likewise.
40883         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40884         * modules/avltree-list-tests (Makefile.am): Likewise.
40885         * modules/rbtree-list-tests (Makefile.am): Likewise.
40886         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40887         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40888
40889         * NEWS: Mention the changes.
40890
40891         * lib/clean-temp.c: Include gl_xlist.h.
40892         * modules/clean-temp (Depends-on): Add xlist.
40893
40894         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
40895         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
40896
40897         * tests/test-array_oset.c: Include gl_xlist.h.
40898         * modules/array-oset-tests (Depends-on): Add xlist.
40899
40900         Reported by José E. Marchesi <jemarch@gnu.org>.
40901
40902 2009-12-13  Bruno Haible  <bruno@clisp.org>
40903
40904         Move the malloc checking from module 'oset' to new module 'xoset'.
40905         * modules/xoset: New file.
40906         * lib/gl_xoset.h: New file.
40907         * lib/gl_xoset.c: New file.
40908         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
40909         declarations.
40910         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
40911         (struct gl_oset_implementation): Rename and change methods accordingly.
40912         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
40913         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40914         'int'. Mark as __warn_unused_result__.
40915         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
40916         gl_oset_create_empty.
40917         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40918         'int'.
40919         * lib/gl_array_oset.c: Don't include xalloc.h.
40920         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
40921         malloc, not xmalloc.
40922         (grow): Change return type to 'int'. Don't call xalloc_die.
40923         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
40924         to 'int'.
40925         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
40926         'int'.
40927         (gl_array_oset_implementation): Update.
40928         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
40929         gl_tree_create_empty.
40930         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
40931         'int'.
40932         * lib/gl_avltree_oset.c: Don't include xalloc.h.
40933         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40934         xmalloc.
40935         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40936         not xmalloc.
40937         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40938         xmalloc.
40939         (gl_avltree_oset_implementation): Update.
40940         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
40941         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40942         xmalloc.
40943         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40944         not xmalloc.
40945         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40946         xmalloc.
40947         (gl_rbtree_oset_implementation): Update.
40948         * modules/array-oset (Depends-on): Remove xalloc.
40949         * modules/avltree-oset (Depends-on): Likewise.
40950         * modules/rbtree-oset (Depends-on): Likewise.
40951         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
40952         * tests/test-avltree_oset.c: Likewise.
40953         * tests/test-rbtree_oset.c: Likewise.
40954         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40955         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
40956         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40957         * NEWS: Mention the change.
40958
40959 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
40960
40961         maint.mk: allow a project to override release-prep commands
40962         * top/maint.mk (alpha, beta, stable): Move release-preparatory
40963         commands into a new rule.
40964         (release-prep): New rule.
40965         (release-prep-hook): New overridable variable.
40966
40967 2009-12-13  Bruno Haible  <bruno@clisp.org>
40968
40969         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
40970
40971 2009-12-13  Jim Meyering  <meyering@redhat.com>
40972
40973         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
40974         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
40975
40976 2009-12-12  Bruno Haible  <bruno@clisp.org>
40977
40978         duplocale: Tweak.
40979         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
40980
40981 2009-12-12  Karl Berry  <karl@gnu.org>
40982
40983         * config/srclist.txt (strtoll.c): tab changes, no more sync.
40984
40985 2009-12-12  Bruno Haible  <bruno@clisp.org>
40986
40987         * m4/po.m4: Undo incorrect untabification.
40988
40989 2009-12-12  Bruno Haible  <bruno@clisp.org>
40990
40991         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
40992         * modules/c-strtod (Depends-on): Add locale.
40993         * modules/c-strtold (Depends-on): Likewise.
40994
40995 2009-12-12  Bruno Haible  <bruno@clisp.org>
40996
40997         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
40998
40999 2009-12-11  Eric Blake  <ebb9@byu.net>
41000
41001         setenv: relax requirement in light of POSIX ruling
41002         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
41003         not NULL.
41004         * tests/test-setenv.c (main): Relax test.
41005         * tests/test-unsetenv.c (main): Likewise.
41006         * doc/posix-functions/setenv.texi (setenv): Document this.
41007         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41008
41009 2009-12-11  Bruno Haible  <bruno@clisp.org>
41010
41011         New module 'fd-safer-flag'.
41012         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
41013         * lib/dup-safer.c (dup_safer_flag): Remove function.
41014         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
41015         * lib/fd-safer.c (fd_safer_flag): Remove function.
41016         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
41017         * modules/cloexec (configure.ac): Drop indicator macro.
41018         * modules/fd-safer-flag: New file.
41019         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
41020         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
41021         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
41022
41023 2009-12-11  Bruno Haible  <bruno@clisp.org>
41024
41025         Tests for module 'nl_langinfo'.
41026         * modules/nl_langinfo-tests: New file.
41027         * tests/test-nl_langinfo.sh: New file.
41028         * tests/test-nl_langinfo.c: New file.
41029
41030         New module 'nl_langinfo'.
41031         * lib/nl_langinfo.c: New file.
41032         * m4/nl_langinfo.m4: New file.
41033         * modules/nl_langinfo: New file.
41034         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
41035
41036 2009-12-11  Bruno Haible  <bruno@clisp.org>
41037
41038         Tests for module 'langinfo'.
41039         * modules/langinfo-tests: New file.
41040         * tests/test-langinfo.c: New file.
41041
41042         New module 'langinfo'.
41043         * lib/langinfo.in.h: New file.
41044         * m4/langinfo_h.m4: New file.
41045         * modules/langinfo: New file.
41046         * doc/posix-headers/langinfo.texi: Mention the new module.
41047
41048 2009-12-11  Bruno Haible  <bruno@clisp.org>
41049
41050         * lib/config.charset: Untabify.
41051
41052 2009-12-11  Bruno Haible  <bruno@clisp.org>
41053
41054         * modules/unistd-safer (configure.ac): Drop indicator macro.
41055
41056 2009-12-11  Bruno Haible  <bruno@clisp.org>
41057
41058         Move pipe2-safer code to its own file.
41059         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
41060         * lib/pipe-safer.c (pipe2_safer): Remove function.
41061         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
41062         (Makefile.am): Add it to lib_SOURCES.
41063
41064 2009-12-10  Bruno Haible  <bruno@clisp.org>
41065
41066         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
41067
41068 2009-12-10  Bruno Haible  <bruno@clisp.org>
41069
41070         Declare which arguments expect non-NULL values, for GCC and clang.
41071         * build-aux/arg-nonnull.h: New file.
41072         * modules/arg-nonnull: New file.
41073         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
41074         (inet_ntop, inet_pton): Use it.
41075         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
41076         (closedir, dirfd, opendir, scandir, alphasort): Use it.
41077         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
41078         (open, openat): Use it.
41079         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
41080         (fnmatch): Use it.
41081         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
41082         (getopt, getopt_long, getopt_long_only): Use it.
41083         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
41084         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
41085         Use it.
41086         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
41087         (iconv_open): Use it.
41088         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
41089         (strtoimax, strtoumax): Use it.
41090         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
41091         (duplocale): Use it.
41092         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
41093         (frexp, frexpl): Use it.
41094         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
41095         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
41096         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
41097         (tsearch, tfind, tdelete, twalk): Use it.
41098         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
41099         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
41100         sigpending): Use it.
41101         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
41102         (posix_spawn, posix_spawnp, posix_spawnattr_init,
41103         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
41104         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
41105         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
41106         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
41107         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
41108         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
41109         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
41110         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
41111         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
41112         Use it.
41113         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
41114         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
41115         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
41116         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
41117         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
41118         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
41119         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
41120         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
41121         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
41122         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
41123         strtoull, unsetenv): Use it.
41124         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
41125         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
41126         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
41127         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
41128         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
41129         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
41130         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
41131         (strcasecmp, strncasecmp): Use it.
41132         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
41133         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
41134         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
41135         rpl_setsockopt): Use it.
41136         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
41137         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
41138         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
41139         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
41140         (gettimeofday): Use it.
41141         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
41142         (times): Use it.
41143         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
41144         (uname): Use it.
41145         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
41146         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
41147         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
41148         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
41149         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
41150         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
41151         unlinkat, write): Use it.
41152         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
41153         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
41154         * lib/argv-iter.h: Include arg-nonnull.h.
41155         (_ATTRIBUTE_NONNULL_): Remove macro.
41156         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
41157         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
41158         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
41159         optimization.
41160         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
41161         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
41162         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
41163         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
41164         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
41165         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
41166         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
41167         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
41168         * modules/arpa_inet (Depends-on): Add arg-nonnull.
41169         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
41170         * modules/dirent (Depends-on): Add arg-nonnull.
41171         (Makefile.am): Insert arg-nonnull.h into dirent.h.
41172         * modules/fcntl-h (Depends-on): Add arg-nonnull.
41173         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
41174         * modules/fnmatch (Depends-on): Add arg-nonnull.
41175         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
41176         * modules/getopt-posix (Depends-on): Add arg-nonnull.
41177         (Makefile.am): Insert arg-nonnull.h into getopt.h.
41178         * modules/glob (Depends-on): Add arg-nonnull.
41179         (Makefile.am): Insert arg-nonnull.h into glob.h.
41180         * modules/iconv_open (Depends-on): Add arg-nonnull.
41181         (Makefile.am): Insert arg-nonnull.h into iconv.h.
41182         * modules/inttypes (Depends-on): Add arg-nonnull.
41183         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
41184         * modules/locale (Depends-on): Add arg-nonnull.
41185         (Makefile.am): Insert arg-nonnull.h into locale.h.
41186         * modules/math (Depends-on): Add arg-nonnull.
41187         (Makefile.am): Insert arg-nonnull.h into math.h.
41188         * modules/netdb (Depends-on): Add arg-nonnull.
41189         (Makefile.am): Insert arg-nonnull.h into netdb.h.
41190         * modules/search (Depends-on): Add arg-nonnull.
41191         (Makefile.am): Insert arg-nonnull.h into search.h.
41192         * modules/signal (Depends-on): Add arg-nonnull.
41193         (Makefile.am): Insert arg-nonnull.h into signal.h.
41194         * modules/spawn (Depends-on): Add arg-nonnull.
41195         (Makefile.am): Insert arg-nonnull.h into spawn.h.
41196         * modules/stdio (Depends-on): Add arg-nonnull.
41197         (Makefile.am): Insert arg-nonnull.h into stdio.h.
41198         * modules/stdlib (Depends-on): Add arg-nonnull.
41199         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
41200         * modules/string (Depends-on): Add arg-nonnull.
41201         (Makefile.am): Insert arg-nonnull.h into string.h.
41202         * modules/strings (Depends-on): Add arg-nonnull.
41203         (Makefile.am): Insert arg-nonnull.h into strings.h.
41204         * modules/sys_socket (Depends-on): Add arg-nonnull.
41205         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
41206         * modules/sys_stat (Depends-on): Add arg-nonnull.
41207         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
41208         * modules/sys_time (Depends-on): Add arg-nonnull.
41209         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
41210         * modules/sys_times (Depends-on): Add arg-nonnull.
41211         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
41212         * modules/sys_utsname (Depends-on): Add arg-nonnull.
41213         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
41214         * modules/time (Depends-on): Add arg-nonnull.
41215         (Makefile.am): Insert arg-nonnull.h into time.h.
41216         * modules/unistd (Depends-on): Add arg-nonnull.
41217         (Makefile.am): Insert arg-nonnull.h into unistd.h.
41218         * modules/wchar (Depends-on): Add arg-nonnull.
41219         (Makefile.am): Insert arg-nonnull.h into wchar.h.
41220         * modules/argv-iter (Depends-on): Add arg-nonnull.
41221         * tests/test-canonicalize.c (null_ptr): New function.
41222         (main): Use it.
41223         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
41224         (main): Use it.
41225         * tests/test-memmem.c (null_ptr): New function.
41226         (main): Use it.
41227         Reported by Jim Meyering.
41228
41229 2009-12-10  Bruno Haible  <bruno@clisp.org>
41230
41231         Use spaces for indentation, not tabs.
41232         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
41233         * m4/*.m4: Untabify.
41234         * build-aux/*.h: Untabify.
41235         * tests/**/*.[hc]: Untabify.
41236         * README: New section "Indent with spaces, not TABs", based on
41237         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
41238         * NEWS: Mention the change.
41239
41240 2009-12-10  Bruno Haible  <bruno@clisp.org>
41241
41242         pty test: Fix link error.
41243         * modules/pty-tests (Makefile.am): Add the default LDADD value to
41244         test_pty_LDADD.
41245
41246 2009-12-07  Simon Josefsson  <simon@josefsson.org>
41247
41248         * modules/pty: New file.
41249         * modules/pty-tests: New file.
41250         * m4/pty.m4: New file.
41251         * tests/test-pty.c: New file.
41252         * doc/glibc-headers/pty.texi: Modified.
41253         * doc/glibc-functions/forkpty.texi: Modified.
41254         * doc/glibc-functions/openpty.texi: Modified.
41255
41256 2009-12-10  Bruno Haible  <bruno@clisp.org>
41257
41258         Avoid syntax error in C++ mode.
41259         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
41260
41261 2009-12-10  Bruno Haible  <bruno@clisp.org>
41262
41263         Use sed with option -e.
41264         * gnulib-tool (func_version, func_emit_copyright_notice,
41265         func_emit_initmacro_end, func_import, func_create_testdir): Pass
41266         option -e to sed.
41267         * modules/link-warning (Makefile.am): Likewise.
41268
41269 2009-12-10  Jim Meyering  <meyering@redhat.com>
41270
41271         mgetgroups: do not write bytes beyond end of malloc'd buffer
41272         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
41273         username, we call getgroups with a one-element-shorter buffer,
41274         but still told it the length was original, max_n_groups.
41275
41276 2009-12-09  Eric Blake  <ebb9@byu.net>
41277
41278         cloexec: relax license
41279         * modules/cloexec (Maintainer): Add myself.
41280         (License): Use LGPL, not GPL.
41281
41282         link-warning: optimize generation
41283         * modules/link-warning (Makefile.am): Reduce process usage.
41284
41285 2009-12-09  Bruno Haible  <bruno@clisp.org>
41286
41287         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
41288         workaround was added on 2009-11-17.
41289
41290 2009-12-09  Jim Meyering  <meyering@redhat.com>
41291             Bruno Haible  <bruno@clisp.org>
41292
41293         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
41294         * modules/link-warning (Makefile.am): Make the comment-removing sed
41295         command more robust in the face of bootstrap-prepended comment lines.
41296
41297 2009-12-09  Bruno Haible  <bruno@clisp.org>
41298
41299         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
41300         most one group.
41301
41302 2009-12-09  Simon Josefsson <simon@josefsson.org>
41303             Bruno Haible  <bruno@clisp.org>
41304
41305         * build-aux/link-warning.h: Add copyright notice.
41306         * modules/link-warning (Makefile.am): Generate link-warning.h from
41307         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
41308         * NEWS: Mention change in link-warning module.
41309         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
41310         * modules/dirent (Makefile.am): Add dependency to dirent.h.
41311         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
41312         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
41313         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
41314         * modules/math (Makefile.am): Add dependency to math.h.
41315         * modules/search (Makefile.am): Add dependency to search.h.
41316         * modules/signal (Makefile.am): Add dependency to signal.h.
41317         * modules/spawn (Makefile.am): Add dependency to spawn.h.
41318         * modules/stdio (Makefile.am): Add dependency to stdio.h.
41319         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
41320         * modules/string (Makefile.am): Add dependency to string.h.
41321         * modules/strings (Makefile.am): Add dependency to strings.h.
41322         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
41323         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
41324         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
41325         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
41326         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
41327         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
41328         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
41329         * modules/unistd (Makefile.am): Add dependency to unistd.h.
41330         * modules/wchar (Makefile.am): Add dependency to wchar.h.
41331
41332 2009-12-09  Bruno Haible  <bruno@clisp.org>
41333
41334         fchdir: Optimize away rpl_fstat when possible.
41335         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
41336         REPLACE_OPEN_DIRECTORY.
41337         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
41338
41339 2009-12-09  Bruno Haible  <bruno@clisp.org>
41340
41341         * lib/fchdir.c: Update comment.
41342
41343 2009-12-09  Bruno Haible  <bruno@clisp.org>
41344
41345         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
41346
41347 2009-12-08  Eric Blake  <ebb9@byu.net>
41348
41349         fchdir: avoid memory leak on re-registration.
41350         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
41351
41352 2009-12-08  Jim Meyering  <meyering@redhat.com>
41353
41354         init.sh: avoid Solaris 10 /bin/sh portability problem
41355         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
41356         sourced script:
41357           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
41358           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
41359           bar
41360         tests/init.sh relied on that, accepting a --set-path=DIR argument,
41361         and two tests used that idiom.
41362         * tests/init.sh: Update suggested usage comments.
41363         (path_prepend_): New function, to be used in place
41364         of the --src-path=DIR option.
41365         (setup_): Move PATH-prepending code into path_prepend_.
41366         * tests/test-pread.sh: Adapt to new usage.
41367         * tests/test-xalloc-die.sh: Likewise.
41368
41369 2009-12-08  Simon Josefsson  <simon@josefsson.org>
41370
41371         * doc/gnulib.texi (Glibc pty.h): Add.
41372         * doc/glibc-functions/forkpty.texi: Add.
41373         * doc/glibc-functions/openpty.texi: Add.
41374         Suggested by Bruno Haible.
41375
41376 2009-12-08  Eric Blake  <ebb9@byu.net>
41377
41378         fchdir: fix logic bugs
41379         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
41380         * tests/test-fchdir.c (main): Enhance test.
41381         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
41382         is in use.
41383
41384         dup2: fix logic bugs
41385         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
41386         REPLACE_DUP2 to decide when rpl_dup2 is needed.
41387         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
41388         exists.
41389         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
41390
41391 2009-12-07  Eric Blake  <ebb9@byu.net>
41392
41393         unlink: fix m4 detection
41394         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
41395
41396         unistd-safer: add unit test
41397         * modules/unistd-safer-tests: New file.
41398         * tests/test-dup-safer.c: Likewise.
41399         * tests/test-cloexec.c (setmode): Avoid compiler warning.
41400         * tests/test-dup2.c (setmode): Likewise.
41401         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
41402
41403         cloexec: preserve text vs. binary across dup_cloexec
41404         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
41405         mode.
41406         * modules/dup2-tests (Depends-on): Add binary-io.
41407         * modules/cloexec-tests (Depends-on): Likewise.
41408         * tests/test-dup2.c (setmode, is_mode): New helpers.
41409         (main): Add tests that translation mode is preserved.
41410         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
41411         Reported by Bruno Haible.
41412
41413         mgetgroups: reduce duplicate listings
41414         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
41415         resulting array.
41416         * tests/test-chown.h (test_chown): Simplify client.
41417         * tests/test-lchown.h (test_lchown): Likewise.
41418
41419 2009-12-06  Bruno Haible  <bruno@clisp.org>
41420
41421         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
41422         value.
41423
41424 2009-12-06  Bruno Haible  <bruno@clisp.org>
41425
41426         * lib/progname.c: Include stdio.h, stdlib.h.
41427         (set_program_name): Reject a NULL argument.
41428
41429 2009-12-05  Eric Blake  <ebb9@byu.net>
41430
41431         pipe2-safer: new module
41432         * modules/pipe2-safer: New file.
41433         * lib/unistd-safer.h (pipe2_safer): New prototype.
41434         * lib/unistd--.h (pipe2): New wrapper.
41435         * lib/pipe-safer.c (pipe2_safer): New function.
41436         * modules/pipe (Depends-on): Add pipe2-safer.
41437         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
41438
41439         stdlib-safer: preserve cloexec flag for mkostemp[s]
41440         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
41441         fd_safer_flag.
41442
41443         unistd-safer: allow preservation of cloexec status via flag
41444         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
41445         prototypes.
41446         * lib/dup-safer.c (dup_safer_flag): New function.
41447         * lib/fd-safer.c (fd_safer_flag): Likewise.
41448         * modules/cloexec (configure.ac): Set witness.
41449
41450         test-dup2: enhance test
41451         * modules/dup2-tests (Depends-on): Add cloexec.
41452         * tests/test-dup2.c (main): Enhance test.
41453
41454         cloexec: add dup_cloexec
41455         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
41456         header and comments.
41457         * lib/cloexec.c (set_cloexec_flag): Add comments.
41458         (dup_cloexec): New function, with mingw implementation borrowed
41459         from...
41460         * lib/w32spawn.h (dup_noinherit): ...here.
41461         * modules/execute (Depends-on): Add cloexec.
41462         * modules/pipe (Depends-on): Likewise.
41463         * modules/cloexec (Depends-on): Add dup2.
41464         * modules/cloexec-tests (Files): New file.
41465         * tests/test-cloexec.c: Likewise.
41466
41467         test-xalloc-die: fix test for mingw
41468         * modules/xalloc-die-tests (Files): Add tests/init.sh.
41469         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
41470         directory and .exe suffix off argv[0] output.
41471
41472         test-fseeko: fix test for mingw
41473         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
41474         than undefining fseek, so test will pass on mingw.
41475
41476 2009-12-05  Bruno Haible  <bruno@clisp.org>
41477
41478         * lib/progname.h (set_program_name): Clarify specification.
41479         * lib/progname.c (set_program_name): Likewise.
41480         Reported by Jim Meyering.
41481
41482 2009-12-05  Jim Meyering  <meyering@redhat.com>
41483
41484         maint.mk: backslash-escape parens in default regexp
41485         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
41486         backslash-escape the literal parentheses.
41487
41488         maint.mk: news-date-check: use grep -E
41489         * top/maint.mk (today): Define a Make variable, not a...
41490         (news-date-check): ...shell variable.
41491         (news-date-regexp): Use the Make variable.
41492         Use grep's -E option.  Change the failing diagnostic to mention
41493         the variable, $(news-date-regexp).
41494
41495 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
41496
41497         maintainer-makefile: allow customization of NEWS entry format
41498         * top/maint.mk (news-date-regexp): New overridable variable.
41499         (news-date-check): Use it.
41500
41501 2009-12-04  Eric Blake  <ebb9@byu.net>
41502
41503         mgetgroups: add xgetgroups, and avoid ENOSYS failures
41504         * lib/mgetgroups.h (xgetgroups): New prototype.
41505         * lib/mgetgroups.c (xgetgroups): New wrapper.
41506         (mgetgroups): Handle ENOSYS.
41507         * modules/mgetgroups (Depends-on): Add realloc.
41508         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
41509
41510         mgetgroups: avoid argument promotion issues with -1
41511         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
41512         for invalid gid_t.
41513         * tests/test-chown.h (getegid, test_chown): Likewise.
41514         * tests/test-lchown.h (getegid, test_lchown): Likewise.
41515
41516 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
41517
41518         exclude: Fix header file problems.
41519         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
41520
41521 2009-12-01  Jim Meyering  <meyering@redhat.com>
41522
41523         fts: fts_open: do not let an empty string cause immediate failure
41524         This is required in support of GNU rm, for which the command
41525         "rm A '' B" must process and remove both A and B, in spite of
41526         the empty string argument.
41527         * lib/fts.c (fts_open): Do not let the presence of an empty string
41528         cause fts_open to fail immediately.  Most fts-using tools must be
41529         able to process all arguments, in order, and can be expected to
41530         diagnose such arguments themselves.
41531
41532 2009-11-30  Eric Blake  <ebb9@byu.net>
41533
41534         utimens: fix compilation error
41535         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
41536         Declare variable at right scope.
41537
41538 2009-11-29  Jim Meyering  <meyering@redhat.com>
41539
41540         bootstrap: handle perl-5.11's changed --version output
41541         * build-aux/bootstrap (get_version): Handle perl separately,
41542         since perl-5.11's --version output is different.
41543
41544 2009-11-28  Jim Meyering  <meyering@redhat.com>
41545
41546         userspec: depend on the inttostr module, too
41547         * modules/userspec (Depends-on): Add inttostr.
41548
41549         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
41550         * lib/userspec.c (parse_with_separator): Do not accept a user ID
41551         number of MAXUID when it evaluates to (uid_t) -1.
41552         Likewise for group ID.  Reported by Matt McCutchen in
41553         <http://savannah.gnu.org/bugs/?28113>
41554
41555         userspec: reformat to use spaces, not TABs
41556         * lib/userspec.c: Expand TABs to spaces.
41557         Add Emacs' "indent-tabs-mode: nil" hint.
41558
41559 2009-11-27  Eric Blake  <ebb9@byu.net>
41560
41561         getopt-gnu: flush out another BSD bug
41562         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
41563         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
41564         flush out BSD bug.
41565         * tests/test-getopt.h (test_getopt): End lists with NULL.
41566         * tests/test-getopt_long.h (test_getopt_long): Likewise.
41567         (test_getopt_long_posix): Enhance test.
41568         * modules/getopt-posix-tests (Depends-on): Add stdbool.
41569         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
41570         getopt-gnu.
41571         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41572         Likewise.
41573
41574 2009-11-27  Simon Josefsson  <simon@josefsson.org>
41575
41576         * modules/idpriv-droptemp-tests (Notice): Fix text.
41577
41578 2009-11-27  Jim Meyering  <meyering@redhat.com>
41579
41580         test-xalloc-die: avoid spurious failure due to libtool argv difference
41581         In a libtool-enabled project, this test would fail due to a difference
41582         in the emitted program name, e.g.,
41583         -test-xalloc-die: memory exhausted
41584         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
41585         Use program to avoid that.
41586         * modules/xalloc-die-tests (Depends-on): Add progname.
41587         * tests/test-xalloc-die.c: Include progname.h".
41588         (program_name): Remove decl.
41589         (main): Call set_program_name.
41590         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
41591
41592 2009-11-26  Richard Jones  <rjones@redhat.com>
41593
41594         w32sock: leave win32 error in place.
41595         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
41596
41597 2009-11-26  Eric Blake  <ebb9@byu.net>
41598
41599         init.sh: suggest to use skip_ and fail_ functions in comments
41600         * tests/init.sh: Add a sentence.
41601
41602 2009-11-25  Bruno Haible  <bruno@clisp.org>
41603
41604         init.sh: add documentation in comments
41605         * tests/init.sh: Add some developer and user documentation.
41606
41607 2009-11-26  Jim Meyering  <meyering@redhat.com>
41608
41609         init.sh: accommodate even those who specify bogus srcdir manually
41610         * tests/init.sh: Normally, srcdir is guaranteed by automake and
41611         configure-time tests to be sanitized, so that there is no need to
41612         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
41613         (with no double quotes) suffices.  However, since tests may be
41614         invoked manually, and since you may explicitly set srcdir to the
41615         name of a directory containing spaces, do quote its uses here.
41616         * tests/test-pread.sh: Likewise.
41617         Suggested by Bruno Haible.
41618
41619         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
41620         * tests/test-pread.sh: Write no data into the pipe, because
41621         test-pread actually reads none.  This avoids a diagnostic,
41622         "bash: echo: write error: Broken pipe", that arises in the unusual
41623         event something is ignoring SIGPIPE, and might be interpreted
41624         as some sort of failure.  Reported by Bruno Haible.
41625
41626 2009-11-25  Jim Meyering  <meyering@redhat.com>
41627
41628         test-pread: cover failure with ESPIPE and EINVAL
41629         * tests/test-pread.c (main): Test for failure, too.
41630         * tests/test-pread.sh: Invoke with stdin on a pipe.
41631         Suggested by Eric Blake.
41632
41633         pread: improvement and fix
41634         * modules/pread (Depends-on): Depend on lseek, for portability to
41635         e.g., mingw.  Suggested by Eric Blake.
41636         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
41637
41638         unistd.in.h: correct declaration of pread
41639         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
41640         Reported by Richard W.M. Jones.
41641
41642         test-pread.sh: distribute the test script
41643         * modules/pread-tests (Files): Include test-pread.sh.
41644
41645         test-pread.sh: clean up
41646         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
41647         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
41648         That is unnecessary, since it's always ".".
41649         Suggestion from Eric Blake.
41650
41651         test-pread.sh: make executable
41652         * tests/test-pread.sh: Set executable bit.
41653         Reported by Eric Blake.
41654
41655         correct typo in test-pread.sh
41656         * tests/test-pread.sh: Add #! line.
41657
41658         test pread
41659         * tests/test-pread.c: New file.
41660         * tests/test-pread.sh: Likewise.
41661         * modules/pread-tests: Likewise.
41662
41663         pread: new module
41664         * modules/pread: New file.
41665         * lib/unistd.in.h (pread): Define/declare.
41666         * lib/pread.c (pread): New file.
41667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
41668         * modules/unistd (Makefile.am): Substitute witnesses.
41669         * doc/posix-functions/pread.texi (pread): Update.
41670         * MODULES.html.sh: Add pread.
41671
41672 2009-11-25  Jim Meyering  <meyering@redhat.com>
41673
41674         tests/init.sh: new file to be used via most *.sh tests
41675         * tests/init.sh: New file.
41676
41677 2009-11-25  Eric Blake  <ebb9@byu.net>
41678
41679         utimens: work around older Linux failure with symlinks
41680         * lib/utimens.c (lutimensat_works_really): New variable.
41681         (fdutimens, lutimens): Use it to manage kernels that support
41682         nanosecond times on files, but not on symlinks.
41683         Reported by Ondřej Vašík.
41684
41685         utimes: fix configure grammar
41686         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
41687
41688 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
41689
41690         regex: Fix fastmap for multibyte character ranges.
41691         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
41692         characters when a multibyte character range is included.
41693
41694 2009-11-22  Andy Wingo  <wingo@pobox.com>
41695
41696         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
41697         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
41698
41699 2009-11-24  Bruno Haible  <bruno@clisp.org>
41700
41701         doc: Most *_l functions exist in MacOS X 10.5.
41702         * doc/posix-functions/duplocale.texi: Update platforms list.
41703         * doc/posix-functions/freelocale.texi: Likewise.
41704         * doc/posix-functions/newlocale.texi: Likewise.
41705         * doc/posix-functions/uselocale.texi: Likewise.
41706         * doc/posix-functions/isalnum_l.texi: Likewise.
41707         * doc/posix-functions/isalpha_l.texi: Likewise.
41708         * doc/posix-functions/isblank_l.texi: Likewise.
41709         * doc/posix-functions/iscntrl_l.texi: Likewise.
41710         * doc/posix-functions/isdigit_l.texi: Likewise.
41711         * doc/posix-functions/isgraph_l.texi: Likewise.
41712         * doc/posix-functions/islower_l.texi: Likewise.
41713         * doc/posix-functions/isprint_l.texi: Likewise.
41714         * doc/posix-functions/ispunct_l.texi: Likewise.
41715         * doc/posix-functions/isspace_l.texi: Likewise.
41716         * doc/posix-functions/isupper_l.texi: Likewise.
41717         * doc/posix-functions/iswalnum_l.texi: Likewise.
41718         * doc/posix-functions/iswalpha_l.texi: Likewise.
41719         * doc/posix-functions/iswblank_l.texi: Likewise.
41720         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41721         * doc/posix-functions/iswctype_l.texi: Likewise.
41722         * doc/posix-functions/iswdigit_l.texi: Likewise.
41723         * doc/posix-functions/iswgraph_l.texi: Likewise.
41724         * doc/posix-functions/iswlower_l.texi: Likewise.
41725         * doc/posix-functions/iswprint_l.texi: Likewise.
41726         * doc/posix-functions/iswpunct_l.texi: Likewise.
41727         * doc/posix-functions/iswspace_l.texi: Likewise.
41728         * doc/posix-functions/iswupper_l.texi: Likewise.
41729         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41730         * doc/posix-functions/isxdigit_l.texi: Likewise.
41731         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
41732         * doc/posix-functions/strcasecmp_l.texi: Likewise.
41733         * doc/posix-functions/strcoll_l.texi: Likewise.
41734         * doc/posix-functions/strfmon_l.texi: Likewise.
41735         * doc/posix-functions/strftime_l.texi: Likewise.
41736         * doc/posix-functions/strncasecmp_l.texi: Likewise.
41737         * doc/posix-functions/strxfrm_l.texi: Likewise.
41738         * doc/posix-functions/tolower_l.texi: Likewise.
41739         * doc/posix-functions/toupper_l.texi: Likewise.
41740         * doc/posix-functions/towctrans_l.texi: Likewise.
41741         * doc/posix-functions/towlower_l.texi: Likewise.
41742         * doc/posix-functions/towupper_l.texi: Likewise.
41743         * doc/posix-functions/wcscoll_l.texi: Likewise.
41744         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41745         * doc/posix-functions/wctrans_l.texi: Likewise.
41746         * doc/posix-functions/wctype_l.texi: Likewise.
41747         * doc/glibc-functions/strptime_l.texi: Likewise.
41748         * doc/glibc-functions/strtod_l.texi: Likewise.
41749         * doc/glibc-functions/strtof_l.texi: Likewise.
41750         * doc/glibc-functions/strtol_l.texi: Likewise.
41751         * doc/glibc-functions/strtold_l.texi: Likewise.
41752         * doc/glibc-functions/strtoll_l.texi: Likewise.
41753         * doc/glibc-functions/strtoul_l.texi: Likewise.
41754         * doc/glibc-functions/strtoull_l.texi: Likewise.
41755         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41756         * doc/glibc-functions/wcstod_l.texi: Likewise.
41757         * doc/glibc-functions/wcstof_l.texi: Likewise.
41758         * doc/glibc-functions/wcstol_l.texi: Likewise.
41759         * doc/glibc-functions/wcstold_l.texi: Likewise.
41760         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41761         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41762         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41763
41764 2009-11-24  Bruno Haible  <bruno@clisp.org>
41765
41766         duplocale: Fix logic bug.
41767         * lib/duplocale.c: Don't include <langinfo.h>.
41768         (_NL_LOCALE_NAME): Remove macro.
41769         (rpl_duplocale): Use setlocale instead of nl_langinfo.
41770         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
41771
41772 2009-11-23  Jim Meyering  <meyering@redhat.com>
41773
41774         test-update-copyright: don't hard-code /usr/bin/perl
41775         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
41776         perl to print the current year.  Gilles Espinasse reported that
41777         the replaced use of perl was hard-coded as /usr/bin/perl.
41778
41779 2009-11-23  Bruno Haible  <bruno@clisp.org>
41780
41781         duplocale: Add support for glibc 2.3.x.
41782         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
41783
41784 2009-11-22  Bruno Haible  <bruno@clisp.org>
41785
41786         vasnprintf: Tiny optimization.
41787         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
41788         MacOS X.
41789
41790 2009-11-22  Bruno Haible  <bruno@clisp.org>
41791
41792         Tests for module 'duplocale'.
41793         * modules/duplocale-tests: New file.
41794         * tests/test-duplocale.c: New file.
41795
41796         New module 'duplocale'.
41797         * m4/duplocale.m4: New file.
41798         * lib/locale.in.h (duplocale): New declaration.
41799         * lib/duplocale.c: New file.
41800         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
41801         gl_LOCALE_H_DEFAULTS): New macros.
41802         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
41803         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
41804         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
41805         REPLACE_DUPLOCALE.
41806         * modules/duplocale: New file.
41807         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
41808
41809 2009-11-22  Bruno Haible  <bruno@clisp.org>
41810
41811         * modules/locale-tests (configure.ac): Test for newlocale function.
41812         * tests/test-locale.c: When the system has extended locale functions,
41813         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
41814
41815         locale: Make locale_t available when possible.
41816         * lib/locale.in.h: Include <xlocale.h> when it exists.
41817         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
41818         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
41819         * modules/locale (Depends-on): Add extensions.
41820         (Makefile.am): Also substitute HAVE_XLOCALE_H.
41821         * doc/posix-headers/locale.texi: Document the problem with locale_t.
41822
41823 2009-11-22  Bruno Haible  <bruno@clisp.org>
41824
41825         Add comments.
41826         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
41827         invocation.
41828         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41829         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41830         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41831
41832 2009-11-22  Bruno Haible  <bruno@clisp.org>
41833
41834         error: account for the possibility of freopen (stdout).
41835         * lib/error.c: Include <unistd.h>.
41836         (flush_stdout): New function, extracted from error and error_at_line.
41837         Determine stdout's fd dynamically.
41838         (error, error_at_line): Invoke flush_stdout.
41839         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
41840         * modules/error (Depends-on): Add unistd.
41841
41842 2009-11-22  Bruno Haible  <bruno@clisp.org>
41843
41844         diffseq: Add comment.
41845         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
41846
41847 2009-11-22  Jim Meyering  <meyering@redhat.com>
41848
41849         c-stack: avoid defining an unused static function
41850         * lib/c-stack.c (find_stack_direction): Do not define this function
41851         when it will not be used.
41852
41853         diffseq: avoid spurious gcc warnings
41854         * lib/diffseq.h (IF_LINT2): Define.
41855         (compareseq): Use it to initialize two members of "part".
41856         This avoids two used-uninitialized warnings.
41857
41858 2009-11-21  Jim Meyering  <meyering@redhat.com>
41859
41860         c-stack: avoid "ignoring return value of `write'" warning
41861         * lib/c-stack.c: Include "ignore-value.h".
41862         (die): Explicitly ignore each write return value.
41863         * modules/c-stack (Depends-on): Add ignore-value.
41864
41865 2009-11-21  Bruno Haible  <bruno@clisp.org>
41866
41867         diffseq: reduce scope of variable 'best'.
41868         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
41869         variable, earlier used for two different purposes.
41870
41871 2009-11-21  Jim Meyering  <meyering@redhat.com>
41872
41873         diffseq: remove useless assignment to "best"
41874         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
41875         assignment.  At that point "best" is already guaranteed to be zero.
41876
41877 2009-11-20  Eric Blake  <ebb9@byu.net>
41878
41879         build: mention ftp redirector in release announcements
41880         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
41881         values that used to come from cfg.mk; mention FTP redirect URL.
41882         * build-aux/announce-gen: Mention the mirror list.
41883         Suggested by Karl Berry.
41884
41885         nanosleep: improve port to mingw
41886         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
41887         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
41888         LIB_NANOSLEEP, but only when needed.
41889         * modules/select (Link): Document LIBSOCKET.
41890         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
41891         enough.
41892
41893         nanosleep: work around cygwin bug
41894         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
41895         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
41896         bug.
41897         (getnow): Delete, not needed.
41898         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
41899         LIB_CLOCK_GETTIME.
41900         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
41901         clock-time, gettime.
41902         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
41903         bug.
41904         * modules/nanosleep-tests: New test.
41905         * tests/test-nanosleep.c: New file.
41906
41907         sleep: work around cygwin bug
41908         * lib/sleep.c (rpl_sleep): Work around the bug.
41909         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
41910         (gl_PREREQ_SLEEP): Delete unused macro.
41911         * modules/sleep (Depends-on): Add verify.
41912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41913         * modules/unistd (Makefile.am): Substitute witness.
41914         * lib/unistd.in.h (sleep): Update prototype.
41915         * doc/posix-functions/sleep.texi (sleep): Document the bug.
41916         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
41917         * modules/sleep-tests (Depends-on): Check for alarm.
41918
41919 2009-11-20  Jim Meyering  <meyering@redhat.com>
41920
41921         maint.mk: improve sc_prohibit_magic_number_exit
41922         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
41923         so it does not match uses like System.exit(1).
41924         Add comments showing how to correct all offenders.
41925
41926 2009-11-19  Eric Blake  <ebb9@byu.net>
41927
41928         xalloc-die-tests: add missing library
41929         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
41930
41931         test-xvasprintf: silence compiler warnings
41932         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
41933         empty string from gcc.
41934
41935 2009-11-19  Jim Meyering  <meyering@redhat.com>
41936
41937         xfreopen: new module, from coreutils
41938         * modules/xfreopen: New module.
41939         * lib/xfreopen.c: New file.
41940         * lib/xfreopen.h: New file.
41941         * MODULES.html.sh (File stream based Input/Output"): Add it.
41942
41943 2009-11-19  Eric Blake  <ebb9@byu.net>
41944
41945         manywarnings: depend on warnings
41946         * modules/manywarnings (Depends-on): Add warnings.
41947
41948         build: avoid compiler warnings
41949         * lib/select.c (rpl_select): Delete unused variable.
41950         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
41951
41952 2009-11-18  Eric Blake  <ebb9@byu.net>
41953
41954         tests: avoid false negative with --with-packager
41955         * tests/test-version-etc.sh: Discard packager information.
41956         * tests/test-argp-version-etc-1.sh: Likewise.
41957         Reported by Mike Frysinger.
41958
41959         utimens: fix regression on Solaris
41960         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
41961         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
41962         can only change fd timestamps via futimesat.  Instead, use an
41963         additional witness macro to avoid BSD bug.
41964         Reported by Jim Meyering.
41965
41966 2009-11-17  Eric Blake  <ebb9@byu.net>
41967
41968         usleep: use it to simplify tests
41969         * modules/stat-time-tests (Depends-on): Add usleep.
41970         (configure.ac): Drop usleep check.
41971         * modules/chown-tests (Depends-on, configure.ac): Likewise.
41972         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
41973         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
41974         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
41975         * modules/openat-tests (Depends-on, configure.ac): Likewise.
41976         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
41977         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
41978         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
41979         Likewise.
41980         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
41981         * tests/test-lchown.h (nap): Likewise.
41982         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
41983         * tests/test-stat-time.c (nap): Likewise.
41984         * tests/test-utimens-common.h (nap): Update comments.
41985
41986         usleep: new module
41987         * modules/usleep: New file.
41988         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
41989         * lib/usleep.c (usleep): Likewise.
41990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41991         * modules/unistd (Makefile.am): Substitute witnesses.
41992         * lib/unistd.in.h (usleep): Add declaration.
41993         * doc/pastposix-functions/usleep.texi (usleep): Document this.
41994         * MODULES.html.sh (Date and time): Likewise.
41995         * modules/usleep-tests (Depends-on): New test.
41996         * tests/test-usleep.c: New file.
41997
41998         chown: work around OpenBSD bug
41999         * lib/chown.c (rpl_chown): Work around the bug.
42000         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
42001         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
42002         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
42003         * modules/chown (Depends-on): Add stdbool.
42004         * modules/lchown (Depends-on): Likewise.
42005         * doc/posix-functions/chown.texi (chown): Document the bug.
42006         * doc/posix-functions/lchown.texi (lchown): Likewise.
42007         * tests/test-lchown.h (test_chown): Relax test.
42008
42009         mkstemp: avoid conflict with C++ keyword template
42010         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
42011         * lib/mkostemp.c (mkostemp): Likewise.
42012         * lib/mkostemps.c (mkostemps): Likewise.
42013         * lib/mkstemp.c (mkstemp): Likewise.
42014         * lib/mkstemps.c (mkstemps): Likewise.
42015
42016         xalloc-die-tests: optimize
42017         * tests/test-xalloc-die.sh: Reduce number of processes.
42018
42019 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42020
42021         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
42022         patch from ludo@gnu.org (Ludovic Courtès).
42023
42024 2009-11-17  Jim Meyering  <meyering@redhat.com>
42025
42026         version-etc: use proper license string
42027         * modules/version-etc (License): Use LGPL, not LGPLv3+.
42028         * modules/version-etc-fsf: Likewise.
42029
42030 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42031
42032         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
42033         printed to stdout.  Deal with EOL differences.
42034
42035 2009-11-17  Eric Blake  <ebb9@byu.net>
42036
42037         unsetenv: work around Solaris bug
42038         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
42039         * lib/unsetenv.c (rpl_unsetenv): Work around it.
42040         Reported by Jim Meyering.
42041
42042         vasnprintf: avoid compiler warnings
42043         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
42044         variables.
42045         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
42046
42047 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42048
42049         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
42050         settings since xalloc-die is no longer the self test,
42051         xalloc-die.sh is.
42052
42053 2009-11-17  Jim Meyering  <meyering@redhat.com>
42054
42055         test-xalloc-die.sh: make the code agree with the commit log
42056         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
42057         at the end, just in case you happen to have a test-xalloc-die
42058         program in some other PATH directory.
42059
42060         test-xalloc-die.sh: fix a portability bug
42061         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
42062         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
42063         Otherwise, argv[0] (as often seen in diagnostics) would be too
42064         system-dependent, sometimes with, and sometimes without the leading "./".
42065
42066         version-etc-fsf: relax license to LGPLv3+
42067         * modules/version-etc-fsf (License): Relax license.
42068
42069 2009-11-16  Eric Blake  <ebb9@byu.net>
42070
42071         xalloc-die-tests: avoid printing null pointer
42072         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
42073         shell script.
42074         * tests/test-xalloc-die.c (program_name): Declare.
42075         * tests/test-xalloc-die.sh (tmpfiles): New file.
42076
42077         setenv, unsetenv: work around various bugs
42078         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
42079         (setenv) [HAVE_SETENV]: Work around bugs.
42080         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
42081         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
42082         for bugs.
42083         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
42084         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
42085         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
42086         * modules/stdlib (Makefile.am): Update substitutions.
42087         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
42088         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
42089         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42090         * modules/setenv-tests: New test.
42091         * modules/unsetenv-tests: Likewise.
42092         * tests/test-setenv.c: New file.
42093         * tests/test-unsetenv.c: Likewise.
42094
42095 2009-11-16  Jim Meyering  <meyering@redhat.com>
42096
42097         version-etc: relax license to LGPLv3+
42098         * modules/version-etc (License): Relax license.
42099
42100         better AC_REQUIRE expanded-before-required-warning avoidance
42101         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
42102         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
42103         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
42104         which is no longer needed.
42105
42106 2009-11-16  Eric Blake  <ebb9@byu.net>
42107
42108         test-freading: clean up temporary file
42109         * tests/test-freading.c (main): Remove file on success, and use
42110         ASSERT more liberally.
42111         Reported by Jim Meyering.
42112
42113 2009-11-16  Jim Meyering  <meyering@redhat.com>
42114
42115         avoid new AC_REQUIRE expanded-before-required warnings
42116         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
42117         merely using it.
42118         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
42119         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
42120
42121 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42122
42123         * tests/test-xalloc-die.c: New file.
42124         * modules/xalloc-die-tests: New file.
42125         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
42126         XFAIL_TESTS so it can be appended by modules.
42127
42128 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42129
42130         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
42131         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
42132
42133 2009-11-14  Eric Blake  <ebb9@byu.net>
42134
42135         fnmatch: avoid compiler warning
42136         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
42137         to silence compiler warning about mismatch signedness in ?:.
42138         Reported by Robert Millan.
42139
42140         intprops: add double-inclusion guard
42141         * lib/intprops.h: Allow idempotent includes.
42142         Suggested by Bruce Korb.
42143
42144         openat: detect Solaris fchownat bug
42145         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
42146         penalizing glibc chownat when only lchownat is broken.
42147         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
42148         trailing slash bugs.
42149         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
42150         * modules/openat-tests (Files): Include more files.
42151         (Depends-on): Add mgetgroups, sleep, stat-time.
42152         (configure.ac): Add additional checks.
42153         (Makefile.am): Build new test.
42154         * tests/test-fchownat.c: New file.
42155
42156         lchown: detect Solaris and FreeBSD bug
42157         * lib/lchown.c (rpl_lchown): Work around bug.
42158         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
42159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42160         * modules/unistd (Makefile.am): Populate it.
42161         * lib/unistd.in.h (lchown): Update declaration.
42162         * doc/posix-functions/lchown.texi (lchown): Document the bug.
42163         * modules/lchown-tests: New file.
42164         * tests/test-lchown.h (test_lchown): Likewise.
42165         * tests/test-lchown.c (main): Likewise.
42166
42167         chown: detect Solaris and FreeBSD bug
42168         * lib/chown.c (rpl_chown): Work around bug.
42169         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
42170         (gl_PREREQ_CHOWN): Delete.
42171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42172         * modules/unistd (Makefile.am): Populate it.
42173         * lib/unistd.in.h (chown): Update declaration.
42174         * lib/lchown.c (chown): Update client.
42175         * modules/lchown (Depends-on): Add lstat.
42176         * doc/posix-functions/chown.texi (chown): Document the bug.
42177         * doc/posix-functions/getgroups.texi (getgroups): Document
42178         getgroups pitfall.
42179         * modules/chown-tests: New file.
42180         * tests/test-chown.h (test_chown): Likewise.
42181         * tests/test-chown.c (main): Likewise.
42182
42183 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
42184
42185         gnulib-tool: correctly detect absence of m4 directories
42186         * gnulib-tool: Avoid extra newline on data passed to wc -l.
42187
42188 2009-11-14  Jim Meyering  <meyering@redhat.com>
42189
42190         maint.mk: Prohibit inclusion of "xalloc.h" without use.
42191         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42192
42193 2009-11-14  John W. Eaton  <jwe@gnu.org>
42194
42195         strftime.h: wrap function declaration in extern "C" block
42196         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
42197
42198 2009-11-13  Eric Blake  <ebb9@byu.net>
42199
42200         getgroups: avoid compiler warning
42201         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
42202
42203         getgroups: work around FreeBSD bug
42204         * lib/getgroups.c (rpl_getgroups): Work around the bug.
42205         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
42206         * doc/posix-functions/getgroups.texi (getgroups): Document it.
42207         * tests/test-getgroups.c (main): Fix buffer overrun.
42208
42209         getgroups: avoid compilation failure
42210         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
42211         * modules/getgroups (Depends-on): Add stdint.
42212
42213 2009-11-13  Jim Meyering  <meyering@redhat.com>
42214
42215         test-getgroups: avoid compilation failure
42216         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
42217
42218 2009-11-13  Eric Blake  <ebb9@byu.net>
42219
42220         mgetgroups: new module, taken from coreutils
42221         * modules/mgetgroups: New file.
42222         * lib/mgetgroups.h: Likewise.
42223         * lib/mgetgroups.c (mgetgroups): Likewise.
42224         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
42225         * MODULES.html.sh (Users and groups): Mention it.
42226
42227         getgroups: don't expose GETGROUPS_T to user
42228         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
42229         an element at a time if GETGROUPS_T is wrong size.
42230         * lib/getugroups.h (getugroups): Change signature.
42231         * lib/unistd.in.h (getgroups): Likewise.
42232         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
42233         signature needs fixing.
42234         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
42235         AC_TYPE_GETGROUPS.
42236         * modules/group-member (Depends-on): Add getgroups.
42237         * lib/group-member.c (group_info, get_group_info): Use gid_t.
42238         (group_member): Rely on getgroups replacement.
42239         * lib/getugroups.c (getugroups): Use gid_t.
42240         * tests/test-getgroups.c (main): Likewise.
42241         * NEWS: Mention the signature change.
42242         * doc/posix-functions/getgroups.texi (getgroups): Mention the
42243         problem with signature.
42244         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
42245         GETGROUPS_T is still useful for setgroups.
42246
42247         getgroups, getugroups: provide stubs for mingw
42248         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
42249         * lib/getugroups.c (getugroups): Likewise.
42250         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
42251         function.  Modernize replacement scheme.
42252         (gl_PREREQ_GETGROUPS): Delete.
42253         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
42254         * modules/getgroups (configure.ac): Declare witness.
42255         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42256         * modules/unistd (Depends-on): Substitute witness.
42257         * lib/unistd.in.h (getgroups): Declare replacement.
42258
42259         getgroups: avoid calling exit
42260         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
42261         drop xalloc.
42262         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
42263         dependencies.
42264         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
42265         exiting, in the rare case of malloc failure.
42266
42267         getgroups: fix logic error
42268         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
42269         has more than 20 groups.
42270         * modules/getgroups-tests: New test.
42271         * tests/test-getgroups.c: New file.
42272
42273 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42274
42275         * tests/test-base64.c: Improve.
42276
42277 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42278
42279         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
42280         Blake <ebb9@byu.net>.
42281
42282 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42283
42284         * tests/test-xvasprintf.c: Add %s%s related checks.
42285
42286 2009-11-12  Eric Blake  <ebb9@byu.net>
42287
42288         version-etc: match standards.texi style
42289         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
42290         and use <> only for URLs.
42291
42292 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
42293
42294         fts: do not fail on a submount during traversal
42295         * lib/fts.c (fts_build): Read the stat info again after opening
42296         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
42297         Original report at http://bugzilla.redhat.com/501848.
42298
42299 2009-11-12  Jim Meyering  <meyering@redhat.com>
42300
42301         bootstrap: sync from coreutils
42302         * build-aux/bootstrap (bootstrap_epilogue): New function.
42303         Use git_modules_config in one more place.  This make bootstrap's
42304         --gnulib-srcdir option more useful for testing.
42305
42306         bootstrap: generalize autoheader check
42307         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
42308         AC_CONFIG_HEADERS.
42309
42310 2009-11-11  Eric Blake  <ebb9@byu.net>
42311
42312         mkfifoat: use new modules for Solaris and BSD bugs
42313         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
42314         * lib/mkfifoat.c (mknodat): Split...
42315         * lib/mknodat.c (mknodat): ...into new file.
42316         * modules/mkfifoat (Files): Ship new file.
42317         (Depends-on): Add mkfifo, mknod.
42318         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
42319         (Depends-on): Add symlink.
42320         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
42321         redundant with test_mkfifo.h.
42322         (do_mkfifoat, do_mknodat): New helpers.
42323
42324         mknod: new module
42325         * modules/mknod: New file.
42326         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
42327         * lib/mknod.c (mknod): Likewise.
42328         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42329         defaults.
42330         * modules/sys_stat (Makefile.am): Substitute them.
42331         * lib/sys_stat.in.h (mknod): Declare replacement.
42332         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42333         Document it.
42334         * doc/posix-functions/mknod.texi (mknod): Likewise.
42335         * modules/mknod-tests: New test.
42336         * tests/test-mknod.c: Likewise.
42337
42338         mkfifo: new module
42339         * modules/mkfifo: New file.
42340         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
42341         * lib/mkfifo.c (mkfifo): Likewise.
42342         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42343         defaults.
42344         * modules/sys_stat (Makefile.am): Substitute them.
42345         * lib/sys_stat.in.h (mkfifo): Declare replacement.
42346         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42347         Document it.
42348         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
42349         * modules/mkfifo-tests: New test.
42350         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
42351         from test-mkfifoat.c.
42352         * tests/test-mkfifo.c: New file.
42353
42354         readlink: detect FreeBSD bug
42355         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
42356         slash on symlink.
42357         * doc/posix-functions/readlink.texi (readlink): Document the bug.
42358         * tests/test-readlink.h (test_readlink): Enhance test.
42359
42360         symlink: detect FreeBSD bug
42361         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
42362         slash on symlink.
42363         * doc/posix-functions/symlink.texi (symlink): Document the bug.
42364         * tests/test-symlink.h (test_symlink): Enhance test.
42365
42366 2009-11-10  Eric Blake  <ebb9@byu.net>
42367
42368         link: detect FreeBSD bug
42369         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
42370         symlink.
42371         * doc/posix-functions/link.texi (link): Document the bug.
42372         * tests/test-link.h (test_link): Enhance test.
42373         * tests/test-linkat.c (main): Update caller.
42374
42375         unlink, remove: detect FreeBSD bug
42376         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
42377         slash on symlink.
42378         * doc/posix-functions/unlink.texi (unlink): Document the bug.
42379         * doc/posix-functions/remove.texi (remove): Likewise.
42380         * tests/test-unlink.h (test_unlink): Enhance test.
42381         * tests/test-remove.c (main): Likewise.
42382
42383 2009-11-09  Eric Blake  <ebb9@byu.net>
42384
42385         rename: detect FreeBSD bug
42386         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
42387         slash on symlink.
42388         * modules/renameat-tests (Depends-on): Add filenamecat.
42389         * tests/test-rename.h (test_rename): Allow one more errno.
42390         * tests/test-renameat.c (main): Likewise.
42391         * doc/posix-functions/rename.texi (rename): Document the bug.
42392
42393         open: detect FreeBSD bug
42394         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
42395         symlink.
42396         * doc/posix-functions/open.texi (open): Document the bug.
42397         * doc/posix-functions/utimes.texi (utimes): Likewise.
42398         * tests/test-open.h (test_open): Add parameters, and test symlink
42399         handling.
42400         * tests/test-open.c (main): Adjust caller.
42401         * tests/test-fcntl-safer.c (main): Likewise.
42402         * modules/open-tests (Depends-on): Add stdbool, symlink.
42403         * modules/fcntl-safer-tests (Depends-on): Likewise.
42404         * tests/test-openat.c (main): Add test-open tests.
42405
42406         stat: detect FreeBSD bug
42407         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
42408         symlink.
42409         * doc/posix-functions/stat.texi (stat): Document the bug.
42410         * tests/test-stat.h (test_stat_func): Add argument.
42411         * tests/test-stat.c (main): Adjust caller.
42412         * tests/test-fstatat.c (main): Likewise.
42413         * modules/stat-tests (Depends-on): Add stdbool, symlink.
42414         Reported by Jim Meyering.
42415
42416 2009-11-09  James Youngman  <jay@gnu.org>
42417
42418         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
42419         * lib/strftime.c: Correct placement of #include "ignore-value.h".
42420
42421 2009-11-08  Jim Meyering  <meyering@redhat.com>
42422
42423         utimens: remove invalid futimesat call
42424         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
42425         It used the file descriptor of the target file as the DIR_FD
42426         parameter and NULL as the file name.  That caused failure with
42427         errno == EFAULT on FreeBSD-8.0-rc2
42428
42429 2009-11-07  Eric Blake  <ebb9@byu.net>
42430
42431         fflush, freadseek: use fseeko, not fseek
42432         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
42433         (clear_ungetc_buffer): Avoid potential problems on large files.
42434         * lib/freadseek.c (freadseek): Likewise.
42435         * modules/freadseek (Depends-on): Add fseeko.
42436         * modules/fseek (configure.ac): Set a witness.
42437         * tests/test-fflush.c (main): Use fseeko.
42438         * tests/test-fpurge.c (fseek): Disable link warning.
42439         * tests/test-freadable.c (fseek): Likewise.
42440         * tests/test-freading.c (fseek): Likewise.
42441         * tests/test-fseeko.c (fseek): Likewise.
42442         * tests/test-ftell.c (fseek): Likewise.
42443         * tests/test-ftello.c (fseek): Likewise.
42444         * tests/test-fwritable.c (fseek): Likewise.
42445         * tests/test-fwriting.c (fseek): Likewise.
42446
42447 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42448
42449         * modules/memchr (Depends-on): Drop getpagesize dependency.
42450
42451 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42452
42453         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
42454         Reported by Ludovic Courtès.
42455         * build-aux/pmccabe2html: Improve example usage.
42456         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
42457
42458 2009-11-06  Jim Meyering  <meyering@redhat.com>
42459
42460         do-release-commit-and-tag: New module.
42461         Automate the release-commit and tag process.
42462         * build-aux/do-release-commit-and-tag: New script, from coreutils.
42463         * modules/do-release-commit-and-tag: New file.
42464         * MODULES.html.sh (Support for maintaining and releasing): Add it.
42465
42466 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42467
42468         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
42469         because test-select.c uses inet_pton.
42470
42471 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42472
42473         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
42474         GETADDRINFO_LIB.  Bump serial number.
42475         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
42476         Suggested by Eric Blake <ebb9@byu.net>.
42477
42478 2009-11-05  Eric Blake  <ebb9@byu.net>
42479
42480         strtod: detect darwin bug
42481         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
42482         Reported by Leo Davis.
42483
42484         freopen-safer: new module
42485         * modules/freopen-safer: New module.
42486         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
42487         * lib/freopen-safer.c (freopen_safer): New file.
42488         * lib/stdio-safer.h (freopen_safer): New declaration.
42489         * lib/stdio--.h (freopen): New override.
42490         * MODULES.html.sh (File stream based Input/Output): Mention it.
42491         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
42492         freopen-safer module.
42493         * doc/posix-functions/stderr.texi (stderr): Likewise.
42494         * doc/posix-functions/stdin.texi (stdin): Likewise.
42495         * doc/posix-functions/stdout.texi (stdout): Likewise.
42496         * modules/freopen-safer-tests: New test.
42497         * tests/test-reopen-safer.c: New file.
42498
42499 2009-11-05  Jim Meyering  <meyering@redhat.com>
42500
42501         maint.mk: Prohibit inclusion of "close-stream.h" without use.
42502         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42503
42504 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42505
42506         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
42507
42508 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42509
42510         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
42511
42512 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42513
42514         Fix link error.
42515         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42516         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42517
42518 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42519
42520         * tests/test-func.c: Also test value of __func__.
42521
42522 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42523
42524         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
42525         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
42526
42527 2009-11-05  Bruno Haible  <bruno@clisp.org>
42528
42529         Fix link error.
42530         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42531         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42532         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
42533
42534 2009-11-05  Bruno Haible  <bruno@clisp.org>
42535
42536         Tests for module 'inet_pton'.
42537         * modules/inet_pton-tests: New file.
42538         * tests/test-inet_pton.c: New file.
42539
42540 2009-11-05  Bruno Haible  <bruno@clisp.org>
42541
42542         Tests for module 'inet_ntop'.
42543         * modules/inet_ntop-tests: New file.
42544         * tests/test-inet_ntop.c: New file.
42545
42546 2009-11-04  Eric Blake  <ebb9@byu.net>
42547
42548         stdlib-safer: wrap all mkstemp variants
42549         * modules/mkostemp (configure.ac): Set witness.
42550         * modules/mkostemps (configure.ac): Likewise.
42551         * modules/mkstemps (configure.ac): Likewise.
42552         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
42553         (mkstemps_safer): Wrap more functions.
42554         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
42555         wrapping.
42556         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
42557         (mkstemps_safer): Implement the wrappers.
42558
42559         mkstemps, mkostemps: new modules
42560         * modules/mkostemps: New module.
42561         * modules/mkstemps: Likewise.
42562         * lib/mkostemps.c (mkostemps): New file.
42563         * lib/mkstemps.c (mkstemps): Likewise.
42564         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
42565         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
42566         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
42567         * modules/stdlib (Makefile.am): Substitute them.
42568         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
42569         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
42570         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
42571         * doc/gnulib.texi (Glibc stdlib.h): Include them.
42572         * MODULES.html.sh (File system functions): Mention them.
42573
42574         tempname: resync from glibc
42575         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
42576         same values for __GT_FILE as glibc.  Abort even when assertions
42577         are disabled.
42578         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
42579         match its value otherwise.  Allow idempotent inclusion.
42580         * lib/mkdtemp.c (mkdtemp): Adjust caller.
42581         * lib/mkostemp.c (mkostemp): Likewise.
42582         * lib/mkstemp.c (mkstemp): Likewise.
42583         * lib/tmpfile.c (tmpfile): Likewise.
42584         * NEWS: Document this.
42585
42586         utimens: fix use of futimens on older Linux
42587         * lib/utimens.c (fdutimens): Use updated, rather than original,
42588         timespec to avoid bug in older Linux kernel.
42589         Reported by Simon Josefsson.
42590
42591 2009-11-04  Bruno Haible  <bruno@clisp.org>
42592
42593         Make num_processors more flexible and consistent.
42594         * lib/nproc.h (enum nproc_query): New type.
42595         (num_processors): Add a 'query' argument.
42596         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
42597         (num_processors): Add a 'query' argument. Test the value of the
42598         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
42599         mingw, count the number of CPUs available for the current process.
42600         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
42601         Check for sched_getaffinity and sched_getaffinity_np.
42602         * modules/nproc (Depends-on): Add c-ctype, extensions.
42603         * NEWS: Mention the change.
42604
42605 2009-11-03  Bruno Haible  <bruno@clisp.org>
42606
42607         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
42608
42609 2009-11-03  Jim Meyering  <meyering@redhat.com>
42610
42611         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
42612         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
42613         if it is defined.
42614
42615 2009-11-02  Eric Blake  <ebb9@byu.net>
42616
42617         mktime, timegm: share common declaration
42618         * lib/mktime-internal.h: New file.
42619         * lib/mktime.c: Use it rather than open-coding a declaration.
42620         * lib/timegm.c: Likewise.
42621         * modules/mktime (Files): Ship it.
42622         * modules/timegm (Files): Likewise.
42623         Suggested by Bruno Haible.
42624
42625         test-update-copyright: update test to match script changes
42626         * tests/test-update-copyright.sh: Avoid hard-coding perl
42627         location.  Don't update *.bak created by earlier runs.
42628
42629 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42630             Simon Josefsson  <simon@josefsson.org>
42631             Bruno Haible  <bruno@clisp.org>
42632
42633         Fix link error on Solaris 8.
42634         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
42635         also in libnsl. Define also INET_PTON_LIB.
42636         * modules/inet_pton (Link): New section.
42637
42638 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42639             Bruno Haible  <bruno@clisp.org>
42640
42641         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
42642         * modules/inet_ntop (Link): New section.
42643         Reported by Boyan Kasarov <bkasarov@gmail.com>.
42644
42645 2009-11-02  Eric Blake  <ebb9@byu.net>
42646
42647         maint: avoid compiler warnings in m4 macros
42648         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
42649         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
42650
42651 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42652
42653         * m4/pmccabe2html.m4: Remove file.
42654         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
42655         function.  Change maintainer.
42656         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
42657         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
42658         Courtès).
42659
42660 2009-10-31  Eric Blake  <ebb9@byu.net>
42661
42662         fseeko: fix m4 regression
42663         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
42664         regression from 2009-10-27.
42665         Reported by Ralf Wildenhues.
42666
42667 2009-10-31  Jim Meyering  <meyering@redhat.com>
42668
42669         inttostr: aesthetics and improved (compile-time) safety
42670         Define inttype_is_signed rather than inttype_is_unsigned,
42671         since the sole use is via "#if inttype_is_signed".
42672         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
42673         inttype_is_unsigned.
42674         * lib/offtostr.c (inttype_is_signed): Likewise.
42675         * lib/uinttostr.c (inttype_is_signed): Likewise.
42676         * lib/umaxtostr.c (inttype_is_signed): Likewise.
42677         * lib/inttostr.c (inttostr): Use verify to cross-check the
42678         inttype_is_signed value and the signedness of the actual type.
42679         * modules/inttostr (Depends-on): Add verify.
42680
42681 2009-10-30  Eric Blake  <ebb9@byu.net>
42682
42683         build: avoid compiler warnings
42684         * lib/fchmodat.c (lchmod): Mark unused variables.
42685         * lib/getopt.c (_getopt_initialize): Likewise.
42686         * lib/mktime.c (__mktime_internal): Provide prototype.
42687         * lib/inttostr.c (inttostr): Avoid compiler warning even with
42688         older gcc that do not understand #pragma GCC diagnostic.
42689         * lib/uinttostr.c (inttype_is_unsigned): Define.
42690         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
42691
42692 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
42693
42694         stat: fix compilation on AIX
42695         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
42696         only see struct stat64.
42697
42698 2009-10-30  Eric Blake  <ebb9@byu.net>
42699
42700         exclude: make more robust
42701         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
42702         rather than masking a coding bug.
42703         Suggested by Bruno Haible.
42704
42705 2009-10-30  Jim Meyering  <meyering@redhat.com>
42706
42707         perl scripts: remove #!/usr/bin/perl in favor of more portable...
42708         Rather than putting #!/usr/bin/perl on the first line,
42709         start with a variant of what's recommended by "man perlrun" that
42710         invokes the first "perl" program from your shell's search path.
42711         * build-aux/gitlog-to-changelog: Replace #!... as above.
42712         Add a "Local Variables" perl mode setting.
42713         Prompted by a patch from Ludovic Courtès.
42714         Improved by Eric Blake.
42715         * build-aux/useless-if-before-free: Likewise.
42716         * build-aux/announce-gen: Likewise.
42717         * build-aux/update-copyright: Likewise.
42718
42719 2009-10-29  Eric Blake  <ebb9@byu.net>
42720
42721         filenamecat-lgpl: adjust clients
42722         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
42723         filenamecat.
42724         * modules/renameat (Depends-on): Likewise.
42725
42726         filenamecat: split into filenamecat-lgpl
42727         * modules/filenamecat-lgpl: New module.
42728         * modules/filenamecat (Files): Move library-safe files into
42729         filenamecat-lgpl.
42730         (Depends-on): Add filenamecat-lgpl.
42731         (configure.ac): Declare witness.
42732         * lib/filenamecat.h (file_name_concat): Only declare when using
42733         GPL module.
42734         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
42735         Move...
42736         * lib/filenamecat-lgpl.c: ...into new file.
42737         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
42738         (gl_FILE_NAME_CONCAT): Use it.
42739         * MODULES.html.sh (File system functions): Mention new module.
42740
42741         argp: avoid memory leak
42742         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
42743         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
42744         base_name, since the latter malloc()s and can call exit().
42745         Leak introduced 2006-07-03.
42746
42747         dirname-lgpl: adjust clients that don't need full dirname
42748         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
42749         * modules/filenamecat (Depends-on): Likewise.
42750         * modules/linkat (Depends-on): Likewise.
42751         * modules/mkancesdirs (Depends-on): Likewise.
42752         * modules/mkdir (Depends-on): Likewise.
42753         * modules/openat (Depends-on): Likewise.
42754         * modules/savewd (Depends-on): Likewise.
42755         * modules/rename (Depends-on): Likewise.
42756         (License): Relax license.
42757         * modules/mkdir-tests (Depends-on): Drop progname.
42758         (Makefile.am): Delete unneeded LDADD.
42759         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
42760
42761         dirname: split into dirname-lgpl
42762         * modules/dirname-lgpl: New module.
42763         * modules/dirname (Files): Move library-safe files into
42764         dirname-lgpl.
42765         (Depends-on): Add dirname-lgpl.
42766         (configure.ac): Declare witness.
42767         * modules/double-slash-root (License): Relax license.
42768         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
42769         module.
42770         * lib/dirname.c (dir_len, mdir_name): Move...
42771         * lib/dirname-lgpl.c: ...into new file.
42772         * lib/basename.c (last_component, base_len): Move...
42773         * lib/basename-lgpl.c: ...into new file.
42774         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
42775         (gl_DIRNAME): Use it.
42776         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
42777         Mention new module.
42778         * modules/dirname-tests (Depends-on): Add progname.
42779         * tests/test-dirname.c (program_name): Delete.
42780
42781         mkdir: make safe for libraries
42782         * modules/mkdir (Depends-on): Drop xalloc.
42783         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
42784         exit.
42785
42786         tests: avoid some compiler warnings
42787         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
42788         literals.
42789         * tests/test-memchr.c (main): Avoid type mismatch.
42790         * tests/test-arpa_inet.c (main): Avoid unused parameters.
42791         * tests/test-base64.c (main): Likewise.
42792         * tests/test-getdelim.c (main): Likewise.
42793         * tests/test-gethostname.c (main): Likewise.
42794         * tests/test-getline.c (main): Likewise.
42795         * tests/test-netinet_in.c (main): Likewise.
42796         * tests/test-select.c (open_server_socket, main): Likewise.
42797         * tests/test-select-stdin.c (main): Likewise.
42798         * tests/test-sockets.c (main): Likewise.
42799         * tests/test-strsignal.c (main): Likewise.
42800         * tests/test-sys_select.c (main): Likewise.
42801         * tests/test-sys_socket.c (main): Likewise.
42802         * tests/test-u64.c (main): Likewise.
42803         * tests/test-xfprintf-posix.c (main): Likewise.
42804         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
42805
42806         sockets: avoid compiler warning
42807         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
42808
42809         maint: detect usage(1) and other suspicious exits
42810         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
42811
42812 2009-10-29  Jim Meyering  <meyering@redhat.com>
42813
42814         timespec: long-to-int truncation could make timespec_cmp malfunction
42815         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
42816         a multiple of 2^32 nanoseconds as no difference.
42817
42818 2009-10-28  Jim Meyering  <meyering@redhat.com>
42819
42820         fprintftime: wrap macro code argument in "do {...} while(0)"
42821         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
42822         cpy macro must be a statement that can be followed by a semicolon.
42823         Now that the else clause contains a comment and is hence longer
42824         than one line, I require curly braces.  That in turn requires
42825         that we wrap this code block in the standard do...while(0).
42826
42827         fprintftime: remove stray semicolon from previous change
42828         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
42829
42830         fprintftime: avoid a warning about ignored fwrite return value
42831         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
42832         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
42833         that is unsafe.
42834         * modules/fprintftime (Depends-on): Add ignore-value.
42835
42836         exclude: avoid an unwarranted warning
42837         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
42838
42839 2009-10-27  Eric Blake  <ebb9@byu.net>
42840
42841         fseek: avoid compilation failure when fflush is replaced
42842         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
42843         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
42844         module is in use.
42845         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
42846         module is not in use; since REPLACE_FSEEK worked otherwise.
42847         (GNULIB_FTELLO): Likewise for ftell.
42848         Reported by Ian Beckwith and others.
42849
42850 2009-10-27  Bruno Haible  <bruno@clisp.org>
42851
42852         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
42853         Reported by Jim Meyering.
42854
42855 2009-10-27  Jim Meyering  <jim@meyering.net>
42856             Bruno Haible  <bruno@clisp.org>
42857
42858         Avoid warning despite dropping the return value of fwrite.
42859         * lib/unicodeio.c: Include ignore-value.h.
42860         (fwrite_success_callback): Explicitly ignore fwrite's return value.
42861         * modules/unicodeio (Depends-on): Add ignore-value.
42862
42863 2009-10-26  Eric Blake  <ebb9@byu.net>
42864
42865         areadlinkat: fix fallback path
42866         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
42867         pointer and zero.
42868
42869 2009-10-22  Pádraig Brady  <P@draigBrady.com>
42870
42871         Use a better IO block size for modern systems
42872         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
42873         * lib/md2.c: Likewise.
42874         * lib/md4.c: Likewise.
42875         * lib/md5.c: Likewise.
42876         * lib/sha1.c: Likewise.
42877         * lib/sha256.c: Likewise.
42878         * lib/sha512.c: Likewise.
42879
42880 2009-10-22  Eric Blake  <ebb9@byu.net>
42881
42882         tests: avoid several compiler warnings
42883         * tests/test-getcwd.c (main): Avoid buffer underflow.
42884         * tests/test-getdate.c (main): String literals are not safe with
42885         putenv, so use setenv.  Declare unused argument.
42886         * modules/getdate-tests (Depends-on): Add setenv.
42887         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
42888         problems with string literals in char *.
42889         * tests/test-hash.c (main): Avoid shadowing declaration.
42890         (insert_new): Treat string literals as char const *.
42891         * tests/test-getopt.h (test_getopt): Likewise.
42892         (getopt_loop): Alter types to minimize casting elsewhere.
42893         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
42894         (test_getopt_long_posix): Likewise.
42895         (do_getopt_long): Add wrapper to minimize casting.
42896         * tests/test-atexit.c (clear_temp_file): Use void.
42897         * tests/test-areadlink-with-size.c (main): Declare unused
42898         arguments.
42899         * tests/test-areadlink.c (main): Likewise.
42900         * tests/test-areadlinkat-with-size.c (main): Likewise.
42901         * tests/test-areadlinkat.c (main): Likewise.
42902         * tests/test-canonicalize-lgpl.c (main): Likewise.
42903         * tests/test-canonicalize.c (main): Likewise.
42904         * tests/test-dirent-safer.c (main): Likewise.
42905         * tests/test-dirname.c (main): Likewise.
42906         * tests/test-dup2.c (main): Likewise.
42907         * tests/test-fchdir.c (main): Likewise.
42908         * tests/test-fcntl-h.c (main): Likewise.
42909         * tests/test-fcntl-safer.c (main): Likewise.
42910         * tests/test-fdopendir.c (main): Likewise.
42911         * tests/test-fdutimensat.c (main): Likewise.
42912         * tests/test-fflush.c (main): Likewise.
42913         * tests/test-filenamecat.c (main): Likewise.
42914         * tests/test-filevercmp.c (main): Likewise.
42915         * tests/test-fopen-safer.c (main): Likewise.
42916         * tests/test-fopen.c (main): Likewise.
42917         * tests/test-fpending.c (main): Likewise.
42918         * tests/test-fpurge.c (main): Likewise.
42919         * tests/test-freading.c (main): Likewise.
42920         * tests/test-fstatat.c (main): Likewise.
42921         * tests/test-fsync.c (main): Likewise.
42922         * tests/test-futimens.c (main): Likewise.
42923         * tests/test-getndelim2.c (main): Likewise.
42924         * tests/test-gettimeofday.c (main): Likewise.
42925         * tests/test-getopt.c (main): Likewise.
42926         * tests/test-i-ring.c (main): Likewise.
42927         * tests/test-inttypes.c (main): Likewise.
42928         * tests/test-link.c (main): Likewise.
42929         * tests/test-lstat.c (main): Likewise.
42930         * tests/test-math.c (main): Likewise.
42931         * tests/test-md5.c (main): Likewise.
42932         * tests/test-memchr2.c (main): Likewise.
42933         * tests/test-memrchr.c (main): Likewise.
42934         * tests/test-mkdir.c (main): Likewise.
42935         * tests/test-mkdirat.c (main): Likewise.
42936         * tests/test-mkfifoat.c (main): Likewise.
42937         * tests/test-open.c (main): Likewise.
42938         * tests/test-openat-safer.c (main): Likewise.
42939         * tests/test-openat.c (main): Likewise.
42940         * tests/test-quotearg.c (main): Likewise.
42941         * tests/test-rawmemchr.c (main): Likewise.
42942         * tests/test-readlink.c (main): Likewise.
42943         * tests/test-remove.c (main): Likewise.
42944         * tests/test-rename.c (main): Likewise.
42945         * tests/test-renameat.c (main): Likewise.
42946         * tests/test-rmdir.c (main): Likewise.
42947         * tests/test-sha1.c (main): Likewise.
42948         * tests/test-signal.c (main): Likewise.
42949         * tests/test-sigaction.c (main): Likewise.
42950         * tests/test-stat.c (main): Likewise.
42951         * tests/test-stat-time.c (main): Likewise.
42952         * tests/test-stddef.c (main): Likewise.
42953         * tests/test-stdint.c (main): Likewise.
42954         * tests/test-stdio.c (main): Likewise.
42955         * tests/test-stdlib.c (main): Likewise.
42956         * tests/test-strchrnul.c (main): Likewise.
42957         * tests/test-strerror.c (main): Likewise.
42958         * tests/test-string.c (main): Likewise.
42959         * tests/test-strtod.c (main): Likewise.
42960         * tests/test-strverscmp.c (main): Likewise.
42961         * tests/test-symlink.c (main): Likewise.
42962         * tests/test-symlinkat.c (main): Likewise.
42963         * tests/test-sys_stat.c (main): Likewise.
42964         * tests/test-sys_time.c (main): Likewise.
42965         * tests/test-time.c (main): Likewise.
42966         * tests/test-unistd.c (main): Likewise.
42967         * tests/test-unlink.c (main): Likewise.
42968         * tests/test-unlinkat.c (main): Likewise.
42969         * tests/test-utimens.c (main): Likewise.
42970         * tests/test-utimensat.c (main): Likewise.
42971         * tests/test-version-etc.c (main): Likewise.
42972         * tests/test-wchar.c (main): Likewise.
42973         * tests/test-wctype.c (main): Likewise.
42974         * tests/test-xprintf-posix.c (main): Likewise.
42975         * tests/test-posixtm.c (main): Likewise.
42976         (STREQ): Delete unused macro.
42977         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
42978         shadowed variables.
42979         * tests/test-memchr.c (main): Likewise.
42980
42981 2009-10-21  Eric Blake  <ebb9@byu.net>
42982
42983         areadlinkat: avoid failure on older glibc
42984         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
42985         rather than mis-comparing 0 against FUNC_RESULT of char*.
42986
42987 2009-10-21  Bruno Haible  <bruno@clisp.org>
42988
42989         * modules/stpncpy (License): Relicense under LGPLv2+.
42990         Reported by David Lutterkort <lutter@redhat.com>.
42991
42992 2009-10-20  Eric Blake  <ebb9@byu.net>
42993
42994         utimensat: work around Solaris 9 bug
42995         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
42996         has trailing slash bugs.
42997         * tests/test-lutimens.h (test_lutimens): Enhance test.
42998         * tests/test-utimens.h (test_utimens): Likewise.
42999         * doc/posix-functions/utime.texi (utime): Enhance documentation.
43000         * doc/posix-functions/utimes.texi (utimes): Likewise.
43001         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43002         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
43003         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
43004         * doc/posix-functions/futimens.texi (futimens): Likewise.
43005
43006         fdutimensat: new module
43007         * modules/fdutimensat: New file.
43008         * lib/fdutimensat.c (fdutimensat): Likewise.
43009         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
43010         * MODULES.html.sh (File system functions): Mention module.
43011         * modules/fdutimensat-tests: New test.
43012         * tests/test-fdutimensat.c: Likewise.
43013
43014         doc: regenerate INSTALL
43015         * doc/INSTALL: Reflect recent autoconf update.
43016         * doc/INSTALL.ISO: Likewise.
43017         * doc/INSTALL.UTF-8: Likewise.
43018
43019 2009-10-20  Pádraig Brady  <P@draigBrady.com>
43020
43021         acl: warn if ACL support is not detected
43022         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
43023
43024 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
43025
43026         * lib/nproc.h: Add extern "C" block for C++.
43027
43028 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
43029             Bruno Haible  <bruno@clisp.org>
43030
43031         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
43032         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
43033         * doc/posix-functions/isalpha.texi: Likewise.
43034         * doc/posix-functions/isblank.texi: Likewise.
43035         * doc/posix-functions/iscntrl.texi: Likewise.
43036         * doc/posix-functions/isdigit.texi: Likewise.
43037         * doc/posix-functions/isgraph.texi: Likewise.
43038         * doc/posix-functions/islower.texi: Likewise.
43039         * doc/posix-functions/isprint.texi: Likewise.
43040         * doc/posix-functions/ispunct.texi: Likewise.
43041         * doc/posix-functions/isspace.texi: Likewise.
43042         * doc/posix-functions/isupper.texi: Likewise.
43043         * doc/posix-functions/isxdigit.texi: Likewise.
43044
43045 2009-10-18  Bruno Haible  <bruno@clisp.org>
43046
43047         Tests for module 'isblank'.
43048         * modules/isblank-tests: New file.
43049         * tests/test-isblank.c: New file.
43050
43051         New module 'isblank'.
43052         * lib/isblank.c: New file.
43053         * m4/isblank.m4: New file.
43054         * modules/isblank: New file.
43055         * doc/posix-functions/isblank.texi: Mention the new module.
43056
43057 2009-10-18  Bruno Haible  <bruno@clisp.org>
43058
43059         New module 'ctype'.
43060         * lib/ctype.in.h: New file.
43061         * m4/ctype.m4: New file.
43062         * modules/ctype: New file.
43063         * doc/posix-headers/ctype.texi: Mention the new module.
43064
43065 2009-10-18  Jim Meyering  <meyering@redhat.com>
43066
43067         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
43068         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
43069         right after its initialization, rather than farther down.
43070         Keeping these in close proximity makes it easier to ensure
43071         that each such variable is initialized.  E.g.,
43072
43073             LIB_CLOCK_GETTIME=
43074             AC_SUBST([LIB_CLOCK_GETTIME])
43075
43076         This change also increments these serial numbers.
43077         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
43078         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43079         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43080
43081 2009-10-18  Bruno Haible  <bruno@clisp.org>
43082
43083         Don't let environment variables perturb build.
43084         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
43085         (gl_PREREQ_GETHRXTIME): ... not here.
43086
43087 2009-10-18  Bruno Haible  <bruno@clisp.org>
43088
43089         Avoid symlink attack in localcharset module.
43090         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
43091         (O_NOFOLLOW): Define fallback.
43092         (get_charset_aliases): Don't open the file if it is a symbolic link.
43093         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
43094         gl_FCNTL_H.
43095         (gl_FCNTL_H): Require it.
43096         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
43097         * modules/localcharset (Files): Add m4/fcntl_h.m4.
43098         Reported by Fergal Glynn <fglynn@veracode.com>.
43099
43100 2009-10-18  Bruno Haible  <bruno@clisp.org>
43101
43102         Implement nproc for mingw.
43103         * lib/nproc.c: Include <windows.h>
43104         (num_processors): On native Windows platforms, try GetSystemInfo.
43105
43106 2009-10-18  Bruno Haible  <bruno@clisp.org>
43107
43108         Implement nproc for IRIX.
43109         * lib/nproc.c: Include <sys/sysmp.h>.
43110         (num_processors): On IRIX systems, try sysmp.
43111         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
43112
43113 2009-10-18  Bruno Haible  <bruno@clisp.org>
43114
43115         Implement nproc for HP-UX.
43116         * lib/nproc.c: Include <sys/pstat.h>
43117         (num_processors): On HP-UX systems, try pstat_getdynamic.
43118         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
43119         pstat_getdynamic.
43120
43121 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
43122             Bruno Haible  <bruno@clisp.org>
43123
43124         Implement nproc for NetBSD, OpenBSD.
43125         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
43126         (ARRAY_SIZE): New macro.
43127         (num_processors): On BSD systems, try sysctl of HW_NCPU.
43128         * m4/nproc.m4: New file.
43129         * modules/nproc (Files): Add m4/nproc.m4.
43130         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
43131         (Makefile.am): Instead, augment lib_SOURCES.
43132
43133 2009-10-18  Bruno Haible  <bruno@clisp.org>
43134
43135         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
43136         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
43137         sys/param.h.
43138
43139 2009-10-16  Eric Blake  <ebb9@byu.net>
43140
43141         utimensat: new module
43142         * modules/utimensat: New file.
43143         * lib/utimensat.c (utimensat): Likewise.
43144         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
43145         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
43146         so we can work around Linux bugs.
43147         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43148         * modules/sys_stat (Makefile.am): Substitute them.
43149         * lib/sys_stat.in.h (utimensat): Declare it.
43150         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43151         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43152         * modules/utimensat-tests: New test.
43153         * tests/test-utimensat.c: Likewise.
43154
43155         utimens: let lutimens work on non-symlinks
43156         * lib/utimens.c (lutimens): Fall back to utimens rather than
43157         failing with ENOSYS, when file is not a symlink.
43158         (utimens): Reduce redirection.
43159         * tests/test-lutimens.h (test_lutimens): Update test to cover
43160         non-symlinks.
43161         * tests/test-utimens.h (test_utimens): Update test to cover
43162         symlinks.
43163         * tests/test-utimens.c (main): Update caller.
43164
43165         utimens: cache whether utimensat syscall works
43166         * lib/utimens.c (utimensat_works_really): New cache variable.
43167         (fdutimens, lutimens): Use it to avoid failing syscall.
43168
43169         test-stat-time, test-utimens: improve portability
43170         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
43171         ext4 on alpha, and for cygwin.
43172         * tests/test-utimens-common.h: New file.
43173         (nap): Factor delays into single function.
43174         * tests/test-lutimens.h (test_lutimens): Use new header.
43175         * tests/test-futimens.h (test_futimens): Likewise.
43176         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
43177         timestamps to occur from same machine, as was done previously for
43178         test_utimens.
43179         * modules/utimens-tests (Files): Ship new file.
43180         * modules/futimens-tests (Files): Likewise.
43181         Reported in part by Jim Meyering.
43182
43183         sys_stat: sort replacement declarations
43184         * lib/sys_stat.in.h: Sort declarations.
43185         * lib/futimens.c (futimens): Fix typo.
43186
43187 2009-10-15  Jim Meyering  <meyering@redhat.com>
43188
43189         don't let environment settings perturb build
43190         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
43191         could cause a configure-time and/or build-time malfunction.
43192         Typically, a configure-time function-in-library test is performed
43193         via code like this:
43194
43195           LIB_VAR=
43196           AC_SUBST([LIB_VAR])
43197           prefix_saved_LIBS=$LIBS
43198             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
43199                        [test "$ac_cv_search_FUNC" = "none required" ||
43200                         LIB_VAR=$ac_cv_search_FUNC])
43201           LIBS=$prefix_saved_LIBS
43202
43203         However, in each of the files affected by this change, the LIB_VAR=
43204         initialization was omitted.  Thus, when set in the environment, its
43205         value would propagate into generated Makefiles when FUNC is not found
43206         in LIB_NAME.
43207         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
43208         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43209         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43210
43211 2009-10-14  Eric Blake  <ebb9@byu.net>
43212
43213         fchdir: avoid infinite recursion in mingw
43214         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
43215         recursing.
43216
43217         test-stat-time: port to mingw
43218         * tests/test-stat-time.c (force_unlink): Return a value.
43219         (test_ctime) [W32]: Fix compilation error.
43220         (nap): Don't call usleep with too large an argument.  Use
43221         force_unlink.
43222         * doc/pastposix-functions/usleep.texi (usleep): Document the
43223         portability issue.
43224
43225 2009-10-13  Jim Meyering  <meyering@redhat.com>
43226
43227         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
43228         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
43229         * modules/pipe-filter-ii: Likewise.
43230         * modules/sys_socket-tests: Likewise.
43231         * modules/tsearch-tests: Likewise.
43232         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
43233         (check): Depend on it.
43234
43235 2009-10-12  Eric Blake  <ebb9@byu.net>
43236
43237         utimens-tests: port to NFS file systems
43238         * tests/test-utimens.h (test_utimens): Refactor utimecmp
43239         comparisons to avoid spurious failures from timestamp drift
43240         between NFS machines.
43241
43242 2009-10-12  Eric Blake  <ebb9@byu.net>
43243
43244         stat-time-tests: minor cleanups
43245         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
43246         * tests/test-stat-time.c (nap): Separate assignment from call.
43247         Suggested by Paolo Bonzini and Bruno Haible.
43248
43249         sys_stat: guarantee struct timespec
43250         * lib/sys_stat.in.h (includes): Always include <time.h>
43251         * modules/sys_stat (Depends-on): Add time.
43252         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
43253         mode_t permission values.
43254         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
43255         get at subsecond timestamps.
43256
43257 2009-10-10  Eric Blake  <ebb9@byu.net>
43258
43259         futimens: new module
43260         * modules/futimens: New file.
43261         * lib/futimens.c (futimens): Likewise.
43262         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
43263         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
43264         we can work around Linux bugs.
43265         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43266         * modules/sys_stat (Makefile.am): Substitute them.
43267         * lib/sys_stat.in.h (futimens): Declare it.
43268         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43269         * doc/posix-functions/futimens.texi (futimens): Likewise.
43270         * modules/futimens-tests: New test.
43271         * tests/test-futimens.c: Likewise.
43272
43273         utimens: introduce fdutimens
43274         * lib/utimens.h (fdutimens): New prototype.
43275         * lib/utimens.c (gl_futimens): Move guts...
43276         (fdutimens): ...to new interface.
43277         * tests/test-utimens.c (do_fdutimens): Use it.
43278
43279         utimens: add UTIME_NOW and UTIME_OMIT support
43280         * lib/utimens.c (validate_timespec, update_timespec): New helper
43281         functions.
43282         (gl_futimens, lutimens): Use them.
43283         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
43284         stdbool, sys_stat.
43285         (Link): Mention resulting library dependency.
43286         * modules/utimecmp (Link): Likewise.
43287         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
43288         (Makefile.am): Pick up library dependency.
43289         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
43290         definition.
43291         * tests/test-sys_stat.c: Test the definitions.
43292         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
43293         * NEWS: Document library dependency.
43294
43295         utimecmp: support symlink timestamps
43296         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
43297         hashing when possible.  Use pathconf when available.
43298         (SYSCALL_RESOLUTION): Recognize tighter resolution.
43299         * modules/utimecmp (Depends-on): Add lstat.
43300
43301         utimens: add lutimens interface
43302         * lib/utimens.c (lutimens): New function.
43303         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
43304         * lib/utimens.h (lutimens): Declare new interface.
43305         * tests/test-utimens.c (main): Enhance test.
43306         * tests/test-lutimens.h (test_lutimens): New file.
43307         * modules/utimens-tests (Files): Distribute it.
43308         (Depends-on): Add symlink.
43309         (configure.ac): Check for usleep.
43310
43311         utimens: validate futimens usage
43312         * lib/utimens.c (gl_futimens): Require valid fd up front, using
43313         fewer syscalls on failure later on.  Avoid compiler warning on
43314         mingw.
43315         * modules/utimens (Depends-on): Add dup2.
43316
43317         utimens: add test
43318         * modules/utimens-tests: New test.
43319         * tests/test-utimens.h: New file.
43320         * tests/test-futimens.h: Likewise.
43321         * tests/test-utimens.c: Likewise.
43322
43323         doc: mention timestamp portability issues
43324         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
43325         instead.
43326         * doc/posix-functions/utime.texi (utime): Likewise.
43327         * doc/posix-functions/utimes.texi (utimes): Likewise.
43328         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
43329         instead.
43330         * doc/posix-functions/futimens.texi (futimens): Mention utimens
43331         module.
43332         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43333         Mention weakness with symlink timestamps.
43334         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
43335         to utimensat/futimens instead.
43336         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
43337
43338         test-dup2: enhance test
43339         * tests/test-dup2.c (main): Also check AT_FDCWD.
43340
43341         test-stat-time: avoid more spurious failures
43342         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
43343         xfs; and avoid race if the two timestamps cross quantization edge.
43344
43345         relocatable: prefer 'file system' over 'filesystem'
43346         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
43347         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
43348         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
43349         * doc/relocatable.texi (Enabling Relocatability): Likewise.
43350         * lib/relocatable.c (compute_curr_prefix): Likewise.
43351
43352 2009-10-10  Jim Meyering  <meyering@redhat.com>
43353
43354         stat-time-tests: check for the usleep function
43355         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
43356
43357 2009-10-10  Bruno Haible  <bruno@clisp.org>
43358
43359         * modules/xnanosleep: Put the Link section after the Include section.
43360
43361 2009-10-09  Eric Blake  <ebb9@byu.net>
43362
43363         dup2: work around FreeBSD 6.1 bug
43364         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
43365         * doc/posix-functions/dup2.texi (dup2): Document it.
43366         Reported by Nelson H. F. Beebe and Jim Meyering.
43367
43368         test-stat-time: port to buggy NFS clients
43369         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
43370         (test_ctime): Also skip test if mtime and ctime are skewed.
43371
43372         maint: prefer 'file system' over 'filesystem'
43373         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43374         * doc/posix-functions/lstat.texi (lstat): Likewise.
43375         * lib/file-has-acl.c (file_has_acl): Likewise.
43376         * lib/fwriteerror.c [TEST]: Likewise.
43377         * tests/test-areadlink.h (test_areadlink): Likewise.
43378         * tests/test-areadlinkat-with-size.c (main): Likewise.
43379         * tests/test-areadlinkat.c (main): Likewise.
43380         * tests/test-canonicalize-lgpl.c (main): Likewise.
43381         * tests/test-canonicalize.c (main): Likewise.
43382         * tests/test-fstatat.c (main): Likewise.
43383         * tests/test-linkat.c (main): Likewise.
43384         * tests/test-lstat.h (test_lstat_func): Likewise.
43385         * tests/test-mkdir.h (test_mkdir): Likewise.
43386         * tests/test-readlink.h (test_readlink): Likewise.
43387         * tests/test-remove.c (main): Likewise.
43388         * tests/test-rename.h (test_rename): Likewise.
43389         * tests/test-renameat.c (main): Likewise.
43390         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43391         * tests/test-symlink.h (test_symlink): Likewise.
43392         * tests/test-symlinkat.c (main): Likewise.
43393         * tests/test-unlink.h (test_unlink_func): Likewise.
43394         * tests/test-unlinkat.c (main): Likewise.
43395
43396         maint: make realtime library usage explicit
43397         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
43398         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
43399         * modules/settime (Link): Likewise.
43400         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
43401
43402         test-stat-time: speed up execution
43403         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
43404         warning on mingw.
43405         (nap): New helper function.
43406         (prepare_test): Use it to reduce sleep time.
43407         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
43408         execution.
43409         * modules/stat-time-tests (configure.ac): Check for usleep.
43410
43411 2009-10-09  Jim Meyering  <meyering@redhat.com>
43412
43413         selinux-h: always use getfilecon wrappers
43414         * lib/getfilecon.c: New file.
43415         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
43416         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
43417         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
43418         (fgetfilecon): Provide a stub.
43419         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
43420         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
43421         file unconditionally.
43422         When <selinux/selinux.h> is found, arrange to use wrappers.
43423         * modules/selinux-h (Files): Add getfilecon.c.
43424         (Makefile.am): Substitute include-next-related bits
43425         into the now-always-generated selinux/selinux.h file.
43426         * doc/glibc-functions/lgetfilecon.texi: New file.
43427         * doc/glibc-functions/fgetfilecon.texi: New file.
43428         * doc/glibc-functions/getfilecon.texi: New file.
43429         * doc/glibc-functions/getfilecon-desc.texi: New file.
43430         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
43431         which to pull in the new files.
43432         * MODULES.html.sh (Misc): Add selinux-h.
43433
43434 2009-10-08  Jim Meyering  <meyering@redhat.com>
43435
43436         unistd: fix comment typo
43437         * lib/unistd.in.h (euidaccess): Fix a comment typo.
43438
43439 2009-10-08  Eric Blake  <ebb9@byu.net>
43440
43441         areadlink: use SIZE_MAX consistently
43442         * modules/areadlink (Depends-on): Add stdint.
43443         * modules/areadlink-with-size (Depends-on): Likewise.
43444         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
43445         gives NULL; drop sys/types, since unistd gives size_t; and add
43446         stdint for SIZE_MAX.
43447         (SIZE_MAX): Rely on headers.
43448         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
43449         and add stdint.
43450         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
43451         (SIZE_MAX): Likewise.
43452         (INITIAL_BUF_SIZE): Turn into enum.
43453         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
43454
43455 2009-10-08  Jim Meyering  <meyering@redhat.com>
43456
43457         areadlinkat: avoid compilation failure
43458         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
43459         Fix typo in comment.
43460
43461 2009-10-07  Eric Blake  <ebb9@byu.net>
43462
43463         areadlinkat-with-size: new module
43464         * modules/areadlinkat-with-size: New module.
43465         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
43466         * lib/areadlink.h (areadlinkat): Declare it.
43467         * MODULES.html.sh (File system functions): Mention it.
43468         * modules/areadlinkat-with-size-tests: New test.
43469         * tests/test-areadlinkat-with-size.c: New file.
43470
43471         xreadlinkat: new module
43472         * modules/xreadlinkat: New module.
43473         * lib/xreadlinkat.c (xreadlinkat): New file.
43474         * lib/xreadlink.h (xreadlinkat): Declare it.
43475         * MODULES.html.sh (File system functions): Mention it.
43476
43477         areadlinkat: new module
43478         * lib/at-func.c (FUNC_FAIL): New define.
43479         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
43480         * modules/areadlinkat: New module.
43481         * lib/linkat.c (areadlinkat): Move...
43482         * lib/areadlinkat.c (areadlinkat): ...to new file.
43483         * lib/areadlink.h (areadlinkat): Declare it.
43484         * modules/linkat (Depends-on): Add areadlinkat.
43485         * MODULES.html.sh (File system functions): Mention it.
43486         * modules/areadlinkat-tests: New test.
43487         * tests/test-areadlinkat.c: New file.
43488
43489         areadlink, areadlink-with-size: add tests
43490         * modules/areadlink-tests: New test.
43491         * modules/areadlink-with-size-tests: Likewise.
43492         * tests/test-areadlink.h: New file.
43493         * tests/test-areadlink.c: Likewise.
43494         * tests/test-areadlink-with-size.c: Likewise.
43495
43496         maint: minor cleanups
43497         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
43498         _UNUSED_PARAMETER_ instead.
43499         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
43500         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
43501         * modules/linkat-tests (Files): Distribute test-link.h.
43502
43503         openat, utimens: whitespace cleanup
43504         * lib/openat.c: Prefer space throughout, rather than mix of 8
43505         spaces vs. tabs.
43506         * lib/at-func.c: Likewise.
43507         * lib/utimens.c: Likewise.
43508
43509         openat: avoid using wrong fd
43510         * lib/openat.c (openat_permissive): Reject user's fd if saving the
43511         working directory chooses same fd.
43512         * lib/at-func.c (AT_FUNC_NAME): Likewise.
43513
43514         mkdir, mkdirat: fix cygwin 1.5.x bug
43515         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
43516         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
43517         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
43518         bug.
43519         (gl_PREREQ_MKDIR): Delete unused macro.
43520         * modules/mkdir (Files): Track file rename.
43521         (configure.ac): Update macro name.
43522         * modules/openat (Depends-on): Add mkdir.
43523         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
43524
43525         mkdir, mkdirat: add tests
43526         * modules/mkdir-tests: New test.
43527         * tests/test-mkdir.h: New file.
43528         * tests/test-mkdir.c: Likewise.
43529         * tests/test-mkdirat.c: Likewise.
43530         * modules/openat-tests (Files): Add new files.
43531         (Makefile.am): Run new test.
43532
43533 2009-10-06  Eric Blake  <ebb9@byu.net>
43534
43535         doc: tweak *at function documentation
43536         * doc/posix-functions/faccessat.texi (faccessat): Mention
43537         known issue with replacement.
43538         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
43539         * doc/posix-functions/linkat.texi (linkat): Likewise.
43540         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43541         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43542         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43543         * doc/posix-functions/renameat.texi (renameat): Likewise.
43544         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43545
43546         openat: fix GNU/Hurd bug in unlinkat
43547         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
43548         broken.
43549         * doc/posix-functions/unlink.texi (unlink): Document this.
43550         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
43551
43552         fdopendir: fix GNU/Hurd bug
43553         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
43554         allowing non-directory fds.
43555         * lib/fdopendir.c (rpl_fdopendir): Work around it.
43556         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
43557         * modules/dirent (Makefile.am): Substitute it.
43558         * lib/dirent.in.h (fdopendir): Declare replacement.
43559         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
43560         * tests/test-fdopendir.c (main): Test something other than
43561         /dev/null, since on Hurd that behaves like a directory.
43562
43563         test-symlink: port to GNU/Hurd
43564         * tests/test-symlink.h (test_symlink): Relax expected errno.
43565
43566         doc: tweak more cygwin information
43567         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
43568         now compatible with glibc.
43569         * doc/posix-functions/getopt.texi (getopt): Likewise.
43570
43571         getopt-gnu: add another test
43572         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
43573         guarantee behavior relied on by m4.
43574         * tests/test-getopt.c (main): Use it.
43575         * modules/getopt-posix-tests (Depends-on): Add setenv.
43576         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
43577
43578         getopt: fix compilation on darwin
43579         * lib/getopt.in.h (includes): Leave breadcrumbs during system
43580         include.
43581         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
43582         Reported by Ludovic Courtès.
43583
43584 2009-10-06  Bruno Haible  <bruno@clisp.org>
43585
43586         * modules/size_max (Description): Discourage its use.
43587         Reported by Simon Josefsson.
43588
43589 2009-10-06  Jim Meyering  <meyering@redhat.com>
43590
43591         linkat: avoid compilation failure
43592         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
43593
43594 2009-10-05  Eric Blake  <ebb9@byu.net>
43595
43596         linkat: support Linux 2.6.17
43597         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
43598         linkat on Linux, but allow cache variable override.
43599         * lib/linkat.c (rpl_linkat): Define override.
43600         * modules/linkat (Depends-on): Add symlinkat.
43601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
43602         * modules/unistd (Makefile.am): Substitute it.
43603         * lib/unistd.in.h (linkat): Declare replacement.
43604         Reported by Pádraig Brady.
43605
43606         quotearg: port test to systems with C.UTF-8 locale
43607         * tests/test-quotearg.c (struct result_strings): Add another
43608         member, differentiating between C.ASCII and C.UTF-8 handling.
43609         (compare_strings): Add parameter.
43610         (main): Adjust all callers.
43611
43612         getopt: avoid clash with FreeBSD _getopt_internal
43613         * lib/getopt.in.h (_getopt_internal): Override the name.
43614         * lib/getopt_int.h (includes): Pick up any overrides.
43615         Reported by Reuben Thomas.
43616
43617         hash: allow C89 compilation
43618         * lib/hash.c (check_tuning): Move declaration before statement.
43619         Reported by Reuben Thomas.
43620
43621 2009-10-05  Karl Berry  <karl@gnu.org>
43622
43623         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
43624
43625 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
43626             Bruno Haible  <bruno@clisp.org>
43627
43628         * lib/uname.c (uname): Use a table-driven algorithm to compute
43629         Windows NT versions.
43630
43631 2009-10-04  Bruno Haible  <bruno@clisp.org>
43632
43633         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
43634         program_invocation_short_name.
43635         * modules/progname (configure.ac): Test for presence of
43636         program_invocation_short_name.
43637         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43638
43639 2009-10-04  Bruno Haible  <bruno@clisp.org>
43640
43641         * lib/progname.c (set_program_name): Fix comment.
43642         Reported by Jim Meyering.
43643
43644 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43645             Bruno Haible  <bruno@clisp.org>
43646
43647         * lib/uname.c: Include <string.h>.
43648         (uname): Do only one call to GetVersionEx in the common case.
43649
43650 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43651             Bruno Haible  <bruno@clisp.org>
43652
43653         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
43654         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
43655         (uname): Add support for Windows CE and various non-x86 CPU types.
43656
43657 2009-10-03  Bruno Haible  <bruno@clisp.org>
43658
43659         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
43660         invocation to tests/configure.ac.
43661         Reported by Ian Beckwith <ianb@erislabs.net>.
43662
43663 2009-10-02  Eric Blake  <ebb9@byu.net>
43664
43665         fchdir: avoid compiler warning
43666         * lib/fchdir.c (canonicalize_file_name)
43667         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
43668
43669         test-open: support mingw errno values
43670         * tests/test-open.h (test_open): Relax test.
43671         * tests/test-fopen.h (test_fopen): Likewise.
43672         * tests/test-openat-safer.c (main): Likewise.
43673
43674         open: fix opening directory on mingw
43675         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
43676
43677         test-open: on GNU/Hurd, /dev/null is a directory
43678         * tests/test-fopen.h (main): Rename...
43679         (test_fopen): ...to this.  Use a guaranteed non-directory when
43680         confirming open behavior on trailing slash.
43681         * tests/test-openat-safer.c (main): Likewise.
43682         * tests/test-open.h (main): Likewise....
43683         (test_open): ...to this.
43684         * tests/test-fopen.c (main): Adjust caller.
43685         * tests/test-fopen-safer.c (main): Likewise.
43686         * tests/test-open.c (main): Likewise.
43687         * tests/test-fcntl-safer.c (main): Likewise.
43688         Reported by Samuel Thibault.
43689
43690         rename, fchdir: don't ignore chdir failure
43691         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
43692         * lib/rename.c (rpl_rename) [W32]: Likewise.
43693         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
43694         an empty destination directory if source cannot be renamed,
43695         although there is still possibility for failure.
43696         * doc/posix-functions/rename.texi (rename): Document the race.
43697         Reported by Jim Meyering.
43698
43699         maint: cleanup whitespace in recent commits
43700         * lib/rename.c (rpl_rename): Remove tabs.
43701         * tests/test-link.h (test_link): Likewise.
43702         * lib/fchdir.c (get_name): Likewise.
43703         Reported by Jim Meyering.
43704
43705 2009-10-02  Ben Pfaff  <blp@gnu.org>
43706
43707         relocatable-prog-wrapper: Add missing dependency on
43708         double-slash-root.
43709         * modules/relocatable-prog-wrapper: Add dependency.
43710         Reported by Ian Beckwith <ianb@erislabs.net>.
43711
43712 2009-10-02  Eric Blake  <ebb9@byu.net>
43713
43714         renameat: fix Solaris bugs
43715         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
43716         needed fixing.
43717         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
43718         * modules/stdio (Makefile.am): Substitute it.
43719         * lib/stdio.in.h (renameat): Declare replacement.
43720         * lib/renameat.c (rpl_renameat): Implement fix.
43721
43722         renameat: new module
43723         * modules/renameat: New file.
43724         * lib/renameat.c (renameat): Likewise.
43725         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
43726         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43727         * modules/stdio (Makefile.am): Substitute them.
43728         * lib/stdio.in.h (renameat): Declare it.
43729         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43730         * doc/posix-functions/renameat.texi (renameat): Likewise.
43731         * modules/renameat-tests: New test.
43732         * tests/test-renameat.c: Likewise.
43733
43734         rename: fix mingw bugs
43735         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
43736         directory overwrite bugs.
43737
43738         rename: fix another cygwin 1.5 bug
43739         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
43740         checks.
43741         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
43742         unnecessary cygwin workarounds.  Also work around bug with moving
43743         full directory onto an empty one.
43744         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
43745
43746         rename-dest-slash: merge into rename module
43747         * modules/rename-dest-slash (Status): Mark obsolete.
43748         (Depends-on): Add rename.
43749         (Files): Let rename do it all.
43750         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
43751         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
43752         * m4/rename-dest-slash.m4: ...so this file can be deleted.
43753         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
43754         * lib/rename.c (rpl_rename): Update comments.
43755
43756         rename: fix cygwin 1.5.x bugs
43757         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
43758         * lib/rename.c (rpl_rename): Work around them.
43759         * modules/rename (Depends-on): Add same-inode.
43760
43761         rename: fix Solaris 10 bug
43762         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43763         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
43764         was the only bug.
43765
43766         rename: fix Solaris 9 bug
43767         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
43768         on non-directory.  Avoid calling exit.
43769         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
43770         strdup.
43771         * modules/rename-tests (Depends-on): Drop lstat.
43772         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43773         (gl_PREREQ_RENAME): Delete unused macro.
43774
43775         rename-dest-slash: fix NetBSD bug
43776         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
43777         links.
43778         * modules/rename-dest-slash (Depends-on): Add same-inode.
43779
43780         rename-tests: new test, exposes several platform bugs
43781         * modules/rename-tests: New file.
43782         * tests/test-rename.h: Likewise.
43783         * tests/test-rename.c: Likewise.
43784         * doc/posix-functions/rename.texi (rename): Improve documentation,
43785         including bugs that will eventually be fixed in gnulib.
43786
43787 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
43788
43789         * lib/uname.c: Include <stdlib.h>
43790         (uname): Assume version info is available.
43791
43792 2009-10-02  Jim Meyering  <meyering@redhat.com>
43793
43794         gnu-web-doc-update: correct --help output
43795         * build-aux/gnu-web-doc-update: Make --help output relevant.
43796
43797         gnu-web-doc-update: add standard options
43798         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
43799
43800         gnu-web-doc-update: New module.
43801         Use this script to automatically update the on-line web documentation
43802         for your GNU project at http://www.gnu.org/software/$pkg/manual/
43803         * modules/gnu-web-doc-update: New file, from coreutils.
43804         * build-aux/gnu-web-doc-update: New script.
43805
43806 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
43807
43808         link: LoadLibrary is not needed.
43809         * lib/link.c: Use GetModuleHandle.
43810
43811 2009-10-01  Eric Blake  <ebb9@byu.net>
43812
43813         getopt: bump serial number
43814         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
43815         change.
43816
43817         tests: tighten link, rmdir, and remove tests
43818         * tests/test-link.h (includes): No need to use <config.h> here.
43819         Clean up if directory hard link was created, otherwise test for
43820         trailing '.'.
43821         * tests/test-linkat.c (main): Simplify.
43822         * tests/test-remove.c (main): Enhance test for trailing '.'.
43823         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43824
43825 2009-10-01  Jim Meyering  <meyering@redhat.com>
43826
43827         maint.mk: requiring "make major" was annoying, for a "minor" release.
43828         What is intended is "stable", to contrast with alpha and beta,
43829         so require "make stable", not "make major".
43830         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
43831         (get_tool_versions): Likewise.
43832         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
43833
43834 2009-09-30  Ben Pfaff  <blp@gnu.org>
43835
43836         Fix broken build of replacement for Windows tmpfile().
43837         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
43838         flags argument added along with the 'mkostemp' module.
43839
43840 2009-09-28  Bruno Haible  <bruno@clisp.org>
43841
43842         Avoid identifier clash with POSIX function 'remove' defined as a macro.
43843         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
43844         to 'remove_elt'.
43845         (gl_list_remove): Update.
43846         * lib/gl_list.c (gl_list_remove): Update.
43847         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
43848         to 'remove_elt'.
43849         (gl_oset_remove): Update.
43850         * lib/gl_list.c (gl_oset_remove): Update.
43851         Reported by Eric Blake.
43852
43853 2009-09-28  Eric Blake  <ebb9@byu.net>
43854
43855         doc: mention yet more cygwin 1.7 status
43856         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
43857         cygwin.
43858         * doc/glibc-functions/execvpe.texi (execvpe): New file.
43859         * doc/gnulib.texi (Glibc unistd.h): Mention it.
43860
43861         argp: fix test failure
43862         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
43863         that are not upper-case.  Pass correct range to tolower.
43864
43865 2009-09-27  Jim Meyering  <meyering@redhat.com>
43866
43867         test-yesno: work around sparc-dash here-document infelicity
43868         Without this change, the literal \177 byte in a here document
43869         would make dash 0.5.5.1-3 access uninitialized memory.
43870         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
43871         Instead, use a marker, "@", and filter through tr to create the desired
43872         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
43873
43874 2009-09-27  Bruno Haible  <bruno@clisp.org>
43875
43876         Disable untested support for new flavours of ACLs on AIX.
43877         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
43878         progress.
43879         * lib/set-mode-acl.c (qset_acl): Likewise.
43880
43881 2008-12-07  Bruno Haible  <bruno@clisp.org>
43882
43883         Add support for new flavours of ACLs on AIX. (Untested.)
43884         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
43885         (file_has_acl): Add support for newer AIX.
43886         * lib/set-mode-acl.c (qset_acl): Likewise.
43887         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
43888         Rainer Tammer <tammer@tammer.net>.
43889
43890 2009-09-26  Eric Blake  <ebb9@byu.net>
43891
43892         argp: fix compilation of getopt
43893         * lib/getopt.in.h (includes): Use different guard than glibc.
43894         Reported by Sergey Poznyakoff.
43895
43896         doc: mention more cygwin 1.7 status
43897         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
43898         bug.
43899         * doc/posix-functions/execl.texi (execl): Likewise.
43900         * doc/posix-functions/execle.texi (execle): Likewise.
43901         * doc/posix-functions/execlp.texi (execlp): Likewise.
43902         * doc/posix-functions/execv.texi (execv): Likewise.
43903         * doc/posix-functions/execve.texi (execve): Likewise.
43904         * doc/posix-functions/execvp.texi (execvp): Likewise.
43905         * doc/glibc-functions/canonicalize_file_name.texi
43906         (canonicalize_file_name): Cygwin 1.7 now provides this.
43907         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
43908         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
43909         on AT_SYMLINK_NOFOLLOW.
43910
43911 2009-09-24  Eric Blake  <ebb9@byu.net>
43912
43913         test-linkat: make test more robust
43914         * tests/test-linkat.c (main): Avoid collision with EEXIST.
43915
43916         getopt: fix inclusion guards for cygwin
43917         * modules/getopt-posix (Depends-on): Add include-next.
43918         (Makefile.am): Substitute more items in replacement header.
43919         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
43920         <getopt.h>.
43921         * lib/getopt.in.h (includes): Use split inclusion guard, and
43922         prefer <getopt.h> over include <unistd.h> when one is present.
43923         (option): Also override name of 'struct option'.
43924
43925         same-inode: revert prior change; it is not yet ready
43926         * NEWS: Undo mention of this change.
43927         * lib/same-inode.h (same-inode.h): Undo tri-state change.
43928         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43929         * lib/cycle-check.c (cycle_check): Likewise.
43930         * lib/same.c (same_name): Likewise.
43931         * lib/at-func2.c (at_func2): Likewise.
43932
43933 2009-09-23  Eric Blake  <ebb9@byu.net>
43934
43935         linkat: new module
43936         * modules/linkat: New file.
43937         * lib/at-func2.c (at_func2): Likewise.
43938         * lib/linkat.c (linkat): Likewise.
43939         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
43940         * lib/openat-priv.h (at_func2): Add declaration.
43941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43942         * modules/unistd (Makefile.am): Substitute them.
43943         * lib/unistd.in.h (linkat): Declare it.
43944         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43945         * doc/posix-functions/linkat.texi (linkat): Likewise.
43946         * doc/posix-functions/link.texi (link): Tweak wording.
43947         * tests/test-link.c (main): Move guts...
43948         * tests/test-link.h (test_link): ...into new file.
43949         * modules/linkat-tests: New test.
43950         * tests/test-linkat.c: Likewise.
43951         * modules/link-tests (Files): Ship new file.
43952         (Depends-on): Add stdbool.
43953
43954         dirname: add library-safe mdir_name
43955         * lib/dirname.h (mdir_name): New prototype.
43956         * lib/dirname.c (dir_name): Move guts...
43957         (mdir_name): ...to new function that avoids xalloc_die.
43958
43959         fchdir: another mingw fix
43960         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
43961         * lib/fchdir.c (get_name): New helper method; skips canonicalize
43962         on mingw (where it has not yet been ported), and make it optional
43963         elsewhere.
43964         (_gl_register_fd): Use it.
43965
43966         same-inode: make SAME_INODE tri-state, to port to mingw
43967         * NEWS: Mention this change.
43968         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
43969         st_ino always being 0.
43970         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43971         * lib/cycle-check.c (cycle_check): Likewise.
43972         * lib/same.c (same_name): Likewise.
43973
43974         lstat: avoid mingw compilation error
43975         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
43976         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
43977         lstat ourselves.
43978         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
43979         was adequate.
43980         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
43981         the checks for lstat.
43982         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
43983
43984         link: fix test failure on Solaris 9
43985         * lib/link.c (rpl_link): Don't assume link will catch bogus
43986         trailing slash on source.
43987
43988         test-symlinkat: enhance test
43989         * tests/test-readlink.c (main): Move guts...
43990         * tests/test-readlink.h (test_readlink): ...into new file.
43991         * tests/test-symlink.c (main): Move guts...
43992         * tests/test-symlink.h (test_symlink): ...into new file.
43993         * tests/test-symlinkat.c (main): Use new files for further
43994         coverage.
43995         (do_symlink, do_readlink): New helper functions.
43996         * modules/symlink-tests (Files): Ship new file.
43997         (Depends-on): Add stdbool.
43998         * modules/readlink-tests (Files): Ship new file.
43999         (Depends-on): Add stdbool.
44000         * modules/symlinkat-tests (Files): Use new files.
44001
44002 2009-09-23  Eric Blake  <ebb9@byu.net>
44003
44004         readlink: document portability issue with symlink length
44005         * doc/posix-functions/lstat.texi (lstat): Mention that some file
44006         systems have bogus st_size on symlinks, and mention the
44007         areadlink-with-size module.
44008         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44009         * doc/posix-functions/readlink.texi (readlink): Mention the
44010         areadlink module, and ERANGE failure.
44011         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44012         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
44013
44014         readlink: fix Solaris 9 bug with trailing slash
44015         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
44016         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
44017         * doc/posix-functions/readlink.texi (readlink): Document this.
44018         * modules/readlink-tests: New test.
44019         * tests/test-readlink.c: Likewise.
44020
44021         readlink: fix cygwin 1.5.x bug with return type
44022         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
44023         * lib/unistd.in.h (readlink): Use ssize_t.
44024         * lib/readlink.c (readlink): Likewise.
44025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44026         * modules/unistd (Makefile.am): Substitute it.
44027         * lib/unistd.in.h (readlink): Declare replacement.
44028         * doc/posix-functions/readlink.texi (readlink): Document this.
44029
44030         symlink: use throughout gnulib
44031         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
44032         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
44033         symlink is not used.
44034         * modules/symlinkat (Depends-on): Add symlink.
44035         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44036         * modules/canonicalize-tests (Depends-on): Likewise.
44037         * modules/lstat-tests (Depends-on): Likewise.
44038         * modules/openat-tests (Depends-on): Likewise.
44039         * modules/remove-tests (Depends-on): Likewise.
44040         * modules/rmdir-tests (Depends-on): Likewise.
44041         * modules/unlink-tests (Depends-on): Likewise.
44042         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
44043         * tests/test-canonicalize.c (symlink): Likewise.
44044         * tests/test-fstatat.c (symlink): Likewise.
44045         * tests/test-lstat.c (symlink): Likewise.
44046         * tests/test-remove.c (symlink): Likewise.
44047         * tests/test-rmdir.c (symlink): Likewise.
44048         * tests/test-unlink.c (symlink): Likewise.
44049         * tests/test-unlinkat.c (symlink): Likewise.
44050
44051         symlink: new module, for Solaris 9 bug
44052         * modules/symlink: New file.
44053         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
44054         * lib/symlink.c: Likewise.
44055         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
44056         * modules/unistd (Makefile.am): Substitute them.
44057         * lib/unistd.in.h (symlink): Declare replacement.
44058         * MODULES.html.sh (File system functions): Mention it.
44059         * doc/posix-functions/symlink.texi (symlink): Likewise.
44060         * modules/symlink-tests: New test.
44061         * tests/test-symlink.c: Likewise.
44062
44063 2009-09-23  Bruno Haible  <bruno@clisp.org>
44064
44065         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
44066         when needed.
44067         Test case: gnulib-tool --import --with-tests atexit inttypes.
44068         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
44069
44070 2009-09-23  Bruno Haible  <bruno@clisp.org>
44071
44072         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
44073         subcommand, not in a subshell.
44074
44075 2009-09-22  Eric Blake  <ebb9@byu.net>
44076
44077         unistd: sort replacement declarations
44078         * lib/unistd.in.h: Sort declarations.
44079
44080         open, openat: minor optimization
44081         * lib/open.c (open): If open succeeded, len is non-zero.
44082         * lib/openat.c (rpl_openat): Likewise.
44083
44084         link-follow: ensure correct result
44085         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
44086         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
44087         distinguish between possible failures.
44088
44089 2009-09-21  Eric Blake  <ebb9@byu.net>
44090
44091         fts: avoid compiler warning
44092         * lib/fts.c (dirent_inode_sort_may_be_useful)
44093         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
44094
44095 2009-09-19  Bruno Haible  <bruno@clisp.org>
44096
44097         * lib/progreloc.c (canonicalize_file_name): New declaration.
44098
44099 2009-09-19  Eric Blake  <ebb9@byu.net>
44100
44101         link: fix quoting
44102         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
44103
44104         openat: fix openat bugs on Solaris 9
44105         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
44106         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
44107         * modules/openat (Depends-on): Add open.
44108         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
44109         * modules/fcntl-h (Makefile.am): Substitute it.
44110         * lib/fcntl.in.h (openat): Declare replacement.
44111         * doc/posix-functions/openat.texi (openat): Document this.
44112
44113         openat: move fstatat and unlinkat into correct files
44114         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
44115         compiled.
44116         * lib/openat.c (fstatat, unlinkat): Move...
44117         * lib/fstatat.c (fstatat): ...into correct files.
44118         * lib/unlinkat.c (unlinkat): Likewise.
44119
44120         openat: fix unlinkat bugs on Solaris 9
44121         * lib/unlinkat.c (unlinkat): New file.
44122         * modules/openat (Depends-on): Add unlink.
44123         (Files): Distribute it.
44124         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
44125         trailing slash behavior is broken.
44126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44127         * modules/unistd (Makefile.am): Substitute it.
44128         * lib/unistd.in.h (unlinkat): Declare replacement.
44129         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
44130
44131         openat: fix fstatat bugs on Solaris 9
44132         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
44133         stat.
44134         * doc/posix-functions/fstatat.texi (fstatat): Document this.
44135
44136         test-unlinkat: enhance test, to expose Solaris 9 bug
44137         * tests/test-unlink.c (main): Factor guts...
44138         * tests/test-unlink.h (test_rmdir_func): ...into new file.
44139         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
44140         * tests/test-rmdir.c (main): Adjust caller.
44141         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
44142         (unlinker): New helper function.
44143         (rmdirat): Enhance check.
44144         * modules/rmdir-tests (Depends-on): Add stdbool.
44145         * modules/unlink-tests (Depends-on): Likewise.
44146         (Files): Add test-unlink.h.
44147         * modules/openat-tests (Files): Likewise.
44148         (Depends-on): Add unlinkdir.
44149
44150         test-fstatat: new test, to expose Solaris 9 bugs
44151         * tests/test-stat.c (main): Factor guts...
44152         * tests/test-stat.h (test_stat_func): ...into new file.
44153         * tests/test-lstat.c (main): Factor guts...
44154         * tests/test-lstat.h (test_lstat_func): ...into new file.
44155         * tests/test-fstatat.c: New file.
44156         * modules/stat-tests (Files): Add test-stat.h.
44157         * modules/lstat-tests (Files): Add test-lstat.h.
44158         (Depends-on): Add stdbool.
44159         * modules/openat-tests (Depends-on): Add pathmax.
44160         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
44161         (Makefile.am): Run new test.
44162
44163         remove: new module, for mingw and Solaris 9 bugs
44164         * modules/remove: New file.
44165         * lib/remove.c: Likewise.
44166         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
44167         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44168         * modules/stdio (Makefile.am): Use them.
44169         * lib/stdio.in.h (remove): Declare replacement.
44170         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44171         * doc/posix-functions/remove.texi (remove): Likewise.
44172         * modules/remove-tests: New test.
44173         * tests/test-remove.c: Likewise.
44174
44175         unlink: new module, for Solaris 9 bug
44176         * modules/unlink: New file.
44177         * lib/unlink.c: Likewise.
44178         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
44179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44180         * modules/unistd (Makefile.am): Use them.
44181         * lib/unistd.in.h (stat): Declare replacement.
44182         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44183         * doc/posix-functions/unlink.texi (unlink): Likewise.
44184         * modules/unlink-tests: New test.
44185         * tests/test-unlink.c: Likewise.
44186
44187         lstat: fix Solaris 9 bug
44188         * lib/lstat.c (lstat): Also check for trailing slash on
44189         non-symlink, non-directories.  Use stat module to simplify logic.
44190         * doc/posix-functions/lstat.texi (lstat): Document it.
44191         * modules/lstat-tests (Depends-on): Add errno, same-inode.
44192         (configure.ac): Check for symlink.
44193         * tests/test-lstat.c (main): Add more tests.
44194
44195         stat: add as dependency to other modules
44196         * modules/chown (Depends-on): Add stat.
44197         * modules/euidaccess (Depends-on): Likewise.
44198         * modules/fchdir (Depends-on): Likewise.
44199         * modules/isdir (Depends-on): Likewise.
44200         * modules/link (Depends-on): Likewise.
44201         * modules/lstat (Depends-on): Likewise.
44202         * modules/mkdir-p (Depends-on): Likewise.
44203         * modules/modechange (Depends-on): Likewise.
44204         * modules/open (Depends-on): Likewise.
44205         * modules/readlink (Depends-on): Likewise.
44206         * modules/same (Depends-on): Likewise.
44207
44208         stat: fix Solaris 9 bug
44209         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
44210         slash.
44211         * lib/stat.c (rpl_stat): Work around it.
44212         * doc/posix-functions/stat.texi (stat): Update documentation.
44213
44214         stat: new module, for mingw bug
44215         * modules/stat: New file.
44216         * lib/stat.c: Likewise.
44217         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44218         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44219         * modules/sys_stat (Makefile.am): Use them.
44220         * lib/sys_stat.in.h (stat): Declare replacement.
44221         * lib/openat.c (fstatat): Deal with lstat and stat being function
44222         macros.
44223         * modules/openat (Depends-on): Add inline.
44224         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44225         * doc/posix-functions/stat.texi (stat): Likewise.
44226         * modules/stat-tests: New test.
44227         * tests/test-stat.c: Likewise.
44228
44229 2009-09-19  Jim Meyering  <meyering@redhat.com>
44230
44231         syntax-check: detect unnecessary inclusion of canonicalize.h
44232         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
44233
44234 2009-09-19  Eric Blake  <ebb9@byu.net>
44235
44236         canonicalize-lgpl: adjust clients to use correct header
44237         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44238         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
44239         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
44240         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
44241         * lib/progreloc.c (includes): Likewise.
44242
44243 2009-09-19  Jim Meyering  <meyering@redhat.com>
44244
44245         test-posixtm.c: correct a comment
44246         * tests/test-posixtm.c: Correct first-line comment.
44247         Spotted by Eric Blake.
44248
44249 2009-09-16  Jim Meyering  <meyering@redhat.com>
44250
44251         posixtm-tests: make T const-correct; add a test case
44252         * tests/test-posixtm.c (T): Declare const.
44253         Add a test for -(2^31+1).
44254         Remove useless can-succeed-only-in-2002 test.
44255
44256         posixtm-tests: adjust the sole failing test
44257         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
44258         expected output matches what mktime now produces.  Cross-checked via
44259         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
44260
44261         posixtm: move #ifdef'd tests into a new module
44262         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
44263         * tests/test-posixtm.c: ... this new file.
44264         * modules/posixtm-tests: New module.
44265
44266 2009-09-19  Eric Blake  <ebb9@byu.net>
44267
44268         openat: simplify use of at-func.c
44269         * lib/at-func.c (includes): Include prerequisites here, to
44270         simplify requirements on client files.
44271         * lib/openat-priv.h: Add double-inclusion guard.
44272         * lib/faccessat.c (includes): Simplify.
44273         * lib/fchmodat.c (includes): Likewise.
44274         * lib/fchownat.c (includes): Likewise.
44275         * lib/mkdirat.c (includes): Likewise.
44276         * lib/mkfifoat.c (includes): Likewise.
44277         * lib/symlinkat.c (includes): Likewise.
44278
44279         openat: allow return of fd 0
44280         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
44281         * modules/save-cwd (Depends-on): Replace fcntl-safer with
44282         unistd-safer.
44283         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
44284         <fcntl.h>; this module does not leak fds.
44285         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
44286         must be allowed to return 0, leaving openat_safer to add the
44287         safety.
44288         (openat_permissive): Avoid writing to just-opened fd 2 if
44289         restoring the current directory fails.
44290         * lib/openat-die.c (openat_restore_fail): Add comment.
44291         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
44292         (save_cwd): Guarantee safe fd, but without use of open_safer.
44293         * tests/test-openat.c: New test.
44294         * modules/openat-tests (Files, Makefile.am): Distribute and build
44295         new file.
44296
44297         relocatable-prog-wrapper: fix build
44298         * modules/relocatable-prog-wrapper (Files): Update name of
44299         canonicalize m4 file, broken on 2009-09-17.
44300         Reported by emad hajjar <aleppos@hotmail.com>.
44301
44302 2009-09-19  Bruno Haible  <bruno@clisp.org>
44303
44304         * lib/safe-alloc.h: Use the standard header with GPL copyright.
44305         * lib/safe-alloc.c: Likewise.
44306         Reported by Ian Beckwith <ianb@erislabs.net>.
44307
44308 2009-09-18  Bruno Haible  <bruno@clisp.org>
44309
44310         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
44311         Reported by <erobles@sensacd.com.mx>.
44312
44313 2009-09-17  Eric Blake  <ebb9@byu.net>
44314
44315         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
44316         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
44317         slashes when checking if last component is missing.
44318         * tests/test-canonicalize.c (main): Test this.
44319
44320         canonicalize, canonicalize-lgpl: honor // if distinct from /
44321         * modules/canonicalize (Files): Add double-slash-root.m4.
44322         * modules/canonicalize-lgpl (Files): Likewise.
44323         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44324         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
44325         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
44326         fallback definition.
44327         (canonicalize_filename_mode): Use it to protect //.
44328         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
44329         (__realpath): Likewise.
44330         * tests/test-canonicalize.c (main): Test this.
44331         * tests/test-canonicalize-lgpl.c (main): Likewise.
44332         * modules/canonicalize-tests (Depends-on): Add same-inode.
44333         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44334
44335         canonicalize-lgpl: fix glibc bug with trailing slash
44336         * m4/canonicalize-lgpl.m4: Move contents...
44337         * m4/canonicalize.m4: ...here.
44338         (gl_CANONICALIZE_LGPL): Factor realpath check...
44339         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
44340         glibc 2.3.5 bug, fixed 2005-04-27.
44341         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
44342         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
44343         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
44344         * modules/canonicalize-lgpl (Files): Manage file rename.
44345         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44346         * modules/stdlib (Makefile.am): Substitute witness.
44347         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
44348         is needed.
44349         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
44350         replacement is required.
44351         * lib/canonicalize.c (canonicalize_file_name): Likewise.
44352         * doc/glibc-functions/canonicalize_file_name.texi
44353         (canonicalize_file_name): Document this.
44354         * doc/posix-functions/realpath.texi (realpath): Likewise.
44355
44356         canonicalize-lgpl: reject non-directory with trailing slash
44357         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
44358         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
44359         catches failures in glibc 2.3.5.
44360         * tests/test-canonicalize.c (main): Likewise.
44361
44362         canonicalize-lgpl: use native realpath if it works
44363         * lib/canonicalize-lgpl.c (realpath): Guard with
44364         FUNC_REALPATH_WORKS.
44365         * lib/stdlib.in.h (realpath): Make declaration optional based on
44366         HAVE_REALPATH.
44367         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
44368         native realpath works.
44369         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44370         * modules/stdlib (Makefile.am): Substitute witness.
44371
44372         canonicalize, canonicalize-lgpl: use <stdlib.h>
44373         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
44374         (Include): Mention <stdlib.h>.
44375         (configure.ac): Mention functions we provide.
44376         * modules/canonicalize (configure.ac): Likewise.
44377         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
44378         realpath if canonicalize_file_name is missing.
44379         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
44380         * modules/stdlib (Makefile.am): Substitute witnesses.
44381         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
44382         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
44383         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
44384         * NEWS: Document this.
44385         * doc/glibc-functions/canonicalize_file_name.texi
44386         (canonicalize_file_name): Likewise.
44387         * doc/posix-functions/realpath.texi (realpath): Likewise.
44388         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
44389
44390         test-canonicalize: consolidate into single C program
44391         * tests/test-canonicalize.sh: Delete; move setup into...
44392         * tests/test-canonicalize.c (main): ...the program, making it
44393         easier to run in debugger.  Add some tests.
44394         * modules/canonicalize-tests (Files): Remove unused file.
44395         (Depends-on): Add progname.
44396         (configure.ac, Makefile.am): Simplify.
44397
44398         test-canonicalize-lgpl: consolidate into single C program
44399         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
44400         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
44401         easier to run in debugger.  Add some tests.
44402         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
44403         (configure.ac, Makefile.am): Simplify.
44404
44405         canonicalize: avoid resolvepath
44406         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
44407         unnecessary checks.
44408         * lib/canonicalize.c (includes): Simplify.
44409         (canonicalize_file_name): Drop resolvepath implementation.
44410         * modules/canonicalize (Depends-on): Drop filenamecat.
44411
44412         canonicalize: don't lose errno
44413         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
44414         over calls to free.
44415
44416         canonicalize: simplify errno handling
44417         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
44418         assignment.
44419
44420         canonicalize, canonicalize-lgpl: update module dependencies
44421         * modules/canonicalize (Depends-on): Add extensions, lstat,
44422         pathmax, stdlib.
44423         (Files): Drop pathmax.h.
44424         (configure.ac): Adjust macro name.
44425         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
44426         lstat, stdlib, sys_stat.
44427         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
44428         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
44429         extensions.
44430         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
44431         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
44432         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
44433         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
44434         declaration, if available.
44435         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
44436         we can rely on the readlink module.
44437         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
44438         (includes): Use <unistd.h> unconditionally.
44439
44440 2009-09-17  Eric Blake  <ebb9@byu.net>
44441
44442         maint: make Include sections of modules consistent
44443         * modules/alloca: Use only header name; no need to list #include.
44444         * modules/alloca-opt: Likewise.
44445         * modules/arpa_inet: Likewise.
44446         * modules/canon-host: Likewise.
44447         * modules/configmake: Likewise.
44448         * modules/dirent: Likewise.
44449         * modules/eealloc: Likewise.
44450         * modules/environ: Likewise.
44451         * modules/fchdir: Likewise.
44452         * modules/fcntl: Likewise.
44453         * modules/fcntl-h: Likewise.
44454         * modules/gethrxtime: Likewise.
44455         * modules/gettime: Likewise.
44456         * modules/ignore-value: Likewise.
44457         * modules/inet_ntop: Likewise.
44458         * modules/inet_pton: Likewise.
44459         * modules/inttypes: Likewise.
44460         * modules/isnand-nolibm: Likewise.
44461         * modules/isnanf-nolibm: Likewise.
44462         * modules/mbchar: Likewise.
44463         * modules/mbfile: Likewise.
44464         * modules/mbiter: Likewise.
44465         * modules/mbuiter: Likewise.
44466         * modules/netdb: Likewise.
44467         * modules/netinet_in: Likewise.
44468         * modules/nproc: Likewise.
44469         * modules/pagealign_alloc: Likewise.
44470         * modules/poll: Likewise.
44471         * modules/printf-frexp: Likewise.
44472         * modules/pthread: Likewise.
44473         * modules/putenv: Likewise.
44474         * modules/random_r: Likewise.
44475         * modules/relocatable-prog: Likewise.
44476         * modules/search: Likewise.
44477         * modules/select: Likewise.
44478         * modules/selinux-h: Likewise.
44479         * modules/settime: Likewise.
44480         * modules/signal: Likewise.
44481         * modules/size_max: Likewise.
44482         * modules/socklen: Likewise.
44483         * modules/ssize_t: Likewise.
44484         * modules/stdarg: Likewise.
44485         * modules/stdbool: Likewise.
44486         * modules/stddef: Likewise.
44487         * modules/stdint: Likewise.
44488         * modules/stdio: Likewise.
44489         * modules/stdlib: Likewise.
44490         * modules/string: Likewise.
44491         * modules/strings: Likewise.
44492         * modules/sys_file: Likewise.
44493         * modules/sys_ioctl: Likewise.
44494         * modules/sys_select: Likewise.
44495         * modules/sys_socket: Likewise.
44496         * modules/sys_stat: Likewise.
44497         * modules/sys_time: Likewise.
44498         * modules/sys_times: Likewise.
44499         * modules/sys_utsname: Likewise.
44500         * modules/sys_wait: Likewise.
44501         * modules/sysexits: Likewise.
44502         * modules/time: Likewise.
44503         * modules/times: Likewise.
44504         * modules/tmpfile: Likewise.
44505         * modules/trim: Likewise.
44506         * modules/unistd: Likewise.
44507         * modules/wchar: Likewise.
44508         * modules/wctype: Likewise.
44509
44510 2009-09-17  Bruno Haible  <bruno@clisp.org>
44511
44512         Make getdate.y compile on QNX and NetBSD 5 / i386.
44513         * m4/getdate.m4 (gl_GETDATE): Conditionally define
44514         TIME_T_FITS_IN_LONG_INT.
44515         * lib/getdate.y (long_time_t): New type.
44516         (relative_time): Change type of 'seconds' field to long_time_t.
44517         (get_date): Update types of local variables. Check against overflow
44518         during conversion from long_time_t to time_t.
44519         Reported by Matt Kraai <kraai@ftbfs.org>
44520         and Hasso Tepper <hasso@netbsd.org>.
44521
44522 2009-09-17  Bruno Haible  <bruno@clisp.org>
44523
44524         * modules/COPYING: Update copyright years.
44525         * modules/README: Likeiwse.
44526         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
44527         Reported by Ian Beckwith <ianb@erislabs.net>.
44528
44529 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44530
44531         * users.txt: Update references for gnuit package.
44532
44533 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44534
44535         * m4/getdelim.m4: Fix typo in copyright line.
44536
44537 2009-09-17  Bruno Haible  <bruno@clisp.org>
44538
44539         * lib/atoll.c: Use the standard header with GPL copyright.
44540         * lib/argz.in.h: Likewise.
44541         * lib/glob.c: Likewise.
44542         * lib/glob-libc.h: Likewise.
44543         * lib/random_r.c: Likewise.
44544         * lib/siglist.h: Likewise.
44545         * lib/strsignal.c: Likewise.
44546         Reported by Ian Beckwith <ianb@erislabs.net>.
44547
44548 2009-09-17  Eric Blake  <ebb9@byu.net>
44549
44550         rmdir: ensure correct dependency order
44551         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
44552
44553 2009-09-17  Bruno Haible  <bruno@clisp.org>
44554
44555         Disable assertion that fails on NetBSD 5 / i386.
44556         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
44557         Reported by Sam Steingold <sds@gnu.org>
44558         and Hasso Tepper <hasso@netbsd.org>.
44559
44560 2009-09-16  Eric Blake  <ebb9@byu.net>
44561
44562         unlinkdir: port to mingw
44563         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
44564         on which no one can unlink a directory.
44565
44566         stdlib: sort witness names
44567         * modules/stdlib (Makefile.am): Sort replacements.
44568         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44569         * lib/stdlib.in.h: Likewise.
44570
44571         parse-duration-tests: avoid link failure
44572         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
44573         LIBINTL.
44574         Reported by Tom G. Christensen.
44575
44576         openat-tests: ensure unlinkat behaves like rmdir
44577         * tests/test-rmdir.c (main): Factor guts...
44578         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
44579         * modules/rmdir-tests (Files): Ship new file.
44580         * modules/openat-tests: New test.
44581         * tests/test-unlinkat.c: Likewise.
44582
44583         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
44584         * modules/rmdir-errno (Status, Notice): Now obsolete.
44585
44586         rmdir: work around cygwin 1.5.x and mingw bugs
44587         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
44588         * lib/rmdir.c (rmdir): Work around it.
44589         * modules/rmdir (Status, Notice): No longer obsolete.
44590         (Files): Add dos.m4.
44591         (Depends-on): Add unistd.
44592         (configure.ac): Set witnesses.
44593         (License): Relax to LGPLv2+.
44594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
44595         * modules/unistd (Makefile.am): Substitute witnesses.
44596         * lib/unistd.in.h (rmdir): Declare replacement.
44597         * doc/posix-functions/rmdir.texi (rmdir): Document this.
44598         * modules/rmdir-tests: New tests.
44599         * tests/test-rmdir.c: Likewise.
44600
44601 2009-09-15  Eric Blake  <ebb9@byu.net>
44602
44603         fchdir: improve use of replacement functions
44604         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
44605         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
44606         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
44607         REPLACE_CLOSEDIR.
44608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
44609         * modules/sys_stat (Makefile.am): Substitute correct witness.
44610         * modules/dirent (Makefile.am): Likewise.
44611         * modules/unistd (Makefile.am): Likewise.
44612         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
44613         * lib/unistd.in.h (dup): Likewise.
44614         * lib/sys_stat.in.h (fstat): Likewise.
44615
44616         maint: ignore gnulib-tool temp files
44617         * .gitignore: Ignore files created during gnulib-tool --test.
44618
44619 2009-09-13  Jim Meyering  <meyering@redhat.com>
44620
44621         posixtm: don't reject a time that specify "60" as the number of seconds
44622         * lib/posixtm.c (posixtime): The code to reject invalid dates
44623         would also reject a time specified with the .60 suffix.
44624         But POSIX allows that, in order to accommodate leap seconds.
44625         So don't reject it.
44626         (main): Adjust tests accordingly.
44627         * modules/posixtm (Depends-on): Add stpcpy.
44628
44629 2009-09-11  Jim Meyering  <meyering@redhat.com>
44630
44631         announce-gen: include [$release_type] in emitted Subject:
44632         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
44633         e.g., [stable] in the emitted Subject: line.
44634
44635 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44636
44637         Remove obsolete macros from several modules.
44638         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
44639         obsolete Autoconf macros with their modern counterparts.
44640         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
44641         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
44642         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
44643         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
44644         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
44645         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44646         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44647         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44648         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44649         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
44650         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44651         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44652         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
44653         * m4/sockets.m4 (gl_SOCKETS): Likewise.
44654         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
44655         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
44656         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
44657         * m4/time_r.m4 (gl_TIME_R): Likewise.
44658         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
44659         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
44660         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44661
44662         Fix copyright header in build-aux scripts.
44663         * build-aux/git-version-gen: Fix copyright header to match GPLv3
44664         recommendation.
44665         * build-aux/ncftpput-ftp: Likewise.
44666         * build-aux/update-copyright: Likewise.
44667
44668 2009-09-09  Eric Blake  <ebb9@byu.net>
44669
44670         test-link: allow Linux choice of errno
44671         * tests/test-link.c (main): Relax test for alternate error.
44672
44673         strndup: fix improper m4 caching
44674         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
44675         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
44676         (gl_PREREQ_STRNDUP): Delete.
44677         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
44678         * modules/string (Makefile.am): Substitute it.
44679         * lib/string.in.h (strndup): Modernize prototype.
44680
44681         getcwd: port to mingw
44682         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
44683         different from the POSIX assumptions made throughout the getcwd
44684         module; fortunately, the mingw getcwd does not need replacement.
44685         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
44686         * modules/getcwd-tests: New test.
44687         * tests/test-getcwd.c: Likewise.
44688
44689         link: fix platform bugs
44690         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
44691         * lib/link.c (link): Work around them.  Fix related mingw bug.
44692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
44693         * modules/unistd (Makefile.am): Substitute it.
44694         * lib/unistd.in.h (link): Declare replacement.
44695         * doc/posix-functions/link.texi (link): Document this.
44696         * modules/link (Depends-on): Add strdup-posix, sys_stat.
44697
44698         test-link: consolidate into single C program, test more cases
44699         * tests/test-link.sh: Delete.
44700         * tests/test-link.c: Test more error conditions.  Exposes bugs on
44701         at least Cygwin and Solaris.
44702         * modules/link-tests (Files): Remove unused file.
44703         (Depends-on): Add errno, sys_stat.
44704         (Makefile.am): Simplify.
44705
44706 2009-09-08  Bruno Haible  <bruno@clisp.org>
44707
44708         Work around towlower, towupper bug on mingw.
44709         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
44710         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
44711         * doc/posix-functions/towlower.texi: Mention the mingw bug.
44712         * doc/posix-functions/towupper.texi: Likewise.
44713         Reported by Eric Blake.
44714
44715 2009-09-08  Jim Meyering  <meyering@redhat.com>
44716
44717         build: don't try to run autoheader if we don't use it
44718         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
44719         is not used in configure.ac.
44720
44721 2009-09-08  Eric Blake  <ebb9@byu.net>
44722
44723         euidaccess: fix compilation error
44724         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
44725
44726         rawmemchr: relax license
44727         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
44728         okay.
44729         Reported by Jim Meyering.
44730
44731         mkfifoat: new module
44732         * modules/mkfifoat: New file.
44733         * lib/mkfifoat.c: Likewise.
44734         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
44735         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44736         * modules/sys_stat (Makefile.am): Use them.
44737         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
44738         * MODULES.html.sh (File system functions): Mention module.
44739         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44740         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44741         * modules/mkfifoat-tests: New test.
44742         * tests/test-mkfifoat.c: Likewise.
44743
44744         strchrnul: relax license
44745         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
44746         okay.
44747         Reported by Jim Meyering.
44748
44749 2009-09-08  Eric Blake  <ebb9@byu.net>
44750
44751         fstatat: fix compilation on Solaris
44752         * lib/fstatat.c (includes): Add fcntl.h.
44753         Reported by Pádraig Brady.
44754
44755 2009-09-07  Eric Blake  <ebb9@byu.net>
44756
44757         rename: modernize replacement
44758         * modules/rename (Depends-on): Add stdio.
44759         (configure.ac): Declare witness.
44760         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
44761         stdio take care of replacement.
44762         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44763         * modules/stdio (Makefile.am): Substitute them.
44764         * lib/stdio.in.h (rename): Declare replacement.
44765         * lib/rename.c (includes): Allow cross-compilation to non-windows
44766         machines.
44767         * doc/posix-functions/rename.texi (rename): Improve
44768         documentation.
44769
44770         stdio: sort witness names
44771         * modules/stdio (Makefile.am): Sort replacements.
44772         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44773         * lib/stdio.in.h: Likewise.
44774
44775         getcwd: minor cleanups
44776         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
44777         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
44778
44779         openat: provide more convenience names
44780         * modules/faccessat (configure.ac): Add C witness.
44781         * lib/unistd.in.h (readlinkat): Fix typo.
44782         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
44783         convenience wrappers.
44784         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
44785         wrappers in syntax checks.
44786
44787 2009-09-06  Eric Blake  <ebb9@byu.net>
44788
44789         doc: fix comments in recent patches
44790         * lib/faccessat.c: Mention correct function.
44791         * lib/fchmodat.c: Likewise.
44792         * lib/fchownat.c: Likewise.
44793         * lib/symlinkat.c: Likewise.
44794         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
44795         constants.
44796
44797         faccessat, symlinkat: continue cleanup of previous patch
44798         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
44799         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44800         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
44801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
44802         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
44803         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
44804         set.
44805
44806 2009-09-06  Bruno Haible  <bruno@clisp.org>
44807
44808         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
44809         (fstatat): Declare if GNULIB_FSTATAT is set.
44810         (mkdirat): Declare if GNULIB_MKDIRAT is set.
44811         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
44812         (unlinkat): Declare if GNULIB_UNLINKAT is set.
44813         * modules/fcntl-h (Files): Remove m4/openat.m4.
44814         * modules/sys_stat (Files): Remove m4/openat.m4.
44815         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
44816         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
44817         * modules/unistd (Files): Remove m4/openat.m4.
44818         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
44819         GNULIB_OPENAT.
44820         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
44821         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
44822         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
44823         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
44824         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
44825         gl_OPENAT_DEFAULTS.
44826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
44827         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
44828         Don't require gl_OPENAT_DEFAULTS.
44829         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
44830         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
44831         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
44832         (gl_OPENAT_DEFAULTS): Remove macro.
44833
44834 2009-09-06  Bruno Haible  <bruno@clisp.org>
44835
44836         * modules/openat (configure.ac): Remove unneeded witness.
44837
44838 2009-09-06  Bruno Haible  <bruno@clisp.org>
44839
44840         Set errno to ENOSYS when a function is entirely unsupported.
44841         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
44842         EOPNOTSUPP.
44843         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44844         * modules/chown (Depends-on): Remove errno.
44845
44846 2009-09-06  Bruno Haible  <bruno@clisp.org>
44847
44848         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
44849
44850 2009-09-06  Bruno Haible  <bruno@clisp.org>
44851
44852         * lib/sys_stat.in.h: Fix preprocessor command indentation.
44853
44854 2009-09-06  Ben Pfaff  <blp@gnu.org>
44855             Bruno Haible  <bruno@clisp.org>
44856
44857         Work around a glibc bug in strtok_r.
44858         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
44859         Undefine if UNDEFINE_STRTOK_R is set.
44860         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
44861         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44862         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
44863         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
44864         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
44865         UNDEFINE_STRTOK_R.
44866         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
44867
44868 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
44869
44870         exclude: minor fix
44871         * lib/exclude.c: Include wctype.h
44872
44873 2009-09-06  Akim Demaille  <demaille@gostai.com>
44874
44875         bootstrap: improve error message
44876         * build-aux/bootstrap (find_tool): Upon failure, report the list
44877         of candidates.
44878         Honor the initial value of the envvar.
44879
44880 2009-09-05  Eric Blake  <ebb9@byu.net>
44881
44882         symlinkat: new module
44883         * modules/symlinkat: New file.
44884         * lib/symlinkat.c: Likewise.
44885         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
44886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44887         * modules/unistd (Makefile.am): Use them.
44888         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
44889         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
44890         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
44891         * MODULES.html.sh (File system functions): Mention module.
44892         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44893         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44894         * modules/symlinkat-tests: New test.
44895         * tests/test-symlinkat.c: Likewise.
44896
44897         test-openat-safer: add more checks
44898         * tests/test-openat-safer.c (main): Check more code paths.
44899
44900 2009-09-05  Jim Meyering  <meyering@redhat.com>
44901
44902         syntax-check: detect unnecessary inclusion of openat.h
44903         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
44904
44905 2009-09-05  Bruno Haible  <bruno@clisp.org>
44906
44907         Support towlower, towupper.
44908         * doc/posix-functions/towlower.texi: Mention module wctype.
44909         * doc/posix-functions/towupper.texi: Likewise.
44910         * lib/wctype.in.h (towlower, towupper): New functions.
44911         * tests/test-wctype.c: Include stdio.h, stdlib.h.
44912         (ASSERT): New macro.
44913         (e): New variable.
44914         (main): Test also towlower, towupper. Test WEOF argument.
44915         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44916
44917 2009-09-05  Bruno Haible  <bruno@clisp.org>
44918
44919         Fix conversion behaviour when the input is invalid.
44920         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
44921         mark occurring in first pass of indirect conversion.
44922         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
44923         input.
44924         Found by clang's static analyzer.
44925
44926 2009-09-05  Bruno Haible  <bruno@clisp.org>
44927
44928         * tests/test-striconveh.c (main): Test indirect conversion on platforms
44929         where direct conversion is possible.
44930
44931 2009-09-04  Eric Blake  <ebb9@byu.net>
44932
44933         openat: fail with ENOENT on empty name
44934         * lib/openat-proc.c (openat_proc_name): Special-case the empty
44935         buffer.
44936
44937         link-follow: fix logic bug in prior patch
44938         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
44939         reversed sense of yes and no in prior patch.  Avoid confusing
44940         compilation failure with desired semantics.
44941
44942         link-follow: accommodate mingw and cross-compilation
44943         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
44944         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
44945         cross-compilation results to -1, to make linkat easier to
44946         implement when cross-compiling.  Trivially support mingw.
44947         * modules/link-follow (configure.ac): Call new name.
44948         * NEWS: Mention this.
44949
44950 2009-09-03  Eric Blake  <ebb9@byu.net>
44951
44952         faccessat: compile replacement
44953         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
44954         needed.
44955
44956         fts: fix compilation error
44957         * lib/fts.c (includes): Re-add "openat.h", for
44958         openat_needs_fchdir.
44959
44960         faccessat: new module
44961         * modules/faccessat: New file.
44962         * lib/faccessat.c: Likewise.
44963         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44965         * modules/unistd (Makefile.am): Use it.
44966         * lib/unistd.in.h (faccessat): Declare it.
44967         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
44968         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
44969         * MODULES.html.sh (File system functions): Mention it.
44970         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
44971         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
44972
44973         euidaccess: prefer POSIX over non-standard implementation
44974         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
44975         * lib/euidaccess.c (euidaccess): Use it if available.
44976
44977         openat: make template easier to use
44978         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
44979         AT_FUNC_F2 to be undefined.
44980         (VALIDATE_FLAG): New macro; use it to reject bad flags.
44981         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
44982         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
44983         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
44984         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
44985         Likewise.
44986         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
44987         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
44988         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
44989         Likewise.
44990
44991         openat: declare in POSIX headers
44992         * NEWS: Mention this.
44993         * modules/openat (configure.ac): Declare witnesses.
44994         (Depends-on): Add fcntl-h, sys_stat, unistd.
44995         (Include): Mention correct headers.
44996         * modules/fcntl-h (Depends-on): Add link-warning.
44997         (Files): Add openat.m4.
44998         (Makefile.am): Substitute witnesses.
44999         * modules/sys_stat (Files, Makefile.am): Likewise.
45000         * modules/unistd (Files, Makefile.am): Likewise.
45001         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
45002         (gl_OPENAT_DEFAULTS): New macro.
45003         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
45004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
45005         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
45006         (SYS_STAT_H): Remove unused variable.
45007         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
45008         * lib/fcntl--.h (includes): Remove unneeded header.
45009         * lib/openat-safer.c (includes): Likewise.
45010         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
45011         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
45012         appropriate headers.
45013         (__OPENAT_PREFIX): Delete.
45014         * lib/fcntl.in.h (openat): Provide declaration.
45015         (AT_FDCWD): Fix Solaris bug.
45016         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
45017         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
45018         * lib/fchmodat.c (includes):  Adjust to find declaration.
45019         * lib/fchownat.c (includes): Likewise.
45020         * lib/mkdirat.c (includes): Likewise.
45021         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
45022         still visible.
45023
45024 2009-09-02  Eric Blake  <ebb9@byu.net>
45025
45026         errno: use consistently
45027         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
45028         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
45029         * lib/canonicalize.c (ELOOP): Likewise.
45030         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
45031         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
45032         * lib/lchown.c (EOPNOTSUPP): Likewise.
45033         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
45034         * lib/savewd.c (ESTALE): Likewise.
45035         * lib/settime.c (ENOSYS): Likewise.
45036         * lib/utimens.c (ENOSYS): Likewise.
45037         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
45038         * lib/chdir-safer.c (ELOOP): Likewise.
45039         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
45040         * modules/c-stack (Depends-on): Add errno.
45041         * modules/canonicalize (Depends-on): Likewise.
45042         * modules/chdir-safer (Depends-on): Likewise.
45043         * modules/fdopendir (Depends-on): Likewise.
45044         * modules/inet_ntop (Depends-on): Likewise.
45045         * modules/inet_pton (Depends-on): Likewise.
45046         * modules/lchown (Depends-on): Likewise.
45047         * modules/openat (Depends-on): Likewise.
45048         * modules/savewd (Depends-on): Likewise.
45049         * modules/settime (Depends-on): Likewise.
45050         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
45051
45052         fts: avoid leaking fds
45053         * modules/fts (Depends-on): Add cloexec.
45054         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
45055         flag.
45056
45057         fts: make directory fds more robust
45058         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
45059         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
45060
45061         backupfile, chdir-long, fts, savedir: make safer
45062         * lib/backupfile.c (includes): Use "dirent--.h", since
45063         numbered_backup can write to stderr during readdir.
45064         * lib/savedir.c (includes): Likewise.
45065         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
45066         emulation can write to stderr on failure.
45067         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
45068         * lib/getcwd.c: Document why opendir_safer is unused.
45069         * lib/glob.c: Likewise.
45070         * lib/scandir.c: Likewise.
45071         * lib/openat-proc.c: Likewise, for open_safer.
45072         * modules/backupfile (Depends-on): Add dirent-safer.
45073         * modules/savedir (Depends-on): Likewise.
45074         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
45075         * modules/chdir-long (Depends-on): Add openat-safer.
45076
45077         openat-safer: new module
45078         * modules/openat-safer: New file.
45079         * lib/openat-safer.c: Likewise.
45080         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
45081         * lib/fcntl-safer.h (openat_safer): Declare.
45082         * lib/fcntl--.h (openat): Override.
45083         * MODULES.html.sh (File descriptor based I/O): Mention it.
45084         * lib/openat.h: Add double-inclusion guards.
45085         * lib/openat.c (includes): Only include "fcntl-safer.h", not
45086         "fcntl--.h", so we can implement openat.
45087         * modules/openat-safer-tests: New test.
45088         * tests/test-openat-safer.c: New file.
45089
45090         dirent-safer: new module
45091         * modules/dirent-safer: New file.
45092         * lib/dirent--.h: Likewise.
45093         * lib/dirent-safer.h: Likewise.
45094         * lib/opendir-safer.c: Likewise.
45095         * m4/dirent-safer.m4: Likewise.
45096         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
45097         * modules/dirent-safer-tests: New test.
45098         * tests/test-dirent-safer.c: New file.
45099         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
45100
45101         fdopendir: optimize on mingw
45102         * lib/unistd.in.h (_gl_directory_name): New prototype.
45103         * lib/fchdir.c (_gl_directory_name): Implement it.
45104         (fchdir): Use it to simplify implementation.
45105         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
45106         fchdir, when available, to avoid calling [f]chdir().
45107
45108         fdopendir: split into its own module
45109         * lib/openat.c (fdopendir): Move...
45110         * lib/fdopendir.c: ...into new file.
45111         * modules/fdopendir: New module.
45112         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
45113         * modules/openat (Depends-on): Add fdopendir.
45114         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
45115         fdopendir here.
45116         * modules/savedir (Depends-on): Only need fdopendir, not full
45117         openat.
45118         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
45119         * lib/openat.h (fdopendir): Drop prototype.
45120         * lib/dirent.in.h (fdopendir): Provide prototype.
45121         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
45122         * modules/dirent (Makefile.am): Substitute them.
45123         * MODULES.html.sh (File system functions): Mention it.
45124         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
45125         * modules/fdopendir-tests: New file.
45126         * tests/test-fdopendir.c: Likewise.
45127
45128         fchdir: use more consistent macro convention
45129         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
45130         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
45131         REPLACE_FCHDIR, rather than relying on config.h macros.
45132         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
45133         inside a single make-time REPLACE_FCHDIR block, rather than using
45134         the config.h FCHDIR_REPLACEMENT.
45135         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
45136         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
45137         Manage fstat replacement.
45138         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
45139         REPLACE_FCHDIR.
45140         * modules/sys_stat (Files): Add m4/unistd_h.m4.
45141         (Makefile.am): Substitute REPLACE_FCHDIR.
45142         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
45143         FCHDIR_REPLACEMENT.
45144         * lib/dup-safer.c (dup_safer): Likewise.
45145         * lib/dup2.c (rpl_dup2): Likewise.
45146         * lib/dup3.c (rpl_dup3): Likewise.
45147         * lib/open.c (rpl_open): Likewise.
45148
45149         fchdir: simplify error handling, and support dup3
45150         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
45151         stdbool, malloc-posix, realloc-posix.
45152         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
45153         (ensure_dirs_slot): Return false on allocation failure.
45154         (rpl_dup2): Delete.
45155         (_gl_register_dup): New function.
45156         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
45157         (_gl_register_fd): Close fd on allocation failure.
45158         * lib/fcntl.in.h (_gl_register_fd): Update signature.
45159         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
45160         prototype.
45161         (rpl_dup2_fchdir): Delete prototype.
45162         * lib/open.c (open): Update caller.
45163         * lib/dup2.c (dup2): Track fchdir metadata.
45164         * lib/dup3.c (dup3): Likewise.
45165         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
45166         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
45167
45168 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45169
45170         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
45171         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
45172         don't pass arguments to AC_OUTPUT.
45173
45174 2009-09-02  Bruno Haible  <bruno@clisp.org>
45175
45176         * modules/mkdtemp (License): Relicense under LGPLv2+.
45177         Reported by Paolo Bonzini.
45178
45179 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45180
45181         Replace uses of obsolete autoconf macros in Jim's modules.
45182         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
45183         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
45184         can evoke a warning from autoconf when run with -Wobsolete
45185         enabled.  They were declared obsolete for good reasons (see
45186         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
45187         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
45188         should not continue using the deprecated macros.
45189         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
45190         obsolete Autoconf macros with modern counterparts.
45191         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45192         * m4/dos.m4 (gl_AC_DOS): Likewise.
45193         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
45194         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
45195         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
45196         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
45197         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
45198         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
45199         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
45200         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
45201         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45202         Likewise.
45203         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
45204         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45205         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
45206         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
45207         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45208         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45209
45210 2009-09-01  Eric Blake  <ebb9@byu.net>
45211
45212         fchdir: fix off-by-one bug in previous patch
45213         * lib/fchdir.c (rpl_fstat): Use correct bounds.
45214         (_gl_unregister_fd): Delete useless if.
45215
45216 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
45217
45218         maint.mk: sort the list of syntax-check rules
45219         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
45220         easier to get a sense of progress when the rules are run sequentially
45221         and take a long time.
45222
45223 2009-09-01  Simon Josefsson  <simon@josefsson.org>
45224
45225         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
45226         * modules/netinet_in: Likewise.
45227         * modules/sys_file: Likewise.
45228         * modules/sys_ioctl: Likewise.
45229         * modules/sys_select: Likewise.
45230         * modules/sys_socket: Likewise.
45231         * modules/sys_stat: Likewise.
45232         * modules/sys_time: Likewise.
45233         * modules/sys_times: Likewise.
45234         * modules/sys_utsname: Likewise.
45235         * modules/sys_wait: Likewise.
45236
45237 2009-09-01  Jim Meyering  <meyering@redhat.com>
45238
45239         fts: help ensure that return values are not ignored
45240         * lib/fts_.h (__GNUC_PREREQ): Define.
45241         (__attribute_warn_unused_result__): Define.
45242         (fts_children, fts_close, fts_open, fts_read): Declare with
45243         __attribute_warn_unused_result__.
45244
45245         fts: fts_close now fails also when closing a dir file descriptor fails
45246         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
45247         and propagate to caller, along with errno.
45248
45249         announce-gen: correct formatting in --help output
45250         * build-aux/announce-gen (usage): Move the one-line description in
45251         --help output "up", to where it belongs, just after Usage:.
45252
45253 2009-08-31  Eric Blake  <ebb9@byu.net>
45254
45255         fchdir: port to mingw
45256         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
45257         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
45258         opened, then use a substitute.
45259         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
45260         replacement.
45261         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
45262         (_gl_register_fd): No need to check stat if open already filters
45263         all directories.
45264         (fchdir): Fix error condition to match POSIX.
45265         * modules/fchdir (Depends-on): Add sys_stat.
45266         * doc/posix-functions/open.texi (open): Document the limitation.
45267         * modules/fchdir-tests: New file.
45268         * tests/test-fchdir.c: Likewise.
45269
45270         canonicalize: allow cross-testing from cygwin to mingw
45271         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
45272         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
45273         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
45274         Likewise.
45275         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
45276         target does not support symlinks.
45277         * tests/test-canonicalize-lgpl.sh: Likewise.
45278
45279         chown: avoid compilation warning on mingw
45280         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
45281         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
45282         mingw.
45283         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45284         * modules/chown (Depends-on): Add errno.
45285
45286 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
45287
45288         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
45289         command.
45290
45291 2009-08-31  Jim Meyering  <meyering@redhat.com>
45292
45293         canonicalize: remove useless initialization
45294         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
45295         initialization of local, "end".
45296
45297 2009-08-30  Bruno Haible  <bruno@clisp.org>
45298
45299         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
45300         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
45301         ENOSYS.
45302
45303 2009-08-30  Bruno Haible  <bruno@clisp.org>
45304
45305         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
45306         /usr/xpg4/bin/tr when it exists.
45307         * tests/test-pipe-filter-gi1.sh: Likewise.
45308
45309 2009-08-30  Bruno Haible  <bruno@clisp.org>
45310
45311         Work around deficient /usr/bin/id program on Solaris.
45312         * tests/test-file-has-acl.sh (ID): New variable.
45313         * tests/test-set-mode-acl.sh (ID): Likewise.
45314         * tests/test-copy-acl.sh (ID): Likewise.
45315         * tests/test-copy-file.sh (ID): Likewise.
45316
45317 2009-08-30  Bruno Haible  <bruno@clisp.org>
45318
45319         New module 'xstriconveh'.
45320         * lib/xstriconveh.h: New file.
45321         * lib/xstriconveh.c: New file.
45322         * modules/xstriconveh: New file.
45323
45324 2009-08-30  Bruno Haible  <bruno@clisp.org>
45325
45326         Make it easier to use mem_cd_iconveh.
45327         * lib/striconveh.h (iconveh_t): New type.
45328         (iconveh_open, iconveh_close): New declarations.
45329         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45330         with a single 'const iconveh_t *' argument.
45331         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
45332         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45333         with a single 'const iconveh_t *' argument.
45334         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
45335         * tests/test-striconveh.c (main): Update.
45336         * NEWS: Mention the change.
45337
45338 2009-08-30  Bruno Haible  <bruno@clisp.org>
45339
45340         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
45341         problem.
45342
45343 2009-08-30  Bruno Haible  <bruno@clisp.org>
45344
45345         Work around iconv_open problem on Solaris.
45346         * lib/iconv_open-solaris.gperf: New file.
45347         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
45348         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
45349         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
45350         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
45351         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
45352         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
45353
45354 2009-08-29  Jim Meyering  <meyering@redhat.com>
45355
45356         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
45357         * top/maint.mk (cvs-check): Remove target; it was just an alias
45358         to the better-named vc-diff-check.
45359         (maintainer-distcheck): Remove rule.  It was used only from
45360         the (alpha/beta/major) target, and all of its commands but one
45361         were coreutils-specific.
45362         (vc-dist): Remove rule.
45363         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
45364         Run vc-diff-check, not vc-dist.
45365         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
45366
45367 2009-08-27  Bruno Haible  <bruno@clisp.org>
45368
45369         * tests/test-bitrotate.c (main): Remove test that uses a shift count
45370         of 0.
45371
45372 2009-08-27  Bruno Haible  <bruno@clisp.org>
45373
45374         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
45375         compilers.
45376         * doc/func.texi: Document the SunPRO C bug.
45377
45378 2009-08-27  Bruno Haible  <bruno@clisp.org>
45379
45380         Fix link error on Solaris.
45381         * tests/test-parse-duration.c (xstrdup): Remove function.
45382
45383 2009-08-26  Pádraig Brady  <P@draigbrady.com>
45384
45385         ignore-value: handle pointer types, too
45386         * lib/ignore-value.h (__attribute__): Remove definition.
45387         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
45388         of a more concise and more-often effective "(void) i" statement.
45389         (ignore_ptr): New function to suppress warnings from functions that
45390         return pointers, and to make it explicit that one function doesn't
45391         handle all cases.
45392
45393 2009-08-25  Bruno Haible  <bruno@clisp.org>
45394
45395         dup2: work around a Linux bug.
45396         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
45397         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
45398         * doc/posix-functions/dup2.texi: Mention the Linux bug.
45399         Reported by Simon Josefsson.
45400
45401 2009-08-25  Jim Meyering  <meyering@redhat.com>
45402
45403         libguestfs uses gnulib
45404         * users.txt: Add libguestfs.
45405
45406 2009-08-24  Eric Blake  <ebb9@byu.net>
45407
45408         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
45409         * lib/pipe2.c (includes): Add binary-io.h.
45410         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
45411
45412 2009-08-24  Bruno Haible  <bruno@clisp.org>
45413
45414         Tolerate declared but missing accept4 syscall.
45415         * lib/accept4.c (accept4): Invoke original accept4 function first, if
45416         available.
45417         * lib/sys_socket.in.h (accept4): If the function is already present,
45418         override it.
45419         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
45420         * modules/accept4 (Makefile.am): Compile accept4.c always.
45421         Reported by Paolo Bonzini and Eric Blake.
45422
45423 2009-08-23  Bruno Haible  <bruno@clisp.org>
45424
45425         New module 'accept4'.
45426         * lib/sys_socket.in.h (accept4): New declaration.
45427         * lib/accept4.c: New file.
45428         * m4/accept4.m4: New file.
45429         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45430         GNULIB_ACCEPT4, HAVE_ACCEPT4.
45431         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
45432         HAVE_ACCEPT4.
45433         * modules/accept4: New file.
45434         * doc/glibc-functions/accept4.texi: Mention the new module.
45435
45436 2009-08-24  Jim Meyering  <meyering@redhat.com>
45437
45438         progname: also set global program_invocation_name, when possible
45439         Before this change, a libtool-enabled program that calls glibc's
45440         error function would report the program name as
45441         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
45442         * modules/progname (configure.ac): Check for a declaration of
45443         program_invocation_name.
45444         * lib/progname.c:  Include <errno.h>.
45445         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
45446         Set program_invocation_name.
45447
45448 2009-08-23  Bruno Haible  <bruno@clisp.org>
45449
45450         * lib/dup3.c: Include <string.h>.
45451
45452 2009-08-23  Bruno Haible  <bruno@clisp.org>
45453
45454         * lib/dup3.c (dup3): Test only once whether the system actually exists.
45455         * lib/pipe2.c (pipe2): Likewise.
45456         Suggested by Eric Blake.
45457
45458 2009-08-23  Bruno Haible  <bruno@clisp.org>
45459
45460         Tolerate declared but missing dup3 syscall.
45461         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
45462         * lib/unistd.in.h (dup3): If the function is already present,
45463         override it.
45464         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
45465         * modules/dup3 (Makefile.am): Compile dup3.c always.
45466         Reported by Paolo Bonzini.
45467
45468 2009-08-23  Bruno Haible  <bruno@clisp.org>
45469
45470         Tolerate declared but missing pipe2 syscall.
45471         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
45472         available.
45473         * lib/unistd.in.h (pipe2): If the function is already present,
45474         override it.
45475         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
45476         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
45477         Reported by Paolo Bonzini.
45478
45479 2009-08-23  Bruno Haible  <bruno@clisp.org>
45480
45481         * lib/pipe2.c (pipe2): Move #ifs inside function.
45482
45483 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45484
45485         quotearg: document limitations of quote_these_too
45486         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
45487         those limitations are created.
45488         * lib/quotearg.h (set_char_quoting): Document that digits and
45489         letters that are special after backslash are not permitted.
45490         (quotearg_char): Cross-reference set_char_quoting documentation.
45491
45492 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
45493
45494         quotearg: implement custom_quoting_style
45495         * lib/quotearg.c: (struct quoting_options): Add left_quote and
45496         right_quote fields.
45497         (set_custom_quoting): New public function.
45498         (quotearg_buffer_restyled): Add left_quote and right_quote
45499         arguments, handle them very much like locale quoting, and update
45500         all uses.
45501         (quotearg_n_custom): New public function.
45502         (quotearg_n_custom_mem): New public function.
45503         (quotearg_custom): New public function.
45504         (quotearg_custom_mem): New public function.
45505         * lib/quotearg.h: Prototype and document new public functions.
45506         (enum quoting_style): For escape_quoting_style and
45507         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
45508         ignored even though they're otherwise like c_quoting_style.
45509         Add custom_quoting_style member and document with comparison to
45510         clocale_quoting_style.
45511         * tests/test-quotearg.c (custom_quotes): New array.
45512         (custom_results): New array.
45513         (main): Extend to test custom quoting.
45514
45515 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45516
45517         quotearg: fix right quote escaping when it's in quote_these_too
45518         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
45519         quote, be sure to prepend only one backslash.
45520         * tests/test-quotearg.c (use_quote_double_quotes): New function.
45521         (main): Test it.
45522
45523 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45524
45525         quotearg-tests: test escaping of embedded locale quotes
45526         * tests/test-quotearg.c (struct result_strings): Add member for
45527         new input.
45528         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
45529         (inputs): Add new input.
45530         (results_g): Add expected results.
45531         (flag_results): Likewise.
45532         (locale_results): Likewise.
45533         (compare_strings): Check those.
45534
45535 2009-08-23  Bruno Haible  <bruno@clisp.org>
45536
45537         Tests for module 'dup3'.
45538         * modules/dup3-tests: New file.
45539         * tests/test-dup3.c: New file.
45540
45541         New module 'dup3'.
45542         * lib/unistd.in.h (dup3): New declaration.
45543         * lib/dup3.c: New file.
45544         * m4/dup3.m4: New file.
45545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
45546         HAVE_DUP3.
45547         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
45548         * modules/dup3: New file.
45549         * doc/glibc-functions/dup3.texi: Mention the new module.
45550
45551 2009-08-23  Bruno Haible  <bruno@clisp.org>
45552
45553         Tweak the dup2 test.
45554         * tests/test-dup2.c (main): Create the test file empty. Verify that an
45555         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
45556         the test file is still empty. Fix argument order of lseek.
45557
45558 2009-08-23  Bruno Haible  <bruno@clisp.org>
45559
45560         Avoid test link errors when the modules getopt-gnu, gettext are used.
45561         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
45562         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45563
45564 2009-08-23  Bruno Haible  <bruno@clisp.org>
45565
45566         Fix getdtablesize() on mingw.
45567         * lib/getdtablesize.c (getdtablesize): Implement differently.
45568         * lib/unistd.in.h (getdtablesize): Improve comment.
45569
45570 2009-08-23  Bruno Haible  <bruno@clisp.org>
45571
45572         New module 'mkostemp'.
45573         Based on Ulrich Drepper's 2007-08-10 change in glibc.
45574         * lib/stdlib.in.h (mksotemp): New declaration.
45575         * lib/mkostemp.c: New file, from glibc with modifications.
45576         * lib/tempname.h (GT_FILE): Remove outdated comment.
45577         (gen_tempname): Add flags argument.
45578         * lib/tempname.c (__GT_BIGFILE): Remove macro.
45579         (__GT_FILE): Map to 1.
45580         (small_open, large_open): Remove macros.
45581         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
45582         * lib/mkstemp.c (mkstemp): Update.
45583         * lib/mkdtemp.c (mkdtemp): Likewise.
45584         * m4/mkostemp.m4: New file.
45585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
45586         HAVE_MKOSTEMP.
45587         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
45588         HAVE_MKOSTEMP.
45589         * modules/mkostemp: New file, based on modules/mkstemp.
45590         * doc/glibc-functions/mkostemp.texi: Mention the new module.
45591         * NEWS: Mention the change.
45592
45593 2009-08-23  Bruno Haible  <bruno@clisp.org>
45594
45595         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
45596         Reported by Eric Blake.
45597
45598 2009-08-23  Bruno Haible  <bruno@clisp.org>
45599
45600         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
45601         Reported by Eric Blake.
45602
45603 2009-08-23  Bruno Haible  <bruno@clisp.org>
45604
45605         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
45606         * modules/pipe2 (Depends-on): Likewise.
45607
45608 2009-08-23  Eric Blake  <ebb9@byu.net>
45609
45610         fcntl-h: add O_TTY_INIT support
45611         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
45612         * tests/test-fcntl-h.c (o): Test it.
45613         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45614
45615         fcntl-h: rename from fcntl, in preparation for fcntl(2)
45616         * modules/fcntl: Move <fcntl.h> header replacement...
45617         * modules/fcntl-h: ...to new name, so as not to collide with
45618         like-named function.
45619         * tests/test-fcntl.c: Rename...
45620         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
45621         * modules/fcntl-tests: Rename...
45622         * modules/fcntl-h-tests: ...to this.  Update test file name.
45623         * modules/chdir-long (Depends-on): Update clients.
45624         * modules/chdir-safer (Depends-on): Likewise.
45625         * modules/fcntl-safer (Depends-on): Likewise.
45626         * modules/fts (Depends-on): Likewise.
45627         * modules/mkancesdirs (Depends-on): Likewise.
45628         * modules/mkdir-p (Depends-on): Likewise.
45629         * modules/open (Depends-on): Likewise.
45630         * modules/savewd (Depends-on): Likewise.
45631         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
45632         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45633
45634 2009-08-22  Bruno Haible  <bruno@clisp.org>
45635
45636         * modules/binary-io (License): Relicense under LGPL.
45637         * modules/pipe2 (License): Likewise.
45638
45639 2009-08-22  Bruno Haible  <bruno@clisp.org>
45640
45641         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
45642         return value.
45643         * lib/pipe-filter-gi.c (filter_init): Likewise.
45644         Reported by Eric Blake.
45645
45646 2009-08-22  Bruno Haible  <bruno@clisp.org>
45647
45648         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
45649         * modules/pipe (Depends-on): Add pipe2.
45650
45651 2009-08-22  Bruno Haible  <bruno@clisp.org>
45652
45653         Tests for module 'pipe2'.
45654         * modules/pipe2-tests: New file.
45655         * tests/test-pipe2.c: New file.
45656
45657         New module 'pipe2'.
45658         * lib/unistd.in.h (pipe2): New declaration.
45659         * lib/pipe2.c: New file.
45660         * m4/pipe2.m4: New file.
45661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
45662         HAVE_PIPE2.
45663         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
45664         * modules/pipe2: New file.
45665         * doc/glibc-functions/pipe2.texi: Mention the new module.
45666
45667 2009-08-22  Bruno Haible  <bruno@clisp.org>
45668
45669         Reference some new glibc functions.
45670         * doc/glibc-functions/accept4.texi: New file.
45671         * doc/glibc-functions/dup3.texi: New file.
45672         * doc/glibc-functions/mkostemp.texi: New file.
45673         * doc/glibc-functions/pipe2.texi: New file.
45674         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
45675         (Glibc sys/socket.h): Refer to accept4.
45676         (Glibc unistd.h): Refer to dup3, pipe2.
45677         Reported by Eric Blake.
45678
45679 2009-08-22  Jim Meyering  <meyering@redhat.com>
45680             Bruno Haible  <bruno@clisp.org>
45681
45682         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
45683         This makes it so packages using automake-1.11's silent-rules option
45684         can print e.g., a single "GEN    configmake.h" line, rather than
45685         the 30+ statements that perform the job.  If you want to see the
45686         actual commands, you can still run "make V=1".
45687         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
45688         so that make output is abbreviated when those variables are defined
45689         appropriately.
45690         * modules/argz: Likewise.
45691         * modules/arpa_inet: Likewise.
45692         * modules/byteswap: Likewise.
45693         * modules/configmake: Likewise.
45694         * modules/dirent: Likewise.
45695         * modules/errno: Likewise.
45696         * modules/fcntl: Likewise.
45697         * modules/float: Likewise.
45698         * modules/fnmatch: Likewise.
45699         * modules/getopt-posix: Likewise.
45700         * modules/glob: Likewise.
45701         * modules/iconv_open: Likewise.
45702         * modules/inttypes: Likewise.
45703         * modules/localcharset: Likewise.
45704         * modules/locale: Likewise.
45705         * modules/math: Likewise.
45706         * modules/netdb: Likewise.
45707         * modules/netinet_in: Likewise.
45708         * modules/poll: Likewise.
45709         * modules/posix_spawnp-tests: Likewise.
45710         * modules/sched: Likewise.
45711         * modules/search: Likewise.
45712         * modules/selinux-h: Likewise.
45713         * modules/signal: Likewise.
45714         * modules/spawn: Likewise.
45715         * modules/stdarg: Likewise.
45716         * modules/stdbool: Likewise.
45717         * modules/stddef: Likewise.
45718         * modules/stdint: Likewise.
45719         * modules/stdio: Likewise.
45720         * modules/stdlib: Likewise.
45721         * modules/string: Likewise.
45722         * modules/strings: Likewise.
45723         * modules/sys_file: Likewise.
45724         * modules/sys_ioctl: Likewise.
45725         * modules/sys_select: Likewise.
45726         * modules/sys_socket: Likewise.
45727         * modules/sys_stat: Likewise.
45728         * modules/sys_time: Likewise.
45729         * modules/sys_times: Likewise.
45730         * modules/sys_utsname: Likewise.
45731         * modules/sys_wait: Likewise.
45732         * modules/sysexits: Likewise.
45733         * modules/time: Likewise.
45734         * modules/unistd: Likewise.
45735         * modules/wchar: Likewise.
45736         * modules/wctype: Likewise.
45737
45738 2009-08-22  Jim Meyering  <meyering@redhat.com>
45739
45740         announce-gen: detect write failure
45741         * build-aux/announce-gen: Add Coda at end.
45742         Remove equivalent-but-more-verbose block at top.
45743
45744 2009-08-19  Akim Demaille  <demaille@gostai.com>
45745
45746         bootstrap: --help to stdout.
45747         * bootstrap (usage): Don't send --help to stderr.
45748         Use a here doc instead of a long string.
45749
45750 2009-08-21  Eric Blake  <ebb9@byu.net>
45751
45752         test-popen-safer: split from test-popen
45753         * tests/test-popen.c (main): Move...
45754         * tests/test-popen.h: ...into new file.
45755         * tests/test-popen-safer2.c: New file.
45756         * modules/popen-tests (Files): Add test-popen.h.
45757         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
45758         Suggested by Bruno Haible.
45759
45760         test-fcntl-safer: split from test-open
45761         * tests/test-open.c (main): Move...
45762         * tests/test-open.h: ...into new file.
45763         * tests/test-fcntl-safer.c: New file.
45764         * modules/open-tests (Files): Add test-open.h.
45765         * modules/fcntl-safer-tests: New file.
45766         Suggested by Bruno Haible.
45767
45768         test-fopen-safer: split from test-fopen
45769         * tests/test-fopen.c (main): Move...
45770         * tests/test-fopen.h: ...into new file.
45771         * tests/test-fopen-safer.c: New file.
45772         * modules/fopen-tests (Files): Add test-fopen.h.
45773         * modules/fopen-safer-tests: New file.
45774         Suggested by Bruno Haible.
45775
45776 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45777
45778         popen-safer: test O_CLOEXEC at run-time.
45779         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
45780
45781 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45782
45783         fcntl: move more flags to the header
45784         * lib/cloexec.c: Do not define FD_CLOEXEC here.
45785         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
45786         * lib/fcntl.in.h: Do both things here.
45787
45788 2009-08-21  Jim Meyering  <meyering@redhat.com>
45789
45790         consistently remove $@-t before redirecting to it
45791         * modules/argz: Remove $@-t and $@ before redirecting to the former.
45792         * modules/alloca-opt: Likewise.
45793         * modules/byteswap: Likewise.
45794         * modules/fnmatch: Likewise.
45795         * modules/getopt-posix: Likewise.
45796         * modules/glob: Likewise.
45797         * modules/poll: Likewise.
45798         * modules/posix_spawnp-tests: Likewise.
45799         * modules/sys_socket: Likewise.
45800         * modules/sysexits: Likewise.
45801
45802 2009-08-21  Eric Blake  <ebb9@byu.net>
45803
45804         popen: simplify access to original popen
45805         * lib/popen.c (rpl_popen): No need to worry about popen being a
45806         macro.
45807         Reported by Bruno Haible.
45808
45809 2009-08-20  Eric Blake  <ebb9@byu.net>
45810
45811         build: avoid some compiler warnings
45812         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
45813         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
45814         type.
45815         (new_exclude_segment, excluded_file_pattern_p)
45816         (excluded_file_name_p): Reduce scope.
45817         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
45818         old-style declaration.
45819
45820 2009-08-20  Simon Josefsson  <simon@josefsson.org>
45821
45822         * tests/test-exclude1.sh: Handle Windows EOL.
45823         * tests/test-exclude2.sh: Likewise.
45824         * tests/test-exclude3.sh: Likewise.
45825         * tests/test-exclude4.sh: Likewise.
45826         * tests/test-exclude5.sh: Likewise.
45827         * tests/test-exclude6.sh: Likewise.
45828         * tests/test-exclude7.sh: Likewise.
45829
45830 2009-08-19  Akim Demaille  <demaille@gostai.com>
45831
45832         bootstrap: find sha1sum when named gsha1sum.
45833         * bootstrap (find_tool): New.
45834         ($SHA1SUM): New.
45835         Use it.
45836
45837 2009-08-20  Jim Meyering  <meyering@redhat.com>
45838
45839         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
45840         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
45841         expression that converts "." in a file name to "\." in the resulting
45842         regexp.  Start with a dummy statement, so that prior shell variable
45843         definitions are expanded portably.  Reported by Simon Josefsson.
45844
45845 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
45846
45847         Fix polling for writeability of a screen buffer.
45848         * lib/poll.c: Distinguish input and screen buffers for the
45849         Win32 implementation.
45850         * lib/select.c: Likewise.
45851
45852 2009-08-19  Eric Blake  <ebb9@byu.net>
45853
45854         popen-safer: prevent popen from clobbering std descriptors
45855         * modules/popen-safer: New file.
45856         * lib/popen-safer.c: Likewise.
45857         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
45858         * lib/stdio--.h (popen): Provide override.
45859         * lib/stdio-safer.h (popen_safer): Provide declaration.
45860         * tests/test-popen.c (includes): Partially test this.
45861         * modules/popen-safer-tests: New file, for more tests.
45862         * tests/test-popen-safer.c: Likewise.
45863         * MODULES.html.sh (file stream based Input/Output): Mention it.
45864
45865         tests: test some of the *-safer modules
45866         * modules/fopen-safer (Depends-on): Add fopen.
45867         * modules/fcntl-safer (Depends-on): Add fcntl.
45868         * modules/stdlib-safer (Depends-on): Add stdlib.
45869         (configure.ac): Set indicator.
45870         * modules/unistd-safer (configure.ac): Likewise.
45871         * modules/tmpfile-safer (configure.ac): Likewise.
45872         (Depends-on): Add tmpfile.
45873         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
45874         active.
45875         * tests/test-fopen.c (includes): Test safer versions when they are
45876         in use.
45877         * tests/test-open.c (includes): Likewise.
45878
45879         popen: fix cygwin 1.5 bug when stdin closed
45880         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
45881         * modules/popen: New file.
45882         * modules/popen-tests: Likewise.
45883         * tests/test-popen.c: Likewise.
45884         * m4/popen.m4: Likewise.
45885         * lib/popen.c: Likewise.
45886         * lib/stdio.in.h (popen): New declaration.
45887         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
45888         * modules/stdio (Makefile.am): Likewise.
45889         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
45890
45891 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
45892
45893         maint.mk: give full control over update-copyright exclusions
45894         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
45895         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
45896         (update-copyright): Don't force inclusion of top-level
45897         ChangeLog.  Don't force exclusion of all COPYING files, but make
45898         them the default exclusion instead.
45899
45900 2009-08-16  Bruno Haible  <bruno@clisp.org>
45901
45902         Fix test failures on Solaris 10.
45903         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
45904         tests when Solaris iconv() is used.
45905         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45906         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45907         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45908         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45909         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45910
45911 2009-08-16  Bruno Haible  <bruno@clisp.org>
45912
45913         Fix test failures on Solaris 10.
45914         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
45915         'tr' program and pass it as first argument.
45916         * tests/test-pipe-filter-gi1.sh: Likewise.
45917         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
45918         program as first argument.
45919         * tests/test-pipe-filter-gi1.c (main): Likewise.
45920
45921 2009-08-16  Eric Blake  <ebb9@byu.net>
45922
45923         fpurge: fix previous commits
45924         * modules/fpurge (Makefile.am): Make replacement conditional,
45925         partially reverting 2007-04-29 change; missed in previous
45926         attempt.
45927         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
45928         is missing.
45929
45930 2009-08-16  Bruno Haible  <bruno@clisp.org>
45931
45932         Clarify fpurge's effect on the file position.
45933         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
45934         * tests/test-fpurge.c (main): Make a second pass for checking the file
45935         position.
45936
45937 2009-08-16  Bruno Haible  <bruno@clisp.org>
45938
45939         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
45940         declaration of fpurge is missing.
45941         * tests/test-fpurge.c (main): Check that the file has not more contents
45942         than expected. Close the file before removing it.
45943
45944 2009-08-15  Eric Blake  <ebb9@byu.net>
45945
45946         fpurge: don't wrap working cygwin implementation
45947         * lib/fpurge.c (fpurge): Fix comment typo.
45948         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
45949         1.7 to avoid replacement.
45950         * tests/test-fpurge.c (main): Enhance test.
45951
45952 2009-08-15  Eric Blake  <ebb9@byu.net>
45953         and Jim Meyering  <meyering@redhat.com>
45954
45955         test-update-copyright: skip if perl is insufficient
45956         * tests/test-update-copyright.sh: Failure to run maintainer tool
45957         should not cause testsuite failure on cygwin 1.5.
45958
45959 2009-08-14  Eric Blake  <ebb9@byu.net>
45960
45961         doc: mention more functions added in cygwin 1.7.0
45962         * doc/posix-headers/limits.texi (limits.h): Update for recent
45963         cygwin additions.
45964         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
45965         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
45966         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
45967         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
45968         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
45969
45970 2009-08-14  Eric Blake  <ebb9@byu.net>
45971
45972         maint.mk: simplify update-copyright rule
45973         * top/maint.mk (update-copyright-local): Delete, and document how
45974         to do it in cfg.mk instead.
45975         (update-copyright-exclude-regexp): Delete, and document how to do
45976         it in .x-update-copyright instead.
45977         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
45978         exclude ChangeLog.
45979
45980 2009-08-14  Bruno Haible  <bruno@clisp.org>
45981
45982         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
45983
45984 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45985
45986         maint.mk: support update-copyright-env
45987         * top/maint.mk (update-copyright-env): Define place-holder.
45988         (update-copyright): Expand $(update-copyright-env) before
45989         invoking update-copyright.
45990
45991 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45992
45993         update-copyright: implement forced reformatting
45994         * build-aux/update-copyright: Implement and document
45995         UPDATE_COPYRIGHT_FORCE.
45996         * tests/test-update-copyright.sh: Test it.
45997
45998 2009-08-14  Eric Blake  <ebb9@byu.net>
45999         and Bruno Haible  <bruno@clisp.org>
46000
46001         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
46002         * tests/test-locale.c: Revert previous patch related to NULL.
46003         * tests/test-stdio.c: Likewise.
46004         * tests/test-stdlib.c: Likewise.
46005         * tests/test-string.c: Likewise.
46006         * tests/test-unistd.c: Likewise.
46007         * modules/time-tests (Depends-on): Add verify.
46008         * modules/wchar-tests (Depends-on): Likewise.
46009         * tests/test-time.c: Test for NULL compliance.
46010         * tests/test-wchar.c: Likewise.
46011         * modules/locale (Depends-on): Add stddef.
46012         * modules/stdio (Depends-on): Likewise.
46013         * modules/stdlib (Depends-on): Likewise.
46014         * modules/string (Depends-on): Likewise.
46015         * modules/time (Depends-on): Likewise.
46016         * modules/unistd (Depends-on): Likewise.
46017         * modules/wchar (Depends-on): Likewise.
46018         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
46019         * lib/stdlib.in.h (includes): Likewise.
46020         * lib/string.in.h (includes): Likewise.
46021         * lib/time.in.h (includes): Likewise.
46022         * lib/unistd.in.h (includes): Likewise.
46023         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
46024         replaced.
46025         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46026         * m4/stddef_h.m4: New file.
46027         * modules/stddef: Likewise.
46028         * lib/stddef.in.h: Likewise.
46029         * modules/stddef-tests: Likewise.
46030         * tests/test-stddef.c: Likewise.
46031         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
46032         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
46033         * doc/posix-headers/locale.texi (locale.h): Likewise.
46034         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
46035         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46036         * doc/posix-headers/string.texi (string.h): Likewise.
46037         * doc/posix-headers/time.texi (time.h): Likewise.
46038         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
46039         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
46040
46041 2009-08-14  Eric Blake  <ebb9@byu.net>
46042
46043         doc: improve git diff of texinfo files
46044         * .gitattributes: Add rule for *.texi files, with hint on how to
46045         use it.
46046         Copied from m4, and based on a report by Bruno Haible.
46047
46048 2009-08-14  Bruno Haible  <bruno@clisp.org>
46049
46050         Disable multithread support by default on Cygwin 1.5.x for real.
46051         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
46052
46053 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46054
46055         update-copyright: much ado about intervals
46056         * build-aux/update-copyright: Implement and document
46057         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
46058         of copyright year intervals.
46059         Also, document UPDATE_COPYRIGHT_YEAR.
46060         * tests/test-update-copyright.sh: Test it.
46061
46062         update-copyright: convert 2-digit to 4-digit years
46063         * build-aux/update-copyright: Implement and document.
46064         * tests/test-update-copyright.sh: Update.
46065
46066 2009-08-14  Jim Meyering  <meyering@redhat.com>
46067
46068         test-exclude: avoid coreutils "make check" failure
46069         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
46070         just as in test-argmatch.c.
46071
46072 2009-08-13  Eric Blake  <ebb9@byu.net>
46073
46074         test-dup2: fix bad assumption
46075         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
46076         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
46077
46078         test-version-etc: fix CRLF portability issue
46079         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
46080         recognize \r.
46081         * tests/test-argp-version-etc-1.sh: Likewise.
46082
46083         getopt: update client modules
46084         * modules/argp (Depends-on): Use getopt-gnu.
46085         * modules/git-merge-changelog (Depends-on): Likewise.
46086         * modules/long-options (Depends-on): Likewise.
46087         * modules/xstrtol (Depends-on): Likewise.
46088
46089 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46090
46091         * tests/test-version-etc.sh: Don't fail on different
46092         project/version.  Don't fail on CRLF differences.  Rewrite to use
46093         multiple -e instead of multiple sed forks, suggested by Eric Blake
46094         <ebb9@byu.net>.
46095         * tests/test-argp-version-etc-1.sh: Likewise.
46096
46097 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46098
46099         * tests/test-version-etc.sh: Don't fail on different
46100         project/version.
46101
46102 2009-08-12  Bruno Haible  <bruno@clisp.org>
46103
46104         Tests for modules 'getopt-posix', 'getopt-gnu'.
46105         * modules/getopt-posix-tests: New file.
46106         * tests/test-getopt.c: New file.
46107         * tests/test-getopt.h: New file.
46108         * tests/test-getopt_long.h: New file.
46109
46110         New modules 'getopt-posix', 'getopt-gnu'.
46111         * modules/getopt-gnu: New file, renamed from modules/getopt.
46112         * modules/getopt-posix: New file.
46113         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
46114         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
46115         (gl_GETOPT): Remove macro.
46116         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
46117         Disable the test against BSD systems that declare optreset. Test
46118         against mingw bug. Test against lack of support of optional arguments
46119         on many platforms.
46120         * doc/glibc-headers/getopt.texi: Update module name and list of
46121         relevant platforms.
46122         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
46123         'getopt-gnu' and more portability problems.
46124         * NEWS: Mention the changes.
46125
46126 2009-08-12  Bruno Haible  <bruno@clisp.org>
46127
46128         Ensure that optarg etc. get declared by <unistd.h>.
46129         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
46130         AC_USE_SYSTEM_EXTENSIONS.
46131         * modules/getopt (Depends-on): Add 'extensions'.
46132
46133 2009-08-12  Bruno Haible  <bruno@clisp.org>
46134
46135         Avoid test link errors.
46136         * modules/pipe-filter-ii-tests (Makefile.am): Define
46137         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
46138         * modules/pipe-filter-gi-tests (Makefile.am): Define
46139         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
46140         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46141
46142 2009-08-12  Bruno Haible  <bruno@clisp.org>
46143
46144         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
46145         gl_GETOPT_SUBSTITUTE before.
46146         (gl_GETOPT): Use it.
46147         * m4/argp.m4 (gl_ARGP): Update.
46148         Reported by Sergey Poznyakoff.
46149
46150         * m4/getopt.m4: Reorder macros.
46151         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
46152         (gl_GETOPT_SUBSTITUTE): Remove macro.
46153
46154 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46155
46156         Minor improvement in gitlog-to-changelog
46157
46158         * build-aux/gitlog-to-changelog: New option `--format' makes
46159         output format string configurable.
46160
46161 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46162
46163         Optimize exclude: use hash tables for non-wildcard patterns.
46164
46165         * lib/exclude.c: Include hash.h and mbuiter.h
46166         (struct exclude_pattern, exclude_segment): New data types.
46167         (struct exclude): Rewrite.
46168         (fnmatch_pattern_has_wildcards): New function.
46169         (new_exclude_segment, free_exclude_segment): New functions.
46170         (excluded_file_pattern_p, excluded_file_name_p): New functions.
46171         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
46172         * lib/exclude.h (is_fnmatch_pattern): New prototype.
46173         * modules/exclude: Depend on hash and mbuiter.
46174
46175         * modules/exclude-tests: New file.
46176         * tests/test-exclude.c: New file.
46177         * tests/test-exclude1.sh: New file.
46178         * tests/test-exclude2.sh: New file.
46179         * tests/test-exclude3.sh: New file.
46180         * tests/test-exclude4.sh: New file.
46181         * tests/test-exclude5.sh: New file.
46182         * tests/test-exclude6.sh: New file.
46183         * tests/test-exclude7.sh: New file.
46184
46185 2009-08-12  Bruno Haible  <bruno@clisp.org>
46186
46187         Ensure that getopt() gets declared by <unistd.h>.
46188         * lib/unistd.in.h: Conditionally include getopt.h.
46189         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
46190         Set GNULIB_UNISTD_H_GETOPT.
46191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46192         GNULIB_UNISTD_H_GETOPT.
46193         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
46194
46195 2009-08-12  Bruno Haible  <bruno@clisp.org>
46196
46197         Clarify logic.
46198         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
46199         gl_replace_getopt instead of GETOPT_H.
46200
46201 2009-08-12  Bruno Haible  <bruno@clisp.org>
46202
46203         * m4/getopt.m4: Add comments.
46204
46205 2009-08-12  Bruno Haible  <bruno@clisp.org>
46206
46207         Disable multithread support by default on Cygwin 1.5.x.
46208         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
46209         set gl_use_threads=no if not specified otherwise.
46210
46211 2009-08-11  Bruno Haible  <bruno@clisp.org>
46212
46213         Avoid compilation error on NetBSD 5.0.
46214         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
46215         * tests/test-stdio.c: Likewise.
46216         * tests/test-stdlib.c: Likewise.
46217         * tests/test-string.c: Likewise.
46218         * tests/test-unistd.c: Likewise.
46219         Reported by Greg Troxel <gdt@ir.bbn.com>
46220         at <https://savannah.gnu.org/support/?106973>.
46221
46222 2009-08-11  Bruno Haible  <bruno@clisp.org>
46223
46224         * modules/dup2-tests (Depends-on): Remove close.
46225
46226         Undo 2009-07-19 commit.
46227         * modules/acl-tests (Depends-on): Remove close.
46228         * modules/binary-io-tests (Depends-on): Likewise.
46229         * modules/closein-tests (Depends-on): Likewise.
46230         * modules/flock-tests (Depends-on): Likewise.
46231         * modules/fsync-tests (Depends-on): Likewise.
46232         * modules/lseek-tests (Depends-on): Likewise.
46233         * modules/pipe-tests (Depends-on): Likewise.
46234         * modules/posix_spawn-tests (Depends-on): Likewise.
46235         * modules/posix_spawnp-tests (Depends-on): Likewise.
46236         * modules/stat-time-tests (Depends-on): Likewise.
46237         * modules/yesno-tests (Depends-on): Likewise.
46238
46239 2009-08-10  Bruno Haible  <bruno@clisp.org>
46240
46241         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
46242
46243 2009-08-10  Bruno Haible  <bruno@clisp.org>
46244
46245         Fix a gcc warning.
46246         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
46247
46248 2009-08-10  Bruno Haible  <bruno@clisp.org>
46249
46250         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
46251         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
46252         not only the first time.
46253         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
46254         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
46255         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
46256         is 1, not only the the first time.
46257
46258 2009-08-10  Bruno Haible  <bruno@clisp.org>
46259
46260         Make it possible to use module 'gethostname' without module 'close'.
46261         * lib/unistd.in.h (close): Evoke a link error only if
46262         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46264         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46265         * modules/unistd (Makefile.am): Substitute
46266         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46267         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
46268         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46269         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
46270         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46271         * modules/sys_ioctl (Makefile.am): Substitute
46272         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46273         * modules/socket (configure.ac): On native Windows, set
46274         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
46275         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46276         Reported by Sam Steingold <sds@gnu.org>.
46277
46278 2009-08-10  Bruno Haible  <bruno@clisp.org>
46279
46280         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
46281         * modules/ioctl (configure.ac): Likewise.
46282
46283 2009-08-10  Bruno Haible  <bruno@clisp.org>
46284
46285         Avoid collision between gnulib wrapper and libintl wrapper.
46286         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
46287         already defined in intl/printf.c.
46288         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
46289         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
46290
46291 2009-08-09  Bruno Haible  <bruno@clisp.org>
46292
46293         Make <sys/select.h> really self-contained, also on Solaris 10.
46294         * lib/sys_select.in.h: Include <string.h>.
46295         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
46296         Solaris 10 problem.
46297         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
46298         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
46299         Reported by Jim Meyering.
46300
46301 2009-08-09  Bruno Haible  <bruno@clisp.org>
46302
46303         Avoid warnings from 'aclocal' that are due to a use of macro name
46304         AM_XGETTEXT_OPTION that is not defined in automake.
46305         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
46306         automake.
46307         * modules/error (configure.ac): Likewise.
46308         * modules/propername (configure.ac): Likewise.
46309         * modules/vasprintf (configure.ac): Likewise.
46310         * modules/verror (configure.ac): Likewise.
46311         * modules/xprintf (configure.ac): Likewise.
46312         * modules/xvasprintf (configure.ac): Likewise.
46313
46314 2009-08-08  Bruno Haible  <bruno@clisp.org>
46315
46316         Avoid compilation error in C++ mode.
46317         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
46318         Reported by Sam Steingold <sds@gnu.org>.
46319
46320 2009-08-08  Bruno Haible  <bruno@clisp.org>
46321
46322         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
46323         for the various Unix platforms.
46324         * doc/posix-headers/limits.texi: Update platforms list regarding
46325         HOST_NAME_MAX.
46326         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46327
46328 2009-08-07  Jim Meyering  <meyering@redhat.com>
46329
46330         selinux-at: fix typo in a comment
46331         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
46332         Spotted by Paolo Bonzini.
46333
46334         selinux-at: remove redundant m4 code, add documentation
46335         * modules/selinux-at (configure.ac): Remove redundant code.
46336         LIB_SELINUX is already set via the dependent module, selinux-h.
46337         (Include): Add quotes around selinux-at.h.
46338         * lib/selinux-at.h: Add documentation.
46339         Reported by Bruno Haible in
46340         http://marc.info/?l=gnulib-bug&m=124958988300749
46341
46342 2009-08-07  Bruno Haible  <bruno@clisp.org>
46343
46344         Avoid link error on MacOS X 10.3 and 10.4.
46345         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
46346         on non-ELF systems.
46347         * lib/argp-pv.c (argp_program_version): Likewise.
46348         Reported by Simon Josefsson.
46349
46350 2009-08-07  Simon Josefsson  <simon@josefsson.org>
46351
46352         * tests/test-version-etc.sh: Use $EXEEXT.
46353
46354 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
46355
46356         update-copyright: update documentation to point to maint.mk
46357         * build-aux/update-copyright: Here.
46358
46359 2009-08-06  Jim Meyering  <meyering@redhat.com>
46360
46361         maint.mk: support update-copyright-local
46362         * top/maint.mk (update-copyright-local): Define place-holder.
46363         (update-copyright): Depend on $(update-copyright-local).
46364
46365 2009-08-06  Jim Meyering  <meyering@redhat.com>
46366
46367         selinux-at: new module
46368         Initially written for coreutils, this module will soon be
46369         used by findutils, too.
46370         * MODULES.html.sh [Misc]: Add selinux-at.
46371         * lib/selinux-at.h: New file, from coreutils.
46372         * lib/selinux-at.c: Likewise.
46373         * modules/selinux-at: Likewise.
46374         (License): Change from LGPL to GPL, since it depends
46375         on the GPL'd openat module.
46376
46377         doc: update README
46378         * README: Remove references to cogito.
46379         Remove cvs-repo-updating instructions from 2007.
46380         Don't imply that CVS is better if you have limited disk space.
46381
46382 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46383
46384         update-copyright: support C-style comments
46385         * build-aux/update-copyright: Implement and document.
46386         * tests/test-update-copyright.sh: Test.
46387
46388 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46389
46390         update-copyright: support omitted "(C)"
46391         * build-aux/update-copyright: Implement and document.  Also,
46392         allow variable whitespace before "(C)".
46393         * tests/test-update-copyright.sh: Test.
46394
46395 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46396
46397         update-copyright: don't trip on non-FSF copyright statements
46398         * build-aux/update-copyright: Fix so that the first correctly
46399         formatted FSF copyright statement is recognized no matter what
46400         appears before it.  Update documentation.
46401         * tests/test-update-copyright.sh: Test that.
46402
46403 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46404
46405         update-copyright: clean up code a little
46406         * build-aux/update-copyright: Append "_re" to the name of any
46407         variable holding a regular expression.
46408         Replace "old" and "new" with "stmt" in variable names.
46409         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
46410         handled correctly.
46411         Format code more consistently.
46412
46413 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46414
46415         update-copyright-tests: improve portability
46416         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
46417         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
46418
46419 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46420
46421         update-copyright: support @copyright{} and &copy;
46422         * build-aux/update-copyright: Implement and document.
46423         * tests/test-update-copyright.sh: Test.
46424
46425 2009-08-04  Jim Meyering  <meyering@redhat.com>
46426
46427         update-copyright-tests: correctly test EOL=\r\n handling
46428         * tests/test-update-copyright.sh: Put \r at the end of some lines
46429         for the dos-eol tests.  Based on a patch by Joel E. Denny.
46430
46431         maint.mk: make update-copyright exclusion list more configurable
46432         * top/maint.mk (update-copyright): Default to excluding COPYING,
46433         but allow an override, in case someone does want to update that file.
46434
46435         maint.mk: don't update copyright date in COPYING
46436         * top/maint.mk (update-copyright): Exclude COPYING.
46437
46438         maint.mk: add a copyright-updating rule
46439         * top/maint.mk (update-copyright): New rule.
46440         Derived from coreutils/Makefile.am.
46441
46442         update-copyright: rename some variables
46443         * build-aux/update-copyright: Rename a few variables for clarity.
46444         Tweak syntax.  List Joel E. Denny as coauthor.
46445
46446 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46447
46448         update-copyright: fix bug for 2-digit last year and add tests
46449         * build-aux/update-copyright: Fix bug.
46450         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
46451         specified.
46452         * modules/update-copyright-tests: New
46453         * tests/test-update-copyright.sh: New.
46454
46455 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46456
46457         update-copyright: handle leading tabs in line prefix
46458         * build-aux/update-copyright: Count leading tabs as 8 spaces
46459         when computing margin.  This helps with the formatting of
46460         ChangeLogs, for example.
46461         Fix documentation a little.
46462
46463 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46464
46465         update-copyright: support EOL=\r\n
46466         * build-aux/update-copyright: Implement that.
46467
46468 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46469
46470         update-copyright: automatically format copyright statements
46471         * build-aux/update-copyright: Implement that.
46472         Also, be a little more predictable and safer by always failing
46473         when the full copyright format is not perfectly recognized as an
46474         unbroken whole.  Discussed at
46475         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
46476         Rewrite documentation.
46477
46478 2009-08-03  Bruno Haible  <bruno@clisp.org>
46479
46480         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
46481
46482 2009-08-02  Bruno Haible  <bruno@clisp.org>
46483
46484         Tests for module 'uname'.
46485         * modules/uname-tests: New file.
46486         * tests/test-uname.c: New file.
46487
46488         New module 'uname'.
46489         * lib/uname.c: New file.
46490         * m4/uname.m4: New file.
46491         * modules/uname: New file.
46492         * doc/posix-functions/uname.texi: Mention the new module.
46493
46494 2009-08-02  Bruno Haible  <bruno@clisp.org>
46495
46496         Tests for module 'sys_utsname'.
46497         * modules/sys_utsname-tests: New file.
46498         * tests/test-sys_utsname.c: New file.
46499
46500         New module 'sys_utsname'.
46501         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
46502         * m4/sys_utsname_h.m4: New file.
46503         * modules/sys_utsname: New file.
46504         * doc/posix-headers/sys_utsname.texi: Mention the new module.
46505
46506 2009-08-02  Bruno Haible  <bruno@clisp.org>
46507
46508         Implicitly initialize the sockets library.
46509         * lib/gethostname.c: Include sockets.h.
46510         (rpl_gethostname): Invoke gl_sockets_startup.
46511         * lib/socket.c: Include sockets.h.
46512         (rpl_socket): Invoke gl_sockets_startup.
46513         * modules/gethostname (Depends-on): Add sockets.
46514         * modules/socket (Depends-on): Likewise.
46515         * tests/test-poll.c: Don't include sockets.h.
46516         (main): Don't invoke gl_sockets_startup.
46517         * tests/test-select.c: Don't include sockets.h.
46518         (main): Don't invoke gl_sockets_startup.
46519
46520 2009-08-02  Bruno Haible  <bruno@clisp.org>
46521
46522         Allow multiple calls to gl_sockets_startup.
46523         * lib/sockets.c (initialized_sockets_version): New variable.
46524         (gl_sockets_startup): Do nothing if already called for this or a higher
46525         version.
46526         (gl_sockets_cleanup): Reset initialized_sockets_version.
46527
46528 2009-08-03  Simon Josefsson  <simon@josefsson.org>
46529
46530         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
46531         different project/version.
46532
46533 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
46534             Bruno Haible  <bruno@clisp.org>
46535
46536         Tests for module 'pipe-filter-gi'.
46537         * modules/pipe-filter-gi-tests: New file.
46538         * tests/test-pipe-filter-gi1.sh: New file.
46539         * tests/test-pipe-filter-gi1.c: New file.
46540         * tests/test-pipe-filter-gi2.sh: New file.
46541         * tests/test-pipe-filter-gi2-main.c: New file.
46542         * tests/test-pipe-filter-gi2-child.c: New file.
46543
46544         New module 'pipe-filter-gi'.
46545         * lib/pipe-filter-gi.c: New file.
46546         * modules/pipe-filter-gi: New file.
46547
46548 2009-08-02  Bruno Haible  <bruno@clisp.org>
46549             Paolo Bonzini  <bonzini@gnu.org>
46550
46551         Tests for module 'pipe-filter-ii'.
46552         * modules/pipe-filter-ii-tests: New file.
46553         * tests/test-pipe-filter-ii1.sh: New file.
46554         * tests/test-pipe-filter-ii1.c: New file.
46555         * tests/test-pipe-filter-ii2.sh: New file.
46556         * tests/test-pipe-filter-ii2-main.c: New file.
46557         * tests/test-pipe-filter-ii2-child.c: New file.
46558
46559         New module 'pipe-filter-ii'.
46560         * lib/pipe-filter.h: New file.
46561         * lib/pipe-filter-ii.c: New file.
46562         * lib/pipe-filter-aux.h: New file.
46563         * modules/pipe-filter-ii: New file.
46564
46565 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46566
46567         * lib/gc-libgcrypt.c: Change copyright to FSF.
46568         * lib/gc-gnulib.c: Likewise.
46569
46570 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
46571
46572         * lib/gethostname.c: Include limits.h.
46573
46574 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46575             Bruno Haible  <bruno@clisp.org>
46576
46577         Ensure HOST_NAME_MAX as part of the gethostname module.
46578         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
46579         define also HOST_NAME_MAX.
46580         * tests/test-gethostname.c: Include <limits.h>.
46581         (main): Check also HOST_NAME_MAX.
46582         * doc/posix-headers/limits.texi: Document the mingw problem.
46583
46584 2009-08-02  Bruno Haible  <bruno@clisp.org>
46585
46586         * lib/gethostname.c (gethostname): Fix handling of large len argument.
46587         Add comments.
46588
46589 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46590
46591         * lib/gethostname.c: Add Windows wrapper.
46592         * m4/gethostname.m4: Look for gethostname in -lws2_32.
46593         * modules/gethostname: Depend on sys_socket & errno, for also
46594         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
46595         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
46596
46597 2009-07-31  Jim Meyering  <meyering@redhat.com>
46598
46599         getloadavg: fix symbol name in comment
46600         * lib/getloadavg.c: Correct a typo I introduced when adding
46601         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
46602         Matt Kraai spotted the problem.
46603
46604 2009-07-29  Matt Kraai  <mkraai@beckman.com>
46605
46606         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
46607         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
46608         code also if ! defined N_NAME_POINTER.
46609         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
46610         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
46611         but the n_name member is a 12-byte array.
46612
46613 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
46614
46615         update-copyright: generalize comment handling
46616         * build-aux/update-copyright: Handle copyright statements
46617         within more comment styles.
46618         Document usage.
46619         Report any file with an external copyright holder or parse failure.
46620
46621 2009-07-29  Jim Meyering  <meyering@redhat.com>
46622
46623         mktime: correct setting of REPLACE_MKTIME
46624         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
46625
46626         update-copyright: new module
46627         * modules/update-copyright: New file.
46628         * build-aux/update-copyright: New file.
46629         * MODULES.html.sh (maint+release support): Add update-copyright.
46630
46631 2009-07-27  Bruno Haible  <bruno@clisp.org>
46632
46633         Fix compilation error when <ctime> is used and mktime is replaced.
46634         * lib/time.in.h (mktime): New declaration.
46635         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
46636         REPLACE_MKTIME instead of defining mktime in config.h.
46637         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
46638         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
46639         Reported by Ross McFarland <rwmcfa1@neces.com>.
46640
46641 2009-07-27  Bruno Haible  <bruno@clisp.org>
46642
46643         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
46644         Reported by Matt Kraai <mkraai@beckman.com>.
46645
46646 2009-07-25  Jim Meyering  <meyering@redhat.com>
46647
46648         maint.mk: avoid warnings about missing files
46649         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
46650         diagnostic when .prev-version does not exist.
46651         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
46652         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
46653         nonexistent cfg.mk.
46654         Suggestions from Simon Josefsson.
46655
46656 2009-07-25  Bruno Haible  <bruno@clisp.org>
46657
46658         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
46659         defined as macros. Needed on QNX 6.4.1.
46660         Reported by Matt Kraai <mkraai@beckman.com>.
46661
46662 2009-07-23  Jim Meyering  <meyering@redhat.com>
46663
46664         maint.mk: invoke "make dist" with a working value of XZ_OPT
46665         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
46666
46667 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
46668
46669         Make fseeko.c compile on QNX.
46670         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
46671
46672 2009-07-22  Peter Simons  <simons@cryp.to>
46673
46674         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
46675         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
46676         * lib/md4.h: Likewise.
46677         * lib/md5.h: Likewise.
46678         * lib/sha1.h: Likewise.
46679         * lib/sha256.h: Likewise.
46680         * lib/sha512.h: Likewise.
46681
46682         tests-sha1: don't assign literal string to 'char *' variable
46683         * tests/test-sha1.c (main): Declare locals with "const" to match
46684         attributes of the right hand side.
46685
46686 2009-07-21  Eric Blake  <ebb9@byu.net>
46687
46688         dup2: fix more mingw problems
46689         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
46690         fd to itself.
46691         * doc/posix-functions/dup2.texi (dup2): Document the bug.
46692         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
46693         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
46694         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
46695         care of mingw bugs.
46696
46697 2009-07-21  Jim Meyering  <meyering@redhat.com>
46698
46699         vc-list-files: avoid failure when /bin/sh is dash
46700         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
46701         On some Debian based systems, /bin/sh is a symlink to dash, and running
46702         this command would omit the "/" following each 'tests' prefix:
46703           dash -x build-aux/vc-list-files -C . tests
46704         That is because bash and dash work differently:
46705           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
46706           bash ok
46707           dash odd
46708
46709 2009-07-21  Eric Blake  <ebb9@byu.net>
46710
46711         dup2-tests: test previous patch
46712         * modules/dup2-tests: New file.
46713         * tests/test-dup2.c: Likewise.
46714         * tests/test-open.c (main): Avoid unspecified behavior.
46715         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
46716         test.
46717
46718         dup2: work around mingw and cygwin 1.5 bug
46719         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
46720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46721         * modules/unistd (Makefile.am): Substitute it.
46722         * lib/unistd.in.h (dup2): Declare the replacement.
46723         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
46724         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
46725         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
46726         * modules/execute (Depends-on): Add dup2.
46727         * modules/fseterr (Depends-on): Likewise.
46728         * modules/pipe (Depends-on): Likewise.
46729         * modules/posix_spawn-internal (Depends-on): Likewise.
46730
46731 2009-07-21  Bruno Haible  <bruno@clisp.org>
46732
46733         * modules/.gitattributes: New file.
46734
46735 2009-07-20  Bruno Haible  <bruno@clisp.org>
46736
46737         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
46738         (main): Use it.
46739
46740 2009-07-20  Eric Blake  <ebb9@byu.net>
46741
46742         test-pipe: make a bit more robust.
46743         * tests/test-pipe.c (myerr): Allow error messages regardless of
46744         what we do to stderr.
46745         (test_pipe): Rearrange to avoid deadlock.
46746         (child_main): Try a larger read, to ensure we avoided deadlock.
46747         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
46748         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
46749         if misused.
46750
46751 2009-07-19  Jim Meyering  <meyering@redhat.com>
46752
46753         fts: avoid false-positive cycle-detection
46754         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
46755         for each new command line argument.
46756
46757 2009-07-19  Bruno Haible  <bruno@clisp.org>
46758
46759         Fix build error on mingw with the modules sys_select and unistd.
46760         * modules/acl-tests (Depends-on): Add close.
46761         * modules/binary-io-tests (Depends-on): Likewise.
46762         * modules/closein-tests (Depends-on): Likewise.
46763         * modules/flock-tests (Depends-on): Likewise.
46764         * modules/fsync-tests (Depends-on): Likewise.
46765         * modules/lseek-tests (Depends-on): Likewise.
46766         * modules/pipe-tests (Depends-on): Likewise.
46767         * modules/posix_spawn-tests (Depends-on): Likewise.
46768         * modules/posix_spawnp-tests (Depends-on): Likewise.
46769         * modules/stat-time-tests (Depends-on): Likewise.
46770         * modules/yesno-tests (Depends-on): Likewise.
46771
46772 2009-07-19  Bruno Haible  <bruno@clisp.org>
46773
46774         Unify conditionals.
46775         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
46776         macros, not at the compiler macros.
46777         * lib/pipe.c: Likewise.
46778         * lib/execute.c: Likewise.
46779         * lib/spawni.c: Likewise.
46780
46781 2009-07-19  Bruno Haible  <bruno@clisp.org>
46782
46783         Fix handling of closed stdin/stdout/stderr on mingw.
46784         * lib/w32spawn.h: Include unistd.h.
46785         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
46786         file descriptor with O_NOINHERIT flag.
46787         (fd_safer_noinherit): New function, based on fd-safer.c.
46788         (dup_safer_noinherit): New function, based on dup-safer.c.
46789         (undup_safer_noinherit): New function.
46790         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
46791         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
46792         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
46793         instead of fd_safer.
46794         * tests/test-pipe.c: Include <windows.h>.
46795         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
46796         result.
46797
46798         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
46799         from main.
46800         (test_pipe): Pass an extra argument for disambiguation.
46801         (main): Invoke parent_main or child_main.
46802
46803         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
46804         consistently.
46805
46806 2009-07-18  Eric Blake  <ebb9@byu.net>
46807
46808         test-pipe: fix mingw build
46809         * tests/test-pipe.c (main): Avoid fcntl on mingw.
46810
46811 2009-07-18  Bruno Haible  <bruno@clisp.org>
46812
46813         * modules/pipe-tests (Makefile.am): Fix typo.
46814
46815 2009-07-18  Eric Blake  <ebb9@byu.net>
46816
46817         error: fix mingw build
46818         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
46819         Reported by Bruno Haible.
46820
46821         error: avoid undefined use of stdout
46822         * lib/error.c (error, error_at_line): Check that fd 1 is open
46823         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
46824         is handling faults and the close_stdout module wants to report the
46825         detection of closed stdout as an error.
46826
46827 2009-07-17  Eric Blake  <ebb9@byu.net>
46828
46829         pipe: be robust in face of closed fds
46830         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
46831         should cause child to misbehave.
46832         * modules/pipe-tests: New module.
46833         * tests/test-pipe.c: New file.
46834         * tests/test-pipe.sh: New file.
46835         Reported by Akim Demaille.
46836
46837 2009-07-14  Bruno Haible  <bruno@clisp.org>
46838
46839         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
46840         Reported by anonymous kc.
46841
46842 2009-07-07  Jim Meyering  <meyering@redhat.com>
46843
46844         maint.mk: don't look for translatable strings in *.m4 or *.mk
46845         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
46846         when searching for translatable strings.
46847
46848 2009-07-05  Jim Meyering  <meyering@redhat.com>
46849
46850         remove superfluous parentheses in STREQ definition
46851         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
46852         * lib/getugroups.c (STREQ): Likewise.
46853         * lib/fnmatch.c (STREQ): Likewise.
46854         Spotted by Bruno Haible.
46855
46856 2009-07-04  Jim Meyering  <meyering@redhat.com>
46857
46858         argv-iter: new module
46859         * MODULES.html.sh: Add argv-iter.
46860         * lib/argv-iter.c, lib/argv-iter.h: New files.
46861         * modules/argv-iter: New file.
46862         * modules/argv-iter-tests: New file.
46863         * tests/test-argv-iter.c: Test it.
46864
46865 2009-07-04  Bruno Haible  <bruno@clisp.org>
46866
46867         Fix assertion.
46868         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
46869         contains more exact copies of a given entry than file2, leave the extra
46870         copies unpaired rather than aborting.
46871         Reported by Eric Blake.
46872
46873 2009-07-02  Bruno Haible  <bruno@clisp.org>
46874
46875         Speedup git-merge-changelog for git cherry-pick.
46876         * lib/git-merge-changelog.c (struct entries_mapping): New type.
46877         (entries_mapping_get): New function, extracted from compute_mapping.
46878         (entries_mapping_reverse_get): New function.
46879         (compute_mapping): Add a 'full' argument. Return the result in a
46880         'struct entries_mapping'.
46881         (main): Update. Access the mappings through entries_mapping_get.
46882         Reported by Eric Blake.
46883
46884 2009-07-02  Bruno Haible  <bruno@clisp.org>
46885
46886         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
46887         best_i.
46888
46889 2009-07-02  Bruno Haible  <bruno@clisp.org>
46890
46891         Speed up approximate search for matching ChangeLog entries.
46892         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
46893         argument. Call fstrcmp_bounded instead of fstrcmp.
46894         (compute_mapping, try_split_merged_entry, main): Update callers.
46895
46896 2009-07-02  Bruno Haible  <bruno@clisp.org>
46897
46898         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
46899
46900 2009-06-30  Bruno Haible  <bruno@clisp.org>
46901
46902         Reduce the number of uc_is_cased calls.
46903         * lib/unicase.h (casing_suffix_context_t): Add
46904         'first_char_except_ignorable' field.
46905         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
46906         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
46907         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
46908         Update initializer.
46909         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
46910         case-ignorable characters.
46911         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
46912         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
46913         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
46914         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
46915         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
46916
46917 2009-06-30  Bruno Haible  <bruno@clisp.org>
46918
46919         Tests for module 'unicase/ignorable'.
46920         * modules/unicase/ignorable-tests: New file.
46921         * tests/unicase/test-ignorable.c: New file, generated by
46922         gen-uni-tables.
46923
46924         Tests for module 'unicase/cased'.
46925         * modules/unicase/cased-tests: New file.
46926         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
46927         * tests/unicase/test-predicate-part1.h: New file, derived from
46928         tests/unictype/test-predicate-part1.h.
46929         * tests/unicase/test-predicate-part2.h: New file, same as
46930         tests/unictype/test-predicate-part2.h.
46931
46932         Fix evaluation of "Before C" condition of FINAL_SIGMA.
46933         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
46934         (output_casing_properties): New function.
46935         (main): Call it.
46936         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
46937         * lib/unicase/cased.c: Include unictype/bitmap.h.
46938         (uc_is_cased): Define through a bitmap lookup.
46939         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
46940         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
46941         (uc_is_case_ignorable): Define through a bitmap lookup.
46942         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
46943         lib/unictype/bitmap.h.
46944         (Depends-on): Add inline. Clean up.
46945         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
46946         lib/unictype/bitmap.h.
46947         (Depends-on): Add inline. Clean up.
46948         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
46949         recognition.
46950         * tests/unicase/test-u16-tolower.c (main): Likewise.
46951         * tests/unicase/test-u32-tolower.c (main): Likewise.
46952
46953 2009-06-30  Bruno Haible  <bruno@clisp.org>
46954
46955         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
46956         * lib/unicase/u16-casemap.c: Likewise.
46957         * lib/unicase/u32-casemap.c: Likewise.
46958
46959 2009-06-29  Bruno Haible  <bruno@clisp.org>
46960
46961         Define u32_casefold as a wrapper around u32_ct_casefold.
46962         * lib/unicase/u32-casefold.c: Update.
46963         * modules/unicase/u32-casefold (Depends-on): Add
46964         unicase/u32-ct-casefold, unicase/empty-prefix-context,
46965         unicase/empty-suffix-context. Clean up.
46966
46967         Define u16_casefold as a wrapper around u16_ct_casefold.
46968         * lib/unicase/u16-casefold.c: Update.
46969         * modules/unicase/u16-casefold (Depends-on): Add
46970         unicase/u16-ct-casefold, unicase/empty-prefix-context,
46971         unicase/empty-suffix-context. Clean up.
46972
46973         Define u8_casefold as a wrapper around u8_ct_casefold.
46974         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
46975         * lib/unicase/u8-casefold.c: Update.
46976         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
46977         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46978
46979         Define u32_totitle as a wrapper around u32_ct_totitle.
46980         * lib/unicase/u32-totitle.c: Update.
46981         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
46982         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46983
46984         Define u16_totitle as a wrapper around u16_ct_totitle.
46985         * lib/unicase/u16-totitle.c: Update.
46986         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
46987         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46988
46989         Define u8_totitle as a wrapper around u8_ct_totitle.
46990         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
46991         functions.
46992         (FUNC): Delegate to U_CT_TOTITLE.
46993         * lib/unicase/u8-totitle.c: Update.
46994         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
46995         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46996
46997         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
46998         invocation.
46999         * modules/unicase/u32-tolower (Depends-on): Add
47000         unicase/empty-prefix-context, unicase/empty-suffix-context.
47001
47002         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
47003         invocation.
47004         * modules/unicase/u16-tolower (Depends-on): Add
47005         unicase/empty-prefix-context, unicase/empty-suffix-context.
47006
47007         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
47008         * modules/unicase/u8-tolower (Depends-on): Add
47009         unicase/empty-prefix-context, unicase/empty-suffix-context.
47010
47011         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
47012         invocation.
47013         * modules/unicase/u32-toupper (Depends-on): Add
47014         unicase/empty-prefix-context, unicase/empty-suffix-context.
47015
47016         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
47017         invocation.
47018         * modules/unicase/u16-toupper (Depends-on): Add
47019         unicase/empty-prefix-context, unicase/empty-suffix-context.
47020
47021         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
47022         * modules/unicase/u8-toupper (Depends-on): Add
47023         unicase/empty-prefix-context, unicase/empty-suffix-context.
47024
47025         New module 'unicase/u32-ct-casefold'.
47026         * lib/unicase/u32-ct-casefold.c: New file.
47027         * modules/unicase/u32-ct-casefold: New file.
47028
47029         New module 'unicase/u16-ct-casefold'.
47030         * lib/unicase/u16-ct-casefold.c: New file.
47031         * modules/unicase/u16-ct-casefold: New file.
47032
47033         New module 'unicase/u8-ct-casefold'.
47034         * lib/unicase/u8-ct-casefold.c: New file.
47035         * lib/unicase/u-ct-casefold.h: New file, derived from
47036         lib/unicase/u-casefold.h.
47037         * modules/unicase/u8-ct-casefold: New file.
47038
47039         New module 'unicase/u32-ct-totitle'.
47040         * lib/unicase/u32-ct-totitle.c: New file.
47041         * modules/unicase/u32-ct-totitle: New file.
47042
47043         New module 'unicase/u16-ct-totitle'.
47044         * lib/unicase/u16-ct-totitle.c: New file.
47045         * modules/unicase/u16-ct-totitle: New file.
47046
47047         New module 'unicase/u8-ct-totitle'.
47048         * lib/unicase/u8-ct-totitle.c: New file.
47049         * lib/unicase/u-ct-totitle.h: New file, derived from
47050         lib/unicase/u-totitle.h.
47051         * modules/unicase/u8-ct-totitle: New file.
47052
47053         New module 'unicase/u32-ct-tolower'.
47054         * lib/unicase/u32-ct-tolower.c: New file.
47055         * modules/unicase/u32-ct-tolower: New file.
47056
47057         New module 'unicase/u16-ct-tolower'.
47058         * lib/unicase/u16-ct-tolower.c: New file.
47059         * modules/unicase/u16-ct-tolower: New file.
47060
47061         New module 'unicase/u8-ct-tolower'.
47062         * lib/unicase/u8-ct-tolower.c: New file.
47063         * modules/unicase/u8-ct-tolower: New file.
47064
47065         New module 'unicase/u32-ct-toupper'.
47066         * lib/unicase/u32-ct-toupper.c: New file.
47067         * modules/unicase/u32-ct-toupper: New file.
47068
47069         New module 'unicase/u16-ct-toupper'.
47070         * lib/unicase/u16-ct-toupper.c: New file.
47071         * modules/unicase/u16-ct-toupper: New file.
47072
47073         New module 'unicase/u8-ct-toupper'.
47074         * lib/unicase/u8-ct-toupper.c: New file.
47075         * modules/unicase/u8-ct-toupper: New file.
47076
47077         Add context arguments to u*_casemap functions.
47078         * lib/unicase/unicasemap.h: Include unicase.h.
47079         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
47080         suffix_context arguments.
47081         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
47082         functions.
47083         (FUNC): Add prefix_context and suffix_context arguments. Use
47084         uc_is_cased and uc_is_case_ignorable.
47085         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
47086         * lib/unicase/u16-casemap.c: Likewise.
47087         * lib/unicase/u32-casemap.c: Likewise.
47088         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
47089         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47090         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
47091         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47092         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
47093         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47094
47095         New module 'unicase/u32-suffix-context'.
47096         * lib/unicase/u32-suffix-context.c: New file.
47097         * modules/unicase/u32-suffix-context: New file.
47098
47099         New module 'unicase/u16-suffix-context'.
47100         * lib/unicase/u16-suffix-context.c: New file.
47101         * modules/unicase/u16-suffix-context: New file.
47102
47103         New module 'unicase/u8-suffix-context'.
47104         * lib/unicase/u8-suffix-context.c: New file.
47105         * lib/unicase/u-suffix-context.h: New file.
47106         * modules/unicase/u8-suffix-context: New file.
47107
47108         New module 'unicase/empty-suffix-context'.
47109         * lib/unicase/empty-suffix-context.c: New file.
47110         * modules/unicase/empty-suffix-context: New file.
47111
47112         New module 'unicase/u32-prefix-context'.
47113         * lib/unicase/u32-prefix-context.c: New file.
47114         * modules/unicase/u32-prefix-context: New file.
47115
47116         New module 'unicase/u16-prefix-context'.
47117         * lib/unicase/u16-prefix-context.c: New file.
47118         * modules/unicase/u16-prefix-context: New file.
47119
47120         New module 'unicase/u8-prefix-context'.
47121         * lib/unicase/u8-prefix-context.c: New file.
47122         * lib/unicase/u-prefix-context.h: New file.
47123         * lib/unicase/context.h: New file.
47124         * modules/unicase/u8-prefix-context: New file.
47125
47126         New module 'unicase/empty-prefix-context'.
47127         * lib/unicase/empty-prefix-context.c: New file.
47128         * modules/unicase/empty-prefix-context: New file.
47129
47130         New module 'unicase/ignorable'.
47131         * lib/unicase/ignorable.c: New file.
47132         * modules/unicase/ignorable: New file.
47133
47134         New module 'unicase/cased'.
47135         * lib/unicase/caseprop.h: New file.
47136         * lib/unicase/cased.c: New file.
47137         * modules/unicase/cased: New file.
47138
47139         New functions for case mapping of substrings.
47140         * lib/unicase.h (casing_prefix_context_t): New type.
47141         (unicase_empty_prefix_context): New variable.
47142         (u8_casing_prefix_context, u16_casing_prefix_context,
47143         u32_casing_prefix_context, u8_casing_prefixes_context,
47144         u16_casing_prefixes_context, u32_casing_prefixes_context): New
47145         declarations.
47146         (casing_suffix_context_t): New type.
47147         (unicase_empty_suffix_context): New variable.
47148         (u8_casing_suffix_context, u16_casing_suffix_context,
47149         u32_casing_suffix_context, u8_casing_suffixes_context,
47150         u16_casing_suffixes_context, u32_casing_suffixes_context,
47151         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
47152         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
47153         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
47154         declarations.
47155
47156 2009-06-28  Jim Meyering  <meyering@redhat.com>
47157
47158         boostrap: indent only with spaces
47159         * build-aux/bootstrap: Indent only with spaces, never TABs.
47160
47161         bootstrap: split long lines
47162         * build-aux/bootstrap: Keep line length < 80.
47163
47164         bootstrap: sync from coreutils
47165         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
47166         just as autoreconf does.  Verify a list of prerequisite
47167         package-name,version-number pairs if defined in bootstrap.conf.
47168         Refer to README-prereq, if prerequisites are not satisfied.
47169
47170 2009-06-27  Eric Blake  <ebb9@byu.net>
47171
47172         tests: add test for bogus NULL definition
47173         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
47174         * tests/test-stdlib.c: Likewise.
47175         * tests/test-string.c: Likewise.
47176         * tests/test-locale.c: Likewise.
47177         * tests/test-unistd.c: Likewise.
47178         * modules/stdio-tests (Depends-on): Add verify.
47179         * modules/stdlib-tests (Depends-on): Likewise.
47180         * modules/string-tests (Depends-on): Likewise.
47181         * modules/locale-tests (Depends-on): Likewise.
47182         * modules/unistd-tests (Depends-on): Likewise.
47183
47184 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
47185
47186         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
47187         self-explaining comment.
47188         * m4/selinux-selinux-h: Update serial.
47189         (gl_LIBSELINUX): New macro, adding a warning for missing development
47190         packages to code extracted from...
47191         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
47192         Add warning for missing development packages here, too.
47193
47194 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
47195
47196         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
47197
47198 2009-06-25  Eric Blake  <ebb9@byu.net>
47199
47200         version-etc: fix regression
47201         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
47202         gcc.
47203         (version_etc): Use it, to catch bugs with trailing NULL.
47204         * lib/version-etc.c (version_etc_arn): Delete unused argument.
47205         (version_etc_va): Fix logic bug.
47206         * modules/version-etc-tests: Add test.
47207         * tests/test-version-etc.c: New file.
47208         * tests/test-version-etc.sh: Likewise.
47209
47210 2009-06-25  Sam Steingold  <sds@gnu.org>
47211
47212         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
47213         mbtowc declaration.
47214
47215 2009-06-25  Eric Blake  <ebb9@byu.net>
47216
47217         fpurge: migrate into <stdio.h>
47218         * lib/fpurge.h: Delete...
47219         * lib/stdio.in.h (fpurge): ...and declare here, instead.
47220         * lib/fpurge.c (fpurge): Change declaring header.
47221         * modules/fpurge (Files): Drop deleted file.
47222         (Depends-on): Add stdio.
47223         (configure.ac): Set witness.
47224         * modules/stdio (Makefile.am): Support fpurge macros.
47225         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47226         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
47227         * lib/fflush.c: Update client.
47228         * tests/test-fpurge.c: Likewise.
47229         * NEWS: Mention the change.
47230
47231 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47232
47233         * lib/argp-version-etc.c (program_authors): Add const
47234         qualifier.
47235         * lib/version-etc.c: Fix typos in the comments.
47236         * modules/argp-version-etc: Depends on version-etc.
47237
47238 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47239
47240         argp-version-etc: new module.
47241
47242         * lib/argp-version-etc.c: New file.
47243         * lib/argp-version-etc.h: New file.
47244         * modules/argp-version-etc: New file.
47245         * modules/argp-version-etc-tests: New file.
47246         * tests/test-argp-version-etc.c: New test.
47247         * tests/test-argp-version-etc-1.sh: New test.
47248
47249 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47250
47251         Provide additional interfaces and documentation for version-etc
47252         module.
47253
47254         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
47255         interfaces.
47256         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
47257         prototypes.
47258
47259 2009-06-24  Bruno Haible  <bruno@clisp.org>
47260
47261         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
47262         HAVE_LIB${NAME} macro.
47263         Reported by Sam Steingold <sds@gnu.org>.
47264
47265 2009-06-23  Simon Josefsson  <simon@josefsson.org>
47266
47267         * modules/hash-tests (test_hash_LDADD): Link to libintl when
47268         needed.
47269
47270 2009-06-21  Bruno Haible  <bruno@clisp.org>
47271
47272         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
47273         work.
47274         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
47275         together with LIB${NAME}, LTLIB${NAME}.
47276         Reported by Sam Steingold <sds@gnu.org>.
47277
47278 2009-06-20  Jim Meyering  <meyering@redhat.com>
47279
47280         tests: make sc_require_test_exit_idiom more generic
47281         * top/maint.mk (Exit_witness_file): New overridable variable.
47282         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
47283         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
47284
47285 2009-06-19  Jim Meyering  <meyering@redhat.com>
47286
47287         hash: reverse order of src/dst parameters in an internal interface
47288         * lib/hash.c (transfer_entries): Reverse order of parameters to
47289         put DST before SRC.  Adjust callers.
47290
47291         tests: test-hash: avoid wholesale duplication
47292         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
47293         Instead, use a loop and add a single conditional.
47294
47295         tests: test-hash: allow seed selection via a command line argument
47296         * tests/test-hash.c (get_seed): New function.
47297         (main): Use it.
47298
47299 2009-06-19  Eric Blake  <ebb9@byu.net>
47300
47301         hash: avoid memory leak on allocation failure
47302         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
47303         failure.  Factor repeated algorithm...
47304         (transfer_entries): ...into new helper routine.
47305         (hash_delete): React to hash_rehash return value.
47306
47307         hash: reduce memory pressure in hash_rehash no-op case
47308         * lib/hash.c (next_prime): Avoid overflow.
47309         (hash_initialize): Factor bucket size computation...
47310         (compute_bucket_size): ...into new helper function.
47311         (hash_rehash): Use new function and open coding to reduce memory
47312         pressure, and avoid a memory leak in USE_OBSTACK code.
47313         Reported by Jim Meyering.
47314
47315 2009-06-18  Eric Blake  <ebb9@byu.net>
47316
47317         hash: make rotation more obvious
47318         * modules/hash (Depends-on): Add bitrotate and stdint.
47319         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
47320         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
47321         (SIZE_MAX): Rely on headers for definition.
47322         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
47323         (raw_hasher): Use rotr_sz.
47324         Suggested by Jim Meyering.
47325
47326         hash: fix memory leak in last patch
47327         * lib/hash.c (hash_rehash): Avoid memory leak.
47328
47329         hash: avoid no-op rehashing
47330         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
47331
47332         hash: provide default callback functions
47333         * lib/hash.c (raw_hasher, raw_comparator): New functions.
47334         (hash_initialize): Use them as defaults.
47335         * tests/test-hash.c (main): Test this.
47336
47337         hash: minor optimization
47338         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
47339         when possible.
47340         (hash_initialize): Document this promise.
47341         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
47342         * tests/test-hash.c (hash_compare_strings): Test this.
47343
47344 2009-06-18  Bruno Haible  <bruno@clisp.org>
47345
47346         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
47347         going to be replaced anyway.
47348
47349 2009-06-18  Bruno Haible  <bruno@clisp.org>
47350
47351         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
47352         in one place.
47353         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
47354         be replaced anyway.
47355
47356 2009-06-18  Eric Blake  <ebb9@byu.net>
47357
47358         hash: check for resize before insertion
47359         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
47360         threshold before insertion, so that a pathological hash_rehash
47361         that fills every bucket can still trigger another rehash.
47362
47363 2009-06-18  Jim Meyering  <meyering@redhat.com>
47364
47365         hash-tests: add a loop around the small tests
47366         * tests/test-hash.c (main): Repeat small tests with selected
47367         small initial table sizes.
47368
47369 2009-06-17  Eric Blake  <ebb9@byu.net>
47370
47371         hash: minor cleanups
47372         * lib/hash.h (hash_entry): Make opaque, by moving...
47373         * lib/hash.c (hash_entry): ...here.
47374         (hash_insert): Clarify restrictions on what can be inserted.
47375         (hash_get_next): Clarify when it is safe to remove an element
47376         during traversal.
47377         (check_tuning): Skip verification when tuning is known safe.
47378         (hash_initialize): Clarify restrictions on tuning.
47379
47380 2009-06-17  Jim Meyering  <jim@meyering.net>
47381         and Eric Blake  <ebb9@byu.net>
47382
47383         hash-tests: new module
47384         * modules/hash-tests: New file.
47385         * tests/test-hash.c: New file.
47386
47387 2009-06-17  Eric Blake  <ebb9@byu.net>
47388
47389         strstr-simple: document new module
47390         * MODULES.html.sh: Document new module.
47391
47392         strstr, strcasestr: replace on platforms with broken memchr
47393         * modules/strstr: Split into...
47394         * modules/strstr-simple: ...new module that does not care about
47395         performance, but does care about glibc bug.
47396         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
47397         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
47398         if platform memchr is broken, per Debian bug 521737.
47399         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
47400         memchr.
47401         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
47402         * doc/posix-functions/strstr.texi (strstr): Document the fix.
47403         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47404         * modules/mountlist (Depends-on): Add strstr-simple.
47405         * modules/gen-uni-tables (Depends-on): Likewise.
47406         * modules/argz (Depends-on): Add strstr.
47407
47408 2009-06-17  Bruno Haible  <bruno@clisp.org>
47409
47410         * modules/posix_spawn-internal (Depends-on): Add errno.
47411
47412 2009-06-17  Bruno Haible  <bruno@clisp.org>
47413
47414         Define missing ESTALE on Interix 3.5.
47415         * lib/errno.in.h (ESTALE): Assign a value if missing.
47416         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
47417         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
47418         missing.
47419         * doc/posix-headers/errno.texi: Mention the Interix bug.
47420         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
47421
47422 2009-06-15  Eric Blake  <ebb9@byu.net>
47423
47424         memchr, memchr2: add valgrind exception
47425         * lib/memchr.valgrind: New file.
47426         * lib/memchr2.valgrind: New file.
47427         * modules/memchr (Files): Distribute valgrind file.
47428         * modules/memchr2 (Files): Likewise.
47429
47430         docs: memchr is no longer obsolete
47431         * MODULES.html.sh: Move memchr from obsolete to string.h section.
47432         * lib/string.in.h (memchr): Simplify logic.
47433
47434 2009-06-14  Jim Meyering  <meyering@redhat.com>
47435
47436         link-follow: fix the "checking..." message to not mention trailing slash
47437         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
47438         never considered trailing slashes.
47439
47440 2009-06-14  Bruno Haible  <bruno@clisp.org>
47441
47442         * m4/memchr.m4: Mention also the bug on IA-64.
47443         * doc/posix-functions/memchr.texi: Likewise.
47444
47445 2009-06-12  Eric Blake  <ebb9@byu.net>
47446
47447         memchr: detect broken x86_64 and alpha implementations
47448         * modules/memchr-tests (Depends-on): Move mmap detection...
47449         * modules/memchr (Depends-on): ...here.
47450         (configure.ac): Set indicator.
47451         * lib/string.in.h (memchr): Declare replacement.
47452         * modules/string (Makefile.am): Trigger replacement.
47453         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47454         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
47455         bugs.
47456         * doc/posix-functions/memchr.texi (memchr): Document the bug.
47457         * modules/getpagesize (License): Relax license.
47458
47459 2009-06-11  Bruno Haible  <bruno@clisp.org>
47460
47461         * lib/idpriv.h: Add more references.
47462
47463 2009-06-08  Bruno Haible  <bruno@clisp.org>
47464
47465         Tests for module 'idpriv-droptemp'.
47466         * modules/idpriv-droptemp-tests: New file.
47467         * tests/test-idpriv-droptemp.sh: New file.
47468         * tests/test-idpriv-droptemp.su.sh: New file.
47469         * tests/test-idpriv-droptemp.c: New file.
47470
47471         New module 'idpriv-droptemp'.
47472         * lib/idpriv-droptemp.c: New file.
47473         * modules/idpriv-droptemp: New file.
47474
47475 2009-06-08  Bruno Haible  <bruno@clisp.org>
47476
47477         Tests for module 'idpriv-drop'.
47478         * modules/idpriv-drop-tests: New file.
47479         * tests/test-idpriv-drop.sh: New file.
47480         * tests/test-idpriv-drop.su.sh: New file.
47481         * tests/test-idpriv-drop.c: New file.
47482
47483         New module 'idpriv-drop'.
47484         * lib/idpriv.h: New file.
47485         * lib-idpriv-drop.c: New file.
47486         * m4/idpriv.m4: New file.
47487         * modules/idpriv-drop: New file.
47488
47489 2009-06-08  Bruno Haible  <bruno@clisp.org>
47490
47491         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
47492         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47493         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47494         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47495         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47496         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47497         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47498
47499 2009-06-08  Eric Blake  <ebb9@byu.net>
47500
47501         test-strstr: use memory fence, when possible
47502         * tests/test-strstr.c (main): Use memory fence, in order to be
47503         more likely to trigger Debian bug 521737.
47504         * modules/strstr-tests (Files): Pull in additional files.
47505
47506         memchr: no longer obsolete, for wider field testing
47507         * modules/memchr (Status, Notice): Delete, this module is no
47508         longer obsolete.
47509         * modules/vasnprintf (Depends-on): Add memchr.
47510
47511 2009-06-07  Jim Meyering  <meyering@redhat.com>
47512
47513         hash: declare some functions with the warn_unused_result attribute
47514         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
47515
47516 2009-06-07  Bruno Haible  <bruno@clisp.org>
47517
47518         * tests/test-alignof.c: Don't test int64_t if it does not exist.
47519         Reported by Eric Blake.
47520
47521 2009-06-06  Eric Blake  <ebb9@byu.net>
47522
47523         test-alignof: fix typo with long double
47524         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
47525         compiler error.
47526
47527 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
47528
47529         Escape non-texinfo { and }s.
47530         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
47531         markup error.
47532
47533 2009-06-04  Jim Meyering  <meyering@redhat.com>
47534
47535         gitlog-to-changelog: don't infloop on an empty commit log
47536         * build-aux/gitlog-to-changelog: Warn about an empty log message.
47537         Reported by Boris Petersen <transacid@centerim.org>.
47538
47539 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
47540
47541         version-etc: extend for packagers
47542         Add three new configure options, intended for packagers:
47543           --with-packager="packager name"
47544           --with-packager-version="packager-specific version"
47545           --with-packager-bug-reports="packager bug reporting"
47546         An example with coreutils:
47547           $ ./configure \
47548             --with-packager=Gentoo \
47549             --with-packager-bug-report=http://bugs.gentoo.org/ \
47550             --with-packager-version="patchset 1.6"
47551           $ ./src/ls --version | head -n2
47552           ls (GNU coreutils) 7.1-dirty
47553           Packaged by Gentoo (patchset 1.6)
47554         Note that the bug reporting info via --help doesn't show up because
47555         coreutils uses its own custom emit_bug_reporting_address() implementation
47556         in src/system.h.  If it didn't, it'd look like:
47557           $ ./src/ls --help | tail -n4
47558           Report bugs to <bug-coreutils@gnu.org>.
47559           Report Gentoo bugs to <http://bugs.gentoo.org/>.
47560           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
47561           General help using GNU software: <http://www.gnu.org/gethelp/>.
47562         * lib/version-etc.c: Print new information, if provided.
47563         * m4/version-etc.m4: New file.
47564         * modules/version-etc (Files): Add m4/version-etc.m4.
47565         (configure.ac): Add gl_VERSION_ETC.
47566
47567 2009-05-31  Bruno Haible  <bruno@clisp.org>
47568
47569         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
47570         and 'int64_t'.
47571         * modules/alignof-tests (Dependencies): Add stdint.
47572         Reported by Eric Blake.
47573
47574 2009-05-31  Bruno Haible  <bruno@clisp.org>
47575
47576         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
47577         restriction due to compiler bugs.
47578         Reported by Eric Blake.
47579
47580 2009-05-31  Simon Josefsson  <simon@josefsson.org>
47581             Bruno Haible  <bruno@clisp.org>
47582
47583         Fix test-alignof failure.
47584         * lib/alignof.h (alignof_slot): New macro.
47585         (alignof_type): New macro, with the same semantics as the previous
47586         'alignof'.
47587         (alignof): Alias to alignof_slot.
47588         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
47589         check that the results are usable as constant expressions.
47590
47591 2009-05-31  Bruno Haible  <bruno@clisp.org>
47592
47593         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
47594         * tests/test-memchr.c (main): Check that memchr does not read past the
47595         first occurrence of the byte.
47596         * tests/test-strstr.c (main): Update comment.
47597         Suggested by Eric Blake.
47598
47599 2009-05-30  Bruno Haible  <bruno@clisp.org>
47600
47601         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
47602         detail how to use dumpbin.
47603         Reported by David Byron <dbyron@dbyron.com>.
47604
47605 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47606
47607         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
47608
47609 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47610
47611         * m4/manywarnings.m4: Add GCC 4.4 warnings.
47612
47613 2009-05-28  Bruno Haible  <bruno@clisp.org>
47614
47615         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
47616         build-aux/ files.
47617
47618 2009-05-28  Simon Josefsson  <simon@josefsson.org>
47619
47620         * gnulib-tool (func_import): Transform license on build-aux/ files too.
47621
47622 2009-05-27  Simon Josefsson  <simon@josefsson.org>
47623
47624         * gnulib-tool (sed_transform_main_lib_file)
47625         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
47626         regexps.
47627
47628 2009-05-26  Simon Josefsson  <simon@josefsson.org>
47629
47630         * tests/test-strstr.c: Add another self-test.
47631         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
47632         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
47633
47634 2009-05-23  Bruno Haible  <bruno@clisp.org>
47635
47636         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
47637         change.
47638
47639 2009-05-21  Bruno Haible  <bruno@clisp.org>
47640
47641         Simplify use of mode_t varargs.
47642         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
47643         uses 'mode_t' or 'int'.
47644         * lib/openat.c (openat): Likewise.
47645         * lib/open-safer.c (open_safer): Likewise.
47646         * m4/mode_t.m4: New file.
47647         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
47648         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
47649         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
47650         * modules/open (Files): Add m4/mode_t.m4.
47651         * modules/openat (Files): Likewise.
47652         * modules/fcntl-safer (Files): Likewise.
47653         Suggested by Eric Blake.
47654
47655 2009-05-21  Pádraig Brady  <P@draigbrady.com>
47656
47657         * doc/glibc-functions/fallocate.texi: New file.
47658         * doc/gnulib.texi: Include it.
47659
47660 2009-05-21  Eric Blake  <ebb9@byu.net>
47661             Bruno Haible  <bruno@clisp.org>
47662
47663         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
47664         invocations.
47665         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47666
47667 2009-05-21  Eric Blake  <ebb9@byu.net>
47668             Bruno Haible  <bruno@clisp.org>
47669
47670         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
47671         include_next. Fix of 2008-11-20 commit.
47672         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
47673         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
47674         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
47675         NEXT_MATH_H.
47676         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
47677         instead of NEXT_MATH_H.
47678
47679 2009-05-21  Bruno Haible  <bruno@clisp.org>
47680
47681         Avoid redefinition warnings for SIZE_MAX.
47682         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
47683         Reported by Simon Josefsson.
47684
47685 2009-05-21  Bruno Haible  <bruno@clisp.org>
47686
47687         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
47688         AC_CACHE_VAL.
47689
47690 2009-05-20  Bruno Haible  <bruno@clisp.org>
47691
47692         Make zeroptr.h work on mingw.
47693         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
47694         mprotect.
47695         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
47696         * modules/memchr2-tests (configure.ac): Likewise.
47697         * modules/memcmp-tests (configure.ac): Likewise.
47698         * modules/memmem-tests (configure.ac): Likewise.
47699         * modules/memrchr-tests (configure.ac): Likewise.
47700         Reported by Simon Josefsson.
47701
47702 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47703
47704         * tests/test-glob.c: Include string.h for strcmp prototype.
47705
47706 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47707
47708         * modules/getdelim (Depends-on): Add explicit stdint, although it
47709         was implicitly already pulled in via realloc-posix.
47710         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
47711
47712 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47713
47714         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
47715         G. Christensen" <tgc@jupiterrise.com>.
47716         * m4/sys_socket_h.m4: Check for sa_family_t.
47717         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
47718         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
47719         * tests/test-sys_socket.c: Check that sa_family_t works.
47720
47721 2009-05-18  Eric Blake  <ebb9@byu.net>
47722
47723         maint.mk: allow gnulib_dir in VPATH build
47724         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
47725
47726 2009-05-15  Jim Meyering  <meyering@redhat.com>
47727
47728         maint.mk: Give gnulib_dir a default definition.
47729         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
47730         Thus, most packages no longer need to specify this variable in cfg.mk
47731
47732 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
47733
47734         rename.m4: fix typos that would make non-mingw cross-configure fail
47735         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
47736
47737 2009-05-13  Eric Blake  <ebb9@byu.net>
47738
47739         mmap-anon: avoid out-of-order autoconf expansion
47740         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
47741         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
47742         * modules/memchr-tests (Depends-on): Add extensions.
47743         * modules/memchr2-tests (Depends-on): Add extensions.
47744         * modules/memcmp-tests (Depends-on): Add extensions.
47745         * modules/memmem-tests (Depends-on): Add extensions.
47746         * modules/memrchr-tests (Depends-on): Add extensions.
47747
47748 2009-05-13  Bruno Haible  <bruno@clisp.org>
47749
47750         Make some tests ISO C 99 compliant.
47751         * tests/zerosize-ptr.h: New file.
47752         * tests/test-memchr.c: Include zerosize-ptr.h.
47753         (main): Use a zero-size object pointer instead of NULL.
47754         * tests/test-memchr2.c: Include zerosize-ptr.h.
47755         (main): Use a zero-size object pointer instead of NULL.
47756         * tests/test-memcmp.c: Include zerosize-ptr.h.
47757         (main): Use a zero-size object pointer instead of NULL.
47758         * tests/test-memmem.c: Include zerosize-ptr.h.
47759         (main): Use a zero-size object pointer instead of NULL.
47760         * tests/test-memrchr.c: Include zerosize-ptr.h.
47761         (main): Use a zero-size object pointer instead of NULL.
47762         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
47763         m4/mmap-anon.m4.
47764         (Depends-on): Add getpagesize.
47765         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47766         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
47767         m4/mmap-anon.m4.
47768         (Depends-on): Add getpagesize.
47769         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47770         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
47771         m4/mmap-anon.m4.
47772         (Depends-on): Add getpagesize.
47773         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47774         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
47775         m4/mmap-anon.m4.
47776         (Depends-on): Add getpagesize.
47777         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47778         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
47779         m4/mmap-anon.m4.
47780         (Depends-on): Add getpagesize.
47781         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47782
47783 2009-05-12  Bruno Haible  <bruno@clisp.org>
47784
47785         Tests for module 'alignof'.
47786         * modules/alignof-tests: New file.
47787         * tests/test-alignof.c: New file.
47788
47789 2009-05-12  Bruno Haible  <bruno@clisp.org>
47790
47791         Fix alignof macro.
47792         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
47793         vendor compilers that are always correct.
47794
47795 2009-05-12  Bruno Haible  <bruno@clisp.org>
47796
47797         Make the MAP_ANONYMOUS detection work on HP-UX 11.
47798         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
47799         not whether its fully works.
47800
47801 2009-05-12  Bruno Haible  <bruno@clisp.org>
47802
47803         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
47804
47805 2009-05-12  Jim Meyering  <meyering@redhat.com>
47806
47807         * top/maint.mk: Adjust backslash alignment.
47808
47809 2009-05-11  Simon Josefsson  <simon@josefsson.org>
47810
47811         * top/maint.mk: Make $(srcdir)/build-aux configurable.
47812
47813 2009-05-11  Eric Blake  <ebb9@byu.net>
47814
47815         argp: avoid undefined behavior
47816         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
47817         macros.
47818
47819 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47820
47821         * tests/test-vc-list-files-git.sh: Do git config of user.email and
47822         user.name to prevent git commit from complaining.
47823
47824 2009-05-10  Bruno Haible  <bruno@clisp.org>
47825
47826         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
47827         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
47828         it rewrites every file name only once.
47829         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
47830
47831 2009-05-08  Bruno Haible  <bruno@clisp.org>
47832
47833         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
47834         instead of 'max'.
47835
47836 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47837
47838         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
47839         sockaddr_storage test.
47840
47841 2009-05-07  Simon Josefsson  <simon@josefsson.org>
47842
47843         * modules/sys_socket (Makefile.am): Substitute
47844         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
47845         * m4/sys_socket_h.m4: Check for sockaddr_storage.
47846         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
47847         * tests/test-sys_socket.c: Check sockaddr_storage.
47848
47849 2009-05-08  Bruno Haible  <bruno@clisp.org>
47850
47851         New module 'alignof'.
47852         * lib/alignof.h: New file.
47853         * modules/alignof: New file.
47854
47855 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47856             Bruno Haible  <bruno@clisp.org>
47857
47858         Fix test-file-has-acl on FreeBSD.
47859         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
47860         mask is implicitly added.
47861         * tests/test-file-has-acl.c: Include <signal.h>.
47862         (main): Terminate the test after 5 seconds.
47863         * modules/acl-tests (configure.ac): Check for alarm function.
47864
47865 2009-05-04  Bruno Haible  <bruno@clisp.org>
47866
47867         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
47868         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
47869         * modules/errno (configure.ac): Drop AC_REQUIRE.
47870         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
47871         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
47872
47873 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47874
47875         * modules/glob-tests: New module.
47876         * tests/test-glob.c: Add.
47877
47878 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47879
47880         * modules/fnmatch-tests: New module.
47881         * tests/test-fnmatch.c: Add.
47882
47883 2009-05-04  Eric Blake  <ebb9@byu.net>
47884
47885         maint: make the new no-submodule-changes rule VPATH-safe
47886         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
47887
47888 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47889             Bruno Haible  <bruno@clisp.org>
47890
47891         acl: Fix infinite loop on FreeBSD.
47892         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
47893         of return value from acl_get_entry.
47894         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
47895         Likewise.
47896
47897 2009-05-03  Bruno Haible  <bruno@clisp.org>
47898
47899         * lib/acl-internal.h (acl_entries): Clarify return value.
47900         * lib/acl_entries.c (acl_entries): Likewise.
47901
47902 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47903
47904         Bug fix in acl module.
47905         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
47906
47907 2009-05-03  Bruno Haible  <bruno@clisp.org>
47908
47909         Create gperf-generated file in the source dir, not in the build dir.
47910         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
47911         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
47912         * modules/unicase/locale-language (unicase/locale-languages.h):
47913         Likewise.
47914         * modules/unicase/special-casing (unicase/special-casing-table.h):
47915         Likewise.
47916         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
47917         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
47918         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
47919         Reported by Ralf Wildenhues.
47920
47921 2009-05-03  Bruno Haible  <bruno@clisp.org>
47922
47923         * modules/fnmatch (Description, configure.ac): Taken from
47924         fnmatch-posix.
47925         * modules/fnmatch-posix: Turn into a symbolic reference to the
47926         'fnmatch' module, and deprecate.
47927         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
47928
47929 2009-05-03  Bruno Haible  <bruno@clisp.org>
47930
47931         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
47932         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
47933         Reported by Ralf Wildenhues.
47934
47935 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47936
47937         * m4/fnmatch.m4: Fix fnmatch re-define.
47938
47939 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47940
47941         priv-set: new module and tests; adapt write-any-file
47942         * lib/priv-set.c: New file.
47943         * lib/priv-set.h: New file.
47944         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
47945         * lib/write-any-file.c: Simplify by using priv-set module.
47946         * m4/priv-set.m4: New file.
47947         * modules/priv-set: New file.
47948         * modules/unlinkdir: Add dependency on priv-set module.
47949         * modules/write-any-file: Likewise.
47950
47951         Tests for module 'priv-set'.
47952         * modules/priv-set-tests: New file.
47953         * tests/test-priv-set.c: New file.
47954
47955 2009-05-03  Jim Meyering  <meyering@redhat.com>
47956             Bruno Haible  <bruno@clisp.org>
47957
47958         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
47959         use the converted UTF-8 variant of the name instead.
47960
47961 2009-05-03  Jim Meyering  <meyering@redhat.com>
47962
47963         tests: tighten some getdate tests
47964         * tests/test-getdate.c (main): Tighten tests: require equality,
47965         not just greater than.  Set TZ envvar to UTC0.
47966
47967 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
47968
47969         getdate: correctly interpret "next monday" when run on a Monday
47970         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
47971         that e.g., "next tues" (when run on a tuesday) results in a date
47972         that is one week in the future, and not today's date.
47973         I.e., add a week when the wday is the same as the current one.
47974         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
47975         and earlier by Martin Bernreuther and Jan Minář.
47976         * tests/test-getdate.c (main): Check that "next DAY" is always in
47977         the future and that "last DAY" is always in the past.
47978
47979 2009-05-02  Jim Meyering  <meyering@redhat.com>
47980
47981         build: ensure that a release build fails when a submodule is unclean
47982         * top/maint.mk (no-submodule-changes): New rule.
47983         (alpha beta major): Depend on it.
47984
47985 2009-05-02  Bruno Haible  <bruno@clisp.org>
47986
47987         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
47988         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
47989         shell variable gl_fnmatch_required to detect which variant is
47990         requested.
47991         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
47992         gl_FUNC_FNMATCH_POSIX.
47993         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
47994         exclude fnmatch-posix.
47995
47996 2009-05-02  Bruno Haible  <bruno@clisp.org>
47997
47998         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
47999         * modules/mbsrtowcs (License): Change to LGPLv2+.
48000         * modules/strnlen1 (License): Likewise.
48001         Reported by Simon Josefsson.
48002
48003 2009-05-02  Bruno Haible  <bruno@clisp.org>
48004
48005         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
48006         "cross".
48007         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
48008         gnulib-tool was called with option --source-base=lib.
48009
48010 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48011
48012         Use automake *-local hooks without commands, for extensibility.
48013         * modules/localcharset (Makefile.am): Rename install-exec-local
48014         rule to install-exec-localcharset, and make it a prerequisite of
48015         install-exec-local.  Likewise, rename the uninstall-local rule to
48016         uninstall-localcharset, and make it a prerequisite of the former.
48017
48018 2009-05-01  Bruno Haible  <bruno@clisp.org>
48019
48020         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
48021         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48022         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
48023         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
48024         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
48025         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48026         m4/locale-zh.m4, m4/codeset.m4.
48027
48028         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48029         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
48030         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48031         m4/locale-zh.m4.
48032
48033         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
48034         REPLACE_WCRTOMB if mbstate_t must be replaced.
48035         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
48036         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
48037
48038 2009-05-01  Bruno Haible  <bruno@clisp.org>
48039
48040         Avoid compiler warnings when redefining macros defined by <libintl.h>.
48041         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
48042         dngettext, dcngettext, textdomain, bindtextdomain,
48043         bind_textdomain_codeset): Undefine before redefining.
48044
48045 2009-04-30  Bruno Haible  <bruno@clisp.org>
48046
48047         Fix bug introduced on 2009-04-25.
48048         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
48049         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
48050         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
48051         is defined.
48052         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
48053         is defined.
48054         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
48055         is defined.
48056         Reported by Elbert_Pol <elbert.pol@gmail.com>.
48057
48058 2009-04-28  Bruno Haible  <bruno@clisp.org>
48059
48060         Comment tweaks.
48061         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
48062         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
48063         * lib/unicase.h (u*_casexfrm): Likewise.
48064         Reported by Paolo Bonzini.
48065
48066 2009-04-28  Bruno Haible  <bruno@clisp.org>
48067
48068         Fix a compilation error.
48069         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
48070         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48071         Reported by Jim Meyering.
48072
48073 2009-04-27  Bruno Haible  <bruno@clisp.org>
48074
48075         New module 'libunistring'.
48076         * modules/libunistring: New file.
48077         * m4/libunistring.m4: New file.
48078         * MODULES.html.sh (Unicode string functions): Add it.
48079
48080 2009-04-27  Eric Blake  <ebb9@byu.net>
48081
48082         maint.mk: allow package-specific header to provide <config.h>
48083         * top/maint.mk (sc_require_config_h): New variable.
48084         (sc_require_config_h, sc_require_config_h_first): Use it.
48085
48086 2009-04-27  Simon Josefsson  <simon@josefsson.org>
48087
48088         * top/maint.mk (sc_avoid_if_before_free): Except
48089         useless-if-before-free script.
48090
48091 2009-04-27  Eric Blake  <ebb9@byu.net>
48092
48093         maintainer-makefile: depend on all required helper scripts
48094         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
48095         useless-if-before-free.
48096         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
48097         version, rather than assuming gnulib checkout is available.
48098         Reported by Simen Josefsson.
48099
48100 2009-04-26  Bruno Haible  <bruno@clisp.org>
48101
48102         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
48103         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
48104         "../" or "..".
48105
48106 2009-04-26  Bruno Haible  <bruno@clisp.org>
48107
48108         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
48109         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
48110         AC_LIB_HAVE_LINKFLAGS.
48111
48112 2009-04-26  Bruno Haible  <bruno@clisp.org>
48113
48114         Simplify calling convention of u*_conv_from_encoding.
48115         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
48116         u32_conv_from_encoding): Expect a resultbuf argument and return the
48117         result directly as a pointer.
48118         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
48119         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
48120         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
48121         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
48122         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
48123         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48124         Update.
48125         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
48126         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
48127         * lib/vasnprintf.c (VASNPRINTF): Update.
48128         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
48129         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
48130         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
48131         * NEWS: Mention the change.
48132
48133 2009-04-26  Bruno Haible  <bruno@clisp.org>
48134
48135         Simplify calling convention of u*_conv_to_encoding.
48136         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48137         u32_conv_to_encoding): Expect a resultbuf argument and return the
48138         result directly as a pointer.
48139         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48140         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
48141         freeing scaled_offsets if mem_iconveha failed.
48142         * lib/unicase/u-casexfrm.h (FUNC): Update.
48143         * lib/uninorm/u-normxfrm.h (FUNC): Update.
48144         * lib/vasnprintf.c (VASNPRINTF): Update.
48145         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
48146         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
48147         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
48148         * NEWS: Mention the change.
48149
48150 2009-04-26  Bruno Haible  <bruno@clisp.org>
48151
48152         Avoid test failures on AIX and OSF/1.
48153         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
48154         malloc(0).
48155         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48156         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48157         Likewise.
48158         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
48159         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
48160         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
48161         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
48162         * doc/posix-functions/malloc.texi: Document the portability problem
48163         related to malloc(0).
48164
48165 2009-04-26  Bruno Haible  <bruno@clisp.org>
48166
48167         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
48168         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
48169         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
48170
48171 2009-04-25  Bruno Haible  <bruno@clisp.org>
48172
48173         Avoid link error when creating a namespace clean library.
48174         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
48175         as macro with arguments if already defined as an alias.
48176         * lib/signbitf.c (gl_signbitf): Don't undefine.
48177         * lib/signbitd.c (gl_signbitd): Don't undefine.
48178         * lib/signbitl.c (gl_signbitl): Don't undefine.
48179
48180 2009-04-25  Jim Meyering  <meyering@redhat.com>
48181
48182         vc-list-files: fix another quoting bug
48183         * build-aux/vc-list-files: Avoid sed backslash expansion
48184         of pathological directory names.
48185
48186 2009-04-25  Eric Blake  <ebb9@byu.net>
48187
48188         vc-list-files: fix shell quoting error
48189         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
48190         timestamp.
48191
48192 2009-04-25  Jim Meyering  <meyering@redhat.com>
48193
48194         vc-list-files: restore lost functionality with subdir argument
48195         * build-aux/vc-list-files: When given a non-"." sub-directory
48196         argument, substitute the $dir/ prefix back onto each resulting name.
48197         Otherwise, coreutils' root_tests check would fail.
48198
48199 2009-04-24  Eric Blake  <ebb9@byu.net>
48200
48201         vc-list-files: ignore git symlinks
48202         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
48203         than ls-files, to ignore git symlinks.
48204
48205         maint.mk: import improvements from m4
48206         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
48207         (move_if_change): Delete unused macro.
48208         (news-date-check, vc-diff-check): Support VPATH builds.
48209         (announcement): Likewise.  Split --bootstrap-tools list...
48210         (boostrap-tools): ...into separate list, which can be overridden
48211         in cfg.mk.
48212         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
48213         requiring dependency on useless-if-before-free module.
48214         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
48215         Support VPATH builds.
48216
48217 2009-04-24  Jim Meyering  <meyering@redhat.com>
48218
48219         maint.mk: remove coreutils-specific rules and variables
48220         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
48221         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
48222         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
48223
48224         maint.mk: remove obsolete rule
48225         * top/maint.mk (rel-check): Remove rule.
48226         (WGET, WGETFLAGS): Remove now-unused variables.
48227
48228 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48229
48230         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
48231         consistency.
48232
48233         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
48234         '$(PATH_SEPARATOR)' instead of ':'.
48235
48236 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48237
48238         * lib/getopt1.c (main): Use 'const' for static array.
48239
48240 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48241
48242         * top/maint.mk: Sync with coreutils.
48243         * NEWS: Explain incompatibilities.
48244
48245 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48246             Bruno Haible  <bruno@clisp.org>
48247
48248         Fix cross-compilation results.
48249         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
48250         statement, as third argument of AC_TRY_RUN.
48251         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
48252         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
48253         Likewise.
48254         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
48255         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
48256         Likewise.
48257         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48258         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
48259         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
48260
48261 2009-04-20  Bruno Haible  <bruno@clisp.org>
48262
48263         Avoid test failure on mingw.
48264         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
48265
48266 2009-04-20  Bruno Haible  <bruno@clisp.org>
48267
48268         Avoid compilation error on mingw.
48269         * modules/localename-tests (Depends-on): Add locale.
48270
48271 2009-04-19  Bruno Haible  <bruno@clisp.org>
48272
48273         Support for building a shared library on Windows platforms.
48274         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
48275         (main): Test the presence of UNINORM_NFC here.
48276         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
48277         (main): Test the presence of UNINORM_NFD here.
48278         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
48279         (main): Test the presence of UNINORM_NFKC here.
48280         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
48281         (main): Test the presence of UNINORM_NFKD here.
48282
48283 2009-04-19  Bruno Haible  <bruno@clisp.org>
48284
48285         Avoid a compiler warning.
48286         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
48287         Change type of variable 'sequence'.
48288
48289 2009-04-19  Bruno Haible  <bruno@clisp.org>
48290
48291         * modules/configmake (Makefile.am): When the contents of configmake.h
48292         does not change, arrange to preserve its modification time.
48293
48294 2009-04-17  Simon Josefsson  <simon@josefsson.org>
48295
48296         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
48297         gettext domain.
48298
48299 2009-04-16  Jim Meyering  <meyering@redhat.com>
48300
48301         useless-if-before-free: improve conversion code
48302         * build-aux/useless-if-before-free: Adjust code-in-comment to match
48303         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
48304
48305 2009-04-14  Bruno Haible  <bruno@clisp.org>
48306
48307         * modules/fcntl (Depends-on): Add extensions.
48308         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
48309
48310 2009-04-12  Ben Pfaff  <blp@gnu.org>
48311
48312         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
48313         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
48314
48315 2009-03-20  Ben Pfaff  <blp@gnu.org>
48316
48317         Make rename replace existing destinations on Windows.
48318         * m4/rename.m4: Add test for Mingw.
48319         * lib/rename.c: Add rename replacement that uses MoveFileEx with
48320         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
48321         * doc/posix-functions/rename.texi: Document.
48322
48323 2009-04-10  Bruno Haible  <bruno@clisp.org>
48324
48325         New include file "iconveh.h".
48326         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
48327         * lib/striconveh.h: Include it.
48328         (enum iconv_ilseq_handler): Remove definition.
48329         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
48330         striconveh.h.
48331         * lib/striconveha.c: Include striconveh.h.
48332         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
48333         * modules/striconveh (Files): Add lib/iconveh.h.
48334         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
48335         lib/striconveh.h.
48336
48337 2009-04-10  Bruno Haible  <bruno@clisp.org>
48338
48339         * lib/uniconv.h: Update comment.
48340
48341 2009-04-10  Bruno Haible  <bruno@clisp.org>
48342
48343         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
48344         always.
48345         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48346         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48347         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48348         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
48349         "unistring-notinline.h", so that the function gets defined always.
48350         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48351         * lib/unistr/u8-uctomb.c: Likewise.
48352         * lib/unistr/u16-mbtouc.c: Likewise.
48353         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48354         * lib/unistr/u16-uctomb.c: Likewise.
48355         * lib/unistr/u32-mbtouc.c: Likewise.
48356         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48357         * lib/unistr/u32-uctomb.c: Likewise.
48358
48359 2009-04-10  Bruno Haible  <bruno@clisp.org>
48360
48361         Mark 'utime' obsolete.
48362         * modules/utime (Status, Notice): New sections.
48363         Suggested by Jim Meyering.
48364
48365         Fix cross-compile guess for utime test.
48366         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
48367         autoconf.
48368         * doc/posix-functions/utime.texi: Give more precisions.
48369         Reported by Jan <ipif@ymail.com>.
48370
48371 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
48372
48373         filevercmp: correct today's change
48374         * lib/filevercmp.c: Also handle coreutils' test inputs.
48375         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
48376
48377         Fix regression in 'filevercmp' module. Thanks Sven Joachim
48378         for reporting it.
48379         * lib/filevercmp.c: Special handle for "", "." and "..".
48380         * tests/test-filevercmp.c: Enlarge the set suite.
48381
48382 2009-04-07  Jim Meyering  <meyering@redhat.com>
48383
48384         useless-if-before-free: show how to remove braced useless free, too
48385         * build-aux/useless-if-before-free: still only in a comment, though.
48386
48387 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
48388
48389         maint.mk: import changes to syntax-check macros from coreutils
48390         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
48391         Use them in the relevant macros.
48392
48393 2009-04-06  Bruno Haible  <bruno@clisp.org>
48394
48395         Fix unportable use of bit-fields.
48396         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
48397         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
48398         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
48399
48400 2009-04-06  Bruno Haible  <bruno@clisp.org>
48401
48402         Avoid test failures on AIX and OSF/1.
48403         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
48404         that malloc(0) = NULL.
48405         * tests/unicase/test-u8-tolower.c (check): Likewise.
48406         * tests/unicase/test-u8-totitle.c (check): Likewise.
48407         * tests/unicase/test-u8-toupper.c (check): Likewise.
48408         * tests/unicase/test-u16-casefold.c (check): Likewise.
48409         * tests/unicase/test-u16-tolower.c (check): Likewise.
48410         * tests/unicase/test-u16-totitle.c (check): Likewise.
48411         * tests/unicase/test-u16-toupper.c (check): Likewise.
48412         * tests/unicase/test-u32-casefold.c (check): Likewise.
48413         * tests/unicase/test-u32-tolower.c (check): Likewise.
48414         * tests/unicase/test-u32-totitle.c (check): Likewise.
48415         * tests/unicase/test-u32-toupper.c (check): Likewise.
48416         * tests/uninorm/test-u8-nfc.c (check): Likewise.
48417         * tests/uninorm/test-u8-nfd.c (check): Likewise.
48418         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
48419         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
48420         * tests/uninorm/test-u16-nfc.c (check): Likewise.
48421         * tests/uninorm/test-u16-nfd.c (check): Likewise.
48422         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
48423         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
48424         * tests/uninorm/test-u32-nfc.c (check): Likewise.
48425         * tests/uninorm/test-u32-nfd.c (check): Likewise.
48426         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
48427         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
48428
48429 2009-04-05  Bruno Haible  <bruno@clisp.org>
48430
48431         Work around an autoconf limitation.
48432         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
48433         comment line if it would be longer than 3 KB.
48434
48435 2009-04-05  Bruno Haible  <bruno@clisp.org>
48436
48437         Avoid test failure with libiconv-1.13.
48438         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
48439         of the expected test results.
48440
48441 2009-04-05  Bruno Haible  <bruno@clisp.org>
48442
48443         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
48444         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
48445         that it should be installed.
48446
48447 2009-04-05  Bruno Haible  <bruno@clisp.org>
48448
48449         * gnulib-tool: New option --copy-file.
48450         (func_usage): Document it.
48451         (func_dest_tmpfilename): Moved out of func_import.
48452         (func_add_file, func_update_file): New functions, extracted from
48453         func_import.
48454         (func_import): Update.
48455
48456 2009-04-05  Karl Berry  <karl@gnu.org>
48457
48458         * README: prominently mention gnulib-tool.
48459         Rearrange sections so getting the code is near the top.
48460
48461 2009-04-05  Bruno Haible  <bruno@clisp.org>
48462
48463         * lib/unicase.h: Mention u*_cmp2.
48464         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48465         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
48466         * lib/unicase/ulc-casecmp.c: Likewise.
48467         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
48468         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
48469         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
48470         unistr/u8-cmp.
48471         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
48472         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
48473         unistr/u16-cmp.
48474         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
48475         unistr/u32-cmp.
48476
48477         * lib/uninorm.h: Mention u*_cmp2.
48478         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48479         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
48480         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
48481         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
48482         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
48483         unistr/u8-cmp.
48484         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
48485         unistr/u16-cmp.
48486         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
48487         unistr/u32-cmp.
48488
48489         New module 'unistr/u32-cmp2'.
48490         * lib/unistr/u32-cmp2.c: New file.
48491         * modules/unistr/u32-cmp2: New file.
48492
48493         New module 'unistr/u16-cmp2'.
48494         * lib/unistr/u16-cmp2.c: New file.
48495         * modules/unistr/u16-cmp2: New file.
48496
48497         New module 'unistr/u8-cmp2'.
48498         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
48499         * lib/unistr/u8-cmp2.c: New file.
48500         * lib/unistr/u-cmp2.h: New file.
48501         * modules/unistr/u8-cmp2: New file.
48502
48503 2009-04-05  Bruno Haible  <bruno@clisp.org>
48504
48505         * lib/unictype.h (uc_property_is_valid): New macro.
48506         * tests/unictype/test-pr_byname.c (main): Use it.
48507
48508         * lib/unistr.h: Doc fixes.
48509         * lib/uniconv.h: Doc fixes.
48510         * lib/unictype.h: Doc fixes.
48511
48512 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
48513
48514         Port coreutils 7.2 to Solaris 8.
48515
48516         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
48517         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
48518         for Solaris 8.  This is a bit of a hack, as it means it's the
48519         caller's responsibility to add -lnsl if needed, but most likely it
48520         won't be needed since only getaddrinfo uses this and getaddrinfo
48521         isn't needed on Solaris 8.
48522
48523         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
48524         problem to Solaris 8 encountered with coreutils 7.2, which
48525         resulted in a message "fnmatch.c:292: warning: passing argument 4
48526         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
48527         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
48528
48529 2009-04-03  Simon Josefsson  <simon@josefsson.org>
48530
48531         * m4/ld-version-script.m4: Add FIXME comment.
48532
48533 2009-04-02  Simon Josefsson  <simon@josefsson.org>
48534
48535         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
48536         SOVERSION variable.
48537
48538 2009-04-02  Bruno Haible  <bruno@clisp.org>
48539
48540         * Makefile (info, html, dvi, pdf): Combine the rules.
48541         Suggested by Jim Meyering.
48542
48543 2009-04-01  Bruno Haible  <bruno@clisp.org>
48544
48545         * Makefile (info, html, dvi, pdf): New targets.
48546         Reported by Reuben Thomas <rrt@sc3d.org>.
48547
48548 2009-04-01  Bruno Haible  <bruno@clisp.org>
48549
48550         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
48551         can be put into PATH.
48552         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
48553
48554 2009-04-01  Bruno Haible  <bruno@clisp.org>
48555
48556         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
48557
48558 2009-04-01  Bruno Haible  <bruno@clisp.org>
48559
48560         Rename module 'visibility'.
48561         * modules/lib-symbol-visibility: Renamed from modules/visibility.
48562         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
48563         * doc/gnulib.texi: Update.
48564         * MODULES.html.sh (Misc): Update.
48565         * NEWS: Mention the change.
48566
48567 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48568
48569         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
48570         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
48571         Eric Blake <ebb9@byu.net> for review.
48572         * MODULES.html.sh: Add lib-msvc-compat.
48573         * doc/gnulib.texi: Link to new section.
48574         * m4/ld-output-def.m4: New file.
48575         * doc/ld-output-def.texi: New file.
48576
48577 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48578
48579         Rename ld-version-script to lib-symbol-versions.  Suggested by
48580         Bruno Haible <bruno@clisp.org>.
48581         * modules/ld-version-script: Renamed to lib-symbol-versions.
48582         * doc/ld-version-script.texi: Fix module name.
48583         * MODULES.html.sh: Add lib-symbol-versions.
48584
48585 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48586
48587         * modules/u64-tests: New file.
48588         * tests/test-u64.c: New file.
48589
48590 2009-03-04  Simon Josefsson  <simon@josefsson.org>
48591
48592         * MODULES.html.sh: Mention u64.
48593         * modules/u64: New module.
48594         * modules/crypto/sha512: Depend on u64 module instead of providing
48595         u64.h.
48596
48597 2009-03-27  Eric Blake  <ebb9@byu.net>
48598
48599         test-strerror: make debugging EAI_SYSTEM easier
48600         * modules/getaddrinfo-tests (Depends-on): Add strerror.
48601         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
48602         failure was EAI_SYSTEM.
48603
48604 2009-03-25  Bruno Haible  <bruno@clisp.org>
48605
48606         Fix a problem with --enable-relocatable on Solaris 7.
48607         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
48608         since 2008-02-24.
48609
48610 2009-03-25  Eric Blake  <ebb9@byu.net>
48611
48612         test-sockets: avoid gcc warning
48613         * tests/test-sockets.c (main): Silence compiler warning.
48614
48615 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48616
48617         New modules nproc, pthread, contributed by Glen Lenker.
48618
48619         * MODULES.html.sh: Add pthread, nproc.
48620         * lib/nproc.c: New file.
48621         * lib/nproc.h: New file.
48622         * lib/pthread.in.h: New file.
48623         * m4/pthread.m4: New file.
48624         * modules/nproc: New file.
48625         * modules/pthread: New file.
48626
48627 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48628
48629         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
48630         New variable.
48631
48632 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
48633
48634         filevercmp: handle simple~ and numbered.~3~ backup suffixes
48635         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
48636         * tests/test-filevercmp.c: Add tests for backup suffixes.
48637
48638 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48639
48640         * modules/stdlib (Depends-on): Add stdint, needed when defining
48641         struct random_data on, for example, HP-UX 10.20.  Reported by
48642         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48643
48644 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48645
48646         * lib/readline.c (readline): Call fflush on stdout after printing
48647         prompt.
48648
48649 2009-03-20  Bruno Haible  <bruno@clisp.org>
48650
48651         Remove dependency from 'close' module to -lws2_32 on native Windows.
48652         * lib/close-hook.h: New file.
48653         * lib/close-hook.c: New file.
48654         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
48655         w32sock.h.
48656         (_gl_close_fd_maybe_socket): Remove function.
48657         (rpl_close): Invoke execute_all_close_hooks instead of
48658         _gl_close_fd_maybe_socket.
48659         * lib/sockets.c: Include close-hook.h, w32sock.h.
48660         (close_fd_maybe_socket): New function, essentially from lib/close.c.
48661         (close_sockets_hook): New variable.
48662         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
48663         (gl_sockets_cleanup): Unregister it.
48664         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
48665         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
48666         * modules/close-hook: New file.
48667         * modules/close (Files): Remove lib/w32sock.h.
48668         (Depends-on): Add close-hook.
48669         (Link): Remove section.
48670         * modules/sockets (Files): Add lib/w32sock.h.
48671         (Depends-on): Add close-hook.
48672         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
48673         invocation.
48674         * NEWS: Mention that LIB_CLOSE is gone.
48675
48676 2009-03-23  Eric Blake  <ebb9@byu.net>
48677
48678         signal-tests: test previous patch
48679         * tests/test-signal.c: New file.
48680         * modules/signal-tests: Likewise.
48681
48682         signal.h: always support 'volatile sig_atomic_t'
48683         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
48684         (gl_SIGNAL_H_DEFAULTS): Add a default.
48685         * modules/signal (Makefile.am): Substitute if needed.
48686         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
48687         users can blindly add volatile.
48688         * doc/posix-headers/signal.texi (signal.h): Document it.
48689         Reported by Matthew Woehlke.
48690
48691 2009-03-23  Jim Meyering  <meyering@redhat.com>
48692
48693         pathmax: PATH_MAX: use pathconf only when available
48694         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
48695         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
48696         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
48697         This avoids a link failure in a PSP cross-compilation environment
48698         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
48699
48700         * lib/vasnprintf.c (divide): Fix typo in comment.
48701
48702 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48703
48704         * gnulib-tool (func_filter_filelist): Fix comment.
48705
48706 2009-03-20  Bruno Haible  <bruno@clisp.org>
48707
48708         Make sockets.h self-contained.
48709         * lib/sockets.c: Include sockets.h first.
48710         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
48711
48712 2009-03-19  Eric Blake  <ebb9@byu.net>
48713
48714         doc: mention more functions added in cygwin 1.7.0
48715         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
48716         addition.
48717         * doc/posix-functions/log2f.texi: Likewise.
48718
48719 2009-03-19  Jim Meyering  <meyering@redhat.com>
48720
48721         fsusage: avoid syntax error due to statement-before-declaration
48722         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
48723         after all declarations.  Reported by Matthew Woehlke in
48724         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
48725
48726 2009-03-18  Eric Blake  <ebb9@byu.net>
48727
48728         build-aux/compile: sync from automake
48729         * build-aux/compile: New file, from automake.
48730         * config/srclist.txt: Mention build-aux/compile.
48731
48732 2009-03-17  Bruno Haible  <bruno@clisp.org>
48733
48734         * lib/git-merge-changelog.c: Fix typo in comment.
48735         Reported by Reuben Thomas <rrt@sc3d.org>.
48736
48737 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
48738
48739         * m4/regex.m4: update and improve help for
48740         --without-included-regex.
48741
48742 2009-03-17  Simon Josefsson  <simon@josefsson.org>
48743
48744         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
48745         failure on missing include files.
48746
48747 2009-03-17  Eric Blake  <ebb9@byu.net>
48748
48749         doc: mention more functions added in cygwin 1.7.0
48750         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
48751         addition.
48752         * doc/posix-functions/fwscanf.texi: Likewise.
48753         * doc/posix-functions/swprintf.texi: Likewise.
48754         * doc/posix-functions/swscanf.texi: Likewise.
48755         * doc/posix-functions/vfwprintf.texi: Likewise.
48756         * doc/posix-functions/vfwscanf.texi: Likewise.
48757         * doc/posix-functions/vswprintf.texi: Likewise.
48758         * doc/posix-functions/vswscanf.texi: Likewise.
48759         * doc/posix-functions/vwprintf.texi: Likewise.
48760         * doc/posix-functions/vwscanf.texi: Likewise.
48761         * doc/posix-functions/wcscasecmp.texi: Likewise.
48762         * doc/posix-functions/wcsdup.texi: Likewise.
48763         * doc/posix-functions/wcsftime.texi: Likewise.
48764         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48765         * doc/posix-functions/wprintf.texi: Likewise.
48766         * doc/posix-functions/wscanf.texi: Likewise.
48767         * doc/glibc-functions/gethostbyname2.texi: Likewise.
48768
48769 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48770
48771         maint.mk: really add $(AM_MAKEFLAGS)
48772         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
48773         was inadvertently omitted in the last commit.
48774         Spotted by Bruno Haible.
48775
48776         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
48777         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
48778         $(AM_MAKEFLAGS)' rather than plain `make'.
48779
48780         gnulib-tool: execute $MAKE not make
48781         * gnulib-tool: Default $MAKE to 'make'.
48782         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
48783         than make.  Initialize $MAKE in the do-autobuild script.
48784
48785         gnulib-tool: use $MAKE not make in generated files
48786         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
48787         make, in generated files.  Initialize $MAKE in the do-autobuild
48788         script.
48789
48790         * top/GNUmakefile (_have-git-version-gen): Fix typo.
48791
48792         GNUmakefile: disable parallelism only for multiple, recursive targets
48793         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
48794         additions in the Makefile.
48795         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
48796         by Automake.
48797         (.NOTPARALLEL): Only disable parallel builds if multiple targets
48798         are listed on the command line and at least one of them is
48799         listed in $(ALL_RECURSIVE_TARGETS).
48800
48801 2009-03-14  Bruno Haible  <bruno@clisp.org>
48802
48803         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
48804         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
48805         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
48806         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
48807         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
48808         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
48809         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
48810         unistr/u8-uctomb.
48811         * modules/unistr/u8-strchr (Depends-on): Likewise.
48812         * modules/unistr/u8-strrchr (Depends-on): Likewise.
48813         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
48814         unistr/u16-uctomb.
48815         * modules/unistr/u16-strchr (Depends-on): Likewise.
48816         * modules/unistr/u16-strrchr (Depends-on): Likewise.
48817
48818 2009-03-12  Bruno Haible  <bruno@clisp.org>
48819
48820         Work around select() bug on Interix 3.5.
48821         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
48822         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
48823         * m4/select.m4: New file.
48824         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
48825         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
48826         * modules/select (Files): Add m4/select.m4.
48827         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
48828         * modules/nanosleep (Depends-on): Add select.
48829         * modules/poll (Depends-on): Likewise.
48830         * doc/posix-functions/select.texi: Mention the Interix bug.
48831         Reported by Markus Duft <mduft@gentoo.org>.
48832
48833         * lib/select.c: Renamed from lib/winsock-select.c.
48834         * modules/select (Files): Add lib/select.c, remove
48835         lib/winsock-select.c.
48836         (configure.ac): Update.
48837
48838 2009-03-12  Jim Meyering  <meyering@redhat.com>
48839
48840         avoid gcc warnings about unused macro definitions
48841         * lib/readtokens.c (STREQ): Remove unused definition.
48842         * lib/xmalloc.c (SIZE_MAX): Likewise.
48843         * lib/openat-die.c (N_): Likewise.
48844         * lib/mountlist.c (SIZE_MAX): Remove definition.
48845         Instead, include <stdint.h>.
48846         * lib/readutmp.c: Likewise.
48847         * modules/readutmp (Depends-on): Add stdint.
48848         * modules/mountlist (Depends-on): Add stdint.
48849         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
48850
48851 2009-03-10  Bruno Haible  <bruno@clisp.org>
48852
48853         Tests for module 'mbmemcasecoll'.
48854         * modules/mbmemcasecoll-tests: New file.
48855         * tests/test-mbmemcasecoll1.sh: New file.
48856         * tests/test-mbmemcasecoll2.sh: New file.
48857         * tests/test-mbmemcasecoll3.sh: New file.
48858         * tests/test-mbmemcasecoll.c: New file.
48859
48860         New module 'mbmemcasecoll'.
48861         * lib/mbmemcasecoll.h: New file.
48862         * lib/mbmemcasecoll.c: New file.
48863         * modules/mbmemcasecoll: New file.
48864
48865         * tests/test-mbmemcasecmp.h: New file, extracted from
48866         tests/test-mbmemcasecmp.c.
48867         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
48868         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
48869         (main): Update.
48870         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
48871
48872 2009-03-09  Bruno Haible  <bruno@clisp.org>
48873
48874         Tests for module 'mbmemcasecmp'.
48875         * modules/mbmemcasecmp-tests: New file.
48876         * tests/test-mbmemcasecmp1.sh: New file.
48877         * tests/test-mbmemcasecmp2.sh: New file.
48878         * tests/test-mbmemcasecmp3.sh: New file.
48879         * tests/test-mbmemcasecmp.c: New file.
48880
48881         New module 'mbmemcasecmp'.
48882         * lib/mbmemcasecmp.h: New file.
48883         * lib/mbmemcasecmp.c: New file.
48884         * modules/mbmemcasecmp: New file.
48885
48886 2009-03-09  Bruno Haible  <bruno@clisp.org>
48887
48888         Tests for module 'unicase/ulc-casecoll'.
48889         * modules/unicase/ulc-casecoll-tests: New file.
48890         * tests/unicase/test-ulc-casecoll1.sh: New file.
48891         * tests/unicase/test-ulc-casecoll2.sh: New file.
48892         * tests/unicase/test-ulc-casecoll.c: New file.
48893
48894         New module 'unicase/ulc-casecoll'.
48895         * lib/unicase.h (ulc_casecoll): New declaration.
48896         * lib/unicase/ulc-casecoll.c: New file.
48897         * modules/unicase/ulc-casecoll: New file.
48898
48899         New module 'unicase/ulc-casexfrm'.
48900         * lib/unicase.h (ulc_casexfrm): New declaration.
48901         * lib/unicase/ulc-casexfrm.c: New file.
48902         * modules/unicase/ulc-casexfrm: New file.
48903
48904 2009-03-09  Bruno Haible  <bruno@clisp.org>
48905
48906         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
48907         invocations.
48908
48909         * m4/mbscasecmp.m4: Remove file.
48910         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
48911         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
48912
48913         * m4/mbscasestr.m4: Remove file.
48914         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
48915         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
48916
48917         * m4/mbschr.m4: Remove file.
48918         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
48919         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
48920
48921         * m4/mbscspn.m4: Remove file.
48922         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
48923         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
48924
48925         * m4/mbslen.m4: Remove file.
48926         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
48927         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
48928
48929         * m4/mbsncasecmp.m4: Remove file.
48930         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
48931         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
48932
48933         * m4/mbsnlen.m4: Remove file.
48934         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
48935         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
48936
48937         * m4/mbspbrk.m4: Remove file.
48938         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
48939         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
48940
48941         * m4/mbspcasecmp.m4: Remove file.
48942         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
48943         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
48944
48945         * m4/mbsrchr.m4: Remove file.
48946         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
48947         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
48948
48949         * m4/mbssep.m4: Remove file.
48950         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
48951         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
48952
48953         * m4/mbsspn.m4: Remove file.
48954         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
48955         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
48956
48957         * m4/mbsstr.m4: Remove file.
48958         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
48959         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
48960
48961         * m4/mbstok_r.m4: Remove file.
48962         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
48963         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
48964
48965         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
48966
48967         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
48968         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
48969
48970         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
48971
48972 2009-03-08  Bruno Haible  <bruno@clisp.org>
48973
48974         Tests for module 'unicase/ulc-casecmp'.
48975         * modules/unicase/ulc-casecmp-tests: New file.
48976         * tests/unicase/test-ulc-casecmp1.sh: New file.
48977         * tests/unicase/test-ulc-casecmp2.sh: New file.
48978         * tests/unicase/test-ulc-casecmp.c: New file.
48979
48980         New module 'unicase/ulc-casecmp'.
48981         * lib/unicase.h (ulc_casecmp): New declaration.
48982         * lib/unicase/ulc-casecmp.c: New file.
48983         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
48984         'const SRC_UNIT *'.
48985         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
48986         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
48987         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
48988         * modules/unicase/ulc-casecmp: New file.
48989
48990         Tests for module 'unicase/u32-is-cased'.
48991         * modules/unicase/u32-is-cased-tests: New file.
48992         * tests/unicase/test-u32-is-cased.c: New file.
48993
48994         Tests for module 'unicase/u16-is-cased'.
48995         * modules/unicase/u16-is-cased-tests: New file.
48996         * tests/unicase/test-u16-is-cased.c: New file.
48997
48998         Tests for module 'unicase/u8-is-cased'.
48999         * modules/unicase/u8-is-cased-tests: New file.
49000         * tests/unicase/test-u8-is-cased.c: New file.
49001         * tests/unicase/test-is-cased.h: New file.
49002
49003         New module 'unicase/u32-is-cased'.
49004         * lib/unicase/u32-is-cased.c: New file.
49005         * modules/unicase/u32-is-cased: New file.
49006
49007         New module 'unicase/u16-is-cased'.
49008         * lib/unicase/u16-is-cased.c: New file.
49009         * modules/unicase/u16-is-cased: New file.
49010
49011         New module 'unicase/u8-is-cased'.
49012         * lib/unicase/u8-is-cased.c: New file.
49013         * lib/unicase/u-is-cased.h: New file.
49014         * modules/unicase/u8-is-cased: New file.
49015
49016         Tests for module 'unicase/u32-is-casefolded'.
49017         * modules/unicase/u32-is-casefolded-tests: New file.
49018         * tests/unicase/test-u32-is-casefolded.c: New file.
49019
49020         Tests for module 'unicase/u16-is-casefolded'.
49021         * modules/unicase/u16-is-casefolded-tests: New file.
49022         * tests/unicase/test-u16-is-casefolded.c: New file.
49023
49024         Tests for module 'unicase/u8-is-casefolded'.
49025         * modules/unicase/u8-is-casefolded-tests: New file.
49026         * tests/unicase/test-u8-is-casefolded.c: New file.
49027         * tests/unicase/test-is-casefolded.h: New file.
49028
49029         New module 'unicase/u32-is-casefolded'.
49030         * lib/unicase/u32-is-casefolded.c: New file.
49031         * modules/unicase/u32-is-casefolded: New file.
49032
49033         New module 'unicase/u16-is-casefolded'.
49034         * lib/unicase/u16-is-casefolded.c: New file.
49035         * modules/unicase/u16-is-casefolded: New file.
49036
49037         New module 'unicase/u8-is-casefolded'.
49038         * lib/unicase/u8-is-casefolded.c: New file.
49039         * modules/unicase/u8-is-casefolded: New file.
49040
49041         Tests for module 'unicase/u32-is-titlecase'.
49042         * modules/unicase/u32-is-titlecase-tests: New file.
49043         * tests/unicase/test-u32-is-titlecase.c: New file.
49044
49045         Tests for module 'unicase/u16-is-titlecase'.
49046         * modules/unicase/u16-is-titlecase-tests: New file.
49047         * tests/unicase/test-u16-is-titlecase.c: New file.
49048
49049         Tests for module 'unicase/u8-is-titlecase'.
49050         * modules/unicase/u8-is-titlecase-tests: New file.
49051         * tests/unicase/test-u8-is-titlecase.c: New file.
49052         * tests/unicase/test-is-titlecase.h: New file.
49053
49054         New module 'unicase/u32-is-titlecase'.
49055         * lib/unicase/u32-is-titlecase.c: New file.
49056         * modules/unicase/u32-is-titlecase: New file.
49057
49058         New module 'unicase/u16-is-titlecase'.
49059         * lib/unicase/u16-is-titlecase.c: New file.
49060         * modules/unicase/u16-is-titlecase: New file.
49061
49062         New module 'unicase/u8-is-titlecase'.
49063         * lib/unicase/u8-is-titlecase.c: New file.
49064         * modules/unicase/u8-is-titlecase: New file.
49065
49066         Tests for module 'unicase/u32-is-lowercase'.
49067         * modules/unicase/u32-is-lowercase-tests: New file.
49068         * tests/unicase/test-u32-is-lowercase.c: New file.
49069
49070         Tests for module 'unicase/u16-is-lowercase'.
49071         * modules/unicase/u16-is-lowercase-tests: New file.
49072         * tests/unicase/test-u16-is-lowercase.c: New file.
49073
49074         Tests for module 'unicase/u8-is-lowercase'.
49075         * modules/unicase/u8-is-lowercase-tests: New file.
49076         * tests/unicase/test-u8-is-lowercase.c: New file.
49077         * tests/unicase/test-is-lowercase.h: New file.
49078
49079         New module 'unicase/u32-is-lowercase'.
49080         * lib/unicase/u32-is-lowercase.c: New file.
49081         * modules/unicase/u32-is-lowercase: New file.
49082
49083         New module 'unicase/u16-is-lowercase'.
49084         * lib/unicase/u16-is-lowercase.c: New file.
49085         * modules/unicase/u16-is-lowercase: New file.
49086
49087         New module 'unicase/u8-is-lowercase'.
49088         * lib/unicase/u8-is-lowercase.c: New file.
49089         * modules/unicase/u8-is-lowercase: New file.
49090
49091         Tests for module 'unicase/u32-is-uppercase'.
49092         * modules/unicase/u32-is-uppercase-tests: New file.
49093         * tests/unicase/test-u32-is-uppercase.c: New file.
49094
49095         Tests for module 'unicase/u16-is-uppercase'.
49096         * modules/unicase/u16-is-uppercase-tests: New file.
49097         * tests/unicase/test-u16-is-uppercase.c: New file.
49098
49099         Tests for module 'unicase/u8-is-uppercase'.
49100         * modules/unicase/u8-is-uppercase-tests: New file.
49101         * tests/unicase/test-u8-is-uppercase.c: New file.
49102         * tests/unicase/test-is-uppercase.h: New file.
49103
49104         New module 'unicase/u32-is-uppercase'.
49105         * lib/unicase/u32-is-uppercase.c: New file.
49106         * modules/unicase/u32-is-uppercase: New file.
49107
49108         New module 'unicase/u16-is-uppercase'.
49109         * lib/unicase/u16-is-uppercase.c: New file.
49110         * modules/unicase/u16-is-uppercase: New file.
49111
49112         New module 'unicase/u8-is-uppercase'.
49113         * lib/unicase/u8-is-uppercase.c: New file.
49114         * modules/unicase/u8-is-uppercase: New file.
49115
49116         New module 'unicase/u32-is-invariant'.
49117         * lib/unicase/u32-is-invariant.c: New file.
49118         * modules/unicase/u32-is-invariant: New file.
49119
49120         New module 'unicase/u16-is-invariant'.
49121         * lib/unicase/u16-is-invariant.c: New file.
49122         * modules/unicase/u16-is-invariant: New file.
49123
49124         New module 'unicase/u8-is-invariant'.
49125         * lib/unicase/u8-is-invariant.c: New file.
49126         * lib/unicase/invariant.h: New file.
49127         * lib/unicase/u-is-invariant.h: New file.
49128         * modules/unicase/u8-is-invariant: New file.
49129
49130         Tests for module 'unicase/u32-casecoll'.
49131         * modules/unicase/u32-casecoll-tests: New file.
49132         * tests/unicase/test-u32-casecoll.c: New file.
49133
49134         Tests for module 'unicase/u16-casecoll'.
49135         * modules/unicase/u16-casecoll-tests: New file.
49136         * tests/unicase/test-u16-casecoll.c: New file.
49137
49138         Tests for module 'unicase/u8-casecoll'.
49139         * modules/unicase/u8-casecoll-tests: New file.
49140         * tests/unicase/test-u8-casecoll.c: New file.
49141
49142         New module 'unicase/u32-casecoll'.
49143         * lib/unicase/u32-casecoll.c: New file.
49144         * modules/unicase/u32-casecoll: New file.
49145
49146         New module 'unicase/u16-casecoll'.
49147         * lib/unicase/u16-casecoll.c: New file.
49148         * modules/unicase/u16-casecoll: New file.
49149
49150         New module 'unicase/u8-casecoll'.
49151         * lib/unicase/u8-casecoll.c: New file.
49152         * lib/unicase/u-casecoll.h: New file.
49153         * modules/unicase/u8-casecoll: New file.
49154
49155         New module 'unicase/u32-casexfrm'.
49156         * lib/unicase/u32-casexfrm.c: New file.
49157         * modules/unicase/u32-casexfrm: New file.
49158
49159         New module 'unicase/u16-casexfrm'.
49160         * lib/unicase/u16-casexfrm.c: New file.
49161         * modules/unicase/u16-casexfrm: New file.
49162
49163         New module 'unicase/u8-casexfrm'.
49164         * lib/unicase/u8-casexfrm.c: New file.
49165         * lib/unicase/u-casexfrm.h: New file.
49166         * modules/unicase/u8-casexfrm: New file.
49167
49168         Tests for module 'unicase/u32-casecmp'.
49169         * modules/unicase/u32-casecmp-tests: New file.
49170         * tests/unicase/test-u32-casecmp.c: New file.
49171
49172         Tests for module 'unicase/u16-casecmp'.
49173         * modules/unicase/u16-casecmp-tests: New file.
49174         * tests/unicase/test-u16-casecmp.c: New file.
49175
49176         Tests for module 'unicase/u8-casecmp'.
49177         * modules/unicase/u8-casecmp-tests: New file.
49178         * tests/unicase/test-u8-casecmp.c: New file.
49179         * tests/unicase/test-casecmp.h: New file.
49180
49181         New module 'unicase/u32-casecmp'.
49182         * lib/unicase/u32-casecmp.c: New file.
49183         * modules/unicase/u32-casecmp: New file.
49184
49185         New module 'unicase/u16-casecmp'.
49186         * lib/unicase/u16-casecmp.c: New file.
49187         * modules/unicase/u16-casecmp: New file.
49188
49189         New module 'unicase/u8-casecmp'.
49190         * lib/unicase/u8-casecmp.c: New file.
49191         * lib/unicase/u-casecmp.h: New file.
49192         * modules/unicase/u8-casecmp: New file.
49193
49194         Tests for module 'unicase/u32-casefold'.
49195         * modules/unicase/u32-casefold-tests: New file.
49196         * tests/unicase/test-u32-casefold.c: New file.
49197
49198         Tests for module 'unicase/u16-casefold'.
49199         * modules/unicase/u16-casefold-tests: New file.
49200         * tests/unicase/test-u16-casefold.c: New file.
49201
49202         Tests for module 'unicase/u8-casefold'.
49203         * modules/unicase/u8-casefold-tests: New file.
49204         * tests/unicase/test-u8-casefold.c: New file.
49205
49206         New module 'unicase/u32-casefold'.
49207         * lib/unicase/u32-casefold.c: New file.
49208         * modules/unicase/u32-casefold: New file.
49209
49210         New module 'unicase/u16-casefold'.
49211         * lib/unicase/u16-casefold.c: New file.
49212         * modules/unicase/u16-casefold: New file.
49213
49214         New module 'unicase/u8-casefold'.
49215         * lib/unicase/u8-casefold.c: New file.
49216         * lib/unicase/u-casefold.h: New file.
49217         * modules/unicase/u8-casefold: New file.
49218
49219         New module 'unicase/tocasefold'.
49220         * lib/unicase/casefold.h: New file.
49221         * lib/unicase/tocasefold.c: New file.
49222         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
49223         * modules/unicase/tocasefold: New file.
49224
49225         Tests for module 'unicase/u32-totitle'.
49226         * modules/unicase/u32-totitle-tests: New file.
49227         * tests/unicase/test-u32-totitle.c: New file.
49228
49229         Tests for module 'unicase/u16-totitle'.
49230         * modules/unicase/u16-totitle-tests: New file.
49231         * tests/unicase/test-u16-totitle.c: New file.
49232
49233         Tests for module 'unicase/u8-totitle'.
49234         * modules/unicase/u8-totitle-tests: New file.
49235         * tests/unicase/test-u8-totitle.c: New file.
49236
49237         New module 'unicase/u32-totitle'.
49238         * lib/unicase/u32-totitle.c: New file.
49239         * modules/unicase/u32-totitle: New file.
49240
49241         New module 'unicase/u16-totitle'.
49242         * lib/unicase/u16-totitle.c: New file.
49243         * modules/unicase/u16-totitle: New file.
49244
49245         New module 'unicase/u8-totitle'.
49246         * lib/unicase/u8-totitle.c: New file.
49247         * lib/unicase/u-totitle.h: New file.
49248         * modules/unicase/u8-totitle: New file.
49249
49250         Tests for module 'unicase/u32-tolower'.
49251         * modules/unicase/u32-tolower-tests: New file.
49252         * tests/unicase/test-u32-tolower.c: New file.
49253
49254         Tests for module 'unicase/u16-tolower'.
49255         * modules/unicase/u16-tolower-tests: New file.
49256         * tests/unicase/test-u16-tolower.c: New file.
49257
49258         Tests for module 'unicase/u8-tolower'.
49259         * modules/unicase/u8-tolower-tests: New file.
49260         * tests/unicase/test-u8-tolower.c: New file.
49261
49262         New module 'unicase/u32-tolower'.
49263         * lib/unicase/u32-tolower.c: New file.
49264         * modules/unicase/u32-tolower: New file.
49265
49266         New module 'unicase/u16-tolower'.
49267         * lib/unicase/u16-tolower.c: New file.
49268         * modules/unicase/u16-tolower: New file.
49269
49270         New module 'unicase/u8-tolower'.
49271         * lib/unicase/u8-tolower.c: New file.
49272         * modules/unicase/u8-tolower: New file.
49273
49274         Tests for module 'unicase/u32-toupper'.
49275         * modules/unicase/u32-toupper-tests: New file.
49276         * tests/unicase/test-u32-toupper.c: New file.
49277
49278         Tests for module 'unicase/u16-toupper'.
49279         * modules/unicase/u16-toupper-tests: New file.
49280         * tests/unicase/test-u16-toupper.c: New file.
49281
49282         Tests for module 'unicase/u8-toupper'.
49283         * modules/unicase/u8-toupper-tests: New file.
49284         * tests/unicase/test-u8-toupper.c: New file.
49285
49286         New module 'unicase/u32-toupper'.
49287         * lib/unicase/u32-toupper.c: New file.
49288         * modules/unicase/u32-toupper: New file.
49289
49290         New module 'unicase/u16-toupper'.
49291         * lib/unicase/u16-toupper.c: New file.
49292         * modules/unicase/u16-toupper: New file.
49293
49294         New module 'unicase/u8-toupper'.
49295         * lib/unicase/u8-toupper.c: New file.
49296         * modules/unicase/u8-toupper: New file.
49297
49298         New module 'unicase/u32-casemap'.
49299         * lib/unicase/u32-casemap.c: New file.
49300         * modules/unicase/u32-casemap: New file.
49301
49302         New module 'unicase/u16-casemap'.
49303         * lib/unicase/u16-casemap.c: New file.
49304         * modules/unicase/u16-casemap: New file.
49305
49306         New module 'unicase/u8-casemap'.
49307         * lib/unicase/unicasemap.h: New file.
49308         * lib/unicase/u8-casemap.c: New file.
49309         * lib/unicase/u-casemap.h: New file.
49310         * modules/unicase/u8-casemap: New file.
49311
49312         New module 'unicase/special-casing'.
49313         * lib/unicase/special-casing.h: New file.
49314         * lib/unicase/special-casing.c: New file.
49315         * lib/unicase/special-casing-table.gperf: New file, generated by
49316         gen-uni-tables.c.
49317         * modules/unicase/special-casing: New file.
49318
49319         Tests for module 'unicase/locale-language'.
49320         * modules/unicase/locale-language-tests: New file.
49321         * tests/unicase/test-locale-language.sh: New file.
49322         * tests/unicase/test-locale-language.c: New file.
49323
49324         New module 'unicase/locale-language'.
49325         * lib/unicase/locale-language.c: New file.
49326         * lib/unicase/locale-languages.gperf: New file.
49327         * modules/unicase/locale-language: New file.
49328
49329         Generate more tables for case conversion and case folding.
49330         * lib/gen-uni-tables.c (SCC_*): New enum items.
49331         (struct special_casing_rule): New type.
49332         (casing_rules, num_casing_rules, allocated_casing_rules): New
49333         variables.
49334         (add_casing_rule, fill_casing_rules): New functions.
49335         (struct casefold_rule): New type.
49336         (casefolding_rules, num_casefolding_rules,
49337         allocated_casefolding_rules): New variables.
49338         (fill_casefolding_rules): New function.
49339         (unicode_casefold): New variable.
49340         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
49341         sort_casing_rules, output_casing_rules): New functions.
49342         (main): Accept to more arguments: SpecialCasing.txt and
49343         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
49344         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
49345         Output mapping for casefolding.
49346
49347         * lib/unicase.h: Include stdbool.h, uninorm.h.
49348         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
49349         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
49350         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
49351         arguments.
49352         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
49353         resultp arguments.
49354         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
49355         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
49356         resultp arguments.
49357         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
49358         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
49359         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
49360         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
49361         declarations.
49362         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
49363
49364 2009-03-08  Bruno Haible  <bruno@clisp.org>
49365
49366         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49367         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
49368         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
49369         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49370
49371 2009-03-07  Bruno Haible  <bruno@clisp.org>
49372
49373         Adjust u*_normcmp, u*_normcoll API.
49374         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49375         u16_normcoll, u32_normcoll): Change failure conventions.
49376         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
49377         errno and return -1.
49378         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49379
49380 2009-03-07  Bruno Haible  <bruno@clisp.org>
49381
49382         Tests for module 'uninorm/u32-normcoll'.
49383         * modules/uninorm/u32-normcoll-tests: New file.
49384         * tests/uninorm/test-u32-normcoll.c: New file.
49385
49386         Tests for module 'uninorm/u16-normcoll'.
49387         * modules/uninorm/u16-normcoll-tests: New file.
49388         * tests/uninorm/test-u16-normcoll.c: New file.
49389
49390         Tests for module 'uninorm/u8-normcoll'.
49391         * modules/uninorm/u8-normcoll-tests: New file.
49392         * tests/uninorm/test-u8-normcoll.c: New file.
49393
49394 2009-03-07  Bruno Haible  <bruno@clisp.org>
49395
49396         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
49397         tests/uninorm/test-u32-normcmp.c.
49398         * tests/uninorm/test-u32-normcmp.c: Include it.
49399         (test_nonascii): New function, extracted from main. Add some more
49400         tests.
49401         (main): Invoke test_ascii and test_nonascii.
49402         * modules/uninorm/u32-normcmp-tests (Files): Add
49403         tests/uninorm/test-u32-normcmp.h.
49404         (Depends-on): Remove uninorm/u32-normcmp.
49405
49406         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
49407         tests/uninorm/test-u16-normcmp.c.
49408         * tests/uninorm/test-u16-normcmp.c: Include it.
49409         (test_nonascii): New function, extracted from main. Add some more
49410         tests.
49411         (main): Invoke test_ascii and test_nonascii.
49412         * modules/uninorm/u16-normcmp-tests (Files): Add
49413         tests/uninorm/test-u16-normcmp.h.
49414         (Depends-on): Remove uninorm/u16-normcmp.
49415
49416         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
49417         tests/uninorm/test-u8-normcmp.c.
49418         * tests/uninorm/test-u8-normcmp.c: Include it.
49419         (test_nonascii): New function, extracted from main. Add some more
49420         tests.
49421         (main): Invoke test_ascii and test_nonascii.
49422         * modules/uninorm/u8-normcmp-tests (Files): Add
49423         tests/uninorm/test-u8-normcmp.h.
49424         (Depends-on): Remove uninorm/u8-normcmp.
49425
49426 2009-03-07  Bruno Haible  <bruno@clisp.org>
49427
49428         New module 'uninorm/u32-normcoll'.
49429         * lib/uninorm/u32-normcoll.c: New file.
49430         * modules/uninorm/u32-normcoll: New file.
49431
49432         New module 'uninorm/u16-normcoll'.
49433         * lib/uninorm/u16-normcoll.c: New file.
49434         * modules/uninorm/u16-normcoll: New file.
49435
49436         New module 'uninorm/u8-normcoll'.
49437         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
49438         declarations.
49439         * lib/uninorm/u8-normcoll.c: New file.
49440         * lib/uninorm/u-normcoll.h: New file.
49441         * modules/uninorm/u8-normcoll: New file.
49442
49443         New module 'uninorm/u32-normxfrm'.
49444         * lib/uninorm/u32-normxfrm.c: New file.
49445         * modules/uninorm/u32-normxfrm: New file.
49446
49447         New module 'uninorm/u16-normxfrm'.
49448         * lib/uninorm/u16-normxfrm.c: New file.
49449         * modules/uninorm/u16-normxfrm: New file.
49450
49451         New module 'uninorm/u8-normxfrm'.
49452         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
49453         declarations.
49454         * lib/uninorm/u8-normxfrm.c: New file.
49455         * lib/uninorm/u-normxfrm.h: New file.
49456         * modules/uninorm/u8-normxfrm: New file.
49457
49458 2009-03-07  Bruno Haible  <bruno@clisp.org>
49459
49460         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
49461         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
49462         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
49463
49464 2009-03-07  Bruno Haible  <bruno@clisp.org>
49465
49466         New module 'memxfrm'.
49467         * lib/memxfrm.h: New file.
49468         * lib/memxfrm.c: New file.
49469         * modules/memxfrm: New file.
49470
49471 2009-03-07  Bruno Haible  <bruno@clisp.org>
49472
49473         New module 'memcmp2'.
49474         * lib/memcmp2.h: New file.
49475         * lib/memcmp2.c: New file.
49476         * modules/memcmp2: New file.
49477
49478 2009-03-07  Bruno Haible  <bruno@clisp.org>
49479
49480         Tests for module 'uninorm/decomposing-form'.
49481         * modules/uninorm/decomposing-form-tests: New file.
49482         * tests/uninorm/test-decomposing-form.c: New file.
49483
49484         New module 'uninorm/decomposing-form'.
49485         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
49486         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
49487         Add 'decomposing_variant' field.
49488         * lib/uninorm/decomposing-form.c: New file.
49489         * lib/uninorm/nfc.c (uninorm_nfc): Update.
49490         * lib/uninorm/nfd.c (uninorm_nfd): Update.
49491         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
49492         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
49493         * modules/uninorm/decomposing-form: New file.
49494         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
49495         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
49496
49497 2009-03-07  Bruno Haible  <bruno@clisp.org>
49498
49499         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
49500         strings.
49501
49502 2009-03-06  Bruno Haible  <bruno@clisp.org>
49503
49504         Tests for module 'uninorm/u32-normcmp'.
49505         * tests/uninorm/test-u32-normcmp.c: New file.
49506         * modules/uninorm/u32-normcmp-tests: New file.
49507
49508         Tests for module 'uninorm/u16-normcmp'.
49509         * tests/uninorm/test-u16-normcmp.c: New file.
49510         * modules/uninorm/u16-normcmp-tests: New file.
49511
49512         Tests for module 'uninorm/u8-normcmp'.
49513         * tests/uninorm/test-u8-normcmp.c: New file.
49514         * modules/uninorm/u8-normcmp-tests: New file.
49515
49516         New module 'uninorm/u32-normcmp'.
49517         * lib/uninorm/u32-normcmp.c: New file.
49518         * modules/uninorm/u32-normcmp: New file.
49519
49520         New module 'uninorm/u16-normcmp'.
49521         * lib/uninorm/u16-normcmp.c: New file.
49522         * modules/uninorm/u16-normcmp: New file.
49523
49524         New module 'uninorm/u8-normcmp'.
49525         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
49526         declarations.
49527         * lib/uninorm/u8-normcmp.c: New file.
49528         * lib/uninorm/u-normcmp.h: New file.
49529         * modules/uninorm/u8-normcmp: New file.
49530
49531 2009-03-06  Bruno Haible  <bruno@clisp.org>
49532
49533         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
49534         Reported by Eric Blake.
49535
49536 2009-03-06  Eric Blake  <ebb9@byu.net>
49537             Bruno Haible  <bruno@clisp.org>
49538
49539         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
49540         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
49541         condition.
49542         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49543         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
49544         condition.
49545         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49546
49547 2009-03-06  Eric Blake  <ebb9@byu.net>
49548
49549         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
49550         to avoid compiler warnings.
49551         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
49552
49553 2009-03-05  Bruno Haible  <bruno@clisp.org>
49554
49555         * tests/test-ftell.c (main): Disable test beyond end of file on
49556         FreeMiNT.
49557         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49558
49559 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
49560
49561         * lib/filevercmp.c: Move hidden files up in ordering.
49562         * tests/test-filevercmp.c: Add tests for hidden files.
49563
49564 2009-03-04  Bruno Haible  <bruno@clisp.org>
49565
49566         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
49567         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
49568         AM_CFLAGS.
49569         Reported by Simon Josefsson.
49570
49571 2009-03-03  Bruno Haible  <bruno@clisp.org>
49572
49573         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
49574         Reported by Simon Josefsson.
49575
49576         * doc/ld-version-script.texi: Update node reference.
49577
49578 2009-03-03  Bruno Haible  <bruno@clisp.org>
49579
49580         * modules/visibility (License): Change to 'unlimited'.
49581         Suggested by Simon Josefsson.
49582
49583 2009-03-03  Jim Meyering  <meyering@redhat.com>
49584
49585         unlinkdir: cannot_unlink_dir may modify process state
49586         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
49587         it's neither thread-safe nor appropriate for use in a library.
49588
49589 2009-03-03  Eric Blake  <ebb9@byu.net>
49590
49591         test-closein: silence test under Darwin
49592         * tests/test-closein.sh: Ignore stderr from cat, since we don't
49593         care if it dies from EPIPE or EBADF.
49594
49595 2009-03-03  Bruno Haible  <bruno@clisp.org>
49596
49597         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
49598         earlier.
49599         * doc/visibility.texi: Fix @node and @section.
49600
49601 2009-03-03  Simon Josefsson  <simon@josefsson.org>
49602
49603         * doc/gnulib.texi: Link to sections for ld version script and
49604         visibility.
49605         * doc/visibility.texi: Add @node and @section.
49606         * modules/ld-version-script: New module.
49607         * m4/ld-version-script.m4: New file.
49608         * doc/ld-version-script.texi: New file.
49609
49610 2009-03-02  David Lutterkort  <lutter@redhat.com>
49611
49612         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
49613         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49614
49615 2009-03-02  Bruno Haible  <bruno@clisp.org>
49616
49617         * doc/visibility.texi: Mention libtool's -export-symbols option.
49618
49619 2009-03-02  Jim Meyering  <meyering@redhat.com>
49620
49621         announce-gen: new option: --no-print-checksums
49622         * build-aux/announce-gen (usage): Describe it.
49623         (print_checksums): Print a newline here, not in the [*] footnote.
49624         (main): Honor it.
49625
49626 2009-03-01  Bruno Haible  <bruno@clisp.org>
49627
49628         Use socklen_t in the native Windows replacements prototypes.
49629         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
49630         instead of 'int'.
49631         * lib/getsockopt.c (rpl_getsockopt): Likewise.
49632         * lib/setsockopt.c (rpl_setsockopt): Likewise.
49633         * modules/getsockopt (Depends-on): Add socklen.
49634         * modules/setsockopt (Depends-on): Add socklen.
49635
49636 2009-03-01  Bruno Haible  <bruno@clisp.org>
49637
49638         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
49639         least 4.2.
49640
49641 2009-03-01  Eric Blake  <ebb9@byu.net>
49642             Bruno Haible  <bruno@clisp.org>
49643
49644         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
49645         error messages.
49646         * lib/wait-process.c (wait_subprocess): Omit error message about
49647         deadly signal sent to the child of termsigp != NULL.
49648
49649 2009-03-01  Eric Blake  <ebb9@byu.net>
49650
49651         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
49652
49653 2009-03-01  Bruno Haible  <bruno@clisp.org>
49654
49655         Avoid a gcc warning.
49656         * tests/test-sched.c (b): Make global.
49657         Reported by Eric Blake.
49658
49659 2009-01-19  Martin Lambers  <marlam@marlam.de>
49660
49661         Provide POSIX semantics for socket timeout options on W32.
49662         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
49663         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
49664         * modules/setsockopt: Depend on sys_time module for struct timeval.
49665         * modules/getsockopt: Depend on sys_time module for struct timeval.
49666
49667 2009-03-01  Simon Josefsson  <simon@josefsson.org>
49668
49669         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
49670         __USE_GNU, for consistency with netdb.in.h.
49671         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49672
49673 2009-03-01  Bruno Haible  <bruno@clisp.org>
49674
49675         More support for FreeMiNT.
49676         * lib/fseeko.c (rpl_fseeko): Complete last commit.
49677         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49678
49679 2009-03-01  Bruno Haible  <bruno@clisp.org>
49680
49681         More support for FreeMiNT.
49682         * lib/fpurge.c (fpurge): Correct last commit.
49683         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49684
49685 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49686
49687         Fix unportable awk script in vc-list-files.
49688         * build-aux/vc-list-files: In the replacement awk script, use
49689         substr with a second argument of 1, not zero.
49690         Report by Simon Josefsson.
49691
49692 2009-02-28  Bruno Haible  <bruno@clisp.org>
49693
49694         More support for FreeMiNT.
49695         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
49696         to FreeMiNT today.
49697         * lib/fwriting.c (fwriting): Likewise.
49698         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
49699
49700 2009-02-28  Bruno Haible  <bruno@clisp.org>
49701
49702         * tests/test-freadseek.c (main): Disable test beyond end of file on
49703         FreeMiNT.
49704         * tests/test-ftello.c (main): Likewise.
49705         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49706
49707 2009-02-28  Bruno Haible  <bruno@clisp.org>
49708
49709         Add tentative support for FreeMiNT.
49710         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
49711         * lib/fpurge.c (fpurge): Likewise.
49712         * lib/freadable.c (freadable): Likewise.
49713         * lib/freading.c (freading): Likewise.
49714         * lib/freadptr.c (freadptr): Likewise.
49715         * lib/freadseek.c (freadptrinc): Likewise.
49716         * lib/fseeko.c (rpl_fseeko): Likewise.
49717         * lib/fseterr.c (fseterr): Likewise.
49718         * lib/fwritable.c (fwritable): Likewise.
49719         * lib/fwriting.c (fwriting): Likewise.
49720         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
49721         Hourihane.
49722         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49723
49724 2009-02-28  Bruno Haible  <bruno@clisp.org>
49725
49726         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
49727         SIGCHLD.
49728         Reported by Jim Meyering.
49729
49730 2009-02-28  Bruno Haible  <bruno@clisp.org>
49731
49732         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
49733         Mention the results of these tests on various platforms.
49734         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
49735         order.
49736         * doc/posix-functions/printf.texi: Likewise.
49737         * doc/posix-functions/snprintf.texi: Likewise.
49738         * doc/posix-functions/sprintf.texi: Likewise.
49739         * doc/posix-functions/vfprintf.texi: Likewise.
49740         * doc/posix-functions/vprintf.texi: Likewise.
49741         * doc/posix-functions/vsnprintf.texi: Likewise.
49742         * doc/posix-functions/vsprintf.texi: Likewise.
49743         * doc/glibc-functions/obstack_printf.texi: Likewise.
49744         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49745
49746 2009-02-28  Bruno Haible  <bruno@clisp.org>
49747
49748         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
49749         Reported by Loïc Minier <lool@dooz.org>.
49750
49751 2009-02-27  Bruno Haible  <bruno@clisp.org>
49752
49753         * gnulib-tool (func_import): Make the sed expression used to create the
49754         sed script for updating the .gitignore file POSIX compliant.
49755         Reported by Eric Blake.
49756
49757 2009-02-27  Bruno Haible  <bruno@clisp.org>
49758
49759         * gnulib-tool (sed): Don't alias as "sed --posix".
49760         Reported by Eric Blake.
49761
49762 2009-02-27  Bruno Haible  <bruno@clisp.org>
49763
49764         Avoid test link errors.
49765         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
49766         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
49767         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
49768         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
49769         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49770
49771 2009-02-27  Bruno Haible  <bruno@clisp.org>
49772
49773         Avoid spurious "(cached)" in configure output.
49774         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
49775         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
49776         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49777         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49778         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49779         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49780         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49781         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49782         Reported by Eric Blake.
49783
49784 2009-02-27  Eric Blake  <ebb9@byu.net>
49785
49786         printf: fix regression in previous patch
49787         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
49788
49789 2009-02-27  Bruno Haible  <bruno@clisp.org>
49790
49791         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
49792         value.
49793         * lib/stdint.in.h: Likewise.
49794         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
49795
49796 2009-02-27  Eric Blake  <ebb9@byu.net>
49797
49798         doc: mention more functions added in cygwin 1.7.0
49799         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
49800         addition.
49801         * doc/posix-functions/open_wmemstream.texi: Likewise.
49802         * doc/posix-functions/wcsnlen.texi: Likewise.
49803         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49804         * doc/posix-functions/wcstod.texi: Likewise.
49805         * doc/posix-functions/wcstof.texi: Likewise.
49806         * doc/posix-functions/wcstoimax.texi: Likewise.
49807         * doc/posix-functions/wcstok.texi: Likewise.
49808         * doc/posix-functions/wcstoumax.texi: Likewise.
49809
49810         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
49811         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
49812         * doc/posix-functions/fprintf.texi: Update.
49813         * doc/posix-functions/printf.texi: Update.
49814         * doc/posix-functions/snprintf.texi: Update.
49815         * doc/posix-functions/sprintf.texi: Update.
49816         * doc/posix-functions/vfprintf.texi: Update.
49817         * doc/posix-functions/vprintf.texi: Update.
49818         * doc/posix-functions/vsnprintf.texi: Update.
49819         * doc/posix-functions/vsprintf.texi: Update.
49820         * doc/glibc-functions/obstack_printf.texi: Update.
49821         * doc/glibc-functions/obstack_vprintf.texi: Update.
49822
49823 2009-02-26  Eric Blake  <ebb9@byu.net>
49824
49825         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
49826         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
49827         compilation bug by using runtime conversion.
49828         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49829         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
49830         * modules/ceill-tests (Files): Use nan.h.
49831         * modules/floorl-tests (Files): Likewise.
49832         * modules/frexpl-tests (Files): Likewise.
49833         * modules/isnanl-tests (Files): Likewise.
49834         * modules/ldexpl-tests (Files): Likewise.
49835         * modules/roundl-tests (Files): Likewise.
49836         * modules/truncl-tests (Files): Likewise.
49837         * tests/test-ceill.c (main): Use a working NaN.
49838         * tests/test-floorl.c (main): Likewise.
49839         * tests/test-frexpl.c (main): Likewise.
49840         * tests/test-isnan.c (test_long_double): Likewise.
49841         * tests/test-isnanl.h (main): Likewise.
49842         * tests/test-ldexpl.h (main): Likewise.
49843         * tests/test-roundl.h (main): Likewise.
49844         * tests/test-truncl.h (main): Likewise.
49845         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
49846
49847 2009-02-26  Eric Blake  <ebb9@byu.net>
49848             Bruno Haible  <bruno@clisp.org>
49849
49850         Work around a *printf bug with %ls on Solaris.
49851         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
49852         precision is specified, sprintf stops converting the wide string
49853         argument when the number of bytes that have been produced by this
49854         conversion equals or exceeds the precision.
49855         * doc/posix-functions/fprintf.texi: Update.
49856         * doc/posix-functions/printf.texi: Update.
49857         * doc/posix-functions/snprintf.texi: Update.
49858         * doc/posix-functions/sprintf.texi: Update.
49859         * doc/posix-functions/vfprintf.texi: Update.
49860         * doc/posix-functions/vprintf.texi: Update.
49861         * doc/posix-functions/vsnprintf.texi: Update.
49862         * doc/posix-functions/vsprintf.texi: Update.
49863         * doc/glibc-functions/obstack_printf.texi: Update.
49864         * doc/glibc-functions/obstack_vprintf.texi: Update.
49865
49866 2009-02-26  Eric Blake  <ebb9@byu.net>
49867
49868         stdlib: favor compiler check of random.h
49869         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
49870         to avoid an ObjC random.h installed by Swarm.
49871
49872 2009-02-26  Bruno Haible  <bruno@clisp.org>
49873
49874         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
49875         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
49876         Reported by Gary V. Vaughan <gary@gnu.org>.
49877
49878 2009-02-26  Bruno Haible  <bruno@clisp.org>
49879
49880         Fix *printf behaviour regarding the %ls directive.
49881         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
49882         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
49883         NEED_PRINTF_DIRECTIVE_LS.
49884         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
49885         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49886         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49887         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
49888         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
49889         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
49890         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49891         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49892         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49893         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49894         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49895         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
49896         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49897         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49898         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49899         * doc/posix-functions/fprintf.texi: Update.
49900         * doc/posix-functions/printf.texi: Update.
49901         * doc/posix-functions/snprintf.texi: Update.
49902         * doc/posix-functions/sprintf.texi: Update.
49903         * doc/posix-functions/vfprintf.texi: Update.
49904         * doc/posix-functions/vprintf.texi: Update.
49905         * doc/posix-functions/vsnprintf.texi: Update.
49906         * doc/posix-functions/vsprintf.texi: Update.
49907         * doc/glibc-functions/obstack_printf.texi: Update.
49908         * doc/glibc-functions/obstack_vprintf.texi: Update.
49909         Reported by Eric Blake.
49910
49911 2009-02-25  Bruno Haible  <bruno@clisp.org>
49912
49913         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
49914         with known value.
49915         Reported by Gary V. Vaughan <gary@gnu.org>.
49916
49917 2009-02-25  Bruno Haible  <bruno@clisp.org>
49918
49919         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
49920         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
49921         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
49922         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
49923         Reported by Gary V. Vaughan <gary@gnu.org>.
49924
49925 2009-02-25  Bruno Haible  <bruno@clisp.org>
49926
49927         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
49928         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
49929         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
49930         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
49931         Reported by Gary V. Vaughan <gary@gnu.org>.
49932
49933 2009-02-25  Eric Blake  <ebb9@byu.net>
49934
49935         tests: skip fseek/ftell tests if ungetc is broken
49936         * m4/ungetc.m4: New file.
49937         * modules/fseek-tests: Split test, so ungetc dependency is
49938         separate from rest of test.
49939         * modules/fseeko-tests: Likewise.
49940         * modules/ftell-tests: Likewise.
49941         * modules/ftello-tests: Likewise.
49942         * tests/test-fseek.c (main): Isolate ungetc dependency.
49943         * tests/test-fseeko.c (main): Likewise.
49944         * tests/test-ftell.c (main): Likewise.
49945         * tests/test-ftello.c (main): Likewise.
49946         * tests/test-fseek2.sh: New file.
49947         * tests/test-fseeko2.sh: Likewise.
49948         * tests/test-ftell2.sh: Likewise.
49949         * tests/test-ftello2.sh: Likewise.
49950
49951 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
49952
49953         test-getaddrinfo: fix usage of skip return code 77
49954         * tests/test-gettaddrinfo.c: Return skip code 77 only
49955         for first occurrence of skip (4x77 is not 77)
49956
49957 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
49958
49959         strtod: avoid C99 decl-after-statement
49960         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
49961
49962 2009-02-24  Eric Blake  <ebb9@byu.net>
49963
49964         strtod: detect HP-UX 11.31 bug
49965         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
49966         Reported by Gary V. Vaughan.
49967
49968 2009-02-23  Bruno Haible  <bruno@clisp.org>
49969
49970         Fix invalid read past end of memory block.
49971         * lib/vasnprintf.c (DCHAR_SET): Define.
49972         (local_wcslen): Define only when needed.
49973         (local_strnlen, local_wcsnlen): New functions.
49974         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
49975         directives that involve a conversion ourselves.
49976         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
49977         wcsnlen, mbrtowc, wcrtomb.
49978         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
49979         * tests/test-vasprintf-posix.c (test_function): Likewise.
49980         * tests/test-snprintf-posix.h (test_function): Likewise.
49981         * tests/test-sprintf-posix.h (test_function): Likewise.
49982         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49983
49984 2009-02-22  Bruno Haible  <bruno@clisp.org>
49985
49986         Implement new clarified decomposition of Hangul syllables.
49987         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
49988         of type LTV, return only a pairwise decomposition.
49989         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
49990         Likewise.
49991         * tests/uninorm/test-decomposition.c (main): Updated expected result.
49992         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
49993         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
49994
49995 2009-02-22  Bruno Haible  <bruno@clisp.org>
49996
49997         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
49998         zero-length results and shrink excess allocated memory.
49999         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
50000         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
50001         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
50002         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
50003         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
50004         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
50005         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
50006         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
50007         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
50008         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
50009         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
50010         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
50011
50012 2009-02-21  Bruno Haible  <bruno@clisp.org>
50013
50014         * doc/gnulib.texi: Include safe-alloc.texi earlier.
50015         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
50016         spaces after a period. Put a space between a macro name and its
50017         argument list. Trivial rewordings.
50018         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
50019         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
50020         (main): Return 0 explicitly.
50021
50022 2009-02-21  Bruno Haible  <bruno@clisp.org>
50023
50024         Tests for module 'uninorm/filter'.
50025         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
50026         * modules/uninorm/filter-tests: New file.
50027
50028         New module 'uninorm/filter'.
50029         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
50030         uninorm_filter_flush, uninorm_filter_free): New declarations.
50031         * lib/uninorm/uninorm-filter.c: New file.
50032         * modules/uninorm/filter: New file.
50033
50034 2009-02-21  Bruno Haible  <bruno@clisp.org>
50035
50036         Tests for module 'uninorm/nfkc'.
50037         * tests/uninorm/test-nfkc.c: New file.
50038         * tests/uninorm/test-u8-nfkc.c: New file.
50039         * tests/uninorm/test-u16-nfkc.c: New file.
50040         * tests/uninorm/test-u32-nfkc.c: New file.
50041         * tests/uninorm/test-u32-nfkc-big.sh: New file.
50042         * tests/uninorm/test-u32-nfkc-big.c: New file.
50043         * modules/uninorm/nfkc-tests: New file.
50044
50045         New module 'uninorm/nfkc'.
50046         * lib/uninorm/nfkc.c: New file.
50047         * modules/uninorm/nfkc: New file.
50048
50049         Tests for module 'uninorm/nfkd'.
50050         * tests/uninorm/test-nfkd.c: New file.
50051         * tests/uninorm/test-u8-nfkd.c: New file.
50052         * tests/uninorm/test-u16-nfkd.c: New file.
50053         * tests/uninorm/test-u32-nfkd.c: New file.
50054         * tests/uninorm/test-u32-nfkd-big.sh: New file.
50055         * tests/uninorm/test-u32-nfkd-big.c: New file.
50056         * modules/uninorm/nfkd-tests: New file.
50057
50058         New module 'uninorm/nfkd'.
50059         * lib/uninorm/nfkd.c: New file.
50060         * modules/uninorm/nfkd: New file.
50061
50062         Tests for module 'uninorm/nfc'.
50063         * tests/uninorm/test-nfc.c: New file.
50064         * tests/uninorm/test-u8-nfc.c: New file.
50065         * tests/uninorm/test-u16-nfc.c: New file.
50066         * tests/uninorm/test-u32-nfc.c: New file.
50067         * tests/uninorm/test-u32-nfc-big.sh: New file.
50068         * tests/uninorm/test-u32-nfc-big.c: New file.
50069         * modules/uninorm/nfc-tests: New file.
50070
50071         New module 'uninorm/nfc'.
50072         * lib/uninorm/nfc.c: New file.
50073         * modules/uninorm/nfc: New file.
50074
50075         Tests for module 'uninorm/nfd'.
50076         * tests/uninorm/test-nfd.c: New file.
50077         * tests/uninorm/test-u8-nfd.c: New file.
50078         * tests/uninorm/test-u16-nfd.c: New file.
50079         * tests/uninorm/test-u32-nfd.c: New file.
50080         * tests/uninorm/test-u32-nfd-big.sh: New file.
50081         * tests/uninorm/test-u32-nfd-big.c: New file.
50082         * tests/uninorm/test-u32-normalize-big.h: New file.
50083         * tests/uninorm/test-u32-normalize-big.c: New file.
50084         * tests/uninorm/NormalizationTest.txt: New file, created from
50085         Unicode 5.1.0 NormalizationTest.txt.
50086         * modules/uninorm/nfd-tests: New file.
50087
50088         New module 'uninorm/nfd'.
50089         * lib/uninorm/nfd.c: New file.
50090         * modules/uninorm/nfd: New file.
50091
50092         New module 'uninorm/u32-normalize'.
50093         * lib/uninorm/u32-normalize.c: New file.
50094         * modules/uninorm/u32-normalize: New file.
50095
50096         New module 'uninorm/u16-normalize'.
50097         * lib/uninorm/u16-normalize.c: New file.
50098         * modules/uninorm/u16-normalize: New file.
50099
50100         New module 'uninorm/u8-normalize'.
50101         * lib/uninorm/u8-normalize.c: New file.
50102         * lib/uninorm/normalize-internal.h: New file.
50103         * lib/uninorm/u-normalize-internal.h: New file.
50104         * modules/uninorm/u8-normalize: New file.
50105
50106         New module 'uninorm/decompose-internal'.
50107         * lib/uninorm/decompose-internal.c: New file.
50108         * modules/uninorm/decompose-internal: New file.
50109
50110         Tests for module 'uninorm/composition'.
50111         * tests/uninorm/test-composition.c: New file.
50112         * modules/uninorm/composition-tests: New file.
50113
50114         New module 'uninorm/composition'.
50115         * lib/uninorm/composition.c: New file.
50116         * lib/uninorm/composition-table.gperf: New file, generated by
50117         gen-uni-tables.
50118         * modules/uninorm/composition: New file.
50119
50120         Tests for module 'uninorm/compat-decomposition'.
50121         * tests/uninorm/test-compat-decomposition.c: New file.
50122         * modules/uninorm/compat-decomposition-tests: New file.
50123
50124         New module 'uninorm/compat-decomposition'.
50125         * lib/uninorm/decompose-internal.h: New file.
50126         * lib/uninorm/compat-decomposition.c: New file.
50127         * modules/uninorm/compat-decomposition: New file.
50128
50129         Tests for module 'uninorm/canonical-decomposition'.
50130         * tests/uninorm/test-canonical-decomposition.c: New file.
50131         * modules/uninorm/canonical-decomposition-tests: New file.
50132
50133         New module 'uninorm/canonical-decomposition'.
50134         * lib/uninorm/canonical-decomposition.c: New file.
50135         * modules/uninorm/canonical-decomposition: New file.
50136
50137         Tests for module 'uninorm/decomposition'.
50138         * tests/uninorm/test-decomposition.c: New file.
50139         * modules/uninorm/decomposition-tests: New file.
50140
50141         New module 'uninorm/decomposition'.
50142         * lib/uninorm/decomposition.c: New file.
50143         * modules/uninorm/decomposition: New file.
50144
50145         New module 'uninorm/decomposition-table'.
50146         * lib/uninorm/decomposition-table.h: New file.
50147         * lib/uninorm/decomposition-table.c: New file.
50148         * lib/uninorm/decomposition-table1.h: New file, generated by
50149         gen-uni-tables.
50150         * lib/uninorm/decomposition-table2.h: New file, generated by
50151         gen-uni-tables.
50152         * modules/uninorm/decomposition-table: New file.
50153
50154         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
50155         (UC_DECOMP_*): New enumeration items.
50156         (get_decomposition): New function.
50157         (struct decomp_table): New type.
50158         (output_decomposition, output_decomposition_tables): New functions.
50159         (unicode_composition_exclusions): New variable.
50160         (fill_composition_exclusions, debug_output_composition_tables): New
50161         functions.
50162         (main): Accept one more argument. Invoke fill_composition_exclusions.
50163         Output decomposition and composition tables.
50164
50165         New module 'uninorm/base'.
50166         * lib/uninorm.h: New file.
50167         * lib/unictype.h: Update comment.
50168         * modules/uninorm/base: New file.
50169
50170 2009-02-21  David Lutterkort  <lutter@redhat.com>
50171
50172         Tests for module 'safe-alloc'.
50173         * tests/test-safe-alloc.c: New file.
50174         * modules/safe-alloc-tests: New file.
50175
50176         New module 'safe-alloc'.
50177         * lib/safe-alloc.h: New file.
50178         * lib/safe-alloc.c: New file.
50179         * m4/safe-alloc.m4: New file.
50180         * modules/safe-alloc: New file.
50181         * doc/safe-alloc.texi: New file.
50182         * doc/gnulib.texi: Include it.
50183         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
50184         safe-alloc.
50185
50186 2009-02-18  Bruno Haible  <bruno@clisp.org>
50187
50188         Fix link error on non-glibc systems.
50189         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
50190         variable.
50191         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50192
50193 2009-02-18  Jim Meyering  <meyering@redhat.com>
50194
50195         fts: avoid used-uninitialized error due to recent change
50196         * lib/fts.c (fts_read): Guard uses of the new member,
50197         parent->fts_n_dirs_remaining, since it's not relevant for
50198         the parent of a directory specified on the command-line.
50199
50200 2009-02-17  James Youngman  <jay@gnu.org>
50201             Bruno Haible  <bruno@clisp.org>
50202
50203         * m4/include_next.m4: Reformulate comment.
50204
50205 2009-02-16  Jim Meyering  <meyering@redhat.com>
50206
50207         fts: add #if guards so that the fts_lgpl module still builds
50208         * lib/fts.c: Guard just-added hash-table-using parts with
50209         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
50210         Reported by Simon Josefsson.
50211
50212 2009-02-15  Bruno Haible  <bruno@clisp.org>
50213
50214         * modules/array-mergesort-tests: New file.
50215         * tests/test-array-mergesort.c: New file.
50216
50217         New module 'array-mergesort'.
50218         * modules/array-mergesort: New file.
50219         * lib/array-mergesort.h: New file.
50220
50221 2009-02-15  Bruno Haible  <bruno@clisp.org>
50222
50223         Fix 2009-02-07 commit.
50224         * lib/gen-uni-tables.c (output_predicate, output_category,
50225         output_combclass, output_bidi_category, output_decimal_digit,
50226         output_digit, output_numeric, output_mirror, output_scripts,
50227         output_ident_category, output_simple_mapping): Fix format directives.
50228         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
50229
50230 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
50231
50232         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
50233         fixes are available from IBM.
50234
50235 2009-02-13  Jim Meyering  <meyering@redhat.com>
50236
50237         fts: arrange not to stat non-directories in more cases
50238         This makes GNU find (when it doesn't need to stat each file)
50239         *much* more efficient at traversing reiserfs file systems.
50240         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
50241         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
50242         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
50243         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
50244         (leaf_optimization_applies): New function.
50245         (LCO_hash, LCO_compare): New helper functions.
50246         (link_count_optimize_ok): New function.
50247         (fts_stat): Initialize new member (if dir).
50248         (fts_read): Decrement parent's fts_n_dirs_remaining count if
50249         we've just stat'ed a directory.  Skip the stat call when possible.
50250         ---
50251         Note this AFS-related exchange:
50252         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
50253         and note find's pioctl call in find/fstype.c.
50254         But that is necessary only if you want to enable the
50255         optimization for AFS, and for now, I don't.
50256
50257         fts: move a function definition "up" (no semantic change)
50258         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
50259         "up" to precede upcoming use of a related function.
50260
50261 2009-02-11  Jim Meyering  <meyering@redhat.com>
50262
50263         fts: correct internal computation of nlinks (optimization-related)
50264         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
50265         whether the current entry is a directory, so don't test it.
50266
50267 2009-02-10  Bruno Haible  <bruno@clisp.org>
50268
50269         Tests for module 'uniwbrk/ulc-wordbreaks'.
50270         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
50271         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
50272         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
50273
50274         Tests for module 'uniwbrk/u32-wordbreaks'.
50275         * modules/uniwbrk/u32-wordbreaks-tests: New file.
50276         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
50277
50278         Tests for module 'uniwbrk/u16-wordbreaks'.
50279         * modules/uniwbrk/u16-wordbreaks-tests: New file.
50280         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
50281
50282         Tests for module 'uniwbrk/u8-wordbreaks'.
50283         * modules/uniwbrk/u8-wordbreaks-tests: New file.
50284         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
50285
50286 2009-02-10  Bruno Haible  <bruno@clisp.org>
50287
50288         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
50289         property.
50290         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
50291         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
50292         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
50293
50294 2009-02-10  Simon Josefsson  <simon@josefsson.org>
50295
50296         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
50297         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
50298
50299 2009-02-10  Bruno Haible  <bruno@clisp.org>
50300
50301         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
50302         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
50303         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
50304         * lib/unilbrk/u8-possible-linebreaks.c: Update.
50305         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
50306         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
50307
50308 2009-02-09  Simon Josefsson  <simon@josefsson.org>
50309
50310         * lib/sockets.h (gl_fd_to_handle): New function.
50311
50312         * tests/test-sockets.c: Call gl_fd_to_handle.
50313
50314 2009-02-09  Bruno Haible  <bruno@clisp.org>
50315
50316         * doc/havelib.texi: Document the conventions on bi-arch systems.
50317
50318 2009-02-08  Bruno Haible  <bruno@clisp.org>
50319
50320         Document the AC_LIB_LINKFLAGS macro.
50321         * doc/havelib.texi: New file, mostly written on 2005-05-24.
50322         * doc/gnulib.texi: Include it.
50323
50324 2009-02-08  Bruno Haible  <bruno@clisp.org>
50325
50326         Fix wrong order of sections, compared to TOC.
50327         * doc/gnulib.texi: Include relocatable-maint.texi after the
50328         "Regular expressions" node, not before.
50329
50330 2009-02-08  Bruno Haible  <bruno@clisp.org>
50331
50332         Tests for module 'unicase/totitle'.
50333         * modules/unicase/totitle-tests: New file.
50334
50335         Tests for module 'unicase/tolower'.
50336         * modules/unicase/tolower-tests: New file.
50337
50338         Tests for module 'unicase/toupper'.
50339         * modules/unicase/toupper-tests: New file.
50340         * tests/unicase/test-mapping-part1.h: New file.
50341         * tests/unicase/test-mapping-part2.h: New file.
50342
50343         New module 'unicase/totitle'.
50344         * modules/unicase/totitle: New file.
50345         * lib/unicase/totitle.c: New file.
50346
50347         New module 'unicase/tolower'.
50348         * modules/unicase/tolower: New file.
50349         * lib/unicase/tolower.c: New file.
50350
50351         New module 'unicase/toupper'.
50352         * modules/unicase/toupper: New file.
50353         * lib/unicase/toupper.c: New file.
50354         * lib/unicase/simple-mapping.h: New file.
50355
50356         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
50357         (mapping_table): New structure.
50358         (output_simple_mapping): New function.
50359         (main): Invoke output_simple_mapping_test and output_simple_mapping.
50360         * modules/gen-uni-tables (Description): Update.
50361         * lib/unicase/toupper.h: New file, automatically generated by
50362         gen-uni-tables.
50363         * lib/unicase/tolower.h: New file, automatically generated by
50364         gen-uni-tables.
50365         * lib/unicase/totitle.h: New file, automatically generated by
50366         gen-uni-tables.
50367         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
50368         gen-uni-tables.
50369         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
50370         gen-uni-tables.
50371         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
50372         gen-uni-tables.
50373
50374         New module 'unicase/base'.
50375         * modules/unicase/base: New file.
50376         * lib/unicase.h: New file.
50377
50378 2009-02-08  Bruno Haible  <bruno@clisp.org>
50379
50380         New module 'uniwbrk/ulc-wordbreaks'.
50381         * modules/uniwbrk/ulc-wordbreaks: New file.
50382         * lib/uniwbrk/ulc-wordbreaks.c: New file.
50383
50384         New module 'uniwbrk/u32-wordbreaks'.
50385         * modules/uniwbrk/u32-wordbreaks: New file.
50386         * lib/uniwbrk/u32-wordbreaks.c: New file.
50387
50388         New module 'uniwbrk/u16-wordbreaks'.
50389         * modules/uniwbrk/u16-wordbreaks: New file.
50390         * lib/uniwbrk/u16-wordbreaks.c: New file.
50391
50392         New module 'uniwbrk/u8-wordbreaks'.
50393         * modules/uniwbrk/u8-wordbreaks: New file.
50394         * lib/uniwbrk/u8-wordbreaks.c: New file.
50395         * lib/uniwbrk/u-wordbreaks.h: New file.
50396
50397         New module 'uniwbrk/table'.
50398         * modules/uniwbrk/table: New file.
50399         * lib/uniwbrk/wbrktable.h: New file.
50400         * lib/uniwbrk/wbrktable.c: New file.
50401
50402         New module 'uniwbrk/wordbreak-property'.
50403         * modules/uniwbrk/wordbreak-property: New file.
50404         * lib/uniwbrk/wordbreak-property.c: New file.
50405
50406         * lib/gen-uni-tables.c (WBP_*): New enum items.
50407         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
50408         (unicode_org_wbp): New variable.
50409         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
50410         New functions.
50411         (wbp_table): New structure.
50412         (output_wbp, output_wbrk_tables): New functions.
50413         (main): Accept additional argument. Invoke fill_org_wbp,
50414         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
50415         output_wbrk_tables.
50416         * modules/gen-uni-tables (Description): Update.
50417         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
50418         gen-uni-tables.
50419
50420         New module 'uniwbrk/base'.
50421         * modules/uniwbrk/base: New file.
50422         * lib/uniwbrk.h: New file.
50423
50424 2009-02-08  Bruno Haible  <bruno@clisp.org>
50425
50426         Update to Unicode 5.1.0.
50427         * lib/gen-uni-tables.c (is_property_alphabetic): Include
50428         U+2185..U+2188.
50429         (is_property_default_ignorable_code_point): Don't include characters
50430         of category Cc or Cs and not-a-characters.
50431         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
50432         U+0D79, U+109E, U+109F, U+A60C.
50433         * lib/unictype/bidi_of.h: Regenerated.
50434         * lib/unictype/blocks.h: Regenerated.
50435         * lib/unictype/categ_C.h: Regenerated.
50436         * lib/unictype/categ_Cf.h: Regenerated.
50437         * lib/unictype/categ_Cn.h: Regenerated.
50438         * lib/unictype/categ_L.h: Regenerated.
50439         * lib/unictype/categ_Ll.h: Regenerated.
50440         * lib/unictype/categ_Lm.h: Regenerated.
50441         * lib/unictype/categ_Lo.h: Regenerated.
50442         * lib/unictype/categ_Lu.h: Regenerated.
50443         * lib/unictype/categ_M.h: Regenerated.
50444         * lib/unictype/categ_Mc.h: Regenerated.
50445         * lib/unictype/categ_Me.h: Regenerated.
50446         * lib/unictype/categ_Mn.h: Regenerated.
50447         * lib/unictype/categ_N.h: Regenerated.
50448         * lib/unictype/categ_Nd.h: Regenerated.
50449         * lib/unictype/categ_Nl.h: Regenerated.
50450         * lib/unictype/categ_No.h: Regenerated.
50451         * lib/unictype/categ_P.h: Regenerated.
50452         * lib/unictype/categ_Pd.h: Regenerated.
50453         * lib/unictype/categ_Pe.h: Regenerated.
50454         * lib/unictype/categ_Pf.h: Regenerated.
50455         * lib/unictype/categ_Pi.h: Regenerated.
50456         * lib/unictype/categ_Po.h: Regenerated.
50457         * lib/unictype/categ_Ps.h: Regenerated.
50458         * lib/unictype/categ_S.h: Regenerated.
50459         * lib/unictype/categ_Sk.h: Regenerated.
50460         * lib/unictype/categ_Sm.h: Regenerated.
50461         * lib/unictype/categ_So.h: Regenerated.
50462         * lib/unictype/categ_of.h: Regenerated.
50463         * lib/unictype/combining.h: Regenerated.
50464         * lib/unictype/ctype_alnum.h: Regenerated.
50465         * lib/unictype/ctype_alpha.h: Regenerated.
50466         * lib/unictype/ctype_graph.h: Regenerated.
50467         * lib/unictype/ctype_lower.h: Regenerated.
50468         * lib/unictype/ctype_print.h: Regenerated.
50469         * lib/unictype/ctype_punct.h: Regenerated.
50470         * lib/unictype/ctype_upper.h: Regenerated.
50471         * lib/unictype/decdigit.h: Regenerated.
50472         * lib/unictype/digit.h: Regenerated.
50473         * lib/unictype/mirror.h: Regenerated.
50474         * lib/unictype/numeric.h: Regenerated.
50475         * lib/unictype/pr_alphabetic.h: Regenerated.
50476         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
50477         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
50478         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
50479         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
50480         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
50481         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
50482         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
50483         * lib/unictype/pr_combining.h: Regenerated.
50484         * lib/unictype/pr_dash.h: Regenerated.
50485         * lib/unictype/pr_decimal_digit.h: Regenerated.
50486         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
50487         * lib/unictype/pr_deprecated.h: Regenerated.
50488         * lib/unictype/pr_diacritic.h: Regenerated.
50489         * lib/unictype/pr_extender.h: Regenerated.
50490         * lib/unictype/pr_format_control.h: Regenerated.
50491         * lib/unictype/pr_grapheme_base.h: Regenerated.
50492         * lib/unictype/pr_grapheme_extend.h: Regenerated.
50493         * lib/unictype/pr_grapheme_link.h: Regenerated.
50494         * lib/unictype/pr_id_continue.h: Regenerated.
50495         * lib/unictype/pr_id_start.h: Regenerated.
50496         * lib/unictype/pr_ideographic.h: Regenerated.
50497         * lib/unictype/pr_ignorable_control.h: Regenerated.
50498         * lib/unictype/pr_lowercase.h: Regenerated.
50499         * lib/unictype/pr_math.h: Regenerated.
50500         * lib/unictype/pr_numeric.h: Regenerated.
50501         * lib/unictype/pr_other_alphabetic.h: Regenerated.
50502         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
50503         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
50504         * lib/unictype/pr_other_id_continue.h: Regenerated.
50505         * lib/unictype/pr_other_lowercase.h: Regenerated.
50506         * lib/unictype/pr_other_math.h: Regenerated.
50507         * lib/unictype/pr_punctuation.h: Regenerated.
50508         * lib/unictype/pr_sentence_terminal.h: Regenerated.
50509         * lib/unictype/pr_soft_dotted.h: Regenerated.
50510         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
50511         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
50512         * lib/unictype/pr_unified_ideograph.h: Regenerated.
50513         * lib/unictype/pr_uppercase.h: Regenerated.
50514         * lib/unictype/pr_xid_continue.h: Regenerated.
50515         * lib/unictype/pr_xid_start.h: Regenerated.
50516         * lib/unictype/pr_zero_width.h: Regenerated.
50517         * lib/unictype/scripts.h: Regenerated.
50518         * lib/unictype/scripts_byname.gperf: Regenerated.
50519         * lib/unictype/sy_java_ident.h: Regenerated.
50520         * lib/unilbrk/lbrkprop1.h: Regenerated.
50521         * lib/unilbrk/lbrkprop2.h: Regenerated.
50522         * tests/unictype/test-categ_C.c: Regenerated.
50523         * tests/unictype/test-categ_Cf.c: Regenerated.
50524         * tests/unictype/test-categ_Cn.c: Regenerated.
50525         * tests/unictype/test-categ_L.c: Regenerated.
50526         * tests/unictype/test-categ_Ll.c: Regenerated.
50527         * tests/unictype/test-categ_Lm.c: Regenerated.
50528         * tests/unictype/test-categ_Lo.c: Regenerated.
50529         * tests/unictype/test-categ_Lu.c: Regenerated.
50530         * tests/unictype/test-categ_M.c: Regenerated.
50531         * tests/unictype/test-categ_Mc.c: Regenerated.
50532         * tests/unictype/test-categ_Me.c: Regenerated.
50533         * tests/unictype/test-categ_Mn.c: Regenerated.
50534         * tests/unictype/test-categ_N.c: Regenerated.
50535         * tests/unictype/test-categ_Nd.c: Regenerated.
50536         * tests/unictype/test-categ_Nl.c: Regenerated.
50537         * tests/unictype/test-categ_No.c: Regenerated.
50538         * tests/unictype/test-categ_P.c: Regenerated.
50539         * tests/unictype/test-categ_Pd.c: Regenerated.
50540         * tests/unictype/test-categ_Pe.c: Regenerated.
50541         * tests/unictype/test-categ_Pf.c: Regenerated.
50542         * tests/unictype/test-categ_Pi.c: Regenerated.
50543         * tests/unictype/test-categ_Po.c: Regenerated.
50544         * tests/unictype/test-categ_Ps.c: Regenerated.
50545         * tests/unictype/test-categ_S.c: Regenerated.
50546         * tests/unictype/test-categ_Sk.c: Regenerated.
50547         * tests/unictype/test-categ_Sm.c: Regenerated.
50548         * tests/unictype/test-categ_So.c: Regenerated.
50549         * tests/unictype/test-ctype_alnum.c: Regenerated.
50550         * tests/unictype/test-ctype_alpha.c: Regenerated.
50551         * tests/unictype/test-ctype_graph.c: Regenerated.
50552         * tests/unictype/test-ctype_lower.c: Regenerated.
50553         * tests/unictype/test-ctype_print.c: Regenerated.
50554         * tests/unictype/test-ctype_punct.c: Regenerated.
50555         * tests/unictype/test-ctype_upper.c: Regenerated.
50556         * tests/unictype/test-decdigit.h: Regenerated.
50557         * tests/unictype/test-digit.h: Regenerated.
50558         * tests/unictype/test-numeric.h: Regenerated.
50559         * tests/unictype/test-pr_alphabetic.c: Regenerated.
50560         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
50561         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
50562         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
50563         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
50564         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
50565         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
50566         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
50567         * tests/unictype/test-pr_combining.c: Regenerated.
50568         * tests/unictype/test-pr_dash.c: Regenerated.
50569         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
50570         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
50571         * tests/unictype/test-pr_deprecated.c: Regenerated.
50572         * tests/unictype/test-pr_diacritic.c: Regenerated.
50573         * tests/unictype/test-pr_extender.c: Regenerated.
50574         * tests/unictype/test-pr_format_control.c: Regenerated.
50575         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
50576         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
50577         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
50578         * tests/unictype/test-pr_id_continue.c: Regenerated.
50579         * tests/unictype/test-pr_id_start.c: Regenerated.
50580         * tests/unictype/test-pr_ideographic.c: Regenerated.
50581         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
50582         * tests/unictype/test-pr_lowercase.c: Regenerated.
50583         * tests/unictype/test-pr_math.c: Regenerated.
50584         * tests/unictype/test-pr_numeric.c: Regenerated.
50585         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
50586         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
50587         Regenerated.
50588         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
50589         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
50590         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
50591         * tests/unictype/test-pr_other_math.c: Regenerated.
50592         * tests/unictype/test-pr_punctuation.c: Regenerated.
50593         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
50594         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
50595         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
50596         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
50597         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
50598         * tests/unictype/test-pr_uppercase.c: Regenerated.
50599         * tests/unictype/test-pr_xid_continue.c: Regenerated.
50600         * tests/unictype/test-pr_xid_start.c: Regenerated.
50601         * tests/unictype/test-pr_zero_width.c: Regenerated.
50602
50603         Update to Unicode 5.1.0.
50604         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
50605         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
50606         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
50607         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
50608         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
50609         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
50610         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
50611         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
50612         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
50613         (nonspacing_table_ind): Update.
50614         * tests/uniwidth/test-uc_width2.sh: Update expected result.
50615
50616         Update to Unicode 5.1.0.
50617         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
50618         code transform.
50619         * lib/uniname/uniname.c (unicode_character_name,
50620         unicode_name_character): Add the range 0x1Fxxx to the code transform.
50621         * lib/uniname/uninames.h: Regenerated.
50622         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
50623
50624 2009-02-07  Bruno Haible  <bruno@clisp.org>
50625
50626         Merge gen-ctype and gen-lbrk into a single program.
50627         * lib/gen-uni-tables.c: New file, incorporating
50628         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
50629         Add directory prefixes to the names of the generated files.
50630         * lib/unictype/gen-ctype.c: Remove file.
50631         * lib/unilbrk/gen-lbrk.c: Remove file.
50632         * modules/gen-uni-tables: New file.
50633         * modules/unictype/gen-ctype: Remove file.
50634         * modules/unilbrk/gen-lbrk: Remove file.
50635
50636 2009-02-07  Bruno Haible  <bruno@clisp.org>
50637
50638         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
50639
50640         New module 'unistr/u32-strcoll'.
50641         * modules/unistr/u32-strcoll: New file.
50642         * lib/unistr/u32-strcoll.c: New file.
50643
50644         New module 'unistr/u16-strcoll'.
50645         * modules/unistr/u16-strcoll: New file.
50646         * lib/unistr/u16-strcoll.c: New file.
50647
50648         New module 'unistr/u8-strcoll'.
50649         * modules/unistr/u8-strcoll: New file.
50650         * lib/unistr/u8-strcoll.c: New file.
50651         * lib/unistr/u-strcoll.h: New file.
50652
50653 2009-02-07  Bruno Haible  <bruno@clisp.org>
50654
50655         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
50656         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50657         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50658         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
50659         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
50660         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
50661
50662 2009-02-07  Bruno Haible  <bruno@clisp.org>
50663
50664         Make 64-bit clean.
50665         * lib/unictype/gen-ctype.c (output_predicate, output_category,
50666         output_combclass, output_bidi_category, output_decimal_digit,
50667         output_digit, output_numeric, output_mirror, output_scripts,
50668         output_ident_category): Use proper width specifier in format strings.
50669
50670 2009-02-07  Bruno Haible  <bruno@clisp.org>
50671
50672         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
50673         failure behaviour.
50674
50675 2009-02-07  Jim Meyering  <meyering@redhat.com>
50676
50677         regex: avoid compilation failure with upcoming gcc-4.4
50678         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
50679         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
50680         "... error: integer overflow in preprocessor expression".
50681
50682 2009-02-05  Ben Pfaff  <blp@gnu.org>
50683
50684         Fix link errors on Windows when close module is used.
50685         * modules/close: Add $(LIB_CLOSE) to Link section.
50686         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
50687         $(LIB_CLOSE) on Windows.
50688
50689 2009-02-05  Jim Meyering  <meyering@redhat.com>
50690
50691         still avoid unused-parameter warnings, but do it cleanly
50692         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
50693         (get_fs_usage): Cast to void instead.
50694         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
50695         (dev_from_mount_options, read_file_system_list): Cast to void.
50696         Prompted by Bruno Haible.
50697
50698 2009-02-04  Jim Meyering  <meyering@redhat.com>
50699
50700         fsusage.c: correct copyright year
50701         * lib/fsusage.c: Reflect year in which the change is pushed into
50702
50703         avoid misc. warnings
50704         * lib/fsusage.c (UNUSED_PARAM): Define.
50705         (get_fs_usage): Mark parameter "disk" as unused.
50706         * lib/getugroups.c (getgrent): Use "void" in prototype.
50707         * lib/mountlist.c: Mark unused parameters.
50708         (read_file_system_list): Declare a local with "const".
50709         * lib/nanosleep.c (getnow): Declare static.
50710         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
50711
50712         dirfd: set errno upon failure
50713         * lib/dirfd.c: Include <errno.h>.
50714         Set errno to ENOTSUP when returning -1.
50715         * modules/dirfd (Depends-on): Add errno.
50716         Suggested by John Kodis <kodis@comcast.net>.
50717
50718 2009-02-01  Bruno Haible  <bruno@clisp.org>
50719
50720         Don't assume sizeof (long) >= sizeof (void *).
50721         * lib/memcmp.c: Include stdint.h.
50722         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
50723         srcp2 to 'const byte *'.
50724         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
50725         types to uintptr_t.
50726         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
50727         * modules/memcmp (Depends-on): Add stdint.
50728         Reported by Ozkan Sezer <sezeroz@gmail.com>.
50729
50730 2009-01-30  Eric Blake  <ebb9@byu.net>
50731
50732         fix more require-before-expand issues
50733         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
50734         expand, AC_PROG_AWK.
50735         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
50736
50737 2009-01-28  Eric Blake  <ebb9@byu.net>
50738
50739         version-etc: use consistent URL formatting
50740         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
50741         Improve formatting.  Use fputs for string without %.
50742
50743 2009-01-28  Jim Meyering  <meyering@redhat.com>
50744
50745         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
50746         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
50747         "underquoted definition of NAME" from autoconf-2.59.
50748
50749 2009-01-28  Bruno Haible  <bruno@clisp.org>
50750
50751         * doc/gnulib.texi: Add "Obsolete modules" to index.
50752
50753 2009-01-28  Jim Meyering  <meyering@redhat.com>
50754
50755         useless-if-before-free: recognize more variants
50756         * build-aux/useless-if-before-free: Also recognize e.g.,
50757         if (NULL != p) free (p);
50758
50759 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
50760
50761         test-getaddrinfo: skip (don't fail) this test when there's no network
50762         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
50763         on the presumption that it means you lack network access.
50764
50765 2009-01-26  Jim Meyering  <meyering@redhat.com>
50766
50767         fflush: avoid warnings on modern systems
50768         * lib/fflush.c (rpl_fflush): Move declarations of locals,
50769         pos and result, into scopes where they're used.
50770
50771 2009-01-26  Eric Blake  <ebb9@byu.net>
50772
50773         Silence warning reintroduced by recent extensions patch.
50774         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
50775         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
50776         autoconf.
50777
50778         Backport improved autoconf semantics of AC_DEFUN_ONCE.
50779         * m4/00gnulib.m4: New file.
50780         * gnulib-tool (func_get_filelist): Always use it.
50781         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
50782         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
50783
50784 2009-01-25  Bruno Haible  <bruno@clisp.org>
50785
50786         Make test-quotearg work on MacOS X and AIX.
50787         * tests/test-quotearg.sh: New file.
50788         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
50789         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
50790         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
50791         include <libintl.h>.
50792         (fake_locale): Remove variable.
50793         (gettext, dgettext, dcgettext): Remove functions.
50794         (main): Instead of setting a fake locale, set a real locale. Call
50795         textdomain and bindtextdomain.
50796         * modules/quotearg-tests (Files): Add the new files.
50797         (Depends-on): Add gettext, setenv, unsetenv.
50798         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50799         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
50800         Augment TESTS_ENVIRONMENT.
50801
50802 2009-01-25  Bruno Haible  <bruno@clisp.org>
50803
50804         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
50805         fr_FR.ISO8859-1 locale on MacOS X.
50806         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
50807         ja_JP.eucJP locale on MacOS X.
50808         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
50809         zh_CN.GB18030 locale on MacOS X.
50810
50811 2009-01-25  Bruno Haible  <bruno@clisp.org>
50812
50813         Avoid link errors on MacOS X 10.3.
50814         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
50815         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50816
50817 2009-01-25  Bruno Haible  <bruno@clisp.org>
50818
50819         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50820         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
50821         * modules/pipe (Files): Remove m4/posix_spawn.m4.
50822         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50823         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
50824         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50825         posix_spawnattr_init, posix_spawnattr_setsigmask,
50826         posix_spawnattr_setflags, posix_spawnattr_destroy.
50827
50828         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50829         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
50830         * modules/execute (Files): Remove m4/posix_spawn.m4.
50831         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50832         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50833         posix_spawnattr_init, posix_spawnattr_setsigmask,
50834         posix_spawnattr_setflags, posix_spawnattr_destroy.
50835
50836 2009-01-25  Bruno Haible  <bruno@clisp.org>
50837
50838         * lib/glthread/threadlib.c: Include <stdlib.h>.
50839
50840 2009-01-25  Bruno Haible  <bruno@clisp.org>
50841
50842         * lib/glthread/threadlib.c (dummy): New declaration.
50843
50844 2009-01-25  Bruno Haible  <bruno@clisp.org>
50845
50846         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
50847         multibyte characters also for the GB18030 encoding. Don't crash when
50848         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
50849
50850 2009-01-25  Bruno Haible  <bruno@clisp.org>
50851
50852         Avoid redefining 'struct random_data' on OSF/1 5.1.
50853         * lib/stdlib.in.h: Include <random.h> if it exists.
50854         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
50855         HAVE_RANDOM_H. Include <random.h> when testing whether
50856         'struct random_data' exists.
50857         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
50858
50859 2009-01-25  Bruno Haible  <bruno@clisp.org>
50860
50861         Don't install charset.alias on MacOS X >= 10.3.
50862         * lib/localcharset.c (DARWIN7): New macro.
50863         (get_charset_aliases): Hardcode the result for Darwin7.
50864         * modules/localcharset (install-exec-local): Don't install
50865         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
50866
50867 2009-01-25  Bruno Haible  <bruno@clisp.org>
50868
50869         Don't install charset.alias on mingw and Cygwin.
50870         * modules/localcharset (install-exec-local): Don't install
50871         charset.alias on mingw and Cygwin, if the file does not yet exist.
50872         The result for these platforms is hardcoded in localcharset.c.
50873
50874 2009-01-25  Bruno Haible  <bruno@clisp.org>
50875
50876         Make it possible again to use AC_GNU_SOURCE together with gnulib.
50877         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
50878         before requiring AC_USE_SYSTEM_EXTENSIONS.
50879
50880 2009-01-25  Jim Meyering  <meyering@redhat.com>
50881
50882         c-strtod: avoid warnings
50883         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
50884         "assignment discards qualifiers from pointer target type" warnings.
50885
50886 2009-01-24  Bruno Haible  <bruno@clisp.org>
50887
50888         Add support for non-UTF-8 locales on MacOS X.
50889         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
50890         canonical encodings. For Darwin 7 and newer, don't map traditional
50891         encodings to UTF-8.
50892         Reported by Vincent Lefevre <vincent@vinc17.org>
50893         at <http://savannah.gnu.org/bugs/?25235>.
50894
50895 2009-01-24  Bruno Haible  <bruno@clisp.org>
50896
50897         * doc/gnulib.texi (Obsolete modules): New section.
50898         Reported by Mike Frysinger <vapier@gentoo.org>.
50899
50900 2009-01-24  Bruno Haible  <bruno@clisp.org>
50901
50902         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
50903         (%.dvi): New rule.
50904
50905 2009-01-24  Bruno Haible  <bruno@clisp.org>
50906
50907         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
50908         Reported by Eric Blake.
50909
50910 2009-01-24  Bruno Haible  <bruno@clisp.org>
50911
50912         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
50913         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
50914         Reported by Gary V. Vaughan <gary@gnu.org>.
50915
50916 2009-01-24  Bruno Haible  <bruno@clisp.org>
50917
50918         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
50919
50920 2009-01-23  Bruno Haible  <bruno@clisp.org>
50921
50922         Make c-strtod, c-strtold usable in libraries.
50923         * lib/c-strtod.c: Include string.h instead of xalloc.h.
50924         (C_STRTOD): Call strdup instead of xstrdup.
50925         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
50926         * modules/c-strtold (Depends-on): Likewise.
50927         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
50928         * NEWS: Mention the change.
50929         Reported by Michael Gold <mgold@ncf.ca>.
50930
50931 2009-01-23  Jim Meyering  <meyering@redhat.com>
50932
50933         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
50934         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
50935         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
50936
50937 2009-01-23  Simon Josefsson  <simon@josefsson.org>
50938
50939         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
50940         GNU CoreUtils.
50941         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
50942         * modules/version-etc (Description): Update.
50943
50944 2009-01-22  Bruno Haible  <bruno@clisp.org>
50945
50946         Cache the C locale object.
50947         * lib/c-strtod.c (c_locale_cache): New variable.
50948         (c_locale): New function.
50949         (C_STRTOD): Use it, and don't call freelocale.
50950         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
50951         Suggested by Paolo Bonzini.
50952
50953 2009-01-21  Bruno Haible  <bruno@clisp.org>
50954
50955         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
50956         conditions other than overflow.
50957
50958 2009-01-21  Bruno Haible  <bruno@clisp.org>
50959
50960         * lib/c-strtod.c: Include errno.h.
50961         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
50962         value from STRTOD_L and STRTOD.
50963
50964 2009-01-21  Bruno Haible  <bruno@clisp.org>
50965         and Jim Meyering  <meyering@redhat.com>
50966
50967         nanosleep: skip configure test (fail it) for apple universal builds
50968         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
50969         universal builds, assume that nanosleep does not work.
50970         * modules/nanosleep (Depends-on): Add multiarch.
50971
50972         mktime: skip configure test (fail it) for apple universal builds
50973         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
50974         universal builds, assume that mktime does not work.
50975         * modules/mktime (Depends-on): Add multiarch.
50976
50977 2009-01-21  Eric Blake  <ebb9@byu.net>
50978
50979         multiarch: avoid expand-before-require warning
50980         * modules/multiarch (configure.ac): Require, rather than expand,
50981         gl_MULTIARCH.
50982         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
50983         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
50984         enforce that all clients require it.  Partial reversion of
50985         2008-12-29 patch.
50986
50987         error: avoid expand-before-require warning
50988         * modules/errno (configure.ac): Require, rather than expand,
50989         gl_HEADER_ERRNO_H.
50990         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
50991         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
50992         enforce that all clients require it.
50993
50994         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
50995         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
50996         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
50997         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
50998
50999 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
51000
51001         Revert:
51002         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51003
51004         regex: do not depend on obsolete modules.
51005         * modules/regex: Remove memcmp and memmove.
51006
51007 2009-01-20  Bruno Haible  <bruno@clisp.org>
51008
51009         Make the 'link' module link on Windows NT 4.
51010         * lib/link.c (_WIN32_WINNT): Don't define.
51011         (CreateHardLinkFuncType): New type.
51012         (CreateHardLinkFunc, initialized): New variables.
51013         (initialize): New function.
51014         (link): Invoke CreateHardLink indirectly through the function pointer.
51015
51016 2009-01-20  Bruno Haible  <bruno@clisp.org>
51017
51018         Fix compilation failure on mingw.
51019         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
51020
51021 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
51022
51023         * doc/c-strtod.texi: Mention a couple of restrictions.
51024
51025 2009-01-20  Jim Meyering  <meyering@redhat.com>
51026
51027         gettimeofday: move more declarations out of functions
51028         * lib/gettimeofday.c: Move extern declarations of tzset and
51029         gmtime out of containing functions.  Prompted by Bruno Haible.
51030
51031 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51032
51033         regex: do not depend on obsolete modules.
51034         * modules/regex: Remove memcmp and memmove.
51035
51036 2009-01-19  Bruno Haible  <bruno@clisp.org>
51037
51038         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51039         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
51040         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51041         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
51042         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
51043
51044 2009-01-19  Bruno Haible  <bruno@clisp.org>
51045
51046         * tests/test-link.c: Include <errno.h>.
51047         (main): Exit with code 77 when a hard link cannot be created due to
51048         the file system.
51049         * tests/test-link.sh: Skip test when a hard link cannot be created due
51050         to the file system.
51051         Suggested by Eric Blake.
51052
51053 2009-01-19  Martin Lambers  <marlam@marlam.de>
51054
51055         * modules/link-tests: New file.
51056         * tests/test-link.sh: New file.
51057         * tests/test-link.c: New file.
51058
51059 2009-01-19  Eric Blake  <ebb9@byu.net>
51060
51061         doc: mention another function added in cygwin 1.7.0
51062         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
51063         Another new function in cygwin 1.7.
51064
51065 2009-01-19  Bruno Haible  <bruno@clisp.org>
51066
51067         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51068         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
51069         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
51070         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51071         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
51072         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
51073         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
51074         * m4/md4.m4 (gl_MD4): Likewise.
51075         * m4/md5.m4 (gl_MD5): Likewise.
51076         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
51077         * m4/sha1.m4 (gl_SHA1): Likewise.
51078         * m4/sha256.m4 (gl_SHA256): Likewise.
51079         * m4/sha512.m4 (gl_SHA512): Likewise.
51080
51081 2009-01-19  Bruno Haible  <bruno@clisp.org>
51082
51083         * modules/uniname/uniname-tests (Depends-on): Add progname.
51084         * tests/uniname/test-uninames.c: Include progname.h.
51085         (main): Call set_program_name.
51086
51087         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
51088         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
51089         (main): Call set_program_name.
51090
51091         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
51092         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
51093         (main): Call set_program_name.
51094
51095         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
51096         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
51097         (main): Call set_program_name.
51098
51099         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
51100         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
51101         (main): Call set_program_name.
51102
51103         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
51104         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
51105         (main): Call set_program_name.
51106
51107         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
51108         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
51109         (main): Call set_program_name.
51110
51111         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
51112         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
51113         (main): Call set_program_name.
51114
51115         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
51116         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
51117         (main): Call set_program_name.
51118
51119 2009-01-19  Eric Blake  <ebb9@byu.net>
51120
51121         test-unistd: test previous patch
51122         * tests/test-unistd.c: Test *_FILENO macros.
51123
51124         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
51125         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51126         Guarantee a definition.
51127         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
51128         * modules/unistd-safer (Depends-on): Add dependency on unistd.
51129         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
51130         * lib/dup-safer.c (STDERR_FILENO): Likewise.
51131         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51132         Likewise.
51133         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
51134         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
51135         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51136         Likewise.
51137         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
51138         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
51139         (STDERR_FILENO): Likewise.
51140         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
51141         (STDERR_FILENO): Likewise.
51142         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
51143         (STDERR_FILENO): Likewise.
51144         Reported by Elbert Pol.
51145
51146 2009-01-19  Eric Blake  <ebb9@byu.net>
51147
51148         doc: mention more functions added in cygwin 1.7.0
51149         * doc/posix-functions/abort.texi (abort): Update wording related
51150         to cygwin.
51151         * doc/posix-functions/daylight.texi (daylight): Likewise.
51152         * doc/posix-functions/optarg.texi (optarg): Likewise.
51153         * doc/posix-functions/optarg.texi (opterr): Likewise.
51154         * doc/posix-functions/optarg.texi (optind): Likewise.
51155         * doc/posix-functions/optarg.texi (optopt): Likewise.
51156         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
51157         worked in 1.5.x, and was withdrawn in 1.7.
51158         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51159         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
51160         cygwin versions.
51161         * doc/posix-functions/perror.texi (perror): Likewise.
51162         * doc/posix-functions/printf.texi (printf): Likewise.
51163         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
51164         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
51165         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51166         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51167         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51168         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
51169         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51170         Likewise.
51171         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51172         Likewise.
51173         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
51174         this function.
51175         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
51176         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
51177         Likewise.
51178         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
51179         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
51180         * doc/posix-functions/confstr.texi (confstr): Likewise.
51181         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
51182         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
51183         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
51184         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
51185         * doc/posix-functions/fputws.texi (fputws): Likewise.
51186         * doc/posix-functions/fwide.texi (fwide): Likewise.
51187         * doc/posix-functions/getwc.texi (getwc): Likewise.
51188         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
51189         * doc/posix-functions/putwc.texi (putwc): Likewise.
51190         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51191         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
51192         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
51193         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51194         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
51195         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
51196         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
51197         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
51198         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
51199         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
51200         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
51201
51202 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51203
51204         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
51205         * lib/ioctl.c: Include <sys/ioctl.h>.
51206
51207 2009-01-19  Simon Josefsson  <simon@josefsson.org>
51208
51209         * modules/getdate-tests (Depends-on): Add progname.
51210         * tests/test-getdate.c: Use progname module, to avoid link errors
51211         on non-glibc systems.
51212
51213 2009-01-18  Simon Josefsson  <simon@josefsson.org>
51214
51215         * modules/filenamecat-tests (Depends-on): Add progname.
51216         * modules/fstrcmp-tests (Depends-on): Likewise.
51217
51218         * tests/test-filenamecat.c: Use progname module, to avoid link
51219         errors on non-glibc systems.
51220         * tests/test-fstrcmp.c: Likewise.
51221
51222 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51223
51224         gettimeofday: avoid warning: nested extern declaration of 'localtime'
51225         * lib/gettimeofday.c: Move extern declaration out of function.
51226
51227 2009-01-18  Bruno Haible  <bruno@clisp.org>
51228
51229         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
51230         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
51231         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
51232
51233 2009-01-18  Bruno Haible  <bruno@clisp.org>
51234
51235         * lib/strftime.c (MEMPCPY): Remove unused macro.
51236         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
51237
51238 2009-01-18  Martin Lambers  <marlam@marlam.de>
51239
51240         New module 'link'.
51241         * lib/unistd.in.h (link): New declaration.
51242         * lib/link.c: New file.
51243         * m4/link.m4: New file.
51244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
51245         HAVE_LINK.
51246         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
51247         * modules/link: New file.
51248         * doc/posix-functions/link.texi: Mention the new module.
51249
51250 2009-01-18  Bruno Haible  <bruno@clisp.org>
51251
51252         * tests/test-avltree_list.c (main): Call set_program_name.
51253         * tests/test-avltree_oset.c (main): Likewise.
51254         * tests/test-obstack-printf.c: Include progname.h.
51255         (main): Call set_program_name.
51256         * tests/test-quotearg.c: Include progname.h.
51257         (main): Call set_program_name.
51258         * tests/test-xmemdup0.c: Include progname.h.
51259         (main): Call set_program_name.
51260
51261 2009-01-18  Bruno Haible  <bruno@clisp.org>
51262
51263         New module 'alphasort'.
51264         * lib/dirent.in.h (alphasort): New declaration.
51265         * lib/alphasort.c: New file, from glibc with modifications.
51266         * m4/alphasort.m4: New file.
51267         * modules/alphasort: New file.
51268         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
51269         HAVE_ALPHASORT.
51270         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
51271         HAVE_ALPHASORT.
51272         * doc/posix-functions/alphasort.texi: Mention the new module and the
51273         portability problems.
51274
51275 2009-01-18  Bruno Haible  <bruno@clisp.org>
51276
51277         New module 'scandir'.
51278         * lib/dirent.in.h (scandir): New declaration.
51279         * lib/scandir.c: New file, from glibc with modifications.
51280         * m4/scandir.m4: New file.
51281         * modules/scandir: New file.
51282         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
51283         HAVE_SCANDIR.
51284         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
51285         HAVE_SCANDIR.
51286         * doc/posix-functions/scandir.texi: Mention the new module and the
51287         portability problems.
51288
51289 2009-01-17  Bruno Haible  <bruno@clisp.org>
51290
51291         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
51292         Update documentation.
51293         (func_remove_suffix): Escape all dots in the suffix. Update
51294         documentation.
51295         (func_filter_filelist): Update documentation.
51296         Reported by Ralf Wildenhues.
51297
51298 2009-01-17  Bruno Haible  <bruno@clisp.org>
51299
51300         * modules/dprintf-posix-tests: New file.
51301         * tests/test-dprintf-posix.sh: New file.
51302         * tests/test-dprintf-posix.c: New file.
51303
51304         New modules 'dprintf', 'dprintf-posix'.
51305         * lib/stdio.in.h (dprintf): New declaration.
51306         * lib/dprintf.c: New file.
51307         * m4/dprintf.m4: New file.
51308         * m4/dprintf-posix.m4: New file.
51309         * modules/dprintf: New file.
51310         * modules/dprintf-posix: New file.
51311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
51312         HAVE_DPRINTF, REPLACE_DPRINTF.
51313         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
51314         HAVE_DPRINTF, REPLACE_DPRINTF.
51315         * doc/posix-functions/dprintf.texi: Mention the new modules.
51316
51317 2009-01-17  Bruno Haible  <bruno@clisp.org>
51318
51319         * modules/vdprintf-posix-tests: New file.
51320         * tests/test-vdprintf-posix.sh: New file.
51321         * tests/test-vdprintf-posix.c: New file.
51322
51323         New modules 'vdprintf', 'vdprintf-posix'.
51324         * lib/stdio.in.h (vdprintf): New declaration.
51325         * lib/vdprintf.c: New file.
51326         * m4/vdprintf.m4: New file.
51327         * m4/vdprintf-posix.m4: New file.
51328         * modules/vdprintf: New file.
51329         * modules/vdprintf-posix: New file.
51330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
51331         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51332         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
51333         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51334         * doc/posix-functions/vdprintf.texi: Mention the new modules.
51335
51336 2009-01-17  Bruno Haible  <bruno@clisp.org>
51337
51338         Fix replacement of fopen on mingw.
51339         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
51340         mingw.
51341
51342 2009-01-17  Bruno Haible  <bruno@clisp.org>
51343
51344         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
51345         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
51346
51347 2009-01-17  Bruno Haible  <bruno@clisp.org>
51348
51349         Avoid test-fflush2.sh failure on mingw.
51350         * tests/test-fflush2.c: Include binary-io.h.
51351         (main): Put standard input into binary mode.
51352         * modules/fflush-tests (Depends-on): Add binary-io.
51353
51354 2009-01-17  Bruno Haible  <bruno@clisp.org>
51355
51356         * lib/wchar.in.h: In another particular situation, include only the
51357         system's <wchar.h> file.
51358         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
51359         Reported by Albert Chin-A-Young <china@thewrittenword.com>
51360         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
51361
51362 2009-01-17  Bruno Haible  <bruno@clisp.org>
51363
51364         Support for stripping executables in --enable-relocatable.
51365         * build-aux/install-reloc: Expect one more argument, or an environment
51366         variable RELOC_STRIP_PROG. If set, strip the destination program and
51367         its wrapper.
51368         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
51369         RELOC_STRIP_PROG.
51370         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
51371         to set RELOCATABLE_STRIP.
51372         * NEWS: Mention the new Makefile requirement.
51373
51374 2009-01-17  Bruno Haible  <bruno@clisp.org>
51375
51376         * build-aux/install-reloc: Remove debugging information left over by
51377         C compiler on MacOS X.
51378
51379 2009-01-17  Bruno Haible  <bruno@clisp.org>
51380
51381         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
51382         * lib/progreloc.c (find_executable): Fix type of pointer passed to
51383         _NSGetExecutablePath.
51384
51385 2009-01-16  Jim Meyering  <meyering@redhat.com>
51386
51387         strerror: avoid warnings about discarding "const"
51388         * lib/strerror.c (rpl_strerror): Instead of returning a const
51389         string from each and every "case", use a variable, and add a single
51390         cast after the switch.
51391
51392 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
51393
51394         * lib/arpa_inet.in.h: Add extern "C" block for C++.
51395
51396 2009-01-16  Bruno Haible  <bruno@clisp.org>
51397
51398         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
51399         array initializer syntax that also works in C++ mode.
51400         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51401
51402 2009-01-16  Jim Meyering  <meyering@redhat.com>
51403
51404         poll: suppress a warning
51405         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
51406         to ignore "...unsigned expression < 0 is always false" warnings.
51407
51408 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
51409
51410         poll: remove declarations of unused variables
51411         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
51412         sockbuf and optlen.
51413
51414 2009-01-15  Bruno Haible  <bruno@clisp.org>
51415
51416         Make fflush-after-ungetc POSIX compliant on BSD systems.
51417         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
51418         (clear_ungetc_buffer): Implement also for other systems.
51419         (rpl_fflush): On glibc systems, invoke
51420         clear_ungetc_buffer_preserving_position. Otherwise, invoke
51421         clear_ungetc_buffer after fetching the stream's position, not before.
51422
51423 2009-01-15  Bruno Haible  <bruno@clisp.org>
51424
51425         Make fflush-after-ungetc POSIX compliant on glibc systems.
51426         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
51427         after ungetc.
51428         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
51429         (rpl_fflush): On glibc systems, simply call the system's fflush
51430         function after clearing the ungetc buffer.
51431         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
51432         Instead, lseek only to the end of file, then use the system's fseeko
51433         for the rest. On glibc systems, reset the EOF indicator bit.
51434
51435 2009-01-15  Jim Meyering  <meyering@redhat.com>
51436
51437         openmp.m4: revert quote-adding change, for portability to older autoconf
51438         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
51439         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
51440         Simon Josefsson noticed the problem when using autoconf-2.61.
51441
51442 2009-01-15  Bruno Haible  <bruno@clisp.org>
51443
51444         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
51445         * tests/test-fflush2.c (ASSERT): Always fail.
51446         (main): Add two tests for fflush() after ungetc(), taking into account
51447         the Austin Group's clarification.
51448         Suggested by Eric Blake.
51449
51450 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
51451
51452         mktime.m4: remove K&R-style function prototypes
51453         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
51454         for the Sun C++ compiler.
51455
51456 2009-01-14  Bruno Haible  <bruno@clisp.org>
51457
51458         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
51459         while including <wchar.h>.
51460         * lib/wchar.in.h: In two particular situations on HP-UX, include only
51461         the system's <wchar.h> file.
51462         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51463
51464 2009-01-14  Bruno Haible  <bruno@clisp.org>
51465
51466         * m4/csharp.m4: Don't mention gettext on the serial number line.
51467         * m4/csharpexec.m4: Likewise.
51468         * m4/eaccess.m4: Likewise.
51469         * m4/javaexec.m4: Likewise.
51470         * m4/sig_atomic_t.m4: Likewise.
51471         * m4/tmpdir.m4: Likewise.
51472         * m4/intldir.m4: Bump gettext version.
51473         * m4/lib-ld.m4: Likewise.
51474
51475 2009-01-14  Bruno Haible  <bruno@clisp.org>
51476
51477         * lib/progname.c (set_program_name): Add more comments.
51478         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
51479
51480 2009-01-14  Simon Josefsson  <simon@josefsson.org>
51481
51482         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
51483         were sys/stat.h does not define it.
51484
51485 2009-01-14  Jim Meyering  <meyering@redhat.com>
51486
51487         many *.m4 files: improve m4 quoting
51488         99% of this change was performed by running the following commands:
51489         git ls-files | grep '\.m4$' | xargs perl -pi \
51490           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
51491           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51492           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51493           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
51494         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
51495         The remainder were to add Copyright dates, increment serial numbers,
51496         undo some changes in comments, exclude m4/intl.m4, and add quotes
51497         around the "1" in ",1" where the unusual spacing prohibited the
51498         above regexps from doing the job.  For more details, see
51499         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
51500         * m4/acl.m4: Modified.
51501         * m4/afs.m4: Likewise.
51502         * m4/alloca.m4: Likewise.
51503         * m4/argp.m4: Likewise.
51504         * m4/argz.m4: Likewise.
51505         * m4/atexit.m4: Likewise.
51506         * m4/bison-i18n.m4: Likewise.
51507         * m4/bison.m4: Likewise.
51508         * m4/byteswap.m4: Likewise.
51509         * m4/c-stack.m4: Likewise.
51510         * m4/c-strtod.m4: Likewise.
51511         * m4/calloc.m4: Likewise.
51512         * m4/canonicalize-lgpl.m4: Likewise.
51513         * m4/chown.m4: Likewise.
51514         * m4/clock_time.m4: Likewise.
51515         * m4/codeset.m4: Likewise.
51516         * m4/copy-file.m4: Likewise.
51517         * m4/csharp.m4: Likewise.
51518         * m4/csharpcomp.m4: Likewise.
51519         * m4/csharpexec.m4: Likewise.
51520         * m4/d-ino.m4: Likewise.
51521         * m4/d-type.m4: Likewise.
51522         * m4/dirfd.m4: Likewise.
51523         * m4/double-slash-root.m4: Likewise.
51524         * m4/eaccess.m4: Likewise.
51525         * m4/eealloc.m4: Likewise.
51526         * m4/environ.m4: Likewise.
51527         * m4/errno_h.m4: Likewise.
51528         * m4/euidaccess.m4: Likewise.
51529         * m4/execute.m4: Likewise.
51530         * m4/fatal-signal.m4: Likewise.
51531         * m4/fchdir.m4: Likewise.
51532         * m4/fcntl_h.m4: Likewise.
51533         * m4/fileblocks.m4: Likewise.
51534         * m4/filenamecat.m4: Likewise.
51535         * m4/findprog.m4: Likewise.
51536         * m4/flexmember.m4: Likewise.
51537         * m4/fnmatch.m4: Likewise.
51538         * m4/fopen.m4: Likewise.
51539         * m4/fpending.m4: Likewise.
51540         * m4/fprintf-posix.m4: Likewise.
51541         * m4/free.m4: Likewise.
51542         * m4/frexp.m4: Likewise.
51543         * m4/frexpl.m4: Likewise.
51544         * m4/fsusage.m4: Likewise.
51545         * m4/ftruncate.m4: Likewise.
51546         * m4/gc-camellia.m4: Likewise.
51547         * m4/gc-random.m4: Likewise.
51548         * m4/gc.m4: Likewise.
51549         * m4/getaddrinfo.m4: Likewise.
51550         * m4/getcwd-abort-bug.m4: Likewise.
51551         * m4/getcwd-path-max.m4: Likewise.
51552         * m4/getdate.m4: Likewise.
51553         * m4/getdomainname.m4: Likewise.
51554         * m4/getgroups.m4: Likewise.
51555         * m4/gethostname.m4: Likewise.
51556         * m4/gethrxtime.m4: Likewise.
51557         * m4/getline.m4: Likewise.
51558         * m4/getloadavg.m4: Likewise.
51559         * m4/getndelim2.m4: Likewise.
51560         * m4/getpass.m4: Likewise.
51561         * m4/gettext.m4: Likewise.
51562         * m4/gettime.m4: Likewise.
51563         * m4/gettimeofday.m4: Likewise.
51564         * m4/gnulib-common.m4: Likewise.
51565         * m4/group-member.m4: Likewise.
51566         * m4/host-os.m4: Likewise.
51567         * m4/iconv.m4: Likewise.
51568         * m4/iconv_open.m4: Likewise.
51569         * m4/inet_ntop.m4: Likewise.
51570         * m4/inet_pton.m4: Likewise.
51571         * m4/inline.m4: Likewise.
51572         * m4/intldir.m4: Likewise.
51573         * m4/intlmacosx.m4: Likewise.
51574         * m4/intmax.m4: Likewise.
51575         * m4/intmax_t.m4: Likewise.
51576         * m4/inttypes.m4: Likewise.
51577         * m4/inttypes_h.m4: Likewise.
51578         * m4/inttypes-pri.m4: Likewise.
51579         * m4/isapipe.m4: Likewise.
51580         * m4/isnand.m4: Likewise.
51581         * m4/isnanf.m4: Likewise.
51582         * m4/isnanl.m4: Likewise.
51583         * m4/javacomp.m4: Likewise.
51584         * m4/javaexec.m4: Likewise.
51585         * m4/jm-winsz1.m4: Likewise.
51586         * m4/jm-winsz2.m4: Likewise.
51587         * m4/lchown.m4: Likewise.
51588         * m4/lcmessage.m4: Likewise.
51589         * m4/ldexpl.m4: Likewise.
51590         * m4/lib-ld.m4: Likewise.
51591         * m4/lib-link.m4: Likewise.
51592         * m4/libsigsegv.m4: Likewise.
51593         * m4/link-follow.m4: Likewise.
51594         * m4/localcharset.m4: Likewise.
51595         * m4/locale-fr.m4: Likewise.
51596         * m4/locale-ja.m4: Likewise.
51597         * m4/locale-tr.m4: Likewise.
51598         * m4/locale-zh.m4: Likewise.
51599         * m4/lock.m4: Likewise.
51600         * m4/longlong.m4: Likewise.
51601         * m4/ls-mntd-fs.m4: Likewise.
51602         * m4/lstat.m4: Likewise.
51603         * m4/malloc.m4: Likewise.
51604         * m4/mathl.m4: Likewise.
51605         * m4/mbrtowc.m4: Likewise.
51606         * m4/mbstate_t.m4: Likewise.
51607         * m4/mbswidth.m4: Likewise.
51608         * m4/memchr.m4: Likewise.
51609         * m4/memcmp.m4: Likewise.
51610         * m4/memcpy.m4: Likewise.
51611         * m4/memmem.m4: Likewise.
51612         * m4/memmove.m4: Likewise.
51613         * m4/mempcpy.m4: Likewise.
51614         * m4/memrchr.m4: Likewise.
51615         * m4/memset.m4: Likewise.
51616         * m4/minmax.m4: Likewise.
51617         * m4/mkdir-slash.m4: Likewise.
51618         * m4/mkdtemp.m4: Likewise.
51619         * m4/mktime.m4: Likewise.
51620         * m4/mmap-anon.m4: Likewise.
51621         * m4/mountlist.m4: Likewise.
51622         * m4/nanosleep.m4: Likewise.
51623         * m4/nls.m4: Likewise.
51624         * m4/nocrash.m4: Likewise.
51625         * m4/open.m4: Likewise.
51626         * m4/openat.m4: Likewise.
51627         * m4/openmp.m4: Likewise.
51628         * m4/pathmax.m4: Likewise.
51629         * m4/perl.m4: Likewise.
51630         * m4/physmem.m4: Likewise.
51631         * m4/pipe.m4: Likewise.
51632         * m4/po.m4: Likewise.
51633         * m4/poll.m4: Likewise.
51634         * m4/posixtm.m4: Likewise.
51635         * m4/posixver.m4: Likewise.
51636         * m4/printf-frexp.m4: Likewise.
51637         * m4/printf-frexpl.m4: Likewise.
51638         * m4/printf-posix.m4: Likewise.
51639         * m4/printf-posix-rpl.m4: Likewise.
51640         * m4/printf.m4: Likewise.
51641         * m4/progtest.m4: Likewise.
51642         * m4/putenv.m4: Likewise.
51643         * m4/readline.m4: Likewise.
51644         * m4/readlink.m4: Likewise.
51645         * m4/readutmp.m4: Likewise.
51646         * m4/realloc.m4: Likewise.
51647         * m4/regex.m4: Likewise.
51648         * m4/relocatable.m4: Likewise.
51649         * m4/relocatable-lib.m4: Likewise.
51650         * m4/rename-dest-slash.m4: Likewise.
51651         * m4/rename.m4: Likewise.
51652         * m4/rmdir-errno.m4: Likewise.
51653         * m4/rmdir.m4: Likewise.
51654         * m4/roundf.m4: Likewise.
51655         * m4/roundl.m4: Likewise.
51656         * m4/rpmatch.m4: Likewise.
51657         * m4/save-cwd.m4: Likewise.
51658         * m4/selinux-selinux-h.m4: Likewise.
51659         * m4/setenv.m4: Likewise.
51660         * m4/settime.m4: Likewise.
51661         * m4/sig2str.m4: Likewise.
51662         * m4/sig_atomic_t.m4: Likewise.
51663         * m4/signalblocking.m4: Likewise.
51664         * m4/signbit.m4: Likewise.
51665         * m4/sigpipe.m4: Likewise.
51666         * m4/sockets.m4: Likewise.
51667         * m4/sockpfaf.m4: Likewise.
51668         * m4/st_dm_mode.m4: Likewise.
51669         * m4/stat-time.m4: Likewise.
51670         * m4/stdbool.m4: Likewise.
51671         * m4/stdint.m4: Likewise.
51672         * m4/stdint_h.m4: Likewise.
51673         * m4/stpcpy.m4: Likewise.
51674         * m4/stpncpy.m4: Likewise.
51675         * m4/strcase.m4: Likewise.
51676         * m4/strchrnul.m4: Likewise.
51677         * m4/strcspn.m4: Likewise.
51678         * m4/strdup.m4: Likewise.
51679         * m4/strftime.m4: Likewise.
51680         * m4/strndup.m4: Likewise.
51681         * m4/strnlen.m4: Likewise.
51682         * m4/strpbrk.m4: Likewise.
51683         * m4/strptime.m4: Likewise.
51684         * m4/strsep.m4: Likewise.
51685         * m4/strtod.m4: Likewise.
51686         * m4/strtoimax.m4: Likewise.
51687         * m4/strtok_r.m4: Likewise.
51688         * m4/strtol.m4: Likewise.
51689         * m4/strtoll.m4: Likewise.
51690         * m4/strtoul.m4: Likewise.
51691         * m4/strtoull.m4: Likewise.
51692         * m4/strtoumax.m4: Likewise.
51693         * m4/strverscmp.m4: Likewise.
51694         * m4/threadlib.m4: Likewise.
51695         * m4/timegm.m4: Likewise.
51696         * m4/tm_gmtoff.m4: Likewise.
51697         * m4/tmpdir.m4: Likewise.
51698         * m4/tmpfile.m4: Likewise.
51699         * m4/tzset.m4: Likewise.
51700         * m4/uintmax_t.m4: Likewise.
51701         * m4/unlinkdir.m4: Likewise.
51702         * m4/unlocked-io.m4: Likewise.
51703         * m4/uptime.m4: Likewise.
51704         * m4/userspec.m4: Likewise.
51705         * m4/utimbuf.m4: Likewise.
51706         * m4/utime.m4: Likewise.
51707         * m4/utimes-null.m4: Likewise.
51708         * m4/utimes.m4: Likewise.
51709         * m4/vararrays.m4: Likewise.
51710         * m4/vasnprintf.m4: Likewise.
51711         * m4/vfprintf-posix.m4: Likewise.
51712         * m4/vprintf-posix.m4: Likewise.
51713         * m4/wait-process.m4: Likewise.
51714         * m4/wchar_t.m4: Likewise.
51715         * m4/wint_t.m4: Likewise.
51716         * m4/write-any-file.m4: Likewise.
51717         * m4/yield.m4: Likewise.
51718
51719 2009-01-13  Bruno Haible  <bruno@clisp.org>
51720
51721         Avoid test-copy-file.sh failures when ACL support insufficient.
51722         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
51723         TESTS_ENVIRONMENT.
51724         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
51725         Reported by Jim Meyering.
51726
51727 2009-01-13  Bruno Haible  <bruno@clisp.org>
51728
51729         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
51730         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
51731         * modules/unistdio/u8-printf-parse (Files): Likewise.
51732         * modules/unistdio/u32-printf-parse (Files): Likewise.
51733         * modules/unistdio/ulc-printf-parse (Files): Likewise.
51734
51735 2009-01-13  Simon Josefsson  <simon@josefsson.org>
51736
51737         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
51738         and m4/inttypes_h.m4 too.
51739
51740 2009-01-12  Eric Blake  <ebb9@byu.net>
51741
51742         tests: IRIX 6.2 cc can't compile -0.0 into .data
51743         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
51744         rather than at compile-time.
51745         * tests/test-floorl.c (minus_zero): Likewise.
51746         * tests/test-frexpl.c (minus_zero): Likewise.
51747         * tests/test-isnan.c (minus_zerol): Likewise.
51748         * tests/test-isnanl.h (minus_zero): Likewise.
51749         * tests/test-ldexpl.c (minus_zero): Likewise.
51750         * tests/test-roundl.c (minus_zero): Likewise.
51751         * tests/test-signbit.c (minus_zerol): Likewise.
51752         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51753         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51754         * tests/test-truncl.c (minus_zero): Likewise.
51755         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51756         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51757         Reported by Tom G. Christensen and Nelson H. F. Beebe.
51758
51759 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51760
51761         regex: fix glibc bug 9697
51762         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
51763         handling.
51764
51765 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51766
51767         regex: fix glibc bug 697
51768         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
51769         being NULL also if there are no backreferences.
51770
51771 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51772
51773         regex: merge glibc changes
51774         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
51775         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
51776         re_string_skip_chars, re_string_reconstruct): Likewise.
51777         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
51778
51779 2009-01-07  Jim Meyering  <meyering@redhat.com>
51780
51781         poll: filter through cppi
51782         * lib/poll.c: Indent cpp directives to reflect nesting.
51783
51784 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
51785
51786         poll: don't return uninitialized
51787         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
51788
51789 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
51790
51791         avoid compile failure on AIX 6.1
51792         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
51793         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
51794
51795 2009-01-04  Jim Meyering  <meyering@redhat.com>
51796
51797         remove duplicate inclusion of <stdio.h>
51798         * tests/test-fprintf-posix.c: Likewise.
51799         * tests/test-printf-posix.c: Likewise.
51800         * tests/test-snprintf-posix.c: Likewise.
51801         * tests/test-sprintf-posix.c: Likewise.
51802         * tests/test-vasprintf-posix.c: Likewise.
51803         * tests/test-vfprintf-posix.c: Likewise.
51804         * tests/test-vprintf-posix.c: Likewise.
51805         * tests/test-vsnprintf-posix.c: Likewise.
51806         * tests/test-vsprintf-posix.c: Likewise.
51807
51808 2009-01-03  Jim Meyering  <meyering@redhat.com>
51809
51810         gnulib-tool: fix sed-based filtering
51811         * gnulib-tool (func_filter_filelist): Remove extra backslash
51812         in sed_fff_filter definition.
51813
51814 2009-01-02  Jim Meyering  <meyering@redhat.com>
51815
51816         strftime: avoid compilation failure on Solaris 2.6
51817         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
51818         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
51819         Don't #define mbrlen or mbsinit, since now they're guaranteed to
51820         be available.  Reported by Tom G. Christensen.  Details in
51821         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
51822
51823 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51824             Bruno Haible  <bruno@clisp.org>
51825
51826         Speed up gnulib-tool by doing more string processing through shell
51827         built-ins.
51828         * gnulib-tool (fast_func_append): New variable.
51829         (func_remove_prefix, func_remove_suffix): New functions.
51830         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
51831         (func_filter_filelist): New function.
51832         (func_get_dependencies): Use func_remove_suffix instead of sed.
51833         (func_get_automake_snippet): Use func_filter_filelist instead of a
51834         subshell and sed invocation.
51835
51836 2009-01-01  Bruno Haible  <bruno@clisp.org>
51837
51838         Fix a security bug.
51839         * gnulib-tool (func_import, import, update): Don't allow the characters
51840         '"', '$', '`', '\' in macro arguments that become part of commands that
51841         are evaluated.
51842
51843 2009-01-01  Bruno Haible  <bruno@clisp.org>
51844
51845         * gnulib-tool (func_reset_sigpipe): Add more comments.
51846
51847 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51848
51849         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
51850         func_emit_tests_Makefile_am, func_import): Abort loops early if we
51851         already know the answer.
51852
51853 2009-01-01  Jim Meyering  <meyering@redhat.com>
51854
51855         * lib/version-etc.c (version_etc_va): Update copyright year.
51856
51857 2008-12-30  Bruno Haible  <bruno@clisp.org>
51858
51859         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
51860         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
51861         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
51862
51863 2008-12-29  Eric Blake  <ebb9@byu.net>
51864
51865         multiarch: avoid autoconf AC_REQUIRE bug
51866         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
51867         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
51868         2.63 and older.
51869         Reported by Bruno Haible, and analyzed in
51870         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
51871
51872 2008-12-29  Bruno Haible  <bruno@clisp.org>
51873
51874         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
51875         files in subdirectories correctly.
51876         Reported by Ralf Wildenhues.
51877
51878 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51879
51880         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
51881         rather than 'join FILE -', for Solaris join.
51882
51883 2008-12-29  Bruno Haible  <bruno@clisp.org>
51884
51885         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
51886         quoting.
51887         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
51888         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
51889         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
51890         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
51891         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
51892         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
51893         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
51894         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
51895         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51896         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
51897         * m4/nls.m4 (AM_NLS): Likewise.
51898         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
51899         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
51900         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
51901         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
51902         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
51903         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
51904         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
51905         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
51906         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
51907         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
51908         * m4/xsize.m4 (gl_XSIZE): Likewise.
51909         Suggested by Jim Meyering.
51910
51911 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51912
51913         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
51914         * lib/parse-duration.c: use a switch instead of cascading if's.
51915
51916 2008-12-29  Eric Blake  <ebb9@byu.net>
51917
51918         wchar.h: supply WEOF on Irix 5.3
51919         * lib/wchar.in.h (wint_t): Also supply WEOF.
51920         * lib/wctype.in.h (wint_t): Likewise.
51921         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
51922         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
51923         Reported by Tom G. Christensen.
51924
51925 2008-12-26  Bruno Haible  <bruno@clisp.org>
51926
51927         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
51928         i486, i586, i686.
51929
51930 2008-12-26  Bruno Haible  <bruno@clisp.org>
51931
51932         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
51933
51934 2008-12-26  Bruno Haible  <bruno@clisp.org>
51935
51936         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
51937         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
51938         not __STDC_CONSTANT_MACROS.
51939         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51940
51941 2008-12-25  Bruno Haible  <bruno@clisp.org>
51942
51943         Add support for universal builds to vasnprintf.
51944         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
51945         universal builds, guess no.
51946         * modules/vasnprintf-posix (Depends-on): Add multiarch.
51947         * modules/vasprintf-posix (Depends-on): Likewise.
51948         * modules/fprintf-posix (Depends-on): Likewise.
51949         * modules/vfprintf-posix (Depends-on): Likewise.
51950         * modules/snprintf-posix (Depends-on): Likewise.
51951         * modules/vsnprintf-posix (Depends-on): Likewise.
51952         * modules/sprintf-posix (Depends-on): Likewise.
51953         * modules/vsprintf-posix (Depends-on): Likewise.
51954         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51955         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51956         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51957         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51958         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51959         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51960         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51961
51962         Add support for universal builds to <inttypes.h>.
51963         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
51964         _SCNu64_PREFIX): In Apple
51965         universal builds, define directly, using _LP64.
51966         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
51967         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
51968         * modules/inttypes (Depends-on): Add multiarch.
51969         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51970
51971         Add support for universal builds to <stdint.h>.
51972         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
51973         universal builds, define directly, using _LP64.
51974         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
51975         Apple universal builds, don't test for the size and suffix of ptrdiff_t
51976         and size_t.
51977         * modules/stdint (Depends-on): Add multiarch.
51978         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51979
51980         New module 'multiarch'.
51981         * modules/multiarch: New file.
51982         * m4/multiarch.m4: New file.
51983
51984 2008-12-25  Bruno Haible  <bruno@clisp.org>
51985
51986         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
51987
51988 2008-12-25  Bruno Haible  <bruno@clisp.org>
51989
51990         * modules/btowc (License): Relicense under LGPLv2+.
51991         * modules/mbsinit (License): Likewise.
51992         * modules/mbrtowc (License): Likewise.
51993         * modules/wcrtomb (License): Likewise.
51994         * modules/streq (License): Likewise.
51995         Reported by David Lutterkort <lutter@redhat.com>.
51996
51997 2008-12-23  Bruno Haible  <bruno@clisp.org>
51998
51999         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
52000
52001 2008-12-23  Bruno Haible  <bruno@clisp.org>
52002
52003         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
52004         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
52005         GETADDRINFO_LIB, not in LIBS.
52006         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
52007         * modules/canon-host (Link): Likewise.
52008         * NEWS: Mention the change.
52009         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
52010         GETADDRINFO_LIB.
52011
52012 2008-12-22  Bruno Haible  <bruno@clisp.org>
52013
52014         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
52015         * doc/posix-functions/iswalpha_l.texi: Likewise.
52016         * doc/posix-functions/iswblank_l.texi: Likewise.
52017         * doc/posix-functions/iswcntrl_l.texi: Likewise.
52018         * doc/posix-functions/iswctype_l.texi: Likewise.
52019         * doc/posix-functions/iswdigit_l.texi: Likewise.
52020         * doc/posix-functions/iswgraph_l.texi: Likewise.
52021         * doc/posix-functions/iswlower_l.texi: Likewise.
52022         * doc/posix-functions/iswprint_l.texi: Likewise.
52023         * doc/posix-functions/iswpunct_l.texi: Likewise.
52024         * doc/posix-functions/iswspace_l.texi: Likewise.
52025         * doc/posix-functions/iswupper_l.texi: Likewise.
52026         * doc/posix-functions/iswxdigit_l.texi: Likewise.
52027         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
52028         * doc/posix-functions/open_wmemstream.texi: Likewise.
52029         * doc/posix-functions/swscanf.texi: Likewise.
52030         * doc/posix-functions/towctrans_l.texi: Likewise.
52031         * doc/posix-functions/towlower.texi: Likewise.
52032         * doc/posix-functions/towlower_l.texi: Likewise.
52033         * doc/posix-functions/towupper.texi: Likewise.
52034         * doc/posix-functions/towupper_l.texi: Likewise.
52035         * doc/posix-functions/vfwprintf.texi: Likewise.
52036         * doc/posix-functions/vfwscanf.texi: Likewise.
52037         * doc/posix-functions/vswscanf.texi: Likewise.
52038         * doc/posix-functions/vwprintf.texi: Likewise.
52039         * doc/posix-functions/vwscanf.texi: Likewise.
52040         * doc/posix-functions/wcpcpy.texi: Likewise.
52041         * doc/posix-functions/wcpncpy.texi: Likewise.
52042         * doc/posix-functions/wcscasecmp.texi: Likewise.
52043         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
52044         * doc/posix-functions/wcscoll_l.texi: Likewise.
52045         * doc/posix-functions/wcsdup.texi: Likewise.
52046         * doc/posix-functions/wcsncasecmp.texi: Likewise.
52047         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
52048         * doc/posix-functions/wcsnlen.texi: Likewise.
52049         * doc/posix-functions/wcsnrtombs.texi: Likewise.
52050         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
52051         * doc/posix-functions/wctrans_l.texi: Likewise.
52052         * doc/posix-functions/wctype_l.texi: Likewise.
52053         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
52054         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
52055         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
52056         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
52057         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
52058         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
52059         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
52060         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
52061         * doc/glibc-functions/wcschrnul.texi: Likewise.
52062         * doc/glibc-functions/wcsftime_l.texi: Likewise.
52063         * doc/glibc-functions/wcstod_l.texi: Likewise.
52064         * doc/glibc-functions/wcstof_l.texi: Likewise.
52065         * doc/glibc-functions/wcstol_l.texi: Likewise.
52066         * doc/glibc-functions/wcstold_l.texi: Likewise.
52067         * doc/glibc-functions/wcstoll_l.texi: Likewise.
52068         * doc/glibc-functions/wcstoq.texi: Likewise.
52069         * doc/glibc-functions/wcstoul_l.texi: Likewise.
52070         * doc/glibc-functions/wcstoull_l.texi: Likewise.
52071         * doc/glibc-functions/wcstouq.texi: Likewise.
52072         * doc/glibc-functions/wmempcpy.texi: Likewise.
52073
52074 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
52075             Eric Blake  <ebb9@byu.net>
52076             Paolo Bonzini  <bonzini@gnu.org>
52077             Bruno Haible  <bruno@clisp.org>
52078
52079         Make c-stack work on Haiku.
52080         * lib/c-stack.c (SA_ONSTACK): Define fallback.
52081         (c_stack_action): Use SA_ONSTACK flag.
52082
52083 2008-12-22  Bruno Haible  <bruno@clisp.org>
52084
52085         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
52086
52087 2008-12-22  Bruno Haible  <bruno@clisp.org>
52088
52089         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
52090         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
52091         being overridden.
52092         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
52093         New macros.
52094         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
52095         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
52096         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
52097         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
52098
52099 2008-12-22  Bruno Haible  <bruno@clisp.org>
52100
52101         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
52102         from test code.
52103
52104 2008-12-22  Eric Blake  <ebb9@byu.net>
52105
52106         Avoid gcc warnings on cygwin.
52107         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
52108         Avoid unused variable.
52109         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
52110         Likewise.
52111
52112 2008-12-22  Bruno Haible  <bruno@clisp.org>
52113
52114         Remove HAVE_MBRTOWC conditionals.
52115         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
52116         (mbscasecmp): Assume mbrtowc function.
52117         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
52118         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
52119         * lib/mbschr.c: Include mbuiter.h unconditionally.
52120         (mbschr): Assume mbrtowc function.
52121         * lib/mbscspn.c: Include mbuiter.h unconditionally.
52122         (mbscspn): Assume mbrtowc function.
52123         * lib/mbslen.c: Include mbuiter.h unconditionally.
52124         (mbslen): Assume mbrtowc function.
52125         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
52126         (mbsncasecmp): Assume mbrtowc function.
52127         * lib/mbsnlen.c: Include mbiter.h unconditionally.
52128         (mbsnlen): Assume mbrtowc function.
52129         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
52130         (mbspbrk): Assume mbrtowc function.
52131         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
52132         (mbspcasecmp): Assume mbrtowc function.
52133         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
52134         (mbsrchr): Assume mbrtowc function.
52135         * lib/mbssep.c: Include mbuiter.h unconditionally.
52136         (mbssep): Assume mbrtowc function.
52137         * lib/mbsspn.c: Include mbuiter.h unconditionally.
52138         (mbsspn): Assume mbrtowc function.
52139         * lib/mbsstr.c: Include mbuiter.h unconditionally.
52140         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
52141         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
52142         (mbstok_r): Assume mbrtowc function.
52143         * lib/propername.c: Include mbuiter.h unconditionally.
52144         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
52145         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
52146         (trim2): Assume mbrtowc function.
52147         * lib/mbswidth.c (mbsinit): Remove fallback definition.
52148         (mbsnwidth): Assume mbrtowc function.
52149         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
52150         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
52151         fallback definitions.
52152         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
52153
52154 2008-12-22  Bruno Haible  <bruno@clisp.org>
52155
52156         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
52157
52158 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
52159
52160         * modules/regex: Request emulations for the mb*/wc* functions we need.
52161         * m4/regex.m4: Don't look for those functions here.
52162         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
52163
52164 2008-12-22  Bruno Haible  <bruno@clisp.org>
52165
52166         * modules/fnmatch (Depends-on): Remove duplicated dependency.
52167
52168 2008-12-21  Bruno Haible  <bruno@clisp.org>
52169
52170         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
52171         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
52172         (Include): Remove conditionalization.
52173         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
52174         (Include): Remove conditionalization.
52175         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
52176         (Include): Remove conditionalization.
52177         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
52178         * m4/mbfile.m4 (gl_MBFILE): Likewise.
52179         * NEWS: Mention the change.
52180         Reported by Alan Hourihane <alanh@fairlite.co.uk>
52181         via Sergey Poznyakoff <gray@gnu.org.ua>.
52182
52183 2008-12-21  Bruno Haible  <bruno@clisp.org>
52184
52185         * MODULES.html.sh (Extended multibyte and wide character utilities
52186         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
52187         wcrtomb, wcsrtombs.
52188         (Support for systems lacking POSIX:2008): Add accept, bind, close,
52189         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
52190         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
52191         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
52192
52193 2008-12-21  Bruno Haible  <bruno@clisp.org>
52194
52195         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
52196
52197 2008-12-21  Bruno Haible  <bruno@clisp.org>
52198
52199         * modules/wcsnrtombs-tests: New file.
52200         * tests/test-wcsnrtombs1.sh: New file.
52201         * tests/test-wcsnrtombs2.sh: New file.
52202         * tests/test-wcsnrtombs3.sh: New file.
52203         * tests/test-wcsnrtombs4.sh: New file.
52204         * tests/test-wcsnrtombs.c: New file.
52205
52206         New module 'wcsnrtombs'.
52207         * lib/wchar.in.h (wcsnrtombs): New declaration.
52208         * lib/wcsnrtombs.c: New file.
52209         * lib/wcsrtombs-state.c: New file.
52210         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
52211         (internal_state): Remove variable.
52212         * m4/wcsnrtombs.m4: New file.
52213         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
52214         compilation units.
52215         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
52216         HAVE_WCSNRTOMBS.
52217         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
52218         HAVE_WCSNRTOMBS.
52219         * modules/wcsnrtombs: New file.
52220         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
52221         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
52222
52223 2008-12-21  Bruno Haible  <bruno@clisp.org>
52224
52225         * modules/wcsrtombs-tests: New file.
52226         * tests/test-wcsrtombs1.sh: New file.
52227         * tests/test-wcsrtombs2.sh: New file.
52228         * tests/test-wcsrtombs3.sh: New file.
52229         * tests/test-wcsrtombs4.sh: New file.
52230         * tests/test-wcsrtombs.c: New file.
52231
52232         New module 'wcsrtombs'.
52233         * lib/wchar.in.h (wcsrtombs): New declaration.
52234         * lib/wcsrtombs.c: New file.
52235         * m4/wcsrtombs.m4: New file.
52236         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
52237         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52238         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
52239         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52240         * modules/wcsrtombs: New file.
52241         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
52242         bugs.
52243
52244 2008-12-21  Bruno Haible  <bruno@clisp.org>
52245
52246         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
52247         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
52248         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
52249         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
52250         if not correct.
52251         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
52252         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
52253         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52254         m4/locale-zh.m4, m4/codeset.m4.
52255         * doc/posix-functions/wcrtomb.texi: Document the bug.
52256
52257 2008-12-21  Bruno Haible  <bruno@clisp.org>
52258
52259         Work around a btowc() bug on IRIX 6.5.
52260         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
52261         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
52262         REPLACE_WTOBC if not.
52263         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
52264         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
52265         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
52266
52267 2008-12-21  Bruno Haible  <bruno@clisp.org>
52268
52269         * modules/wcrtomb-tests: New file.
52270         * tests/test-wcrtomb.sh: New file.
52271         * tests/test-wcrtomb.c: New file.
52272
52273         New module 'wcrtomb'.
52274         * lib/wchar.in.h (wcrtomb): New declaration.
52275         * lib/wcrtomb.c: New file.
52276         * m4/wcrtomb.m4: New file.
52277         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
52278         HAVE_WCRTOMB.
52279         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
52280         HAVE_WCRTOMB.
52281         * modules/wcrtomb: New file.
52282         * doc/posix-functions/wcrtomb.texi: Mention the new module.
52283
52284 2008-12-21  Bruno Haible  <bruno@clisp.org>
52285
52286         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
52287         * modules/mbsrtowcs (Files): Likewise.
52288         * modules/wctob (Files): Likewise.
52289         * modules/c-strcase-tests (Files): Likewise.
52290         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
52291         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
52292         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
52293         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
52294         * modules/vasnprintf-posix-tests (Files): Likewise.
52295
52296 2008-12-21  William Pursell  <bill.pursell@gmail.com>
52297
52298         gitlog-to-changelog: pass all command-line arguments to git-log
52299         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
52300         it is sometimes convenient to filter the commits in various ways.
52301         gitlog-to-changelog only allows --since to specify a start date,
52302         but git-log itself supports many other filtering mechanisms.
52303         At the moment, I want to filter by branch name.  Rather than
52304         adding a --branch option to gitlog-to-changelog, it seems more
52305         flexible to simply pass all options directly to git-log and let
52306         git do the work.  Notice that this effectively makes --since a
52307         redundant option for gitlog-to-changelog, but removing it would
52308         require current usage to change since calls would then require
52309         an additional '--'.
52310
52311 2008-12-21  Bruno Haible  <bruno@clisp.org>
52312
52313         * modules/mbsnrtowcs-tests: New file.
52314         * tests/test-mbsnrtowcs1.sh: New file.
52315         * tests/test-mbsnrtowcs2.sh: New file.
52316         * tests/test-mbsnrtowcs3.sh: New file.
52317         * tests/test-mbsnrtowcs4.sh: New file.
52318         * tests/test-mbsnrtowcs.c: New file.
52319
52320         New module 'mbsnrtowcs'.
52321         * lib/wchar.in.h (mbsnrtowcs): New declaration.
52322         * lib/mbsnrtowcs.c: New file.
52323         * lib/mbsrtowcs-state.c: New file.
52324         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
52325         (internal_state): Remove variable.
52326         * m4/mbsnrtowcs.m4: New file.
52327         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
52328         compilation units.
52329         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
52330         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52331         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
52332         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52333         * modules/mbsnrtowcs: New file.
52334         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
52335         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
52336         portability problem.
52337
52338 2008-12-21  Bruno Haible  <bruno@clisp.org>
52339
52340         Work around mbsrtowcs bug.
52341         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
52342         (gl_FUNC_MBSRTOWCS): Invoke it.
52343         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52344         m4/locale-zh.m4.
52345         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
52346
52347 2008-12-21  Bruno Haible  <bruno@clisp.org>
52348
52349         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
52350
52351 2008-12-21  Bruno Haible  <bruno@clisp.org>
52352
52353         Update doc for AIX.
52354         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
52355         16-bit wchar_t type.
52356         * doc/posix-functions/btowc.texi: Likewise.
52357         * doc/posix-functions/fgetwc.texi: Likewise.
52358         * doc/posix-functions/fgetws.texi: Likewise.
52359         * doc/posix-functions/fputwc.texi: Likewise.
52360         * doc/posix-functions/fputws.texi: Likewise.
52361         * doc/posix-functions/fwide.texi: Likewise.
52362         * doc/posix-functions/fwprintf.texi: Likewise.
52363         * doc/posix-functions/fwscanf.texi: Likewise.
52364         * doc/posix-functions/getwchar.texi: Likewise.
52365         * doc/posix-functions/getwc.texi: Likewise.
52366         * doc/posix-functions/iswalnum.texi: Likewise.
52367         * doc/posix-functions/iswalpha.texi: Likewise.
52368         * doc/posix-functions/iswblank.texi: Likewise.
52369         * doc/posix-functions/iswcntrl.texi: Likewise.
52370         * doc/posix-functions/iswctype.texi: Likewise.
52371         * doc/posix-functions/iswdigit.texi: Likewise.
52372         * doc/posix-functions/iswgraph.texi: Likewise.
52373         * doc/posix-functions/iswlower.texi: Likewise.
52374         * doc/posix-functions/iswprint.texi: Likewise.
52375         * doc/posix-functions/iswpunct.texi: Likewise.
52376         * doc/posix-functions/iswspace.texi: Likewise.
52377         * doc/posix-functions/iswupper.texi: Likewise.
52378         * doc/posix-functions/iswxdigit.texi: Likewise.
52379         * doc/posix-functions/mbrtowc.texi: Likewise.
52380         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52381         * doc/posix-functions/mbstowcs.texi: Likewise.
52382         * doc/posix-functions/mbtowc.texi: Likewise.
52383         * doc/posix-functions/putwchar.texi: Likewise.
52384         * doc/posix-functions/putwc.texi: Likewise.
52385         * doc/posix-functions/swprintf.texi: Likewise.
52386         * doc/posix-functions/tolower.texi: Likewise.
52387         * doc/posix-functions/toupper.texi: Likewise.
52388         * doc/posix-functions/towctrans.texi: Likewise.
52389         * doc/posix-functions/ungetwc.texi: Likewise.
52390         * doc/posix-functions/vswprintf.texi: Likewise.
52391         * doc/posix-functions/wcrtomb.texi: Likewise.
52392         * doc/posix-functions/wcscat.texi: Likewise.
52393         * doc/posix-functions/wcschr.texi: Likewise.
52394         * doc/posix-functions/wcscmp.texi: Likewise.
52395         * doc/posix-functions/wcscoll.texi: Likewise.
52396         * doc/posix-functions/wcscpy.texi: Likewise.
52397         * doc/posix-functions/wcscspn.texi: Likewise.
52398         * doc/posix-functions/wcsftime.texi: Likewise.
52399         * doc/posix-functions/wcslen.texi: Likewise.
52400         * doc/posix-functions/wcsncat.texi: Likewise.
52401         * doc/posix-functions/wcsncmp.texi: Likewise.
52402         * doc/posix-functions/wcsncpy.texi: Likewise.
52403         * doc/posix-functions/wcspbrk.texi: Likewise.
52404         * doc/posix-functions/wcsrchr.texi: Likewise.
52405         * doc/posix-functions/wcsrtombs.texi: Likewise.
52406         * doc/posix-functions/wcsspn.texi: Likewise.
52407         * doc/posix-functions/wcsstr.texi: Likewise.
52408         * doc/posix-functions/wcstod.texi: Likewise.
52409         * doc/posix-functions/wcstof.texi: Likewise.
52410         * doc/posix-functions/wcstoimax.texi: Likewise.
52411         * doc/posix-functions/wcstok.texi: Likewise.
52412         * doc/posix-functions/wcstold.texi: Likewise.
52413         * doc/posix-functions/wcstoll.texi: Likewise.
52414         * doc/posix-functions/wcstol.texi: Likewise.
52415         * doc/posix-functions/wcstombs.texi: Likewise.
52416         * doc/posix-functions/wcstoull.texi: Likewise.
52417         * doc/posix-functions/wcstoul.texi: Likewise.
52418         * doc/posix-functions/wcstoumax.texi: Likewise.
52419         * doc/posix-functions/wcswidth.texi: Likewise.
52420         * doc/posix-functions/wcsxfrm.texi: Likewise.
52421         * doc/posix-functions/wctob.texi: Likewise.
52422         * doc/posix-functions/wctomb.texi: Likewise.
52423         * doc/posix-functions/wctrans.texi: Likewise.
52424         * doc/posix-functions/wctype.texi: Likewise.
52425         * doc/posix-functions/wcwidth.texi: Likewise.
52426         * doc/posix-functions/wmemchr.texi: Likewise.
52427         * doc/posix-functions/wmemcmp.texi: Likewise.
52428         * doc/posix-functions/wmemcpy.texi: Likewise.
52429         * doc/posix-functions/wmemmove.texi: Likewise.
52430         * doc/posix-functions/wmemset.texi: Likewise.
52431         * doc/posix-functions/wprintf.texi: Likewise.
52432         * doc/posix-functions/wscanf.texi: Likewise.
52433
52434 2008-12-21  Bruno Haible  <bruno@clisp.org>
52435
52436         Update doc for HP-UX 11.11.
52437         * doc/posix-functions/btowc.texi: Clarify that the function is missing
52438         in HP-UX version 11.00, not in all versions of HP-UX 11.
52439         * doc/posix-functions/fwide.texi: Likewise.
52440         * doc/posix-functions/fwprintf.texi: Likewise.
52441         * doc/posix-functions/fwscanf.texi: Likewise.
52442         * doc/posix-functions/inet_ntop.texi: Likewise.
52443         * doc/posix-functions/inet_pton.texi: Likewise.
52444         * doc/posix-functions/mbrlen.texi: Likewise.
52445         * doc/posix-functions/mbrtowc.texi: Likewise.
52446         * doc/posix-functions/mbsinit.texi: Likewise.
52447         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52448         * doc/posix-functions/swprintf.texi: Likewise.
52449         * doc/posix-functions/swscanf.texi: Likewise.
52450         * doc/posix-functions/towctrans.texi: Likewise.
52451         * doc/posix-functions/vfwprintf.texi: Likewise.
52452         * doc/posix-functions/vswprintf.texi: Likewise.
52453         * doc/posix-functions/vwprintf.texi: Likewise.
52454         * doc/posix-functions/wcrtomb.texi: Likewise.
52455         * doc/posix-functions/wcsrtombs.texi: Likewise.
52456         * doc/posix-functions/wcsstr.texi: Likewise.
52457         * doc/posix-functions/wctob.texi: Likewise.
52458         * doc/posix-functions/wctrans.texi: Likewise.
52459         * doc/posix-functions/wmemchr.texi: Likewise.
52460         * doc/posix-functions/wmemcmp.texi: Likewise.
52461         * doc/posix-functions/wmemcpy.texi: Likewise.
52462         * doc/posix-functions/wmemmove.texi: Likewise.
52463         * doc/posix-functions/wmemset.texi: Likewise.
52464         * doc/posix-functions/wprintf.texi: Likewise.
52465         * doc/posix-functions/wscanf.texi: Likewise.
52466
52467 2008-12-21  Bruno Haible  <bruno@clisp.org>
52468
52469         Work around a portability problem.
52470         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
52471         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
52472
52473 2008-12-20  Bruno Haible  <bruno@clisp.org>
52474
52475         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
52476         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
52477         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
52478         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
52479         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
52480
52481         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
52482         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
52483         set.
52484         (GNULIB_defined_mbstate_t): New macro.
52485         (mbsinit): Redefine if REPLACE_MBSINIT is set.
52486         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
52487         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
52488         reuses the system's mbrtowc function but works around the bugs.
52489         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
52490         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
52491         macros.
52492         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
52493         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
52494         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
52495         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
52496         REPLACE_MBSINIT if mbsinit needs to be overridden.
52497         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
52498         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52499         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
52500         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52501         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52502         m4/locale-zh.m4.
52503         (Depends): Add mbsinit.
52504         * modules/mbsinit (Depends): Add mbrtowc.
52505         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
52506
52507 2008-12-20  Bruno Haible  <bruno@clisp.org>
52508
52509         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
52510         so that there are no conversion errors on AIX.
52511         * tests/test-mbsrtowcs.c (main): LIkewise.
52512
52513 2008-12-20  Bruno Haible  <bruno@clisp.org>
52514
52515         Work around wctob bug on Solaris <= 9.
52516         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
52517         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
52518         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
52519         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
52520         * modules/wctob (Files): Add m4/locale-fr.m4.
52521         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
52522
52523 2008-12-20  Bruno Haible  <bruno@clisp.org>
52524
52525         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
52526         /dev/null.
52527         * tests/test-select-in.sh: Likewise.
52528         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52529
52530 2008-12-20  Bruno Haible  <bruno@clisp.org>
52531
52532         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
52533         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
52534         Cygwin 1.5.x.
52535
52536 2008-12-20  Bruno Haible  <bruno@clisp.org>
52537
52538         Ensure mbstate_t is defined on HP-UX 11.11.
52539         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
52540         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
52541         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
52542         AC_USE_SYSTEM_EXTENSIONS.
52543         * modules/fnmatch (Depends-on): Add extensions.
52544         * modules/mbrlen (Depends-on): Likewise.
52545         * modules/mbrtowc (Depends-on): Likewise.
52546         * modules/mbsinit (Depends-on): Likewise.
52547         * modules/mbsrtowcs (Depends-on): Likewise.
52548         * modules/mbswidth (Depends-on): Likewise.
52549         * modules/quotearg (Depends-on): Likewise.
52550         * modules/strftime (Depends-on): Likewise.
52551
52552 2008-12-20  Bruno Haible  <bruno@clisp.org>
52553
52554         Ensure wctob is declared on IRIX 6.5.
52555         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
52556         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
52557         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
52558         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
52559         of HAVE_WCTOB.
52560         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
52561         HAVE_WCTOB.
52562         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
52563
52564 2008-12-19  Bruno Haible  <bruno@clisp.org>
52565
52566         * modules/mbsrtowcs-tests: New file.
52567         * tests/test-mbsrtowcs1.sh: New file.
52568         * tests/test-mbsrtowcs2.sh: New file.
52569         * tests/test-mbsrtowcs3.sh: New file.
52570         * tests/test-mbsrtowcs4.sh: New file.
52571         * tests/test-mbsrtowcs.c: New file.
52572
52573         New module 'mbsrtowcs'.
52574         * lib/wchar.in.h (mbsrtowcs): New declaration.
52575         * lib/mbsrtowcs.c: New file.
52576         * m4/mbsrtowcs.m4: New file.
52577         * modules/mbsrtowcs: New file.
52578         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
52579         HAVE_MBSRTOWCS.
52580         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
52581         HAVE_MBSRTOWCS.
52582         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
52583
52584 2008-12-19  Bruno Haible  <bruno@clisp.org>
52585
52586         New module 'mbrlen'.
52587         * lib/wchar.in.h (mbrlen): New declaration.
52588         * lib/mbrlen.c: New file.
52589         * m4/mbrlen.m4: New file.
52590         * modules/mbrlen: New file.
52591         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
52592         HAVE_MBRLEN.
52593         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
52594         HAVE_MBRLEN.
52595         * doc/posix-functions/mbrlen.texi: Document the new module.
52596
52597 2008-12-19  Bruno Haible  <bruno@clisp.org>
52598
52599         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
52600         * modules/mbrtowc (Depends-on): Add verify.
52601         Suggested by Paul Eggert.
52602
52603 2008-12-18  Bruno Haible  <bruno@clisp.org>
52604
52605         * modules/mbsinit-tests: New file.
52606         * tests/test-mbsinit.sh: New file.
52607         * tests/test-mbsinit.c: New file.
52608
52609 2008-12-18  Bruno Haible  <bruno@clisp.org>
52610
52611         * modules/mbrtowc-tests: New file.
52612         * tests/test-mbrtowc1.sh: New file.
52613         * tests/test-mbrtowc2.sh: New file.
52614         * tests/test-mbrtowc3.sh: New file.
52615         * tests/test-mbrtowc4.sh: New file.
52616         * tests/test-mbrtowc.c: New file.
52617
52618         New module 'mbrtowc'.
52619         * lib/wchar.in.h (mbstate_t): Override when the system does not have
52620         mbsinit and mbrtowc.
52621         (mbrtowc): New declaration.
52622         * lib/mbrtowc.c: New file.
52623         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
52624         * modules/mbrtowc: New file.
52625         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
52626         HAVE_MBRTOWC.
52627         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
52628         HAVE_MBRTOWC.
52629         * doc/posix-functions/mbrtowc.texi: Document the new module.
52630
52631 2008-12-18  Bruno Haible  <bruno@clisp.org>
52632
52633         New module 'wctob'.
52634         * lib/wchar.in.h (wctob): New declaration.
52635         * lib/wctob.c: New file.
52636         * m4/wctob.m4: New file.
52637         * modules/wctob: New file.
52638         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
52639         HAVE_WCTOB.
52640         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
52641         * doc/posix-functions/wctob.texi: Document the new module.
52642
52643 2008-12-18  Bruno Haible  <bruno@clisp.org>
52644
52645         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
52646         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
52647
52648 2008-12-18  Simon Josefsson  <simon@josefsson.org>
52649
52650         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
52651         G. Christensen" <tgc@jupiterrise.com>.
52652
52653         * lib/flock.c: Need to include errno.h.  Reported by "Tom
52654         G. Christensen" <tgc@jupiterrise.com>.
52655
52656         * lib/flock.c: Need to include string.h.  Reported by "Tom
52657         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
52658         <ebb9@byu.net>.
52659
52660 2008-12-18  Bruno Haible  <bruno@clisp.org>
52661
52662         * m4/locale-ja.m4: New file, from GNU gettext.
52663
52664 2008-12-17  Bruno Haible  <bruno@clisp.org>
52665
52666         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
52667         Suggested by Eric Blake.
52668
52669 2008-12-17  Bruno Haible  <bruno@clisp.org>
52670
52671         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
52672
52673 2008-12-17  Bruno Haible  <bruno@clisp.org>
52674
52675         * lib/mbsinit.c: Include verify.h. Verify an assumption.
52676         * modules/mbsinit (Depends-on): Add verify.
52677         Suggested by Paul Eggert.
52678
52679 2008-12-17  Bruno Haible  <bruno@clisp.org>
52680
52681         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
52682         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
52683         gl_FUNC_MBRTOWC.
52684         * m4/mbiter.m4 (gl_MBITER): LIkewise.
52685         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
52686         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
52687         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
52688         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
52689         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
52690         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
52691         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
52692         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
52693         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
52694         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
52695         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
52696         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
52697         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
52698         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
52699         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52700         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
52701         * modules/trim (configure.ac): Likewise.
52702
52703 2008-12-17  Bruno Haible  <bruno@clisp.org>
52704
52705         * modules/btowc-tests: New file.
52706         * tests/test-btowc1.sh: New file.
52707         * tests/test-btowc2.sh: New file.
52708         * tests/test-btowc.c: New file.
52709
52710         New module 'btowc'.
52711         * lib/wchar.in.h (btowc): New declaration.
52712         * lib/btowc.c: New file.
52713         * m4/btowc.m4: New file.
52714         * modules/btowc: New file.
52715         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
52716         HAVE_BTOWC.
52717         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
52718         * doc/posix-functions/btowc.texi: Document the new module.
52719
52720 2008-12-17  Bruno Haible  <bruno@clisp.org>
52721
52722         New module 'mbsinit'.
52723         * lib/wchar.in.h (mbsinit): New declaration.
52724         * lib/mbsinit.c: New file.
52725         * m4/mbsinit.m4: New file.
52726         * modules/mbsinit: New file.
52727         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
52728         HAVE_MBSINIT.
52729         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
52730         HAVE_MBSINIT.
52731         * doc/posix-functions/mbsinit.texi: Document the new module.
52732
52733 2008-12-16  Bruno Haible  <bruno@clisp.org>
52734
52735         * lib/unistd.in.h: Add comment.
52736         * tests/test-environ.c: Don't include <stdlib.h>.
52737
52738 2008-12-16  Bruno Haible  <bruno@clisp.org>
52739
52740         * lib/parse-duration.h (parse_duration): Document return value
52741         convention.
52742         * lib/parse-duration.c: Include specification header first. Add
52743         comments.
52744         (_): Remove macro.
52745         (parse_year_month_day, parse_hour_minute_second): Move side effects
52746         outside of strchr call.
52747         (parse_non_iso8601): Move side effects outside of isspace call.
52748         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
52749         call.
52750
52751 2008-12-16  Bruno Haible  <bruno@clisp.org>
52752
52753         * tests/test-parse-duration.sh: Produce no output when the test
52754         succeeds.
52755
52756 2008-12-16  Bruno Haible  <bruno@clisp.org>
52757
52758         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
52759         expressions.
52760
52761 2008-12-15  Bruno Haible  <bruno@clisp.org>
52762
52763         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
52764         * doc/glibc-functions/flistxattr.texi: Likewise.
52765         * doc/glibc-functions/fopencookie.texi: Likewise.
52766         * doc/glibc-functions/fremovexattr.texi: Likewise.
52767         * doc/glibc-functions/fsetxattr.texi: Likewise.
52768         * doc/glibc-functions/getxattr.texi: Likewise.
52769         * doc/glibc-functions/lgetxattr.texi: Likewise.
52770         * doc/glibc-functions/listxattr.texi: Likewise.
52771         * doc/glibc-functions/llistxattr.texi: Likewise.
52772         * doc/glibc-functions/lremovexattr.texi: Likewise.
52773         * doc/glibc-functions/lsetxattr.texi: Likewise.
52774         * doc/glibc-functions/removexattr.texi: Likewise.
52775         * doc/glibc-functions/setxattr.texi: Likewise.
52776         * doc/posix-functions/open_memstream.texi: Likewise.
52777
52778 2008-12-15  Eric Blake  <ebb9@byu.net>
52779
52780         Update doc for cygwin 1.7.
52781         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
52782         functions.
52783         * doc/posix-functions/fchmodat.texi: Likewise.
52784         * doc/posix-functions/fchownat.texi: Likewise.
52785         * doc/posix-functions/fdopendir.texi: Likewise.
52786         * doc/posix-functions/fmemopen.texi: Likewise.
52787         * doc/posix-functions/freeaddrinfo.texi: Likewise.
52788         * doc/posix-functions/fstatat.texi: Likewise.
52789         * doc/posix-functions/futimens.texi: Likewise.
52790         * doc/posix-functions/gai_strerror.texi: Likewise.
52791         * doc/posix-functions/getaddrinfo.texi: Likewise.
52792         * doc/posix-functions/getnameinfo.texi: Likewise.
52793         * doc/posix-functions/if_freenameindex.texi: Likewise.
52794         * doc/posix-functions/if_indextoname.texi: Likewise.
52795         * doc/posix-functions/if_nameindex.texi: Likewise.
52796         * doc/posix-functions/if_nametoindex.texi: Likewise.
52797         * doc/posix-functions/insque.texi: Likewise.
52798         * doc/posix-functions/linkat.texi: Likewise.
52799         * doc/posix-functions/llrint.texi: Likewise.
52800         * doc/posix-functions/llrintf.texi: Likewise.
52801         * doc/posix-functions/llrintl.texi: Likewise.
52802         * doc/posix-functions/lockf.texi: Likewise.
52803         * doc/posix-functions/lrintl.texi: Likewise.
52804         * doc/posix-functions/mkdirat.texi: Likewise.
52805         * doc/posix-functions/mkfifoat.texi: Likewise.
52806         * doc/posix-functions/mknodat.texi: Likewise.
52807         * doc/posix-functions/mq_close.texi: Likewise.
52808         * doc/posix-functions/mq_getattr.texi: Likewise.
52809         * doc/posix-functions/mq_notify.texi: Likewise.
52810         * doc/posix-functions/mq_open.texi: Likewise.
52811         * doc/posix-functions/mq_receive.texi: Likewise.
52812         * doc/posix-functions/mq_send.texi: Likewise.
52813         * doc/posix-functions/mq_setattr.texi: Likewise.
52814         * doc/posix-functions/mq_timedreceive.texi: Likewise.
52815         * doc/posix-functions/mq_timedsend.texi: Likewise.
52816         * doc/posix-functions/mq_unlink.texi: Likewise.
52817         * doc/posix-functions/open_memstream.texi: Likewise.
52818         * doc/posix-functions/openat.texi: Likewise.
52819         * doc/posix-functions/posix_fadvise.texi: Likewise.
52820         * doc/posix-functions/posix_fallocate.texi: Likewise.
52821         * doc/posix-functions/posix_madvise.texi: Likewise.
52822         * doc/posix-functions/posix_memalign.texi: Likewise.
52823         * doc/posix-functions/posix_openpt.texi: Likewise.
52824         * doc/posix-functions/readlinkat.texi: Likewise.
52825         * doc/posix-functions/remque.texi: Likewise.
52826         * doc/posix-functions/renameat.texi: Likewise.
52827         * doc/posix-functions/rintl.texi: Likewise.
52828         * doc/posix-functions/sem_unlink.texi: Likewise.
52829         * doc/posix-functions/shm_open.texi: Likewise.
52830         * doc/posix-functions/shm_unlink.texi: Likewise.
52831         * doc/posix-functions/signgam.texi: Likewise.
52832         * doc/posix-functions/sigset.texi: Likewise.
52833         * doc/posix-functions/stpcpy.texi: Likewise.
52834         * doc/posix-functions/stpncpy.texi: Likewise.
52835         * doc/posix-functions/strerror.texi: Likewise.
52836         * doc/posix-functions/strtod.texi: Likewise.
52837         * doc/posix-functions/symlinkat.texi: Likewise.
52838         * doc/posix-functions/unlinkat.texi: Likewise.
52839         * doc/posix-functions/utimensat.texi: Likewise.
52840         * doc/glibc-functions/bindresvport.texi: Likewise.
52841         * doc/glibc-functions/dn_expand.texi: Likewise.
52842         * doc/glibc-functions/exp10.texi: Likewise.
52843         * doc/glibc-functions/exp10f.texi: Likewise.
52844         * doc/glibc-functions/fgetxattr.texi: Likewise.
52845         * doc/glibc-functions/flistxattr.texi: Likewise.
52846         * doc/glibc-functions/fopencookie.texi: Likewise.
52847         * doc/glibc-functions/freeifaddrs.texi: Likewise.
52848         * doc/glibc-functions/fremovexattr.texi: Likewise.
52849         * doc/glibc-functions/fsetxattr.texi: Likewise.
52850         * doc/glibc-functions/getifaddrs.texi: Likewise.
52851         * doc/glibc-functions/getxattr.texi: Likewise.
52852         * doc/glibc-functions/lgetxattr.texi: Likewise.
52853         * doc/glibc-functions/listxattr.texi: Likewise.
52854         * doc/glibc-functions/llistxattr.texi: Likewise.
52855         * doc/glibc-functions/lremovexattr.texi: Likewise.
52856         * doc/glibc-functions/lsetxattr.texi: Likewise.
52857         * doc/glibc-functions/pow10.texi: Likewise.
52858         * doc/glibc-functions/pow10f.texi: Likewise.
52859         * doc/glibc-functions/rcmd_af.texi: Likewise.
52860         * doc/glibc-functions/removexattr.texi: Likewise.
52861         * doc/glibc-functions/res_init.texi: Likewise.
52862         * doc/glibc-functions/res_mkquery.texi: Likewise.
52863         * doc/glibc-functions/res_query.texi: Likewise.
52864         * doc/glibc-functions/res_querydomain.texi: Likewise.
52865         * doc/glibc-functions/res_send.texi: Likewise.
52866         * doc/glibc-functions/rresvport_af.texi: Likewise.
52867         * doc/glibc-functions/setxattr.texi: Likewise.
52868         * doc/glibc-functions/strcasestr.texi: Likewise.
52869
52870 2008-12-15  Bruno Haible  <bruno@clisp.org>
52871
52872         Fix compilation error on OSF/1 4.0.
52873         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
52874         <sys/time.h>, simply delegate to the system header.
52875         Reported by Daniel Richard G. <oss@teragram.com>.
52876
52877 2008-12-15  Bruno Haible  <bruno@clisp.org>
52878
52879         * doc/posix-functions/openat.texi: Mention the 'openat' module.
52880         * doc/posix-functions/fchmodat.texi: Likewise.
52881         * doc/posix-functions/fchownat.texi: Likewise.
52882         * doc/posix-functions/fdopendir.texi: Likewise.
52883         * doc/posix-functions/fstatat.texi: Likewise.
52884         * doc/posix-functions/mkdirat.texi: Likewise.
52885         * doc/posix-functions/unlinkat.texi: Likewise.
52886
52887 2008-12-14  Bruno Haible  <bruno@clisp.org>
52888
52889         Update doc for POSIX:2008.
52890         * doc/posix-functions/faccessat.texi: New file.
52891         * doc/posix-functions/fchmodat.texi: New file.
52892         * doc/posix-functions/fchownat.texi: New file.
52893         * doc/posix-functions/fdopendir.texi: New file.
52894         * doc/posix-functions/fstatat.texi: New file.
52895         * doc/posix-functions/futimens.texi: New file.
52896         * doc/posix-functions/linkat.texi: New file.
52897         * doc/posix-functions/mkdirat.texi: New file.
52898         * doc/posix-functions/mkfifoat.texi: New file.
52899         * doc/posix-functions/mknodat.texi: New file.
52900         * doc/posix-functions/open_wmemstream.texi: New file.
52901         * doc/posix-functions/openat.texi: New file.
52902         * doc/posix-functions/psiginfo.texi: New file.
52903         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
52904         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
52905         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
52906         * doc/posix-functions/readlinkat.texi: New file.
52907         * doc/posix-functions/renameat.texi: New file.
52908         * doc/posix-functions/strerror_l.texi: New file.
52909         * doc/posix-functions/symlinkat.texi: New file.
52910         * doc/posix-functions/unlinkat.texi: New file.
52911         * doc/posix-functions/utimensat.texi: New file.
52912         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52913
52914 2008-12-14  Bruno Haible  <bruno@clisp.org>
52915
52916         Update doc for POSIX:2008.
52917         * doc/posix-functions/alphasort.texi: Renamed from
52918         doc/glibc-functions/alphasort.texi.
52919         * doc/posix-functions/dirfd.texi: Renamed from
52920         doc/glibc-functions/dirfd.texi.
52921         * doc/posix-functions/dprintf.texi: Renamed from
52922         doc/glibc-functions/dprintf.texi.
52923         * doc/posix-functions/duplocale.texi: Renamed from
52924         doc/glibc-functions/duplocale.texi.
52925         * doc/posix-functions/fexecve.texi: Renamed from
52926         doc/glibc-functions/fexecve.texi.
52927         * doc/posix-functions/fmemopen.texi: Renamed from
52928         doc/glibc-functions/fmemopen.texi.
52929         * doc/posix-functions/freelocale.texi: Renamed from
52930         doc/glibc-functions/freelocale.texi.
52931         * doc/posix-functions/getdate_err.texi: Renamed from
52932         doc/glibc-functions/getdate_err.texi.
52933         * doc/posix-functions/isalnum_l.texi: Renamed from
52934         doc/glibc-functions/isalnum_l.texi.
52935         * doc/posix-functions/isalpha_l.texi: Renamed from
52936         doc/glibc-functions/isalpha_l.texi.
52937         * doc/posix-functions/isblank_l.texi: Renamed from
52938         doc/glibc-functions/isblank_l.texi.
52939         * doc/posix-functions/iscntrl_l.texi: Renamed from
52940         doc/glibc-functions/iscntrl_l.texi.
52941         * doc/posix-functions/isdigit_l.texi: Renamed from
52942         doc/glibc-functions/isdigit_l.texi.
52943         * doc/posix-functions/isgraph_l.texi: Renamed from
52944         doc/glibc-functions/isgraph_l.texi.
52945         * doc/posix-functions/islower_l.texi: Renamed from
52946         doc/glibc-functions/islower_l.texi.
52947         * doc/posix-functions/isprint_l.texi: Renamed from
52948         doc/glibc-functions/isprint_l.texi.
52949         * doc/posix-functions/ispunct_l.texi: Renamed from
52950         doc/glibc-functions/ispunct_l.texi.
52951         * doc/posix-functions/isspace_l.texi: Renamed from
52952         doc/glibc-functions/isspace_l.texi.
52953         * doc/posix-functions/isupper_l.texi: Renamed from
52954         doc/glibc-functions/isupper_l.texi.
52955         * doc/posix-functions/iswalnum_l.texi: Renamed from
52956         doc/glibc-functions/iswalnum_l.texi.
52957         * doc/posix-functions/iswalpha_l.texi: Renamed from
52958         doc/glibc-functions/iswalpha_l.texi.
52959         * doc/posix-functions/iswblank_l.texi: Renamed from
52960         doc/glibc-functions/iswblank_l.texi.
52961         * doc/posix-functions/iswcntrl_l.texi: Renamed from
52962         doc/glibc-functions/iswcntrl_l.texi.
52963         * doc/posix-functions/iswctype_l.texi: Renamed from
52964         doc/glibc-functions/iswctype_l.texi.
52965         * doc/posix-functions/iswdigit_l.texi: Renamed from
52966         doc/glibc-functions/iswdigit_l.texi.
52967         * doc/posix-functions/iswgraph_l.texi: Renamed from
52968         doc/glibc-functions/iswgraph_l.texi.
52969         * doc/posix-functions/iswlower_l.texi: Renamed from
52970         doc/glibc-functions/iswlower_l.texi.
52971         * doc/posix-functions/iswprint_l.texi: Renamed from
52972         doc/glibc-functions/iswprint_l.texi.
52973         * doc/posix-functions/iswpunct_l.texi: Renamed from
52974         doc/glibc-functions/iswpunct_l.texi.
52975         * doc/posix-functions/iswspace_l.texi: Renamed from
52976         doc/glibc-functions/iswspace_l.texi.
52977         * doc/posix-functions/iswupper_l.texi: Renamed from
52978         doc/glibc-functions/iswupper_l.texi.
52979         * doc/posix-functions/iswxdigit_l.texi: Renamed from
52980         doc/glibc-functions/iswxdigit_l.texi.
52981         * doc/posix-functions/isxdigit_l.texi: Renamed from
52982         doc/glibc-functions/isxdigit_l.texi.
52983         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
52984         doc/glibc-functions/mbsnrtowcs.texi.
52985         * doc/posix-functions/mkdtemp.texi: Renamed from
52986         doc/glibc-functions/mkdtemp.texi.
52987         * doc/posix-functions/newlocale.texi: Renamed from
52988         doc/glibc-functions/newlocale.texi.
52989         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
52990         doc/glibc-functions/nl_langinfo_l.texi.
52991         * doc/posix-functions/open_memstream.texi: Renamed from
52992         doc/glibc-functions/open_memstream.texi.
52993         * doc/posix-functions/opterr.texi: Renamed from
52994         doc/glibc-functions/opterr.texi.
52995         * doc/posix-functions/optind.texi: Renamed from
52996         doc/glibc-functions/optind.texi.
52997         * doc/posix-functions/optopt.texi: Renamed from
52998         doc/glibc-functions/optopt.texi.
52999         * doc/posix-functions/psignal.texi: Renamed from
53000         doc/glibc-functions/psignal.texi.
53001         * doc/posix-functions/scandir.texi: Renamed from
53002         doc/glibc-functions/scandir.texi.
53003         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
53004         doc/glibc-functions/sched_get_priority_min.texi.
53005         * doc/posix-functions/signgam.texi: Renamed from
53006         doc/glibc-functions/signgam.texi.
53007         * doc/posix-functions/stpcpy.texi: Renamed from
53008         doc/glibc-functions/stpcpy.texi.
53009         * doc/posix-functions/stpncpy.texi: Renamed from
53010         doc/glibc-functions/stpncpy.texi.
53011         * doc/posix-functions/strcasecmp_l.texi: Renamed from
53012         doc/glibc-functions/strcasecmp_l.texi.
53013         * doc/posix-functions/strcoll_l.texi: Renamed from
53014         doc/glibc-functions/strcoll_l.texi.
53015         * doc/posix-functions/strfmon_l.texi: Renamed from
53016         doc/glibc-functions/strfmon_l.texi.
53017         * doc/posix-functions/strftime_l.texi: Renamed from
53018         doc/glibc-functions/strftime_l.texi.
53019         * doc/posix-functions/strncasecmp_l.texi: Renamed from
53020         doc/glibc-functions/strncasecmp_l.texi.
53021         * doc/posix-functions/strndup.texi: Renamed from
53022         doc/glibc-functions/strndup.texi.
53023         * doc/posix-functions/strnlen.texi: Renamed from
53024         doc/glibc-functions/strnlen.texi.
53025         * doc/posix-functions/strsignal.texi: Renamed from
53026         doc/glibc-functions/strsignal.texi.
53027         * doc/posix-functions/strxfrm_l.texi: Renamed from
53028         doc/glibc-functions/strxfrm_l.texi.
53029         * doc/posix-functions/timer_gettime.texi: Renamed from
53030         doc/glibc-functions/timer_gettime.texi.
53031         * doc/posix-functions/tolower_l.texi: Renamed from
53032         doc/glibc-functions/tolower_l.texi.
53033         * doc/posix-functions/toupper_l.texi: Renamed from
53034         doc/glibc-functions/toupper_l.texi.
53035         * doc/posix-functions/towctrans_l.texi: Renamed from
53036         doc/glibc-functions/towctrans_l.texi.
53037         * doc/posix-functions/towlower_l.texi: Renamed from
53038         doc/glibc-functions/towlower_l.texi.
53039         * doc/posix-functions/towupper_l.texi: Renamed from
53040         doc/glibc-functions/towupper_l.texi.
53041         * doc/posix-functions/uselocale.texi: Renamed from
53042         doc/glibc-functions/uselocale.texi.
53043         * doc/posix-functions/vdprintf.texi: Renamed from
53044         doc/glibc-functions/vdprintf.texi.
53045         * doc/posix-functions/wcpcpy.texi:
53046         Renamed from doc/glibc-functions/wcpcpy.texi.
53047         * doc/posix-functions/wcpncpy.texi: Renamed from
53048         doc/glibc-functions/wcpncpy.texi.
53049         * doc/posix-functions/wcscasecmp.texi: Renamed from
53050         doc/glibc-functions/wcscasecmp.texi.
53051         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
53052         doc/glibc-functions/wcscasecmp_l.texi.
53053         * doc/posix-functions/wcscoll_l.texi: Renamed from
53054         doc/glibc-functions/wcscoll_l.texi.
53055         * doc/posix-functions/wcsdup.texi: Renamed from
53056         doc/glibc-functions/wcsdup.texi.
53057         * doc/posix-functions/wcsncasecmp.texi: Renamed from
53058         doc/glibc-functions/wcsncasecmp.texi.
53059         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
53060         doc/glibc-functions/wcsncasecmp_l.texi.
53061         * doc/posix-functions/wcsnlen.texi: Renamed from
53062         doc/glibc-functions/wcsnlen.texi.
53063         * doc/posix-functions/wcsnrtombs.texi: Renamed from
53064         doc/glibc-functions/wcsnrtombs.texi.
53065         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
53066         doc/glibc-functions/wcsxfrm_l.texi.
53067         * doc/posix-functions/wctrans_l.texi: Renamed from
53068         doc/glibc-functions/wctrans_l.texi.
53069         * doc/posix-functions/wctype_l.texi: Renamed from
53070         doc/glibc-functions/wctype_l.texi.
53071         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53072         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
53073         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
53074         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
53075         these subsections.
53076         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
53077         Remove sections.
53078
53079 2008-12-14  Bruno Haible  <bruno@clisp.org>
53080
53081         Update doc for POSIX:2008.
53082         * doc/posix-functions/*.texi: Update URL of POSIX specification.
53083
53084 2008-12-14  Bruno Haible  <bruno@clisp.org>
53085
53086         Update doc for POSIX:2008.
53087         * doc/pastposix-functions/bcmp.texi: Renamed from
53088         doc/posix-functions/bcmp.texi.
53089         * doc/pastposix-functions/bcopy.texi: Renamed from
53090         doc/posix-functions/bcopy.texi.
53091         * doc/pastposix-functions/bsd_signal.texi: Renamed from
53092         doc/posix-functions/bsd_signal.texi.
53093         * doc/pastposix-functions/bzero.texi: Renamed from
53094         doc/posix-functions/bzero.texi.
53095         * doc/pastposix-functions/ecvt.texi: Renamed from
53096         doc/posix-functions/ecvt.texi.
53097         * doc/pastposix-functions/fcvt.texi: Renamed from
53098         doc/posix-functions/fcvt.texi.
53099         * doc/pastposix-functions/ftime.texi: Renamed from
53100         doc/posix-functions/ftime.texi.
53101         * doc/pastposix-functions/gcvt.texi: Renamed from
53102         doc/posix-functions/gcvt.texi.
53103         * doc/pastposix-functions/getcontext.texi: Renamed from
53104         doc/posix-functions/getcontext.texi.
53105         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
53106         doc/posix-functions/gethostbyaddr.texi.
53107         * doc/pastposix-functions/gethostbyname.texi: Renamed from
53108         doc/posix-functions/gethostbyname.texi.
53109         * doc/pastposix-functions/getwd.texi: Renamed from
53110         doc/posix-functions/getwd.texi.
53111         * doc/pastposix-functions/h_errno.texi: Renamed from
53112         doc/posix-functions/h_errno.texi.
53113         * doc/pastposix-functions/index.texi: Renamed from
53114         doc/posix-functions/index.texi.
53115         * doc/pastposix-functions/makecontext.texi: Renamed from
53116         doc/posix-functions/makecontext.texi.
53117         * doc/pastposix-functions/mktemp.texi: Renamed from
53118         doc/posix-functions/mktemp.texi.
53119         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
53120         doc/posix-functions/pthread_attr_getstackaddr.texi.
53121         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
53122         doc/posix-functions/pthread_attr_setstackaddr.texi.
53123         * doc/pastposix-functions/rindex.texi: Renamed from
53124         doc/posix-functions/rindex.texi.
53125         * doc/pastposix-functions/scalb.texi: Renamed from
53126         doc/posix-functions/scalb.texi.
53127         * doc/pastposix-functions/setcontext.texi: Renamed from
53128         doc/posix-functions/setcontext.texi.
53129         * doc/pastposix-functions/swapcontext.texi: Renamed from
53130         doc/posix-functions/swapcontext.texi.
53131         * doc/pastposix-functions/ualarm.texi: Renamed from
53132         doc/posix-functions/ualarm.texi.
53133         * doc/pastposix-functions/usleep.texi: Renamed from
53134         doc/posix-functions/usleep.texi.
53135         * doc/pastposix-functions/vfork.texi: Renamed from
53136         doc/posix-functions/vfork.texi.
53137         * doc/pastposix-functions/wcswcs.texi: Renamed from
53138         doc/posix-functions/wcswcs.texi.
53139         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
53140         (Function Substitutes): Update.
53141
53142 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53143
53144         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
53145         m4/strerror.m4.
53146
53147 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53148             Bruno Haible  <bruno@clisp.org>
53149
53150         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
53151
53152 2008-12-13  Bruno Haible  <bruno@clisp.org>
53153
53154         * modules/strtoull (Depends-on): Remove unistd.
53155
53156 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53157
53158         * modules/strtoull (Depends-on): Add stdlib.
53159
53160 2008-12-11  Simon Josefsson  <simon@josefsson.org>
53161
53162         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
53163
53164 2008-12-10  Jim Meyering  <meyering@redhat.com>
53165
53166         gl_ASSERT: don't say assertions are disabled when they're not
53167         * m4/assert.m4 (gl_ASSERT): Do not make configure report
53168         "checking whether to enable assertions... no", when they are in
53169         fact enabled.  This is solely a bug in the output of configure.
53170         In spite of saying "no", NDEBUG was not defined in that case.
53171         Also, as noted by Eric Blake, leave assertions enabled upon
53172         --enable-assert=INVALID.
53173
53174 2008-12-10  Bruno Haible  <bruno@clisp.org>
53175
53176         Change MODULES.html to refer to POSIX:2008 where possible.
53177         * MODULES.html.sh (POSIX2008_URL): New variable.
53178         (posix_headers): Remove sys/timeb, ucontext.
53179         (posix2001_headers): New variable.
53180         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
53181         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
53182         index, makecontext, mktemp, pthread_attr_getstackaddr,
53183         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
53184         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
53185         (posix2001_functions): New variable.
53186         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
53187         otherwise.
53188
53189 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53190
53191         add missing include to parse-duration.c
53192         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
53193         * modules/parse-duration (Depends-on): Add xalloc.
53194
53195         fix sed script reading maint.mk
53196         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
53197         (syntax-check-rules): Use it.
53198
53199 2008-12-09  Bruno Haible  <bruno@clisp.org>
53200
53201         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
53202         MacOS X 10.4/PowerPC.
53203         Reported by Simon Josefsson.
53204
53205 2008-12-08  Jim Meyering  <meyering@redhat.com>
53206
53207         work around mingw's lack of some S_IF definitions
53208         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
53209         Reported by Simon Josefsson.
53210
53211 2008-12-08  Bruno Haible  <bruno@clisp.org>
53212
53213         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
53214         applied to variables. Needed on MacOS X 10.4/PowerPC.
53215         Reported by Simon Josefsson.
53216
53217 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
53218         and Eric Blake  <ebb9@byu.net>
53219
53220         assert: honor --enable-assert
53221         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
53222         order to honor --enable-assert, rather than treating it as a
53223         synonym for --disable-assert.
53224
53225 2008-12-08  Jim Meyering  <meyering@redhat.com>
53226
53227         * lib/posixtm.c: Remove now-useless declaration of mktime.
53228
53229         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
53230
53231 2008-12-07  Bruno Haible  <bruno@clisp.org>
53232
53233         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
53234         test_once): Mark functions as static.
53235         * tests/test-tls.c (test_tls): Likewise.
53236
53237 2008-12-07  Bruno Haible  <bruno@clisp.org>
53238
53239         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
53240         iconv_register_autodetect.
53241
53242 2008-12-07  Jim Meyering  <meyering@redhat.com>
53243
53244         posixtm.c: avoid a warning
53245         * lib/posixtm.c (posixtime): Don't initialize tm0.
53246         It's no longer needed to placate gcc4's -Wuninitialized,
53247         and the attempt to placate would elicit a new warning.
53248
53249         unicodeio.c: mark unused parameters
53250         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53251         (fallback_failure_callback): Likewise.
53252
53253 2008-12-07  Bruno Haible  <bruno@clisp.org>
53254
53255         * gnulib-tool (func_create_testdir): When building the tests
53256         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
53257         Reported by Simon Josefsson.
53258
53259 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53260
53261         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
53262
53263 2008-12-06  Bruno Haible  <bruno@clisp.org>
53264
53265         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
53266         Suggested by Eric Blake.
53267
53268 2008-12-06  Bruno Haible  <bruno@clisp.org>
53269
53270         Fix a c-stack test failure on MacOS X.
53271         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
53272         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
53273         handler for SIGBUS as well.
53274         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
53275         install a signal handler for SIGBUS as well.
53276         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
53277
53278 2008-12-06  Bruno Haible  <bruno@clisp.org>
53279
53280         Advocacy documentation.
53281         * doc/gnulib-intro.texi (Benefits): New section.
53282         * doc/gnulib.texi: Update.
53283
53284 2008-12-06  Bruno Haible  <bruno@clisp.org>
53285
53286         Document the 'manywarnings' module.
53287         * doc/manywarnings.texi: New file.
53288         * doc/gnulib.texi: Include it.
53289
53290 2008-12-05  Eric Blake  <ebb9@byu.net>
53291
53292         tests: silence some gcc warnings
53293         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
53294         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
53295         type mismatches.
53296
53297 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53298             Bruno Haible  <bruno@clisp.org>
53299
53300         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
53301
53302 2008-11-29  Jim Meyering  <meyering@redhat.com>
53303
53304         unicodeio.c: mark unused parameters
53305         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53306         (fallback_failure_callback): Likewise.
53307
53308         fts: fix a thinko
53309         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
53310         (set_stat_type): Return S_IF*-valued "type" directly.
53311         Prompted by James Youngman's spotting a related bug.
53312         Confirmed by further testing through find.
53313
53314         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
53315         * lib/fts.c (D_TYPE): Define.
53316         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
53317         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
53318         (s_ifmt_shift_bits): New function.
53319         (set_stat_type): New function.
53320         (fts_build): When not calling fts_stat, call set_stat_type
53321         to propagate dirent.d_type info to fts_read caller.
53322         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
53323         fts_statp->st_mode type information may be valid.
53324
53325 2008-11-28  Simon Josefsson  <simon@josefsson.org>
53326
53327         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
53328         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
53329         <sds@gnu.org>.
53330
53331 2008-11-20  Bruno Haible  <bruno@clisp.org>
53332
53333         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
53334         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
53335         INCLUDE_NEXT.
53336         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
53337         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
53338         * modules/math (Makefile.am): Substitute
53339         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
53340         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53341
53342 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
53343             Bruno Haible  <bruno@clisp.org>
53344
53345         * lib/stdint.in.h: Define all type macros so that their expansion is
53346         a single typedef'ed token. Fixes a compilation failure in Boost which
53347         does "using ::int8_t;".
53348
53349 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53350
53351         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
53352         gl_MANYWARN_ALL_GCC.
53353         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
53354         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
53355         * modules/manywarnings: New file.
53356         * MODULES.html.sh: Mention manywarnings module.
53357
53358 2008-11-18  Bruno Haible  <bruno@clisp.org>
53359
53360         * doc/gnulib-tool.texi (Unit tests): New section.
53361
53362 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53363
53364         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
53365         paths like 'lib/po/foo.po'.
53366
53367 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53368
53369         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
53370         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
53371
53372 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53373
53374         * m4/warnings.m4: Use CPPFLAGS to really check whether the
53375         parameter works.
53376
53377 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53378
53379         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
53380
53381 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53382
53383         * modules/parse-duration-tests: New file.
53384         * tests/test-parse-duration.sh: New file.
53385         * tests/test-parse-duration.c: New file.
53386
53387         New module 'parse-duration'.
53388         * lib/parse-duration.h: New file.
53389         * lib/parse-duration.c: New file.
53390         * modules/parse-duration: New file.
53391
53392 2008-11-17  Bruno Haible  <bruno@clisp.org>
53393
53394         * tests/test-select-out.sh: Comment out the first pipe test.
53395         Reported by Simon Josefsson.
53396
53397 2008-11-17  Bruno Haible  <bruno@clisp.org>
53398
53399         * modules/getaddrinfo (Depends-on): Add servent, hostent.
53400         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
53401         gl_HOSTENT.
53402
53403 2008-11-17  Bruno Haible  <bruno@clisp.org>
53404
53405         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
53406         -lnetwork and -lnet. Needed for Haiku and BeOS.
53407
53408 2008-11-16  Bruno Haible  <bruno@clisp.org>
53409
53410         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
53411
53412 2008-11-16  Bruno Haible  <bruno@clisp.org>
53413
53414         Avoid test failure on Haiku.
53415         * tests/test-fsync.c: Include <errno.h>.
53416         (main): Don't require that fsync (0) fails.
53417
53418 2008-11-15  Bruno Haible  <bruno@clisp.org>
53419
53420         New module 'hostent'.
53421         * modules/hostent: New file.
53422         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
53423
53424 2008-11-15  Bruno Haible  <bruno@clisp.org>
53425
53426         New module 'servent'.
53427         * modules/servent: New file.
53428         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
53429
53430 2008-11-15  Bruno Haible  <bruno@clisp.org>
53431
53432         Avoid generating same test program with two different rules.
53433         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
53434         test-frexp to test-frexp-nolibm.
53435         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
53436         test-frexpl to test-frexpl-nolibm.
53437
53438 2008-11-15  Bruno Haible  <bruno@clisp.org>
53439
53440         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
53441         $(FREXPL_LIBM).
53442
53443 2008-11-15  Bruno Haible  <bruno@clisp.org>
53444
53445         * lib/netdb.in.h: Activate the definitions also when the system's
53446         <netdb.h> has 'struct addrinfo'.
53447         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
53448         EAI_OVERFLOW or AI_NUMERICSERV.
53449         * doc/posix-headers/netdb.texi: Document the problem.
53450
53451 2008-11-15  Bruno Haible  <bruno@clisp.org>
53452
53453         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
53454
53455         Make the 'sched' module work on platforms where <sched.h> exists but
53456         is incomplete (such as Haiku).
53457         * lib/sched.in.h; Include the system's <sched.h> if it exists.
53458         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
53459         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
53460         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
53461         HAVE_STRUCT_SCHED_PARAM.
53462         * modules/sched (Depends-on): Add include_next.
53463         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
53464         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
53465         * doc/posix-headers/sched.texi: Document the issue.
53466
53467 2008-11-13  Jim Meyering  <meyering@redhat.com>
53468
53469         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
53470         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
53471         test would fail due to the difference in the Report bugs to ...
53472         line.  The expected address is empty, "<>", while the actual
53473         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
53474
53475 2008-11-12  Bruno Haible  <bruno@clisp.org>
53476
53477         lstat: don't compile lstat.c on systems lacking lstat
53478         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
53479         which don't have lstat; this is handled by lib/sys_stat.in.h already.
53480         Reported by Daniel P. Berrange via Jim Meyering.
53481
53482 2008-11-12  Jim Meyering  <meyering@redhat.com>
53483
53484         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
53485
53486 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53487
53488         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
53489         instead.
53490
53491 2008-11-12  Bruno Haible  <bruno@clisp.org>
53492
53493         * lib/unicodeio.c: Include unistr.h.
53494         (utf8_wctomb): Remove function.
53495         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
53496
53497 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53498
53499         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
53500         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
53501         <bruno@clisp.org>.
53502         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
53503
53504 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53505
53506         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
53507         * doc/gnulib.texi: Add section for warnings.
53508
53509 2008-11-11  Bruno Haible  <bruno@clisp.org>
53510
53511         * lib/sockets.h: Add a comment.
53512
53513 2008-11-11  Karl Berry  <karl@gnu.org>
53514
53515         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
53516
53517 2008-11-11  Eric Blake  <ebb9@byu.net>
53518
53519         fdl.texi: avoid git symlinks
53520         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
53521
53522 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53523
53524         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
53525
53526 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53527
53528         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
53529         (gl_WARN_ADD): Substitute $2 if literal.
53530
53531 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53532
53533         * m4/warning.m4: Remove.
53534
53535 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53536
53537         * m4/warnings.m4: Almost complete rewrite. :-)
53538
53539 2008-11-10  Simon Josefsson  <simon@josefsson.org>
53540
53541         * modules/warnings: New module.
53542         * m4/warnings.m4: New file.
53543         * MODULES.html.sh: Mention warnings module.
53544         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
53545         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53546
53547 2008-11-10  Eric Blake  <ebb9@byu.net>
53548
53549         fdl.texi: make a symlink to the latest version
53550         * doc/standards.texi: Revert today's earlier change.
53551         * doc/fdl-1.2.texi: Rename from old fdl.texi...
53552         * doc/fdl.texi: ...and replace this with a symlink to the newer
53553         fdl-1.3.texi.
53554
53555 2008-11-10  Bruno Haible  <bruno@clisp.org>
53556
53557         * tests/test-select-fd.c (main): Accept the result file name as fourth
53558         argument.
53559         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
53560         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
53561
53562 2008-11-10  Bruno Haible  <bruno@clisp.org>
53563
53564         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
53565         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
53566         as autoconf-substituted macros.
53567         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
53568         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
53569         gl_NETDB_H_DEFAULTS. Set these variables.
53570         * modules/netdb (Makefile.am): Substitute these variables.
53571
53572 2008-11-10  Eric Blake  <ebb9@byu.net>
53573
53574         standards.texi: include correct file for FDL 1.3
53575         * doc/standards.texi (GNU Free Documentation License): Change
53576         include file to pull in FDL 1.3, not 1.2.
53577
53578         fdl.texi: revert accidental change to license
53579         * doc/fdl.texi: This is FDL 1.2, not 1.3.
53580
53581 2008-11-10  Bruno Haible  <bruno@clisp.org>
53582
53583         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
53584         cross-compiling guesses also when the native compile gives no result.
53585
53586 2008-11-10  Bruno Haible  <bruno@clisp.org>
53587
53588         * lib/spawni.c (__spawni): Force variable into the stack.
53589
53590 2008-11-10  Bruno Haible  <bruno@clisp.org>
53591
53592         Add support for Haiku.
53593         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
53594         glibc and BeOS, but also on Haiku.
53595         * lib/fpurge.c (fpurge): Likewise.
53596         * lib/freadable.c (freadable): Likewise.
53597         * lib/freadahead.c (freadahead): Likewise.
53598         * lib/freading.c (freading): Likewise.
53599         * lib/freadptr.c (freadptr): Likewise.
53600         * lib/freadseek.c (freadptrinc): Likewise.
53601         * lib/fseeko.c (rpl_fseeko): Likewise.
53602         * lib/fseterr.c (fseterr): Likewise.
53603         * lib/fwritable.c (fwritable): Likewise.
53604         * lib/fwriting.c (fwriting): Likewise.
53605         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
53606
53607 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53608
53609         * lib/config.charset: Treat Haiku like BeOS.
53610
53611 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53612
53613         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
53614         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
53615
53616 2008-11-08  Bruno Haible  <bruno@clisp.org>
53617
53618         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
53619         AC_CACHE_CHECK.
53620
53621 2008-11-08  Bruno Haible  <bruno@clisp.org>
53622
53623         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
53624
53625 2008-11-08  Bruno Haible  <bruno@clisp.org>
53626
53627         * tests/test-select-fd.c: New file.
53628         * tests/test-select-in.sh: New file.
53629         * tests/test-select-out.sh: New file.
53630         * tests/test-select-stdin.c: New file.
53631         * modules/select-tests (Files): Add the new files.
53632         (Depends-on): Add gettimeofday.
53633         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
53634         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
53635         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
53636
53637 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
53638             Bruno Haible  <bruno@clisp.org>
53639
53640         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
53641
53642 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
53643
53644         * build-aux/pmccabe2html: Added support for C++ source files.
53645
53646 2008-11-05  Ben Pfaff  <blp@gnu.org>
53647
53648         Fix lib/close.c build on Windows.
53649         * modules/close (Files): Add lib/w32sock.h.
53650
53651 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
53652
53653         Accept Bison's NEWS format.
53654         * build-aux/announce-gen (print_news_deltas): Tweak
53655         $re_prefix.
53656
53657 2008-11-04  Bruno Haible  <bruno@clisp.org>
53658
53659         * modules/random_r (Maintainer): Add glibc.
53660
53661 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53662
53663         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
53664         by karl@freefriends.org (Karl Berry).
53665         * doc/alloca.texi: Likewise.
53666         * doc/c-ctype.texi: Likewise.
53667         * doc/c-strcase.texi: Likewise.
53668         * doc/c-strcaseeq.texi: Likewise.
53669         * doc/c-strcasestr.texi: Likewise.
53670         * doc/c-strstr.texi: Likewise.
53671         * doc/c-strtod.texi: Likewise.
53672         * doc/c-strtold.texi: Likewise.
53673         * doc/ctime.texi: Likewise.
53674         * doc/error.texi: Likewise.
53675         * doc/fdl.texi: Likewise.
53676         * doc/gcd.texi: Likewise.
53677         * doc/getdate.texi: Likewise.
53678         * doc/gnulib-intro.texi: Likewise.
53679         * doc/gnulib-tool.texi: Likewise.
53680         * doc/gnulib.texi: Likewise.
53681         * doc/inet_ntoa.texi: Likewise.
53682         * doc/maintain.texi: Likewise.
53683         * doc/make-stds.texi: Likewise.
53684         * doc/quote.texi: Likewise.
53685         * doc/regexprops-generic.texi: Likewise.
53686         * doc/standards.texi: Likewise.
53687         * doc/verify.texi: Likewise.
53688         * doc/visibility.texi: Likewise.
53689         * doc/gnulib.texi (GNU Free Documentation License): Include
53690         fdl-1.3.texi instead of fdl.texi.
53691
53692 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53693
53694         * doc/fdl-1.3.texi: New file, from
53695         <http://www.gnu.org/licenses/fdl-1.3.texi>.
53696         * modules/fdl-1.3: Add.
53697         * MODULES.html.sh: Add fdl-1.3.
53698
53699 2008-11-03  Bruno Haible  <bruno@clisp.org>
53700
53701         Make determination of absolute name of header file work with AIX xlc.
53702         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
53703         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
53704         preprocessing.
53705         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53706         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53707
53708 2008-11-03  Simon Josefsson  <simon@josefsson.org>
53709
53710         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
53711         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
53712         <ludo@gnu.org>.
53713
53714 2008-11-02  Bruno Haible  <bruno@clisp.org>
53715
53716         Mark 'strpbrk' obsolete.
53717         * modules/strpbrk (Status, Notice): New sections.
53718         * modules/strtok_r (Depends-on): Add strpbrk.
53719
53720 2008-11-02  Bruno Haible  <bruno@clisp.org>
53721
53722         Mark 'strdup' obsolete.
53723         * modules/strdup (Status, Notice): New sections.
53724         * modules/findprog (Depends-on): Add strdup.
53725         * modules/getaddrinfo (Depends-on): Likewise.
53726         * modules/localename (Depends-on): Likewise.
53727         * modules/relocatable-lib (Depends-on): Likewise.
53728         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
53729         * modules/relocatable-prog (Depends-on): Likewise.
53730         * modules/trim (Depends-on): Likewise.
53731         * modules/unictype/gen-ctype (Depends-on): Likewise.
53732         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53733
53734 2008-11-02  Bruno Haible  <bruno@clisp.org>
53735
53736         Mark 'strcspn' obsolete.
53737         * modules/strcspn (Status, Notice): New sections.
53738
53739 2008-11-02  Bruno Haible  <bruno@clisp.org>
53740
53741         Mark 'rmdir' obsolete.
53742         * modules/rmdir (Status, Notice): New sections.
53743         * modules/clean-temp (Depends-on): Add rmdir.
53744         * modules/openat (Depends-on): Likewise.
53745
53746 2008-11-02  Bruno Haible  <bruno@clisp.org>
53747
53748         Mark 'raise' obsolete.
53749         * modules/raise (Status, Notice): New sections.
53750         (Include): Specify <signal.h>.
53751         * modules/stdio (Depends-on): Add raise.
53752         * modules/write (Depends-on): Likewise.
53753
53754 2008-11-02  Bruno Haible  <bruno@clisp.org>
53755
53756         Mark 'memset' obsolete.
53757         * modules/memset (Status, Notice): New sections.
53758
53759 2008-11-02  Bruno Haible  <bruno@clisp.org>
53760
53761         Mark 'memmove' obsolete.
53762         * modules/memmove (Status, Notice): New sections.
53763         * modules/argp (Depends-on): Add memmove.
53764         * modules/argz (Depends-on): Likewise.
53765         * modules/canonicalize (Depends-on): Likewise.
53766         * modules/canonicalize-lgpl (Depends-on): Likewise.
53767         * modules/fts (Depends-on): Likewise.
53768         * modules/getcwd (Depends-on): Likewise.
53769         * modules/human (Depends-on): Likewise.
53770         * modules/regex (Depends-on): Likewise.
53771         * modules/striconveh (Depends-on): Likewise.
53772         * modules/trim (Depends-on): Likewise.
53773         * modules/unistr/u8-move (Depends-on): Likewise.
53774         * modules/unistr/u16-move (Depends-on): Likewise.
53775         * modules/unistr/u32-move (Depends-on): Likewise.
53776
53777 2008-11-02  Bruno Haible  <bruno@clisp.org>
53778
53779         Mark 'memcpy' obsolete.
53780         * modules/memcpy (Status, Notice): New sections.
53781
53782 2008-11-02  Bruno Haible  <bruno@clisp.org>
53783
53784         Mark 'memcmp' obsolete.
53785         * modules/memcmp (Status, Notice): New sections.
53786         * modules/argmatch (Depends-on): Add memchr.
53787         * modules/backupfile (Depends-on): Likewise.
53788         * modules/c-strcasestr (Depends-on): Likewise.
53789         * modules/crypto/des (Depends-on): Likewise.
53790         * modules/csharpcomp (Depends-on): Likewise.
53791         * modules/fnmatch (Depends-on): Likewise.
53792         * modules/git-merge-changelog (Depends-on): Likewise.
53793         * modules/isnand (Depends-on): Likewise.
53794         * modules/isnand-nolibm (Depends-on): Likewise.
53795         * modules/isnanf (Depends-on): Likewise.
53796         * modules/isnanf-nolibm (Depends-on): Likewise.
53797         * modules/isnanl (Depends-on): Likewise.
53798         * modules/isnanl-nolibm (Depends-on): Likewise.
53799         * modules/mbchar (Depends-on): Likewise.
53800         * modules/memcoll (Depends-on): Likewise.
53801         * modules/quotearg (Depends-on): Likewise.
53802         * modules/regex (Depends-on): Likewise.
53803         * modules/relocatable-prog (Depends-on): Likewise.
53804         * modules/same (Depends-on): Likewise.
53805         * modules/signbit (Depends-on): Likewise.
53806         * modules/strcasestr-simple (Depends-on): Likewise.
53807         * modules/unictype/gen-ctype (Depends-on): Likewise.
53808         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53809         * modules/uniname/uniname (Depends-on): Likewise.
53810         * modules/unistr/u8-cmp (Depends-on): Likewise.
53811
53812 2008-11-02  Bruno Haible  <bruno@clisp.org>
53813
53814         Mark 'memchr' obsolete.
53815         * modules/memchr (Status, Notice): New sections.
53816         * modules/argp (Depends-on): Add memchr.
53817         * modules/base64 (Depends-on): Likewise.
53818         * modules/c-strcasestr (Depends-on): Likewise.
53819         * modules/chdir-long (Depends-on): Likewise.
53820         * modules/fnmatch (Depends-on): Likewise.
53821         * modules/getsubopt (Depends-on): Likewise.
53822         * modules/git-merge-changelog (Depends-on): Likewise.
53823         * modules/glob (Depends-on): Likewise.
53824         * modules/strcasestr-simple (Depends-on): Likewise.
53825         * modules/strnlen (Depends-on): Likewise.
53826
53827 2008-11-02  Bruno Haible  <bruno@clisp.org>
53828
53829         Mark 'atexit' obsolete.
53830         * modules/atexit (Status, Notice): New sections.
53831         * modules/chdir-long (Depends-on): Add atexit.
53832         * modules/wait-process (Depends-on): Likewise.
53833
53834 2008-11-02  Bruno Haible  <bruno@clisp.org>
53835
53836         * gnulib-tool: New option --with-obsolete.
53837         (func_usage): Document it.
53838         (func_modules_transitive_closure): Drop obsolete dependencies if
53839         incobsolete is not true.
53840         (func_import): Read and save the incobsolete variable to the cache.
53841
53842 2008-11-02  Bruno Haible  <bruno@clisp.org>
53843
53844         * modules/TEMPLATE-EXTENDED: New field 'Status'.
53845         * gnulib-tool: New option --extract-status.
53846         (func_usage): Document it.
53847         (sed_extract_prog): Recognize it.
53848         (func_get_status): New function.
53849
53850 2008-10-30  Simon Josefsson  <simon@josefsson.org>
53851
53852         * modules/sockets (License): Change from LGPL to LGPLv2+.
53853
53854 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53855
53856         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
53857
53858 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53859
53860         * MODULES.html.sh (Support for systems lacking POSIX:2001):
53861         Mention times and sys_times.
53862         * modules/sys_times, modules/sys_times-tests: New modules.
53863         * modules/times, modules/times-tests: Likewise
53864         * m4/sys_times_h.m4: New file.
53865         * lib/sys_times.in.h: Likewise
53866         * lib/times.c: Likewise.
53867         * tests/test-sys_times.c: Likewise.
53868         * tests/test-times.c: Likewise.
53869         * doc/posix-headers/sys_times.texi: Update.
53870         * doc/posix-functions/times.texi: Update.
53871
53872 2008-10-28  Jim Meyering  <meyering@redhat.com>
53873
53874         * modules/tempname (Depends-on): Add lstat.
53875
53876         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
53877
53878 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53879
53880         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
53881         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
53882         using idiom used elsewhere in gnulib.
53883
53884 2008-10-27  Jim Meyering  <meyering@redhat.com>
53885
53886         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
53887
53888 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53889
53890         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
53891         TESTS_ENVIRONMENT, for shell scripts that needs to call built
53892         programs.
53893         * tests/test-argp-2.sh: Use $EXEEXT when needed.
53894
53895 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53896
53897         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
53898
53899 2008-10-27  Bruno Haible  <bruno@clisp.org>
53900
53901         * tests/test-lstat.c: Include <stdio.h>.
53902
53903 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53904
53905         * modules/lstat-tests: New module.
53906         * tests/test-lstat.c: New file.
53907
53908 2008-10-26  Jim Meyering  <meyering@redhat.com>
53909
53910         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
53911
53912 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53913             Bruno Haible  <bruno@clisp.org>
53914
53915         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
53916         * modules/configmake (Include): Add a note that the include must come
53917         after all system headers.
53918         * lib/javaversion.c: Include configmake.h after all other includes.
53919
53920 2008-10-26  Bruno Haible  <bruno@clisp.org>
53921
53922         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
53923         HAVE_STRUCT_RANDOM_DATA to 1.
53924         (gl_STDLIB_H): Simplify.
53925
53926 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53927
53928         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
53929         substitute HAVE_STRUCT_RANDOM_DATA.
53930         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
53931         random_data.
53932         * modules/stdlib (Makefile.am): Substitute
53933         HAVE_STRUCT_RANDOM_DATA.
53934
53935 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53936
53937         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
53938         * doc/gnulib-intro.texi (Copyright): Likewise.
53939
53940 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53941
53942         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
53943         findings.
53944
53945 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
53946             Bruno Haible  <bruno@clisp.org>
53947
53948         * lib/unistd.in.h: Include <winsock2.h>.
53949         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
53950         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
53951         Provide dummy declarations.
53952         (gethostname): Override.
53953         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
53954         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
53955         gl_PREREQ_SYS_H_WINSOCK2.
53956         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
53957         * doc/posix-functions/gethostname.texi: More details.
53958
53959 2008-10-25  Bruno Haible  <bruno@clisp.org>
53960
53961         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53962         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
53963         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
53964
53965         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
53966         here ...
53967         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
53968         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
53969         gl_UNISTD_H_DEFAULTS.
53970
53971 2008-10-25  Eric Blake  <ebb9@byu.net>
53972
53973         signbit: avoid spurious compiler failure
53974         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
53975         declarations inside function.
53976
53977 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53978             Bruno Haible  <bruno@clisp.org>
53979
53980         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
53981         * modules/random_r (Depends-on): Add stdint.
53982
53983 2008-10-24  Bruno Haible  <bruno@clisp.org>
53984
53985         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
53986         Eggert.
53987         * modules/strerror (License): Likewise.
53988
53989 2008-10-24  Jim Meyering  <meyering@redhat.com>
53990
53991         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
53992         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
53993
53994 2008-10-24  Eric Blake  <ebb9@byu.net>
53995
53996         getgroups: fix compilation when getgroups is available
53997         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
53998         but with <config.h> override of getgroups disabled.
53999
54000 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54001
54002         * doc/gnulib.texi (Header files): Add note about C++ problems.
54003         Explained by Bruno Haible <bruno@clisp.org>.
54004
54005 2008-10-23  Bruno Haible  <bruno@clisp.org>
54006
54007         Define a dummy SA_NODEFER macro on Interix.
54008         * lib/signal.in.h (SA_NODEFER): Define fallback.
54009         Reported by Aleksey Cheusov <cheusov@tut.by> via
54010         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
54011
54012 2008-10-23  Bruno Haible  <bruno@clisp.org>
54013
54014         * modules/freadahead (License): Change to LGPLv2+.
54015         Suggested by Simon Josefsson.
54016
54017 2008-10-23  Jim Meyering  <meyering@redhat.com>
54018
54019         random_r: new module
54020         * modules/random_r: New file.
54021         * m4/random_r.m4: New file.
54022         * lib/random_r.c: New file, from glibc.
54023         * modules/random_r-tests: New file.
54024         * tests/test-random_r.c: New file.
54025         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
54026          Declare.
54027         (RAND_MAX): Define.
54028         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
54029         * modules/stdlib: Substitute them, too.
54030         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
54031         * doc/glibc-functions/initstate_r.texi: Mention the new module.
54032         * doc/glibc-functions/random_r.texi: Likewise.
54033         * doc/glibc-functions/setstate_r.texi: Likewise.
54034         * doc/glibc-functions/srandom_r.texi: Likewise.
54035         * config/srclist.txt: Mention it.
54036
54037 2008-10-23  David Lutterkort  <lutter@redhat.com>
54038
54039         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
54040         link requirement
54041
54042 2008-10-23  Jim Meyering  <meyering@redhat.com>
54043
54044         selinux-h: mark parameters of stub functions as intentionally unused
54045         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
54046         * lib/se-context.in.h: Likewise.
54047
54048 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54049
54050         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
54051
54052 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54053
54054         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
54055
54056 2008-10-22  Eric Blake  <ebb9@byu.net>
54057
54058         glthread/thread: avoid compiler warning
54059         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
54060         Add unreachable abort to silence compiler.
54061
54062 2008-10-22  Eric Blake  <ebb9@byu.net>
54063
54064         netdb: also supply struct addrinfo for cygwin 1.5.x
54065         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
54066         older cygwin.
54067         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
54068         cygwin.
54069         * doc/posix-headers/netdb.texi (netdb.h): Document this.
54070
54071 2008-10-22  Bruno Haible  <bruno@clisp.org>
54072
54073         * users.txt: Update entry about pspp.
54074
54075 2008-10-21  Bruno Haible  <bruno@clisp.org>
54076
54077         Simplification.
54078         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
54079         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
54080
54081         Simplification.
54082         * lib/ioctl.c (ioctl): Don't undefine.
54083         * lib/socket.c (socket): Don't undefine.
54084
54085         Remove unused module indicator macros.
54086         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
54087         GNULIB_$1 as a C macro.
54088
54089         * doc/posix-functions/close.texi: Undo last change.
54090         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
54091         Windows platforms.
54092
54093 2008-10-21  Bruno Haible  <bruno@clisp.org>
54094
54095         Add gethostname() declaration to <unistd.h>.
54096         * lib/unistd.in.h (gethostname): New declaration.
54097         * lib/gethostname.c: Include <unistd.h>.
54098         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
54099         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
54100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
54101         and HAVE_GETHOSTNAME.
54102         * modules/gethostname (Depends-on): Add unistd.
54103         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54104         (Include): Specify <unistd.h>.
54105         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
54106         HAVE_GETHOSTNAME.
54107         * tests/test-gethostname.c: Include <unistd.h> first.
54108
54109 2008-10-21  Bruno Haible  <bruno@clisp.org>
54110
54111         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
54112         * modules/select-tests (Depends-on): Likewise.
54113         Reported by Simon Josefsson.
54114
54115 2008-10-21  Simon Josefsson  <simon@josefsson.org>
54116
54117         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
54118         * lib/accept.c: New file, based on winsock.c.
54119         * lib/bind.c: New file, based on winsock.c.
54120         * lib/connect.c: New file, based on winsock.c.
54121         * lib/getpeername.c: New file, based on winsock.c.
54122         * lib/getsockname.c: New file, based on winsock.c.
54123         * lib/getsockopt.c: New file, based on winsock.c.
54124         * lib/ioctl.c: New file, based on winsock.c.
54125         * lib/listen.c: New file, based on winsock.c.
54126         * lib/recv.c: New file, based on winsock.c.
54127         * lib/recvfrom.c: New file, based on winsock.c.
54128         * lib/send.c: New file, based on winsock.c.
54129         * lib/sendto.c: New file, based on winsock.c.
54130         * lib/setsockopt.c: New file, based on winsock.c.
54131         * lib/shutdown.c: New file, based on winsock.c.
54132         * lib/socket.c: New file, based on winsock.c.
54133         * lib/w32sock.h: New file, based on winsock.c.
54134         * lib/winsock.c: Remove file.
54135         * modules/accept: Likewise.
54136         * modules/bind: Likewise.
54137         * modules/connect: Likewise.
54138         * modules/getpeername: Likewise.
54139         * modules/getsockname: Likewise.
54140         * modules/getsockopt: Likewise.
54141         * modules/ioctl: Likewise.
54142         * modules/listen: Likewise.
54143         * modules/recv: Likewise.
54144         * modules/recvfrom: Likewise.
54145         * modules/send: Likewise.
54146         * modules/sendto: Likewise.
54147         * modules/setsockopt: Likewise.
54148         * modules/shutdown: Likewise.
54149         * modules/socket: Use socket.c instead of winsock.c.
54150         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
54151         * doc/posix-functions/accept.texi: Doc fix.
54152         * doc/posix-functions/bind.texi: Doc fix.
54153         * doc/posix-functions/close.texi: Doc fix.
54154         * doc/posix-functions/connect.texi: Doc fix.
54155         * doc/posix-functions/getpeername.texi: Doc fix.
54156         * doc/posix-functions/getsockname.texi: Doc fix.
54157         * doc/posix-functions/getsockopt.texi: Doc fix.
54158         * doc/posix-functions/ioctl.texi: Doc fix.
54159         * doc/posix-functions/listen.texi: Doc fix.
54160         * doc/posix-functions/recv.texi: Doc fix.
54161         * doc/posix-functions/recvfrom.texi: Doc fix.
54162         * doc/posix-functions/send.texi: Doc fix.
54163         * doc/posix-functions/sendto.texi: Doc fix.
54164         * doc/posix-functions/setsockopt.texi: Doc fix.
54165         * doc/posix-functions/shutdown.texi: Doc fix.
54166         * doc/posix-functions/socket.texi: Doc fix.
54167
54168 2008-10-20  Bruno Haible  <bruno@clisp.org>
54169
54170         Take into account the role of SIGABRT_COMPAT on Windows 2008.
54171         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
54172         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
54173         as an alias for SIGABRT.
54174         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
54175         (sigaction): Map it to SIGABRT.
54176         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
54177
54178 2008-10-20  Bruno Haible  <bruno@clisp.org>
54179
54180         * lib/fts.c: Don't include lstat.h.
54181         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
54182
54183         Move the lstat() declaration to <sys/stat.h>.
54184         * lib/lstat.h: Remove file.
54185         * lib/sys_stat.in.h: Add special invocation convention.
54186         (lstat): New declaration.
54187         * lib/lstat.c (orig_lstat): New function.
54188         (rpl_lstat): Use orig_lstat instead of lstat.
54189         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
54190         AC_C_INLINE. Set REPLACE_LSTAT.
54191         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
54192         and REPLACE_LSTAT.
54193         * modules/lstat (Files): Remove lib/lstat.h.
54194         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54195         (Include): Specify <sys/stat.h> instead of lstat.h.
54196         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
54197         REPLACE_LSTAT.
54198         * NEWS: Mention the change.
54199
54200 2008-10-20  Bruno Haible  <bruno@clisp.org>
54201
54202         * modules/posix_spawn-tests: New file.
54203         * tests/test-posix_spawn3.c: New file.
54204
54205 2008-10-20  Bruno Haible  <bruno@clisp.org>
54206
54207         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
54208         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54209         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
54210         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54211         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
54212
54213 2008-10-20  Bruno Haible  <bruno@clisp.org>
54214
54215         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
54216         of posix_spawn on AIX 5.3.
54217
54218 2008-10-20  Bruno Haible  <bruno@clisp.org>
54219
54220         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
54221
54222 2008-10-20  Bruno Haible  <bruno@clisp.org>
54223
54224         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
54225         of AC_LANG_PROGRAM.
54226
54227 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54228
54229         * lib/netdb.in.h: Don't define GNU specific constants until they
54230         are supported or needed.  Reported by Bruno Haible
54231         <bruno@clisp.org>.
54232
54233 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54234
54235         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
54236
54237 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54238
54239         * lib/getaddrinfo.h: Remove file.
54240         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
54241         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
54242         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
54243         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
54244         * modules/netdb: Substitute GNULIB_GETADDRINFO.
54245         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
54246         * tests/test-getaddrinfo.c: Likewise.
54247         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
54248         * NEWS: Mention change.
54249
54250 2008-10-19  Bruno Haible  <bruno@clisp.org>
54251
54252         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
54253
54254 2008-10-19  Bruno Haible  <bruno@clisp.org>
54255
54256         * lib/wait-process.c: Include simply <sys/wait.h>.
54257         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
54258         WIFSTOPPED): Remove fallback definitions.
54259         * modules/wait-process (Depends-on): Add sys_wait.
54260
54261         New module 'sys_wait'.
54262         * modules/sys_wait: New file.
54263         * lib/sys_wait.in.h: New file, partially copied from
54264         lib/wait-process.c.
54265         * m4/sys_wait_h.m4: New file.
54266         * doc/posix-headers/sys_wait.texi: Mention the new module.
54267
54268 2008-10-19  Bruno Haible  <bruno@clisp.org>
54269
54270         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
54271
54272 2008-10-19  Bruno Haible  <bruno@clisp.org>
54273
54274         Assume that waitpid() fills an 'int' status, not a 'union wait'.
54275         * lib/wait-process.c (WAIT_T): Remove type.
54276         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
54277         (wait_subprocess): Update.
54278
54279 2008-10-19  Bruno Haible  <bruno@clisp.org>
54280
54281         New module 'atoll'.
54282         * modules/atoll: New file.
54283         * lib/stdlib.in.h (atoll): New declaration.
54284         * lib/atoll.c: New file, from glibc with modifications.
54285         * m4/atoll.m4: New file.
54286         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
54287         HAVE_ATOLL.
54288         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
54289         * doc/posix-functions/atoll.texi: Mention the new module.
54290
54291 2008-10-19  Bruno Haible  <bruno@clisp.org>
54292
54293         Add strtoull() declaration to <stdlib.h>.
54294         * lib/stdlib.in.h (strtoull): New declaration.
54295         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54296         Set HAVE_STRTOULL.
54297         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
54298         HAVE_STRTOULL.
54299         * modules/strtoull (Depends-on): Add stdlib.
54300         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54301         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
54302         HAVE_STRTOULL.
54303
54304 2008-10-19  Bruno Haible  <bruno@clisp.org>
54305
54306         Add strtoll() declaration to <stdlib.h>.
54307         * lib/stdlib.in.h (strtoll): New declaration.
54308         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54309         Set HAVE_STRTOLL.
54310         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
54311         HAVE_STRTOLL.
54312         * modules/strtoll (Depends-on): Add stdlib.
54313         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54314         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
54315
54316 2008-10-19  Bruno Haible  <bruno@clisp.org>
54317
54318         * modules/bcopy (Depends-on): Add strings.
54319         (Include): Specify <strings.h>.
54320
54321 2008-10-19  Bruno Haible  <bruno@clisp.org>
54322
54323         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
54324
54325 2008-10-19  Bruno Haible  <bruno@clisp.org>
54326
54327         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
54328         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
54329         mingw.
54330
54331 2008-10-19  Bruno Haible  <bruno@clisp.org>
54332
54333         * lib/atanl.c: Don't include isnanl.h.
54334         * lib/cosl.c: Likewise.
54335         * lib/ldexpl.c: Likewise.
54336         * lib/logl.c: Likewise.
54337         * lib/sinl.c: Likewise.
54338         * lib/sqrtl.c: Likewise.
54339         * lib/tanl.c: Likewise.
54340
54341         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
54342         * lib/isnanf.h: Remove file.
54343         * lib/isnand.h: Remove file.
54344         * lib/isnanl.h: Remove file.
54345         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
54346         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
54347         macros.
54348         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
54349         HAVE_ISNANF, don't define it as a C macro.
54350         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
54351         HAVE_ISNAND, don't define it as a C macro.
54352         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
54353         HAVE_ISNANL, don't define it as a C macro.
54354         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
54355         HAVE_ISNAN[FDL].
54356         * modules/isnanf (Files): Remove lib/isnanf.h.
54357         (Depends-on): Add math.
54358         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54359         (Include): Specify <math.h> instead of isnanf.h.
54360         * modules/isnand (Files): Remove lib/isnand.h.
54361         (Depends-on): Add math.
54362         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54363         (Include): Specify <math.h> instead of isnand.h.
54364         * modules/isnanl (Files): Remove lib/isnanl.h.
54365         (Depends-on): Add math.
54366         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54367         (Include): Specify <math.h> instead of isnanl.h.
54368         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
54369         HAVE_ISNAN[FDL].
54370         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
54371         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
54372         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
54373         * NEWS: Mention the change.
54374
54375 2008-10-18  Bruno Haible  <bruno@clisp.org>
54376
54377         Add getusershell(), setusershell(), endusershell() declarations to
54378         <unistd.h>.
54379         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
54380         declarations.
54381         * lib/getusershell.c: Include unistd.h.
54382         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
54383         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54384         HAVE_GETUSERSHELL.
54385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
54386         and HAVE_GETUSERSHELL.
54387         * modules/getusershell (Depends-on): Add unistd, extensions.
54388         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54389         (Include): Specify <unistd.h>.
54390         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
54391         HAVE_GETUSERSHELL.
54392
54393 2008-10-18  Bruno Haible  <bruno@clisp.org>
54394
54395         Add a getloadavg() declaration to <stdlib.h>.
54396         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
54397         getloadavg declaration.
54398         (getloadavg): New declaration.
54399         * lib/getloadavg.c: Include <stdlib.h> first.
54400         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
54401         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
54402         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
54403         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
54404         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54405         * modules/getloadavg (Depends-on): Add stdlib, extensions.
54406         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54407         (Include): Specify <stdlib.h>.
54408         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
54409         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54410
54411 2008-10-18  Bruno Haible  <bruno@clisp.org>
54412
54413         * lib/dirchownmod.c: Don't include lchmod.h.
54414
54415         Move the lchmod() declaration to <sys/stat.h>.
54416         * lib/lchmod.h: Remove file.
54417         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
54418         (lchmod): New declaration, moved here from lib/lchown.h.
54419         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
54420         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
54421         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
54422         and HAVE_LCHMOD.
54423         * modules/lchmod (Files): Remove lib/lchmod.h.
54424         (Depends-on): Add sys_stat, extensions.
54425         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54426         (Include): Specify <sys/stat.h> instead of lchmod.h.
54427         * modules/sys_stat (Depends-on): Add link-warning.
54428         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
54429         definition of GL_LINK_WARNING.
54430         * NEWS: Mention the change.
54431
54432 2008-10-18  Bruno Haible  <bruno@clisp.org>
54433
54434         * lib/fchdir.c: Don't include dirfd.h.
54435         * lib/fts.c: Likewise.
54436         * lib/getcwd.c: Likewise.
54437         * lib/glob.c: Likewise.
54438
54439         Move the dirfd() declaration to <dirent.h>.
54440         * lib/dirfd.h: Remove file.
54441         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
54442         (dirfd): New declaration.
54443         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
54444         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
54445         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
54446         HAVE_DECL_DIRFD.
54447         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
54448         HAVE_DECL_DIRFD.
54449         * modules/dirfd (Files): Remove lib/dirfd.h.
54450         (Depends-on): Add dirent, extensions.
54451         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
54452         (Include): Specify <dirent.h> instead of dirfd.h.
54453         * modules/dirent (Depends-on): Add link-warning.
54454         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
54455         definition of GL_LINK_WARNING.
54456         * NEWS: Mention the change.
54457
54458 2008-10-18  Bruno Haible  <bruno@clisp.org>
54459
54460         Move the euidaccess() declaration to <unistd.h>.
54461         * lib/euidaccess.h: Remove file.
54462         * lib/unistd.in.h (euidaccess): New declaration.
54463         * lib/euidaccess.c: Don't include euidaccess.h.
54464         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
54465         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
54466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
54467         and HAVE_EUIDACCESS.
54468         * modules/euidaccess (Files): Remove lib/euidaccess.h.
54469         (Depends-on): Add unistd.
54470         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54471         (Include): Specify <unistd.h> instead of euidaccess.h.
54472         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
54473         HAVE_EUIDACCESS.
54474         * NEWS: Mention the change.
54475
54476 2008-10-18  Bruno Haible  <bruno@clisp.org>
54477
54478         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
54479
54480         Move the getdomainname() declaration to <unistd.h>.
54481         * lib/getdomainname.h: Remove file.
54482         * lib/unistd.in.h (getdomainname): New declaration.
54483         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
54484         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
54485         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54486         HAVE_GETDOMAINNAME.
54487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54488         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
54489         * modules/getdomainname (Files): Remove lib/getdomainname.h.
54490         (Depends-on): Add unistd, extensions.
54491         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54492         (Includes): Specify <unistd.h> instead of getdomainname.h.
54493         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
54494         HAVE_GETDOMAINNAME.
54495         * NEWS: Mention the change.
54496
54497 2008-10-18  Bruno Haible  <bruno@clisp.org>
54498
54499         * modules/dirent: New file.
54500         * m4/dirent_h.m4: New file.
54501         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
54502         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
54503         * modules/fchdir (Files): Remove lib/dirent.in.h.
54504         (Depends-on): Add dirent.
54505         (Makefile.am): Move rules to modules/dirent.
54506         * doc/posix-headers/dirent.texi: Mention the new module.
54507
54508 2008-10-18  Bruno Haible  <bruno@clisp.org>
54509
54510         Avoid -Wunused-parameter warnings in public gnulib header files.
54511         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
54512         macro.
54513         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
54514
54515 2008-10-18  Bruno Haible  <bruno@clisp.org>
54516
54517         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
54518         * doc/glibc-functions/error.texi: Mention the module 'error'.
54519         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
54520         * doc/glibc-functions/getdomainname.texi: Mention the module
54521         'getdomainname'.
54522         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
54523         * doc/glibc-functions/getpagesize.texi: Mention the module
54524         'getpagesize'.
54525         * doc/glibc-functions/getusershell.texi: Mention the module
54526         'getusershell'.
54527         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
54528         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
54529         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
54530         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
54531         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
54532         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
54533         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
54534         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
54535         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
54536         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
54537         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
54538         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
54539         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
54540         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
54541
54542 2008-10-17  Bruno Haible  <bruno@clisp.org>
54543
54544         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
54545         HP-UX and IRIX, use -0.0L.
54546         * tests/test-ceill.c (minus_zero): Likewise.
54547         * tests/test-floorl.c (minus_zero): Likewise.
54548         * tests/test-frexpl.c (minus_zero): Likewise.
54549         * tests/test-isnan.c (minus_zerol): Likewise.
54550         * tests/test-isnanl.h (minus_zero): Likewise.
54551         * tests/test-ldexpl.c (minus_zero): Likewise.
54552         * tests/test-roundl.c (minus_zero): Likewise.
54553         * tests/test-signbit.c (minus_zerol): Likewise.
54554         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
54555         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
54556         * tests/test-truncl.c (minus_zero): Likewise.
54557         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
54558         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
54559         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
54560         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
54561
54562 2008-10-17  Bruno Haible  <bruno@clisp.org>
54563
54564         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
54565         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
54566         that it gets activated only for gcc >= 3.0.
54567         * lib/dirent.in.h: Likewise.
54568         * lib/errno.in.h: Likewise.
54569         * lib/fcntl.in.h: Likewise.
54570         * lib/float.in.h: Likewise.
54571         * lib/iconv.in.h: Likewise.
54572         * lib/inttypes.in.h: Likewise.
54573         * lib/locale.in.h: Likewise.
54574         * lib/math.in.h: Likewise.
54575         * lib/netdb.in.h: Likewise.
54576         * lib/netinet_in.in.h: Likewise.
54577         * lib/search.in.h: Likewise.
54578         * lib/signal.in.h: Likewise.
54579         * lib/spawn.in.h: Likewise.
54580         * lib/stdarg.in.h: Likewise.
54581         * lib/stdint.in.h: Likewise.
54582         * lib/stdio.in.h: Likewise.
54583         * lib/stdlib.in.h: Likewise.
54584         * lib/string.in.h: Likewise.
54585         * lib/strings.in.h: Likewise.
54586         * lib/sys_file.in.h: Likewise.
54587         * lib/sys_ioctl.in.h: Likewise.
54588         * lib/sys_select.in.h: Likewise.
54589         * lib/sys_socket.in.h: Likewise.
54590         * lib/sys_stat.in.h: Likewise.
54591         * lib/sys_time.in.h: Likewise.
54592         * lib/sysexits.in.h: Likewise.
54593         * lib/time.in.h: Likewise.
54594         * lib/unistd.in.h: Likewise.
54595         * lib/wchar.in.h: Likewise.
54596         * lib/wctype.in.h: Likewise.
54597         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54598
54599 2008-10-17  Jim Meyering  <meyering@redhat.com>
54600
54601         ignore-value: don't depend on inline module
54602         * modules/ignore-value (Depends-on): Remove 'inline'.
54603         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
54604         Suggestion from Bruno Haible.
54605
54606 2008-10-17  Bruno Haible  <bruno@clisp.org>
54607
54608         New implementation of condition variables for Win32.
54609         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
54610         (gl_linked_waitqueue_t): New type.
54611         (gl_cond_t): Use it.
54612         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
54613         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
54614         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
54615         (glthread_cond_init_func, glthread_cond_wait_func,
54616         glthread_cond_timedwait_func, glthread_cond_signal_func,
54617         glthread_cond_broadcast_func, glthread_cond_destroy_func):
54618         Reimplemented on the basis of gl_linked_waitqueue_t.
54619         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
54620         gl_waitqueue_t.
54621         (gl_rwlock_t): Update.
54622         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
54623
54624 2008-10-17  Simon Josefsson  <simon@josefsson.org>
54625
54626         * modules/recvfrom (Depends-on): Add dependency on getpeername.
54627         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54628
54629 2008-10-17  Jim Meyering  <meyering@redhat.com>
54630
54631         ignore-value: new module
54632         * modules/ignore-value: New file.
54633         * lib/ignore-value.h: New file.
54634         * MODULES.html.sh (Compiler warning management): New section,
54635         just for this module.  More to come.
54636
54637 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54638
54639         open-safer.c: avoid 'signed and unsigned in conditional...' warning
54640         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
54641         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
54642
54643 2008-10-16  Jim Meyering  <meyering@redhat.com>
54644
54645         openat-die.c: avoid 'no previous prototype' warning
54646         * lib/openat-die.c: Include "openat.h".
54647         Reported by Reuben Thomas <rrt@sc3d.org>.
54648
54649 2008-10-16  Simon Josefsson  <simon@josefsson.org>
54650
54651         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
54652         * lib/netdb.in.h: Fix typo.
54653         Reported by Bruno Haible  <bruno@clisp.org>
54654
54655         * lib/netdb.in.h: Include sys/socket.h for platforms without
54656         netdb.h, to get structures like hostent on MinGW.
54657         * modules/netdb (Depends-on): Add sys_socket.
54658
54659 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54660
54661         * modules/netdb, modules/netdb-tests: New file.
54662         * m4/netdb_h.m4: New file.
54663         * lib/netdb.in.h: Add, currently just an empty file pending
54664         definitions.
54665         * tests/test-netdb.c: New file.
54666         * doc/posix-headers/netdb.texi: Mention that we replace it if
54667         needed.
54668         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54669         netdb.
54670
54671 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54672
54673         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
54674         with code.
54675
54676 2008-10-13  Bruno Haible  <bruno@clisp.org>
54677
54678         * lib/glthread/cond.c (glthread_cond_wait_func,
54679         glthread_cond_timedwait_func): Add a comment.
54680
54681 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54682
54683         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
54684         * tests/test-select.c: Likewise,
54685
54686 2008-10-13  Bruno Haible  <bruno@clisp.org>
54687
54688         * lib/glthread/cond.c (glthread_cond_wait_func,
54689         glthread_cond_timedwait_func): Fix variable name.
54690         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54691
54692 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
54693
54694         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
54695         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
54696         struct sockaddr.sa_len.
54697         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
54698
54699 2008-10-13  Simon Josefsson  <simon@josefsson.org>
54700
54701         * build-aux/pmccabe2html: Add css and css_url parameters.
54702
54703 2008-10-12  Bruno Haible  <bruno@clisp.org>
54704
54705         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
54706         calling aclx_get.
54707         Reported by Rainer Tammer <tammer@tammer.net>.
54708
54709 2008-10-12  Bruno Haible  <bruno@clisp.org>
54710
54711         Use msvcrt aware primitives for creation/termination of Win32 threads.
54712         * lib/glthread/thread.c: Include <process.h>.
54713         (glthread_create_func): Use _beginthreadex instead of CreateThread.
54714         (wrapper_func): Update signature.
54715         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
54716
54717 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54718             Bruno Haible  <bruno@clisp.org>
54719
54720         Provide a Win32 implementation of the 'cond' module.
54721         * lib/glthread/cond.h [USE_WIN32]: New implementation.
54722         * lib/glthread/cond.c (glthread_cond_init_func,
54723         glthread_cond_wait_func, glthread_cond_timedwait_func,
54724         glthread_cond_signal_func, glthread_cond_broadcast_func,
54725         glthread_cond_destroy_func) [USE_WIN32]: New functions.
54726         * modules/cond (Dependencies): Add gettimeofday.
54727
54728 2008-10-11  Bruno Haible  <bruno@clisp.org>
54729
54730         Make sleep work on older versions of mingw.
54731         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
54732         only whether it exists.
54733         * doc/posix-functions/sleep.texi: Mention the problem with older
54734         versions of mingw.
54735
54736 2008-10-11  Bruno Haible  <bruno@clisp.org>
54737
54738         New module 'shutdown'.
54739         * modules/shutdown: New file.
54740         * lib/sys_socket.in.h (shutdown): New declaration.
54741         * lib/winsock.c (shutdown): New function.
54742         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
54743         GNULIB_SHUTDOWN.
54744         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
54745         * doc/posix-functions/shutdown.texi: Document the new module.
54746
54747 2008-10-11  Jim Meyering  <meyering@redhat.com>
54748
54749         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
54750
54751 2008-10-11  Bruno Haible  <bruno@clisp.org>
54752
54753         New module 'fclose'.
54754         * modules/fclose: New file.
54755         * lib/stdio.in.h (fclose): New declaration.
54756         * lib/fclose.c: New file.
54757         * m4/fclose.m4: New file.
54758         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
54759         REPLACE_FCLOSE.
54760         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
54761         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
54762         REPLACE_FCLOSE.
54763         * modules/close (Depends-on): fclose.
54764         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
54765
54766 2008-10-11  Bruno Haible  <bruno@clisp.org>
54767
54768         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
54769         set errno and don't call _close.
54770
54771 2008-10-10  Bruno Haible  <bruno@clisp.org>
54772
54773         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
54774         ACL, not afterwards. Fixes test failure on Cygwin.
54775
54776 2008-10-09  Ben Pfaff  <blp@gnu.org>
54777
54778         * build-aux/announce-gen: Fix gnulib version related part of usage
54779         message.  Die with a useful error message if no tarballs are
54780         found.
54781
54782 2008-10-10  Jim Meyering  <meyering@redhat.com>
54783
54784         bootstrap: use git's --depth=N option only if it's supported
54785         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
54786         recognize the --depth option.  Reported by Pádraig Brady.
54787
54788 2008-10-09  Bruno Haible  <bruno@clisp.org>
54789
54790         New module 'ioctl'.
54791         * modules/ioctl: New file.
54792         * lib/sys_socket.in.h (ioctl): Remove declaration.
54793         * lib/winsock.c: Include <sys/ioctl.h>.
54794         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
54795         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54796         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
54797         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
54798         * doc/posix-functions/ioctl.texi: Mention the new module.
54799
54800 2008-10-09  Bruno Haible  <bruno@clisp.org>
54801
54802         New module 'sys_ioctl'.
54803         * lib/sys_ioctl.in.h: New file.
54804         * m4/sys_ioctl_h.m4: New file.
54805         * modules/sys_ioctl: New file.
54806         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
54807
54808 2008-10-09  Bruno Haible  <bruno@clisp.org>
54809
54810         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
54811         * lib/winsock.c: Include <stdarg.h>.
54812         (rpl_ioctl): Change to second argument 'int' and then varargs.
54813
54814 2008-10-09  Bruno Haible  <bruno@clisp.org>
54815
54816         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
54817         when the sys_socket module is present and the system has <winsock2.h>.
54818
54819 2008-10-09  Bruno Haible  <bruno@clisp.org>
54820
54821         * doc/posix-functions/close.texi: Mention module 'close' instead of
54822         module 'sys_socket'.
54823
54824 2008-10-09  Bruno Haible  <bruno@clisp.org>
54825
54826         * doc/glibc-headers/sys_ioctl.texi: New file.
54827         * doc/gnulib.texi: Include it.
54828
54829 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54830             Bruno Haible  <bruno@clisp.org>
54831
54832         Combine the two replacements of 'close'.
54833         * lib/sys_socket.in.h (close): Define to a reminder to include
54834         <unistd.h>.
54835         (_gl_close_fd_maybe_socket): New declaration.
54836         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
54837         * lib/winsock.c (close): Remove undefinition.
54838         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
54839         needed for the gnulib module 'close'.
54840         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
54841         define to an error symbol or to a warning, if suitable.
54842         * lib/close.c: Include <sys/socket.h>.
54843         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
54844         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
54845         UNISTD_H_HAVE_WINSOCK2_H.
54846         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
54847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54848         UNISTD_H_HAVE_WINSOCK2_H.
54849         * modules/sys_socket (Files): Add m4/unistd_h.m4.
54850         (configure.ac): Set a module indicator.
54851         (Makefile.am): Substitute GNULIB_CLOSE.
54852         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
54853         * modules/poll-tests (Depends-on): Add close.
54854         * modules/select-tests (Depends-on): Likewise.
54855
54856 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54857             Bruno Haible  <bruno@clisp.org>
54858
54859         New module 'close'.
54860         * modules/close: New file.
54861         * lib/unistd.in.h (close): Move declaration out of the
54862         FCHDIR_REPLACEMENT scope.
54863         (_gl_unregister_fd): New declaration.
54864         * lib/close.c: New file.
54865         * lib/fchdir.c (rpl_close): Remove function.
54866         * m4/close.m4: New file.
54867         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54868         close.
54869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
54870         REPLACE_CLOSE.
54871         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
54872         REPLACE_CLOSE.
54873         * modules/fchdir (Depends-on): Add close.
54874
54875 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54876             Bruno Haible  <bruno@clisp.org>
54877
54878         * lib/fcntl.in.h (open): Simplify conditionals.
54879         (_gl_register_fd): New declaration.
54880         * lib/fchdir.c (rpl_open): Remove function.
54881         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
54882         also.
54883         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
54884         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54885         open.
54886
54887 2008-10-09  Jim Meyering  <meyering@redhat.com>
54888
54889         GNUmakefile: use the more name-space-friendly "_version"
54890         * top/GNUmakefile (_dummy): Update.
54891         (_version): Rename from "version".
54892
54893 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54894             Bruno Haible  <bruno@clisp.org>
54895
54896         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
54897         rpl_close.
54898         (_gl_register_fd): New function, extracted from rpl_open.
54899         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
54900         (rpl_open, rpl_opendir): Use _gl_register_fd.
54901
54902 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54903
54904         Fix organization of 'open' replacement.
54905         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
54906         (gl_FUNC_OPEN): Use it.
54907         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
54908
54909 2008-10-08  Bruno Haible  <bruno@clisp.org>
54910
54911         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
54912
54913 2008-10-08  Simon Josefsson  <simon@josefsson.org>
54914
54915         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
54916         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
54917         listen).
54918
54919 2008-10-08  Eric Blake  <ebb9@byu.net>
54920
54921         GNUmakefile: add 'make version' target
54922         * top/GNUmakefile (_curr-ver): Split version update rules...
54923         (version): ...into a target.
54924
54925 2008-10-07  Bruno Haible  <bruno@clisp.org>
54926
54927         Use a more portable replacement expression for -0.0L.
54928         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
54929         instead of -0.0L. Fix m4 quotation.
54930
54931         * tests/test-signbit.c: Include <float.h>.
54932         (minus_zero): New variable.
54933         (test_signbitl): Use minus_zero instead of -zero.
54934         * modules/signbit-tests (Depends-on): Add float.
54935
54936         * tests/test-ceill.c: Include <float.h>.
54937         (zero): Remove variable.
54938         (minus_zero): New variable.
54939         (main): Use minus_zero instead of -zero.
54940         * modules/ceill-tests (Depends-on): Add float.
54941
54942         * tests/test-floorl.c: Include <float.h>.
54943         (zero): Remove variable.
54944         (minus_zero): New variable.
54945         (main): Use minus_zero instead of -zero.
54946         * modules/floorl-tests (Depends-on): Add float.
54947
54948         * tests/test-roundl.c: Include <float.h>.
54949         (zero): Remove variable.
54950         (minus_zero): New variable.
54951         (main): Use minus_zero instead of -zero.
54952         * modules/roundl-tests (Depends-on): Add float.
54953
54954         * tests/test-truncl.c: Include <float.h>.
54955         (zero): Remove variable.
54956         (minus_zero): New variable.
54957         (main): Use minus_zero instead of -zero.
54958         * modules/truncl-tests (Depends-on): Add float.
54959
54960         * tests/test-frexpl.c (zero): Remove variable.
54961         (minus_zero): New variable.
54962         (main): Use minus_zero instead of -zero.
54963         * modules/frexpl-tests (Depends-on): Add float.
54964
54965         * tests/test-isnan.c (zerol): Remove variable.
54966         (minus_zerol): New variable.
54967         (test_long_double): Use minus_zerol instead of -zerol.
54968         * modules/isnan-tests (Depends-on): Add float.
54969
54970         * tests/test-isnanl.h (zero): Remove variable.
54971         (minus_zero): New variable.
54972         (main): Use minus_zero instead of -zero.
54973         * modules/isnanl-nolibm-tests (Depends-on): Add float.
54974         * modules/isnanl-tests (Depends-on): Add float.
54975
54976         * tests/test-ldexpl.c (zero): Remove variable.
54977         (minus_zero): New variable.
54978         (main): Use minus_zero instead of -zero.
54979         * modules/ldexpl-tests (Depends-on): Add float.
54980
54981         * tests/test-snprintf-posix.h (zerol): Remove variable.
54982         (minus_zerol): New variable.
54983         (test_function): Use minus_zerol instead of -zerol.
54984         * modules/snprintf-posix-tests (Depends-on): Add float.
54985         * modules/vsnprintf-posix-tests (Depends-on): Add float.
54986
54987         * tests/test-sprintf-posix.h (zerol): Remove variable.
54988         (minus_zerol): New variable.
54989         (test_function): Use minus_zerol instead of -zerol.
54990         * modules/sprintf-posix-tests (Depends-on): Add float.
54991         * modules/vsprintf-posix-tests (Depends-on): Add float.
54992
54993         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
54994         (minus_zerol): New variable.
54995         (test_function): Use minus_zerol instead of -zerol.
54996         * modules/vasnprintf-posix-tests (Depends-on): Add float.
54997
54998         * tests/test-vasprintf-posix.c (zerol): Remove variable.
54999         (minus_zerol): New variable.
55000         (test_function): Use minus_zerol instead of -zerol.
55001         * modules/vasprintf-posix-tests (Depends-on): Add float.
55002
55003 2008-10-07  Simon Josefsson  <simon@josefsson.org>
55004
55005         * MODULES.html.sh (Support for building documentation): Mention
55006         pmccabe2html.  Sort entries.
55007
55008         Add pmccabe2html module, from gnupdf.
55009         * build-aux/pmccabe.css: New file.
55010         * build-aux/pmccabe2html: New file.
55011         * m4/pmccabe2html.m4: New file.
55012         * modules/pmccabe2html: New file.
55013
55014 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
55015
55016         flock: new module
55017         * MODULES.html.sh: Add to list of modules.
55018         * lib/flock.c: flock implementation for Windows and Unix systems
55019         which have fcntl.
55020         * doc/glibc-functions/flock.texi: Update documentation.
55021         * lib/sys_file.in.h: <sys/file.h> header file.
55022         * m4/flock.m4: M4 macros.
55023         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
55024         * modules/flock: flock module.
55025         * modules/flock-tests: flock tests module.
55026         * modules/sys_file: sys/file.h module.
55027         * tests/test-flock.c: test suite for flock.
55028
55029 2008-10-06  Jim Meyering  <meyering@redhat.com>
55030
55031         bootstrap: check for LT_INIT more portably still ;-)
55032         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
55033         Spotted by Bruno Haible.
55034
55035 2008-10-06  Eric Blake  <ebb9@byu.net>
55036
55037         test-signbit: avoid tripping Irix cc bug on -0.0L
55038         * tests/test-signbit.c (minus_zerol): Delete, and replace with
55039         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
55040         entire testsuite consistent and avoids an Irix 6.2 bug.
55041
55042 2008-10-05  Bruno Haible  <bruno@clisp.org>
55043             Jim Meyering  <jim@meyering.net>
55044
55045         Add an option for ignoring EPIPE during close_stdout.
55046         * lib/closeout.h: Include <stdbool.h>.
55047         (close_stdout_set_ignore_EPIPE): New declaration.
55048         * lib/closeout.c: Include <stdbool.h>.
55049         (ignore_EPIPE): New variable.
55050         (close_stdout_set_ignore_EPIPE): New function.
55051         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
55052         * lib/close-stream.c (close_stream): Mention the possible EPIPE
55053         failure.
55054         * modules/closeout (Depends-on): Add stdbool.
55055
55056 2008-10-05  Bruno Haible  <bruno@clisp.org>
55057
55058         * modules/accept: New file.
55059         * modules/bind: New file.
55060         * modules/connect: New file.
55061         * modules/getpeername: New file.
55062         * modules/getsockname: New file.
55063         * modules/getsockopt: New file.
55064         * modules/listen: New file.
55065         * modules/recv: New file.
55066         * modules/recvfrom: New file.
55067         * modules/send: New file.
55068         * modules/sendto: New file.
55069         * modules/setsockopt: New file.
55070         * modules/socket: New file.
55071         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
55072         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55073         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
55074         the particular module is requested. Add a link warning when the
55075         particular module is not requested.
55076         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
55077         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
55078         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
55079         the particular module is requested.
55080         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
55081         gl_SYS_SOCKET_H_DEFAULTS): New macros.
55082         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
55083         * modules/sys_socket (Depends-on): Add link-warning.
55084         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
55085         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
55086         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
55087         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
55088         GL_LINK_WARNING.
55089         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
55090         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
55091         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
55092         * doc/posix-functions/getpeername.texi: Mention the new module
55093         'getpeername'.
55094         * doc/posix-functions/getsockname.texi: Mention the new module
55095         'getsockname'.
55096         * doc/posix-functions/getsockopt.texi: Mention the new module
55097         'getsockopt'.
55098         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
55099         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
55100         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
55101         * doc/posix-functions/send.texi: Mention the new module 'send'.
55102         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
55103         * doc/posix-functions/setsockopt.texi: Mention the new module
55104         'setsockopt'.
55105         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
55106         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
55107         listen, connect, accept.
55108         * modules/select-tests (Depends-on): Likewise.
55109
55110 2008-10-05  Bruno Haible  <bruno@clisp.org>
55111
55112         * lib/winsock.c (strerror): Remove unused #undef.
55113         (rpl_close): Remove unused local variable.
55114
55115         * modules/sys_socket (Depends-on); Add errno.
55116
55117 2008-10-05  Bruno Haible  <bruno@clisp.org>
55118
55119         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
55120         (select): Add a link warning when the 'select' module is not used.
55121         * modules/sys_select (Depends-on): Add link-warning.
55122         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
55123         Suggested by Paolo Bonzini.
55124
55125 2008-10-05  Jim Meyering  <meyering@redhat.com>
55126
55127         bootstrap: check for LT_INIT more portably
55128         * build-aux/bootstrap: Avoid using grep -E, since it's not
55129         portable enough.  Suggestion from Bruno Haible.
55130
55131 2008-10-05  Bruno Haible  <bruno@clisp.org>
55132
55133         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
55134         as being fixed by gnulib.
55135
55136 2008-10-05  Bruno Haible  <bruno@clisp.org>
55137
55138         * modules/select-tests: New file, mostly copied from
55139         modules/sys_select-tests.
55140         * tests/test-select.c: New file, mostly copied from
55141         tests/test-sys_select.c.
55142         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
55143         * modules/sys_select-tests (Depends-on): Remove all dependencies.
55144         (Makefile.am): Remove test_sys_select_LDADD.
55145
55146         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
55147         to an undefined symbol, for an error message.
55148         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
55149         (gl_SYS_SELECT_H_DEFAULTS): New macro.
55150         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
55151         winsock-select.c here.
55152         * modules/sys_select (Files): Remove lib/winsock-select.c.
55153         (Depends-on): Remove alloca.
55154         (Makefile.am): Substitute GNULIB_SELECT.
55155         * modules/select: New file.
55156         * doc/posix-functions/select.texi: Update.
55157
55158 2008-10-05  Bruno Haible  <bruno@clisp.org>
55159
55160         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
55161         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
55162         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
55163         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
55164         getdtablesize.
55165         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55166         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55167
55168 2008-10-05  Bruno Haible  <bruno@clisp.org>
55169
55170         * modules/getdtablesize-tests: New file.
55171         * tests/test-getdtablesize.c: New file.
55172
55173         New module 'getdtablesize'.
55174         * lib/unistd.in.h (getdtablesize): New declaration.
55175         * lib/getdtablesize.c: New file.
55176         * m4/getdtablesize.m4: New file.
55177         * modules/getdtablesize: New file.
55178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55179         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
55180         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
55181         HAVE_GETDTABLESIZE.
55182         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
55183
55184 2008-10-05  Bruno Haible  <bruno@clisp.org>
55185
55186         * modules/sched (Makefile.am): Fix typo.
55187         Reported by Simon Josefsson.
55188
55189 2008-10-05  Jim Meyering  <meyering@redhat.com>
55190
55191         bootstrap: check for LT_INIT, too
55192         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
55193         are deprecated.  Suggestion from Ralf Wildenhues.
55194
55195 2008-10-05  Bruno Haible  <bruno@clisp.org>
55196
55197         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
55198         overriding them by ours.
55199         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
55200
55201 2008-10-05  Jim Meyering  <meyering@redhat.com>
55202
55203         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
55204         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
55205         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
55206
55207 2008-10-04  Bruno Haible  <bruno@clisp.org>
55208
55209         * modules/dup2 (License): Change to LGPLv2+.
55210         * modules/sleep (License): Likewise.
55211         * modules/perror (License): Likewise.
55212         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
55213         Blake.
55214         * modules/signal (License): Likewise.
55215         * modules/sigprocmask (License): Likewise.
55216         * modules/raise (License): Change to LGPLv2+, with approval by Jim
55217         Meyering.
55218
55219 2008-10-04  Bruno Haible  <bruno@clisp.org>
55220
55221         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
55222         Reported by Rainer Tammer <tammer@tammer.net>.
55223
55224 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
55225             Bruno Haible  <bruno@clisp.org>
55226
55227         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
55228         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
55229         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
55230
55231 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
55232
55233         filevercmp: new module
55234         * lib/filevercmp.h: New function filevercmp comparing version strings.
55235         * lib/filevercmp.c: Implementation of filevercmp function.
55236         * modules/filevercmp: Module metadata.
55237         * tests/test-filevercmp.c: Unit test for new module.
55238         * modules/filevercmp-tests: Unit test metadata.
55239         * MODULES.html.sh: Add filevercmp module.
55240
55241 2008-10-03  Bruno Haible  <bruno@clisp.org>
55242
55243         * lib/c-ctype.h: Add comment.
55244         Reported by Jim Meyering.
55245
55246 2008-10-02  Bruno Haible  <bruno@clisp.org>
55247
55248         * modules/posix_spawn-internal (Depends-on): Add 'open'.
55249
55250 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55251
55252         * build-aux/bootstrap: Allow renaming bootstrap, and change the
55253         name of bootstrap.conf accordingly.
55254
55255 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55256
55257         * build-aux/bootstrap: Install git-merge-changelog configuration
55258         items into .gitconfig if needed.
55259
55260 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55261
55262         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
55263         git repository, and initialize/update it accordingly.
55264
55265 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
55266
55267         * modules/fsync-tests: New file.
55268         * tests/test-fsync.c: New file.
55269
55270         New module 'fsync'.
55271         * lib/fsync.c: New file.
55272         * m4/fsync.m4: New file.
55273         * modules/fsync: New file.
55274         * lib/unistd.in.h (fsync): New declaration.
55275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
55276         GNULIB_FSYNC and HAVE_FSYNC.
55277         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
55278         * MODULES.html.sh (posix_functions): Add fsync.
55279         * doc/posix-functions/fsync.texi: Mention the new module.
55280
55281 2008-10-02  Jim Meyering  <meyering@redhat.com>
55282
55283         fts.c: sync with similar code from coreutils' remove.c
55284         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
55285         Guard also with "#if defined __linux__", since for now at least,
55286         this code is Linux-kernel-specific.
55287
55288 2008-10-02  Jim Meyering  <meyering@redhat.com>
55289
55290         fts: bug fixes
55291         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
55292         Include <sys/vfs.h>, not <sys/statfs.h>.
55293
55294         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
55295         Include <sys/vfs.h>, not <sys/statfs.h>.
55296
55297 2008-10-01  Bruno Haible  <bruno@clisp.org>
55298
55299         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
55300         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
55301         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
55302         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
55303         * doc/posix-functions/posix_spawnp.texi: Likewise.
55304         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
55305         whether posix_spawn actually works.
55306         * m4/pipe.m4 (gl_PIPE): Likewise.
55307         * modules/execute (Files): Add m4/posix_spawn.m4.
55308         * modules/pipe (Files): Add m4/posix_spawn.m4.
55309         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
55310
55311 2008-10-01  Jim Meyering  <meyering@redhat.com>
55312
55313         remove trailing spaces
55314         * NEWS: Likewise.
55315         * lib/poll.c (poll): Likewise.
55316         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
55317         * lib/winsock.c (rpl_close): Likewise.
55318         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
55319         * modules/yield: Likewise.
55320         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
55321         * tests/test-sys_select.c (connect_to_socket): Likewise.
55322
55323         fts.c: adjust a new interface to be more generally useful
55324         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
55325         (fts_build): Adjust caller.
55326
55327 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55328
55329         * modules/cond-tests: New file.
55330         * tests/test-cond.c: New file.
55331
55332 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55333             Bruno Haible  <bruno@clisp.org>
55334
55335         * modules/cond (Dependencies): Add errno, time.
55336         * lib/glthread/cond.h: Include <time.h>.
55337         (gl_cond_define, gl_cond_define_initialized): Use the same definition
55338         across platforms.
55339
55340 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55341             Bruno Haible  <bruno@clisp.org>
55342
55343         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
55344
55345 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55346             Bruno Haible  <bruno@clisp.org>
55347
55348         * modules/tls-tests (Depends-on): Add thread, yield.
55349         (configure.ac): Remove all checks.
55350         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
55351         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55352         gl_thread_self): Remove definitions. Include glthread/thread.h and
55353         glthread/yield.h instead.
55354         (test_tls): Pass an additional NULL argument to gl_thread_join.
55355
55356 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55357             Bruno Haible  <bruno@clisp.org>
55358
55359         * modules/lock-tests (Depends-on): Add thread, yield.
55360         (configure.ac): Remove all checks.
55361         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
55362         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55363         gl_thread_self): Remove definitions. Include glthread/thread.h and
55364         glthread/yield.h instead.
55365         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
55366         additional NULL argument to gl_thread_join.
55367
55368 2008-09-30  Bruno Haible  <bruno@clisp.org>
55369
55370         Fix the Win32 implementation of the 'thread' module.
55371         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
55372         pointer type.
55373         (gl_thread_self): Invoke gl_thread_self_func.
55374         (gl_thread_self_func): New declaration.
55375         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
55376         (do_init_self_key, init_self_key): New functions.
55377         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
55378         Remove some fields.
55379         (running_threads, running_lock): Remove variables.
55380         (get_current_thread_handle): New function.
55381         (gl_thread_self_func, wrapper_func, glthread_create_func,
55382         glthread_join_func, gl_thread_exit_func): Largely rewritten and
55383         simplified.
55384
55385 2008-09-30  Bruno Haible  <bruno@clisp.org>
55386
55387         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
55388         files.
55389
55390 2008-09-30  Jim Meyering  <meyering@redhat.com>
55391
55392         fts.m4: correct the test for statfs.f_type
55393         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
55394         when checking for statfs.f_type.
55395
55396 2008-09-15  Simon Josefsson  <simon@josefsson.org>
55397
55398         tests: avoid some compiler warnings
55399         * tests/test-memchr.c (main): Pass NULL indirectly.
55400         * tests/test-getdate.c (main): Remove unused variable 'ret'.
55401
55402 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
55403
55404         getdate.y: disallow countable dayshifts like "4 yesterday ago"
55405         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
55406         exactly specified dayshifts.
55407         (dayshift): New rule.
55408         (rel): Add dayshift.
55409         (relative_time_table) [tomorrow, yesterday, today, now]:
55410         Use tDAY_SHIFT in place of tDAY_UNIT.
55411         * tests/test-getdate.c: Add tests for now-disallowed countable
55412         dayshifts, e.g., "4 yesterday ago".
55413
55414 2008-09-29  Bruno Haible  <bruno@clisp.org>
55415
55416         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
55417         * tests/test-posix_spawn1.in.sh: Renamed from
55418         tests/test-posix_spawn.in.sh.
55419         * tests/test-posix_spawn2.c: New file.
55420         * tests/test-posix_spawn2.in.sh: New file.
55421         * modules/posix_spawnp-tests (Files): Update.
55422         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
55423
55424 2008-09-29  Bruno Haible  <bruno@clisp.org>
55425
55426         Propagate effects of putenv/setenv/unsetenv to child processes.
55427         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
55428         * lib/pipe.c (create_pipe): Likewise.
55429
55430 2008-09-29  Bruno Haible  <bruno@clisp.org>
55431
55432         Enable use of shell scripts as executables in mingw.
55433         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
55434         run the program as a shell script.
55435         * lib/pipe.c (create_pipe): Likewise.
55436         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
55437         resulting array.
55438
55439 2008-09-29  Eric Blake  <ebb9@byu.net>
55440
55441         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
55442
55443 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
55444
55445         * doc/posix-functions/accept.texi: Update mingw problems.
55446         * doc/posix-functions/bind.texi: Update mingw problems.
55447         * doc/posix-functions/close.texi: Update mingw problems.
55448         * doc/posix-functions/connect.texi: Update mingw problems.
55449         * doc/posix-functions/getpeername.texi: Update mingw problems.
55450         * doc/posix-functions/getsockname.texi: Update mingw problems.
55451         * doc/posix-functions/getsockopt.texi: Update mingw problems.
55452         * doc/posix-functions/ioctl.texi: Update mingw problems.
55453         * doc/posix-functions/listen.texi: Update mingw problems.
55454         * doc/posix-functions/recv.texi: Update mingw problems.
55455         * doc/posix-functions/recvfrom.texi: Update mingw problems.
55456         * doc/posix-functions/select.texi: Update mingw problems.
55457         * doc/posix-functions/send.texi: Update mingw problems.
55458         * doc/posix-functions/sendto.texi: Update mingw problems.
55459         * doc/posix-functions/setsockopt.texi: Update mingw problems.
55460         * doc/posix-functions/socket.texi: Update mingw problems.
55461
55462 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
55463             Bruno Haible  <bruno@clisp.org>
55464
55465         * lib/sys_select.in.h: Include sys/time.h.
55466         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
55467         * modules/sys_select: Depend on sys_time.
55468         * tests/test-sys_select.c: Test that sys/select.h defines struct
55469         timeval fully.
55470
55471 2008-09-29  Bruno Haible  <bruno@clisp.org>
55472
55473         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
55474         * lib/sys_select.in.h: Likewise.
55475
55476 2008-09-29  Bruno Haible  <bruno@clisp.org>
55477
55478         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
55479
55480 2008-09-29  Bruno Haible  <bruno@clisp.org>
55481
55482         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
55483         Set LIBSOCKET instead of augmenting LIBS.
55484         * modules/sockets (Link): New section.
55485         * modules/sockets-tests (test_sockets_LDADD): New variable.
55486         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
55487         * modules/poll-tests (test_poll_LDADD): New variable.
55488         * NEWS: Document the change.
55489
55490 2008-09-29  Bruno Haible  <bruno@clisp.org>
55491
55492         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
55493         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
55494         ARPA_INET_H directly.
55495         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55496
55497 2008-09-28  Bruno Haible  <bruno@clisp.org>
55498
55499         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
55500         from gl_HEADER_SYS_SOCKET.
55501         (gl_HEADER_SYS_SOCKET): Invoke it.
55502         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55503
55504 2008-09-28  Bruno Haible  <bruno@clisp.org>
55505
55506         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
55507         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
55508         Needed on OSF/1 4.0.
55509
55510 2008-09-28  Bruno Haible  <bruno@clisp.org>
55511
55512         Override open more carefully.
55513         * lib/open.c (orig_open): New function.
55514         (rpl_open): Use orig_open instead of open.
55515         * lib/fcntl.in.h: Add special invocation convention.
55516         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
55517         (gl_FUNC_OPEN): Invoke it.
55518
55519         Override freopen more carefully.
55520         * lib/freopen.c (orig_freopen): New function.
55521         (rpl_freopen): Use orig_freopen instead of freopen.
55522         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
55523         (gl_FUNC_FREOPEN): Invoke it.
55524
55525         Override fopen more carefully.
55526         * lib/fopen.c (orig_fopen): New function.
55527         (rpl_fopen): Use orig_fopen instead of fopen.
55528         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
55529         (gl_FUNC_FOPEN): Invoke it.
55530         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
55531
55532 2008-09-28  Bruno Haible  <bruno@clisp.org>
55533
55534         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
55535         SIGPIPE.
55536
55537 2008-09-28  Bruno Haible  <bruno@clisp.org>
55538
55539         * tests/test-sigaction.c (handler, main): Disable the check whether
55540         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
55541         glibc systems with LinuxThreads.
55542
55543 2008-09-28  Bruno Haible  <bruno@clisp.org>
55544
55545         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
55546
55547         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
55548         with AIX xlc.
55549         * lib/fcntl.in.h (open): Likewise.
55550         Reported by Rainer Tammer <tammer@tammer.net>.
55551
55552 2008-09-28  Bruno Haible  <bruno@clisp.org>
55553
55554         * modules/posix_spawnp-tests: New file.
55555         * tests/test-posix_spawn.c: New file.
55556         * tests/test-posix_spawn.in.sh: New file.
55557
55558         New module 'posix_spawnp'.
55559         * modules/posix_spawnp: New file.
55560         * lib/spawnp.c: New file, from GNU libc with modifications.
55561         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
55562
55563         New module 'posix_spawn'.
55564         * modules/posix_spawn: New file.
55565         * lib/spawn.c: New file, from GNU libc with modifications.
55566         * doc/posix-functions/posix_spawn.texi: Mention the new module.
55567
55568         New module 'posix_spawnattr_destroy'.
55569         * modules/posix_spawnattr_destroy: New file.
55570         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
55571         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
55572         module.
55573
55574         New module 'posix_spawnattr_setsigmask'.
55575         * modules/posix_spawnattr_setsigmask: New file.
55576         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
55577         modifications.
55578         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
55579         new module.
55580
55581         New module 'posix_spawnattr_getsigmask'.
55582         * modules/posix_spawnattr_getsigmask: New file.
55583         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
55584         modifications.
55585         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
55586         new module.
55587
55588         New module 'posix_spawnattr_setsigdefault'.
55589         * modules/posix_spawnattr_setsigdefault: New file.
55590         * lib/spawnattr_setdefault.c: New file, from GNU libc with
55591         modifications.
55592         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
55593         new module.
55594
55595         New module 'posix_spawnattr_getsigdefault'.
55596         * modules/posix_spawnattr_getsigdefault: New file.
55597         * lib/spawnattr_getdefault.c: New file, from GNU libc with
55598         modifications.
55599         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
55600         new module.
55601
55602         New module 'posix_spawnattr_setschedpolicy'.
55603         * modules/posix_spawnattr_setschedpolicy: New file.
55604         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
55605         modifications.
55606         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
55607         new module.
55608
55609         New module 'posix_spawnattr_getschedpolicy'.
55610         * modules/posix_spawnattr_getschedpolicy: New file.
55611         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
55612         modifications.
55613         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
55614         new module.
55615
55616         New module 'posix_spawnattr_setschedparam'.
55617         * modules/posix_spawnattr_setschedparam: New file.
55618         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
55619         modifications.
55620         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
55621         new module.
55622
55623         New module 'posix_spawnattr_getschedparam'.
55624         * modules/posix_spawnattr_getschedparam: New file.
55625         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
55626         modifications.
55627         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
55628         new module.
55629
55630         New module 'posix_spawnattr_setpgroup'.
55631         * modules/posix_spawnattr_setpgroup: New file.
55632         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
55633         modifications.
55634         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
55635         module.
55636
55637         New module 'posix_spawnattr_getpgroup'.
55638         * modules/posix_spawnattr_getpgroup: New file.
55639         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
55640         modifications.
55641         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
55642         module.
55643
55644         New module 'posix_spawnattr_setflags'.
55645         * modules/posix_spawnattr_setflags: New file.
55646         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
55647         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
55648         module.
55649
55650         New module 'posix_spawnattr_getflags'.
55651         * modules/posix_spawnattr_getflags: New file.
55652         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
55653         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
55654         module.
55655
55656         New module 'posix_spawnattr_init'.
55657         * modules/posix_spawnattr_init: New file.
55658         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
55659         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
55660         module.
55661
55662         New module 'posix_spawn_file_actions_destroy'.
55663         * modules/posix_spawn_file_actions_destroy: New file.
55664         * lib/spawn_faction_destroy.c: New file, from GNU libc with
55665         modifications.
55666         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
55667         the new module.
55668
55669         New module 'posix_spawn_file_actions_addopen'.
55670         * modules/posix_spawn_file_actions_addopen: New file.
55671         * lib/spawn_faction_addopen.c: New file, from GNU libc with
55672         modifications.
55673         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
55674         the new module.
55675
55676         New module 'posix_spawn_file_actions_adddup2'.
55677         * modules/posix_spawn_file_actions_adddup2: New file.
55678         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
55679         modifications.
55680         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
55681         the new module.
55682
55683         New module 'posix_spawn_file_actions_addclose'.
55684         * modules/posix_spawn_file_actions_addclose: New file.
55685         * lib/spawn_faction_addclose.c: New file, from GNU libc with
55686         modifications.
55687         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
55688         the new module.
55689
55690         New module 'posix_spawn_file_actions_init'.
55691         * modules/posix_spawn_file_actions_init: New file.
55692         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
55693         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
55694         new module.
55695
55696         New module 'posix_spawn-internal'.
55697         * modules/posix_spawn-internal: New file.
55698         * lib/spawn_int.h: New file, from GNU libc with modifications.
55699         * lib/spawni.c: New file, from GNU libc with modifications.
55700         * m4/posix_spawn.m4: New file.
55701
55702         New module 'spawn'.
55703         * modules/spawn: New file.
55704         * lib/spawn.in.h: New file, from GNU libc with modifications.
55705         * m4/spawn_h.m4: New file.
55706         * doc/posix-headers/spawn.texi: Mention the new module.
55707
55708 2008-09-28  Bruno Haible  <bruno@clisp.org>
55709
55710         * modules/sched-tests: New file.
55711         * tests/test-sched.c: New file.
55712
55713         New module 'sched'.
55714         * modules/sched: New file.
55715         * lib/sched.in.h: New file.
55716         * m4/sched_h.m4: New file.
55717         * doc/posix-headers/sched.texi: Mention the new module.
55718
55719 2008-09-27  Eric Blake  <ebb9@byu.net>
55720
55721         Fix previous patch, and tweak references to $0.
55722         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
55723         (func_version, func_gnulib_dir): Don't call this program
55724         gnulib-tool.
55725         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
55726         with using $0 in function.
55727         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
55728         (func_fatal_error): Reuse the name the user invoked us with.
55729
55730 2008-09-27  Bruno Haible  <bruno@clisp.org>
55731
55732         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
55733         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
55734         (gl_ICONV_H): Not here.
55735         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55736         instead of assigning ICONV_H directly.
55737
55738         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
55739         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
55740         WCHAR_H directly.
55741
55742 2008-09-27  Bruno Haible  <bruno@clisp.org>
55743
55744         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
55745         * modules/arpa_inet (Depends-on): Add link-warning.
55746         (Makefile.am): Insert the definition of GL_LINK-WARNING.
55747         * modules/unistd (Makefile.am): Likewise.
55748
55749 2008-09-26  Bruno Haible  <bruno@clisp.org>
55750
55751         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
55752         variables.
55753         (func_version): Essentially copied from gnulib-tool.
55754         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
55755         func_readlink): Copied from gnulib-tool.
55756
55757 2008-09-26  Bruno Haible  <bruno@clisp.org>
55758
55759         * gnulib-tool (func_version): Change directory to $gnulib_dir before
55760         invoking git-version-gen.
55761
55762 2008-09-26  Bruno Haible  <bruno@clisp.org>
55763
55764         * posix-modules: Update to directory names changed on 2008-01-19.
55765         Remove commas in output before splitting into words. No more need to
55766         avoid 'ftruncate' since 2007-02-19.
55767
55768 2008-09-26  Bruno Haible  <bruno@clisp.org>
55769
55770         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
55771
55772 2008-09-26  Bruno Haible  <bruno@clisp.org>
55773
55774         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
55775         * modules/fwriteerror (Depends-on): Add errno.
55776
55777 2008-09-26  Bruno Haible  <bruno@clisp.org>
55778
55779         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
55780         * tests/test-vc-list-files-cvs.sh: Likewise.
55781
55782 2008-09-26  Bruno Haible  <bruno@clisp.org>
55783
55784         * doc/posix-headers/sys_resource.texi: Reorder items.
55785
55786 2008-09-26  Jim Meyering  <meyering@redhat.com>
55787
55788         fts: tweak inode comparison function
55789         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
55790         inode numbers, as documented.
55791
55792         fts: sort dirent entries on inode number before traversing
55793         This avoids a quadratic, seek-related performance penalty when
55794         operating on a directory containing many entries (measurable at 10k;
55795         3.5 hours at 2 million entries with a cold cache) on certain types
55796         of file systems, including ext3 and ext4, but not tmpfs.
55797         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
55798         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
55799         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
55800         (fs_handles_readdir_ordered_dirents_efficiently): New function.
55801         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
55802         (fts_build): Set the stat.st_ino member from D_INO.
55803         If it is likely to be useful, sort dirent entries on inode number.
55804
55805         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
55806         and the struct statfs.f_type member.
55807         * modules/fts (Depends-on): Add d-ino.
55808
55809 2008-09-26  Bruno Haible  <bruno@clisp.org>
55810
55811         * modules/sigpipe-die (Depends-on): Add sigpipe.
55812
55813         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
55814         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
55815         and GNULIB_STDIO_H_SIGPIPE are set.
55816         * lib/stdio-write.c: New file.
55817         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
55818         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55819         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55820         REPLACE_STDIO_WRITE_FUNCS.
55821         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
55822         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55823         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55824         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55825         * modules/stdio (Files): Add lib/stdio-write.c.
55826         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
55827         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55828         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55829         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55830         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
55831         REPLACE_FPRINTF_POSIX.
55832         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
55833         REPLACE_PRINTF_POSIX.
55834         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
55835         REPLACE_VFPRINTF_POSIX.
55836         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
55837         REPLACE_VPRINTF_POSIX.
55838         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
55839         SIGPIPE issue.
55840         * doc/posix-functions/fputc.texi: Likewise.
55841         * doc/posix-functions/fputs.texi: Likewise.
55842         * doc/posix-functions/fwrite.texi: Likewise.
55843         * doc/posix-functions/printf.texi: Likewise.
55844         * doc/posix-functions/putc.texi: Likewise.
55845         * doc/posix-functions/putchar.texi: Likewise.
55846         * doc/posix-functions/puts.texi: Likewise.
55847         * doc/posix-functions/vfprintf.texi: Likewise.
55848         * doc/posix-functions/vprintf.texi: Likewise.
55849
55850         * modules/safe-write (Depends-on): Add write.
55851
55852         * modules/sigpipe-tests: New file.
55853         * tests/test-sigpipe.c: New file.
55854         * tests/test-sigpipe.sh: New file.
55855
55856         * modules/write: New file.
55857         * lib/unistd.in.h: Include <sys/types.h>.
55858         (write): New declaration.
55859         * lib/write.c: New file.
55860         * m4/write.m4: New file.
55861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55862         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
55863         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
55864         GNULIB_WRITE, REPLACE_WRITE.
55865         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
55866         and the SIGPIPE issue.
55867
55868         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
55869         (raise): New declaration.
55870         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
55871         (ext_signal): New function.
55872         (rpl_raise): New function.
55873         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
55874         GNULIB_SIGNAL_H_SIGPIPE.
55875         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
55876         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
55877
55878         * modules/sigpipe: New file.
55879         * m4/sigpipe.m4: New file.
55880
55881 2008-09-25  Derek Price  <derek@ximbiot.com>
55882             Bruno Haible  <bruno@clisp.org>
55883
55884         * gnulib-tool (func_import): Report all license incompatibilities, not
55885         just the first one.
55886
55887 2008-09-25  Bruno Haible  <bruno@clisp.org>
55888
55889         * gnulib-tool (func_import): When computing the edits, consider not
55890         only the Makefile.ams that exist but also those that will be generated.
55891
55892 2008-09-25  Simon Josefsson  <simon@josefsson.org>
55893
55894         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
55895         fixes gnulib-tool --test warning about duplicate dependency.
55896
55897 2008-09-25  Bruno Haible  <bruno@clisp.org>
55898
55899         * gnulib-tool: Don't ask the user to perform edits in the generated
55900         Makefile.ams.
55901         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
55902         apply to the Makefile.am being generated.
55903         (func_emit_tests_Makefile_am): Execute edits that apply to the
55904         Makefile.am being generated.
55905         (func_import): Setup list of Makefile.am edits before emitting the
55906         Makefile.ams, not at the end.
55907         (func_create_testdir): Update.
55908         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55909
55910 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55911
55912         * gnulib-tool (func_import): Store the --tests-base option in the
55913         comment in gnulib-cache.m4.
55914
55915 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
55916
55917         * NEWS: Document increased portability that sys_select now provides.
55918
55919         * lib/sys_select.in.h: Install select wrapper.
55920         * lib/sys_socket.in.h: Use more descriptive name when there is no
55921         select wrapper.
55922         * lib/winsock-select.c: New.
55923         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
55924         Require gl_HEADER_SYS_SOCKET.
55925         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
55926         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
55927         * tests/test-sys_select.c: Add functional tests.
55928
55929 2008-09-24  Eric Blake  <ebb9@byu.net>
55930
55931         open, fopen: close fd leak in last patch
55932         * lib/open.c (rpl_open): Close fd before returning error.
55933         * lib/fopen.c (rpl_fopen): Close fd before returning error.
55934         * doc/posix-functions/open.texi (open): Document that Irix also
55935         has the bug.
55936         * doc/posix-functions/fopen.texi (fopen): Likewise.
55937         Reported by Paolo Bonzini.
55938
55939 2008-09-24  Bruno Haible  <bruno@clisp.org>
55940
55941         Ensure that a filename ending in a slash cannot be used to access a
55942         non-directory.
55943         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
55944         to check whether it's really a directory.
55945         * lib/fopen.c: Include fcntl.h, unistd.h.
55946         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
55947         and fdopen().
55948         * modules/fopen (Depends-on): Add unistd.
55949         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
55950         * tests/test-fopen.c (main): Likewise.
55951         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
55952         * doc/posix-functions/fopen.texi: Likewise.
55953         Reported by Eric Blake.
55954
55955 2008-09-23  Eric Blake  <ebb9@byu.net>
55956
55957         c-stack: avoid compiler optimizations when provoking overflow
55958         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
55959         recursion harder to optimize, to ensure a stack overflow occurs.
55960         * tests/test-c-stack.c (recurse): Likewise.
55961         Borrowed from libsigsegv.
55962
55963         c-stack: work around Irix sigaltstack bug
55964         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
55965         whether sigaltstack uses wrong end of stack_t (copied in part from
55966         libsigsegv).
55967         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
55968         Irix bug, without requiring an over-allocation.
55969         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
55970         bug.
55971
55972         fopen: document mingw bug on directories
55973         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
55974         not allowing a stream visiting a directory, even though reading
55975         from such a stream is not portable.
55976
55977 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55978
55979         * lib/poll.c: Rewrite.
55980         * modules/poll: Depend on alloca.
55981
55982 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55983
55984         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
55985         instead define prototypes for a full set of wrappers.  Ensure
55986         that Cygwin does not use the compatibility code, which is only
55987         for MinGW.
55988         * lib/winsock.c: New.
55989         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
55990         * modules/sys_socket: Add lib/winsock.c.
55991
55992         * modules/poll-tests: Add errno and perror.
55993         * tests/test-poll.c: Use ioctl, not ioctlsocket.
55994
55995 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55996
55997         * tests/test-poll.c: Downgrade minimum needed Winsock version.
55998
55999 2008-09-23  Bruno Haible  <bruno@clisp.org>
56000
56001         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
56002         * doc/glibc-functions/*: Likewise.
56003
56004 2008-09-23  Simon Josefsson  <simon@josefsson.org>
56005
56006         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
56007         success.
56008
56009 2008-09-22  Eric Blake  <ebb9@byu.net>
56010             Bruno Haible  <bruno@clisp.org>
56011
56012         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
56013         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
56014         supply %A but mishandle pseudo-NaN.
56015         Reported by Simon Josefsson.
56016
56017 2008-09-21  Bruno Haible  <bruno@clisp.org>
56018
56019         * tests/test-lock.c (main): Tweak skip message.
56020         * tests/test-tls.c (main): Likewise.
56021
56022 2008-09-21  Bruno Haible  <bruno@clisp.org>
56023
56024         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
56025         whether 'struct sigaction' has sa_sigaction here...
56026         (gl_PREREQ_SIG_HANDLER_H): ... not here.
56027         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
56028
56029 2008-09-21  Bruno Haible  <bruno@clisp.org>
56030
56031         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
56032         section.
56033         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
56034         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
56035         the new section.
56036         (Support for obsolete systems lacking POSIX:2001): New section.
56037         (String handling <string.h>): Move strdup to the new section.
56038         Suggested by Simon Josefsson and Paolo Bonzini.
56039
56040 2008-09-21  Bruno Haible  <bruno@clisp.org>
56041
56042         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
56043         exponents in %e and %g results on 'long double'. Needed for mingw's
56044         improved *printf functions.
56045         * tests/test-vasprintf-posix.c (test_function): Likewise.
56046         * tests/test-snprintf-posix.h (test_function): Likewise.
56047         * tests/test-sprintf-posix.h (test_function): Likewise.
56048         Reported by Eric Blake.
56049
56050 2008-09-21  Bruno Haible  <bruno@clisp.org>
56051
56052         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
56053         * tests/test-sprintf-posix.h (test_function): Likewise.
56054
56055 2008-09-21  Bruno Haible  <bruno@clisp.org>
56056
56057         * modules/getpass (Depends-on): Add strdup-posix.
56058
56059         New module 'strdup-posix'.
56060         * modules/strdup-posix: New file.
56061         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
56062         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
56063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56064         REPLACE_STRDUP.
56065         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
56066         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
56067         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56068         strdup-posix.
56069
56070         * modules/strdup (Depends-on): Remove malloc-posix.
56071
56072 2008-09-20  Bruno Haible  <bruno@clisp.org>
56073
56074         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
56075         Wildenhues.
56076
56077 2008-09-20  Bruno Haible  <bruno@clisp.org>
56078
56079         Ensure that wint_t gets defined on IRIX 5.3.
56080         * lib/wchar.in.h (wint_t): Define if not defined by the system.
56081         * lib/wctype.in.h (wint_t): Likewise.
56082         (__wctype_wint_t): Remove type.
56083         (isw*): Use wint_t instead of __wctype_wint_t.
56084         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
56085         * modules/wchar (Files): Add m4/wint_t.m4.
56086         (Makefile.am): Substitute HAVE_WINT_T.
56087         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
56088         * tests/test-wctype.c: Check that wint_t is defined.
56089         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
56090         * doc/posix-headers/wctype.texi: Likewise.
56091         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56092
56093 2008-09-18  Bruno Haible  <bruno@clisp.org>
56094
56095         * gnulib-tool (func_exit): Update comment.
56096
56097 2008-09-18  Simon Josefsson  <simon@josefsson.org>
56098
56099         * modules/getaddrinfo (Depends-on): Remove strdup, this module
56100         assumes strdup exists and does not depend on strdup to return
56101         ENOMEM on out of memory conditions.
56102
56103 2008-09-18  Bruno Haible  <bruno@clisp.org>
56104
56105         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
56106         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
56107         digits for the exponent.
56108
56109 2008-09-18  Jim Meyering  <meyering@redhat.com>
56110             Bruno Haible  <bruno@clisp.org>
56111
56112         * lib/vasnprintf.c (decimal_point_char): Define also if
56113         NEED_PRINTF_INFINITE_LONG_DOUBLE.
56114
56115 2008-09-16  Bruno Haible  <bruno@clisp.org>
56116         and Eric Blake  <ebb9@byu.net>
56117
56118         vasnprintf: support Irix 5.3
56119         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
56120         that mishandle long double infinity.
56121         Reported by Tom G. Christensen.
56122
56123 2008-09-16  Bruno Haible  <bruno@clisp.org>
56124
56125         * doc/glibc-functions/scandir.texi: Mention the function is missing on
56126         Solaris 9.
56127         * doc/glibc-functions/alphasort.texi: Likewise.
56128         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
56129
56130 2008-09-16  Jim Meyering  <meyering@redhat.com>
56131
56132         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
56133         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
56134         a umask modification leak out of a subshell.  Otherwise, the
56135         opensolaris /bin/sh would be accepted and thus cause unwarranted
56136         failures in the coreutils test suite.
56137
56138 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
56139
56140         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
56141         to succeed.
56142
56143 2008-09-16  Jim Meyering  <meyering@redhat.com>
56144
56145         avoid spurious test failure when library is built without ACL support
56146         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
56147         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
56148         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
56149         * tests/test-copy-acl.sh: Likewise.
56150
56151 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56152
56153         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
56154         based on character occurrence counts.
56155
56156 2008-09-15  Eric Blake  <ebb9@byu.net>
56157
56158         tests: avoid some compiler warnings
56159         * tests/test-memchr.c (main): Pass NULL indirectly.
56160         * tests/test-closein.c (main): Avoid unused variable.
56161
56162 2008-09-15  Bruno Haible  <bruno@clisp.org>
56163
56164         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
56165         are missing on OpenBSD 4.0 individually.
56166         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56167
56168 2008-09-15  Bruno Haible  <bruno@clisp.org>
56169
56170         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
56171         * doc/posix-functions/strerror.texi: Mention also Cygwin.
56172         * doc/posix-functions/perror.texi: Likewise.
56173         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
56174         is missing.
56175         Reported by Eric Blake.
56176
56177         * lib/errno.in.h: Use replacement values >= 2000.
56178         Reported by Eric Blake.
56179
56180 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56181
56182         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
56183         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
56184         limit.
56185         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
56186         compareseq was aborted.
56187
56188 2008-09-14  Bruno Haible  <bruno@clisp.org>
56189
56190         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
56191         yvec_edit_count.
56192         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
56193         (fstrcmp_bounded): Simplify result computation accordingly.
56194
56195 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56196
56197         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
56198         (fstrcmp): Define in terms of fstrcmp_bounded.
56199         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
56200         lower_bound argument.
56201         Return quickly if the result is certainly < lower_bound.
56202         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
56203
56204 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56205
56206         * lib/diffseq.h (EARLY_ABORT): New macro.
56207         (compareseq): Change return type to bool. Return true when EARLY_ABORT
56208         evaluates to true.
56209
56210 2008-09-14  Bruno Haible  <bruno@clisp.org>
56211
56212         * modules/perror-tests: New file.
56213         * tests/test-perror.sh: New file.
56214         * tests/test-perror.c: New file.
56215
56216         New module 'perror'.
56217         * lib/stdio.in.h (perror): New declaration.
56218         * lib/perror.c: New file.
56219         * m4/perror.m4: New file.
56220         * modules/perror: New file.
56221         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
56222         * doc/posix-functions/perror.texi: Mention the perror module.
56223         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
56224         REPLACE_PERROR.
56225         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
56226         REPLACE_PERROR.
56227
56228 2008-09-14  Bruno Haible  <bruno@clisp.org>
56229
56230         * modules/stdio (Makefile.am): Reorder to match the order in
56231         lib/stdio.in.h.
56232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56233
56234 2008-09-13  Bruno Haible  <bruno@clisp.org>
56235
56236         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
56237
56238 2008-09-13  Bruno Haible  <bruno@clisp.org>
56239
56240         Extend strerror to cover the added errno values.
56241         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
56242         (rpl_strerror): Provide error messages for the added errno values and
56243         for the WSA* values.
56244         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
56245         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
56246         strerror.
56247         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
56248         * modules/strerror (Depends-on): Add errno.
56249         * doc/posix-functions/strerror.texi: Document the change.
56250         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
56251         and EOVERFLOW.
56252
56253 2008-09-13  Bruno Haible  <bruno@clisp.org>
56254
56255         * modules/EOVERFLOW: Remove file.
56256         * m4/eoverflow.m4: Remove file.
56257         * modules/EOVERFLOW-tests: Remove file.
56258         * tests/test-EOVERFLOW.c: Remove file.
56259         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
56260         * modules/ftell (Depends-on): Likewise.
56261         * modules/getdelim (Depends-on): Likewise.
56262         * modules/getugroups (Depends-on): Likewise.
56263         * modules/poll (Depends-on): Likewise.
56264         * modules/snprintf (Depends-on): Likewise.
56265         * modules/sprintf-posix (Depends-on): Likewise.
56266         * modules/vasnprintf (Depends-on): Likewise.
56267         * modules/vasprintf (Depends-on): Likewise.
56268         * modules/vfprintf-posix (Depends-on): Likewise.
56269         * modules/vsnprintf (Depends-on): Likewise.
56270         * modules/vsprintf-posix (Depends-on): Likewise.
56271         * modules/xvasprintf (Depends-on): Likewise.
56272         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56273         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
56274         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
56275         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
56276         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56277         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
56278         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
56279         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
56280         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56281         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
56282         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
56283         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
56284         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56285         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
56286         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
56287         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
56288         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56289         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
56290         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
56291         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
56292         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56293         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
56294         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
56295         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
56296         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
56297         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56298         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
56299         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
56300         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
56301         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
56302         * MODULES.html.sh: Remove EOVERFLOW.
56303         * NEWS: Mention the change.
56304
56305 2008-09-13  Bruno Haible  <bruno@clisp.org>
56306
56307         * modules/errno-tests: New file.
56308         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
56309
56310         * lib/errno.in.h: New file.
56311         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
56312         * modules/errno: New file.
56313         * doc/posix-headers/errno.texi: Update documentation.
56314         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
56315
56316 2008-09-13  Bruno Haible  <bruno@clisp.org>
56317
56318         * tests/test-poll.c: Use #if for native Windows, rather than testing
56319         __MSVCRT__.
56320
56321 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56322             Bruno Haible  <bruno@clisp.org>
56323
56324         * lib/glob.c: Don't include <pwd.h> on native Windows.
56325         (WINDOWS32): New macro.
56326         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
56327
56328 2008-09-13  Bruno Haible  <bruno@clisp.org>
56329
56330         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
56331         (ETIMEDOUT): Remove macro.
56332         (glthread_cond_timedwait_multithreaded): New declaration.
56333         (glthread_cond_timedwait): Use it.
56334         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
56335         (glthread_cond_timedwait_multithreaded): New function.
56336
56337 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56338
56339         * modules/poll-tests: Do not check for io.h.
56340         * tests/test-poll.c: Check for __MSVCRT__ instead.
56341
56342 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56343
56344         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
56345         * modules/poll-tests: Add inet_pton, stdbool, sockets.
56346         * tests/test-poll.c: Use them.  Use _pipe on Windows.
56347
56348 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56349
56350         * modules/poll-tests: New.
56351         * tests/test-poll.c: New.
56352
56353 2008-09-12  Eric Blake  <ebb9@byu.net>
56354
56355         frexp: test for NetBSD failure on -0.0
56356         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
56357         not all, bugs from NetBSD 3.0 have been fixed.
56358         * doc/posix-functions/frexp.texi (frexp): Document bug.
56359         Reported by Thomas Klausner.
56360
56361         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
56362         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
56363         literal -0.0.
56364         Reported by Jonathan C. Patschke <jp@centtech.com>.
56365
56366 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56367
56368         * lib/glthread/cond.h: Use dummy implementation also if
56369         USE_WIN32_THREADS.
56370
56371 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56372
56373         * modules/fnmatch-posix (License): Change to LGPLv2+.
56374         * modules/fnmatch-gnu (License): Likewise.
56375
56376 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56377
56378         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
56379
56380 2008-09-11  Jim Meyering  <meyering@redhat.com>
56381
56382         * users.txt: Add gtk-vnc.
56383
56384 2008-09-08  Simon Josefsson  <simon@josefsson.org>
56385
56386         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
56387         rotate amounts.
56388
56389         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
56390         required for 16-bit and 8-bit rotates.
56391         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
56392         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
56393         UINT8_MAX instead of hard-coded constants.
56394         Suggested by Paul Eggert.
56395
56396 2008-09-07  Bruno Haible  <bruno@clisp.org>
56397
56398         * tests/test-striconveh.c (main): Check behaviour when converting from
56399         UTF-7.
56400
56401         Make striconveh work better with stateful encodings.
56402         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
56403         that iconv does not increment the inptr when returning -1/EINVAL.
56404
56405 2008-09-07  Bruno Haible  <bruno@clisp.org>
56406
56407         * build-aux/config.rpath: Update according to libtool-2.2.6.
56408         * build-aux/config.libpath: Likewise.
56409
56410 2008-09-06  Bruno Haible  <bruno@clisp.org>
56411
56412         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
56413         * lib/freadptr.c (freadptr): Likewise.
56414         * lib/freadseek.c (freadptrinc): Likewise.
56415         Reported by Simon Josefsson.
56416
56417 2008-09-06  Bruno Haible  <bruno@clisp.org>
56418
56419         * modules/freadptr (License): Change to LGPLv2+.
56420         * modules/freadseek (License): Likewise.
56421         Suggested by Eric Blake.
56422
56423         * modules/memchr2 (License): Change to LGPLv2+.
56424         Approved by Eric Blake.
56425
56426 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56427             Bruno Haible  <bruno@clisp.org>
56428
56429         Make gnulib-tool work with native 'sed' on AIX.
56430         * gnulib-tool (sed_noop): New variable.
56431         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
56432         func_add_or_update, func_create_testdir): Use it to initialize sed
56433         script variables.
56434         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56435
56436 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
56437             Bruno Haible  <bruno@clisp.org>
56438
56439         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
56440         also works after #include directives.
56441
56442 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
56443
56444         getdate.y: reject an out-of-range timezone value
56445         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
56446         the range [-24...+24].  When specified with only one or two digits,
56447         * tests/test-getdate.c: Tests for the fix.
56448         * doc/getdate.texi: Document this change.
56449
56450 2008-09-03  Bruno Haible  <bruno@clisp.org>
56451
56452         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
56453
56454 2008-09-02  Simon Josefsson  <simon@josefsson.org>
56455
56456         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
56457         <bruce.korb@gmail.com> with ideas from Ben Pfaff
56458         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
56459         Blake <ebb9@byu.net>.
56460
56461         * tests/test-bitrotate.c: Add more test vectors.
56462
56463 2008-09-02  Eric Blake  <ebb9@byu.net>
56464
56465         vasnprintf-posix: handle large precision via %.*d
56466         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
56467         when handling it ourselves.
56468         * tests/test-vasnprintf-posix.c (test_function): Add test.
56469         * tests/test-snprintf-posix.h (test_function): Likewise.
56470         * tests/test-sprintf-posix.h (test_function): Likewise.
56471         * tests/test-vasprintf-posix.c (test_function): Likewise.
56472         Reported by Alain Guibert.
56473
56474 2008-09-01  Eric Blake  <ebb9@byu.net>
56475
56476         c-stack: make configure-time check more robust
56477         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
56478         successful sigaction call.
56479         Reported by Tom G. Christensen.
56480
56481 2008-09-01  Bruno Haible  <bruno@clisp.org>
56482
56483         New module 'findprog-lgpl'.
56484         * modules/findprog-lgpl: New file.
56485         * lib/findprog-lgpl.c: New file.
56486         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
56487         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
56488         to decide whether to use strdup or xstrdup, concatenated_filename or
56489         xconcatenated_filename.
56490
56491 2008-09-01  Bruno Haible  <bruno@clisp.org>
56492
56493         Split module 'concat-filename' into 'concat-filename' (LGPL) and
56494         'xconcat-filename' (GPL).
56495         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
56496         (License): Change to LGPLv2+.
56497         * modules/xconcat-filename: New file.
56498         * lib/concat-filename.h (concatenated_filename): Change specification.
56499         (xconcatenated_filename): New declaration.
56500         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
56501         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
56502         memory situations.
56503         * lib/xconcat-filename.c: New file.
56504         * NEWS: Mention the change.
56505         * lib/findprog.c: Include concat-filename.h, not filename.h.
56506         (find_in_path): Use xconcatenated_filename instead of
56507         concatenated_filename.
56508         * lib/javacomp.c: Include concat-filename.h, not filename.h.
56509         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56510         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56511         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56512         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
56513         instead of concatenated_filename.
56514         * lib/javaexec.c: Include concat-filename.h, not filename.h.
56515         (execute_java_class): Use xconcatenated_filename instead of
56516         concatenated_filename.
56517         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
56518         * modules/javacomp (Depends-on): Likewise.
56519         * modules/javaexec (Depends-on): Likewise.
56520
56521 2008-09-01  Bruno Haible  <bruno@clisp.org>
56522
56523         Split module 'filename' into 'filename' and 'concat-filename'.
56524         * modules/filename: Keep only lib/filename.h.
56525         (License): Change to LGPLv2+.
56526         * modules/concat-filename: New file, extracted from modules/filename.
56527         * lib/filename.h (concatenated_filename): Remove declaration.
56528         * lib/concat-filename.h: New file, extracted from lib/filename.h.
56529         * lib/concat-filename.c: Include concat-filename.h.
56530         * NEWS: Mention the change.
56531
56532 2008-09-01  Simon Josefsson  <simon@josefsson.org>
56533
56534         * lib/bitrotate.h (rotl8, rotr8): Add.
56535
56536         * modules/bitrotate (configure.ac): Need
56537         AC_REQUIRE([AC_C_INLINE]).
56538         (Description): Mention stdint.h.  Reported by Bruno Haible
56539         <bruno@clisp.org>.
56540
56541         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
56542         Paolo Bonzini <bonzini@gnu.org>.
56543
56544 2008-08-31  Bruno Haible  <bruno@clisp.org>
56545
56546         Assume Solaris specific bi-arch conventions on Solaris systems.
56547         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
56548         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
56549         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
56550         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
56551         like acl_libdirstem.
56552         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
56553         acl_libdirstem.
56554         * NEWS: Mention the change.
56555         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
56556
56557 2008-08-31  Jim Meyering  <meyering@redhat.com>
56558
56559         * lib/strftime.h: Add comments describing the two added arguments.
56560
56561         remove duplicate #include directives
56562         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
56563         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
56564
56565 2008-08-31  Bruno Haible  <bruno@clisp.org>
56566
56567         New module 'sigpipe-die'.
56568         * modules/sigpipe-die: New file.
56569         * lib/sigpipe-die.h: New file.
56570         * lib/sigpipe-die.c: New file.
56571         * MODULES.html.sh (Signal handling): Add sigpipe-die.
56572
56573 2008-08-31  Bruno Haible  <bruno@clisp.org>
56574
56575         Don't override previously installed signal handlers.
56576         * lib/fatal-signal.c (saved_sigactions): New variable.
56577         (uninstall_handlers): Reset the signal to the saved handler, not
56578         to SIG_DFL (except when ignored).
56579         (install_handlers): Save the previous handlers.
56580
56581 2008-08-30  Bruno Haible  <bruno@clisp.org>
56582
56583         * gnulib-tool (func_reset_sigpipe): New function.
56584         (func_get_automake_snippet, func_modules_transitive_closure,
56585         func_import): Invoke it before a join command that reads from stdin,
56586         to avoid "echo: write error: Broken pipe" error messages on stderr.
56587         Reported by Sam Steingold <sds@gnu.org>.
56588
56589 2008-08-30  Bruno Haible  <bruno@clisp.org>
56590
56591         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
56592         Code copied from m4/open.m4.
56593         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
56594         access and the filename ends in a slash. Code copied from lib/open.c.
56595         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
56596         * tests/test-fopen.c (main): Check against bug with trailing slash.
56597
56598 2008-08-29  Bruno Haible  <bruno@clisp.org>
56599
56600         Avoid some "gcc -pedantic" warnings.
56601         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
56602         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
56603         * lib/dirent.in.h: Likewise.
56604         * lib/fcntl.in.h: Likewise.
56605         * lib/float.in.h: Likewise.
56606         * lib/iconv.in.h: Likewise.
56607         * lib/inttypes.in.h: Likewise.
56608         * lib/locale.in.h: Likewise.
56609         * lib/math.in.h: Likewise.
56610         * lib/netinet_in.in.h: Likewise.
56611         * lib/search.in.h: Likewise.
56612         * lib/signal.in.h: Likewise.
56613         * lib/stdarg.in.h: Likewise.
56614         * lib/stdint.in.h: Likewise.
56615         * lib/stdio.in.h: Likewise.
56616         * lib/stdlib.in.h: Likewise.
56617         * lib/string.in.h: Likewise.
56618         * lib/strings.in.h: Likewise.
56619         * lib/sys_select.in.h: Likewise.
56620         * lib/sys_socket.in.h: Likewise.
56621         * lib/sys_stat.in.h: Likewise.
56622         * lib/sys_time.in.h: Likewise.
56623         * lib/sysexits.in.h: Likewise.
56624         * lib/time.in.h: Likewise.
56625         * lib/unistd.in.h: Likewise.
56626         * lib/wchar.in.h: Likewise.
56627         * lib/wctype.in.h: Likewise.
56628         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
56629         * modules/fchdir (Makefile.am): Likewise.
56630         * modules/fcntl (Makefile.am): Likewise.
56631         * modules/float (Makefile.am): Likewise.
56632         * modules/iconv_open (Makefile.am): Likewise.
56633         * modules/inttypes (Makefile.am): Likewise.
56634         * modules/locale (Makefile.am): Likewise.
56635         * modules/math (Makefile.am): Likewise.
56636         * modules/netinet_in (Makefile.am): Likewise.
56637         * modules/search (Makefile.am): Likewise.
56638         * modules/signal (Makefile.am): Likewise.
56639         * modules/stdarg (Makefile.am): Likewise.
56640         * modules/stdint (Makefile.am): Likewise.
56641         * modules/stdio (Makefile.am): Likewise.
56642         * modules/stdlib (Makefile.am): Likewise.
56643         * modules/string (Makefile.am): Likewise.
56644         * modules/strings (Makefile.am): Likewise.
56645         * modules/sys_select (Makefile.am): Likewise.
56646         * modules/sys_socket (Makefile.am): Likewise.
56647         * modules/sys_stat (Makefile.am): Likewise.
56648         * modules/sys_time (Makefile.am): Likewise.
56649         * modules/sysexits (Makefile.am): Likewise.
56650         * modules/time (Makefile.am): Likewise.
56651         * modules/unistd (Makefile.am): Likewise.
56652         * modules/wchar (Makefile.am): Likewise.
56653         * modules/wctype (Makefile.am): Likewise.
56654         Reported by Reuben Thomas <rrt@sc3d.org>.
56655
56656 2008-08-29  Bruno Haible  <bruno@clisp.org>
56657
56658         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
56659         any more.
56660
56661 2008-08-29  Simon Josefsson  <simon@josefsson.org>
56662
56663         * MODULES.html.sh (Misc): Add bitrotate.
56664
56665         * modules/bitrotate: New file.
56666
56667         * lib/bitrotate.h: New file.
56668
56669         * modules/bitrotate-tests: New file.
56670
56671         * tests/test-bitrotate.c: New file.
56672
56673         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
56674         on the bitrotate module.
56675
56676         * lib/arctwo.c: Use new bitrotate module.
56677
56678 2008-08-29  Jim Meyering  <meyering@redhat.com>
56679
56680         bootstrap: merge changes from coreutils
56681         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
56682         of copied files.  Remove a kludge, now that this is fixed.
56683         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
56684         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
56685         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
56686
56687 2008-08-29  Bruno Haible  <bruno@clisp.org>
56688
56689         * MODULES.html.sh: Remove --cvs-urls option.
56690
56691 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
56692
56693         maint.mk: adjust to file name change
56694         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
56695
56696 2008-08-28  Jim Meyering  <meyering@redhat.com>
56697
56698         * modules/getndelim2 (License): Relicense to LGPLv2+.
56699         Approved by Richard Stallman for the version of 1995, and by
56700         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
56701
56702 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
56703
56704         * lib/getdelim.c (flockfile, funlockfile): Make all of them
56705         dummy if one is not available.  Do not touch them if
56706         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
56707         (getc_maybe_unlocked): New.
56708         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
56709
56710 2008-08-26  Eric Blake  <ebb9@byu.net>
56711
56712         doc/INSTALL: resync from autoconf
56713         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
56714         (INSTALL_PRELUDE): Delete; this is done more efficiently by
56715         moving...
56716         * install.texi [!autoconf]: ...here.  Resync from autoconf.
56717         * INSTALL: Regenerate.
56718         * INSTALL.ISO: New file.
56719         * INSTALL.UTF-8: Likewise.
56720
56721 2008-08-26  Jim Meyering  <meyering@redhat.com>
56722
56723         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
56724         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
56725         these definitions conditional, so that they may be overridden, too.
56726
56727 2008-08-26  Bruno Haible  <bruno@clisp.org>
56728
56729         Generate INSTALL file variants with prettier quotes.
56730         * doc/Makefile (INSTALL_PRELUDE): New macro.
56731         (INSTALL): Use it.
56732         (INSTALL.ISO, INSTALL.UTF-8): New rules.
56733
56734 2008-08-26  Bruno Haible  <bruno@clisp.org>
56735
56736         Run makeinfo in an English locale.
56737         * doc/Makefile (MAKEINFO): New variable.
56738
56739 2008-08-26  Bruno Haible  <bruno@clisp.org>
56740
56741         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
56742         Suggested by Eric Blake.
56743
56744 2008-08-25  Bruno Haible  <bruno@clisp.org>
56745
56746         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
56747
56748 2008-08-25  Eric Blake  <ebb9@byu.net>
56749
56750         c-stack: test that stack overflow can be caught
56751         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
56752         that platform allows handling stack overflow; at least OS/2 EMX
56753         has sigaltstack, but crashes before transferring control to
56754         handler on stack overflow.
56755         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
56756         check for HAVE_STACK_OVERFLOW_HANDLING.
56757         Reported by Elbert Pol.
56758
56759 2008-08-25  Bruno Haible  <bruno@clisp.org>
56760
56761         * doc/posix-functions/strftime.texi: Fix description of strftime
56762         module.
56763
56764 2008-08-24  Bruno Haible  <bruno@clisp.org>
56765
56766         * tests/uniwidth/test-uc_width2.c: New file.
56767         * tests/uniwidth/test-uc_width2.sh: New file.
56768         * modules/uniwidth/width-tests (Files): Add the new files.
56769         (TESTS): Add uniwidth/test-uc_width2.sh.
56770         (TESTS_ENVIRONMENT): New variable.
56771         (check_PROGRAMS): Add test-uc_width2.
56772         (test_uc_width2_SOURCES): New variable.
56773
56774         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
56775         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
56776         not 0x00AB.
56777         Reported by Alexander V. Lukyanov <lav@netis.ru>.
56778
56779 2008-08-22  Eric Blake  <ebb9@byu.net>
56780
56781         test-lock, test-tls: mention why a test is skipped
56782         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
56783         skipped.
56784         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
56785
56786         count-one-bits: relax license
56787         * modules/count-one-bits (License): Relicense to LGPLv2+.
56788         Suggested by Ludovic Courtès, approved by Ben Pfaff.
56789
56790 2008-08-22  Andreas Schwab  <schwab@suse.de>
56791
56792         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
56793         Remove spurious space in assignment.
56794
56795 2008-08-21  Simon Josefsson  <simon@josefsson.org>
56796
56797         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
56798         Paul Eggert <eggert@CS.UCLA.EDU>.
56799
56800 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
56801
56802         * modules/gettext: Add m4/threadlib.m4.
56803
56804 2008-08-19  Eric Blake  <ebb9@byu.net>
56805
56806         test-c-stack: fix compilation failure on FreeBSD 5.0
56807         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
56808         headers before <sys/resource.h>.
56809         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
56810         the bug.
56811         Reported by Nelson H. F. Beebe.
56812
56813         strverscmp: migrate from "strverscmp.h" to <string.h>
56814         * modules/string (Makefile.am): Add new hooks.
56815         * modules/strverscmp (Files): Remove strverscmp.h.
56816         (Depends-on): Add string.
56817         (configure.ac): Add indicator.
56818         (Include): Mention new header.
56819         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
56820         defaults.
56821         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
56822         results.
56823         * lib/strverscmp.h: Delete.
56824         * lib/string.in.h (strverscmp): Provide declaration, when needed.
56825         * tests/test-strverscmp.c (includes): Adjust client.
56826         * lib/check-version.c (includes): Likewise.
56827         * NEWS: Document the change.
56828
56829         strverscmp: add unit test
56830         * modules/strverscmp-tests: New file.
56831         * tests/test-strverscmp.c: Likewise.
56832
56833 2008-08-19  Simon Josefsson  <simon@josefsson.org>
56834
56835         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
56836         regarding Windows crypto stuff, from Mono.
56837
56838 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
56839
56840         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
56841         if present, for intel RND.  Return error on failures.
56842
56843 2008-08-18  Ben Pfaff  <blp@gnu.org>
56844
56845         gitlog-to-changelog: give better diagnostic for failed pipe-open
56846         * build-aux/gitlog-to-changelog: Improve error message: suggest
56847         that the version of Git may be too old.
56848
56849 2008-08-18  Simon Josefsson  <simon@josefsson.org>
56850
56851         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
56852         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
56853
56854 2008-08-18  Bruno Haible  <bruno@clisp.org>
56855
56856         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
56857         pthread_in_use().
56858
56859 2008-08-18  Bruno Haible  <bruno@clisp.org>
56860
56861         * lib/glthread/threadlib.c: Include <pthread.h>.
56862
56863 2008-08-18  Bruno Haible  <bruno@clisp.org>
56864
56865         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
56866         glthread_recursive_lock_* macros.
56867         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
56868         Fix syntax error.
56869
56870 2008-08-18  Bruno Haible  <bruno@clisp.org>
56871
56872         * lib/glthread/thread.c: Avoid forcing a context switch right after
56873         thread creation.
56874
56875 2008-08-17  Bruno Haible  <bruno@clisp.org>
56876
56877         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
56878         * lib/glthread/thread.h: Provide Win32 specific implementation.
56879         * modules/thread (Files): Add lib/glthread/thread.c.
56880         (Depends-on): Add lock.
56881         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
56882
56883 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56884
56885         New module 'yield'.
56886         * modules/yield: New file.
56887         * lib/glthread/yield.h: New file.
56888         * m4/yield.m4: New file.
56889         * MODULES.html.sh (Multithreading): Add yield.
56890
56891 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56892
56893         New module 'thread'.
56894         * modules/thread: New file.
56895         * lib/glthread/thread.h: New file.
56896         * m4/thread.m4: New file.
56897         * MODULES.html.sh (Multithreading): Add thread.
56898
56899 2008-08-17  Bruno Haible  <bruno@clisp.org>
56900
56901         * lib/glthread/lock.h: Include <stdlib.h> always.
56902         * lib/glthread/tls.h: Likewise.
56903         * lib/glthread/cond.h: Likewise.
56904
56905 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56906
56907         New module 'cond'.
56908         * modules/cond: New file.
56909         * lib/glthread/cond.h: New file.
56910         * lib/glthread/cond.c: New file.
56911         * m4/cond.m4: New file.
56912         * MODULES.html.sh (Multithreading): Add cond.
56913
56914 2008-08-16  Eric Blake  <ebb9@byu.net>
56915
56916         c-stack: fix regression on Irix 5.3 from 2008-06-21
56917         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
56918         sa_sigaction...
56919         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
56920         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
56921         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
56922         * modules/signal (Makefile.am): Use the value.
56923         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
56924         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
56925         * doc/posix-headers/signal.texi (signal.h): Document this
56926         portability issue.
56927         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
56928         Reported by Tom G. Christensen.
56929
56930 2008-08-17  Bruno Haible  <bruno@clisp.org>
56931
56932         New module 'threadlib'.
56933         * modules/threadlib: New file.
56934         * lib/glthread/threadlib.c: New file, extracted from
56935         lib/glthread/lock.c.
56936         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
56937         functions.
56938         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
56939         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
56940         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
56941         macros.
56942         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
56943         (gl_DISABLE_THREADS): Remove macro.
56944         * modules/lock (Files): Remove build-aux/config.rpath.
56945         (Depends-on): Remove havelib. Add threadlib.
56946         (configure.ac-early): Remove section.
56947         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
56948         * modules/tls (Depends-on): Remove lock. Add threadlib.
56949         (Link): New section, copied from threadlib.
56950         * MODULES.html.sh (Multithreading): Add threadlib.
56951
56952 2008-08-14  Bruno Haible  <bruno@clisp.org>
56953
56954         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
56955         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
56956         glthread_rwlock_unlock, glthread_rwlock_destroy,
56957         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
56958         glthread_recursive_lock_destroy): Define as macros always.
56959         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
56960         glthread_lock_lock.
56961         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
56962         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
56963         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
56964         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
56965         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
56966         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
56967         (glthread_recursive_lock_lock_func): Renamed from
56968         glthread_recursive_lock_lock.
56969         (glthread_recursive_lock_unlock_func): Renamed from
56970         glthread_recursive_lock_unlock.
56971         (glthread_recursive_lock_destroy_func): Renamed from
56972         glthread_recursive_lock_destroy.
56973
56974 2008-08-14  Bruno Haible  <bruno@clisp.org>
56975
56976         * lib/glthread/lock.h: Renamed from lib/lock.h.
56977         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
56978         * lib/glthread/tls.h: Renamed from lib/tls.h.
56979         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
56980         * lib/fstrcmp.c: Update includes.
56981         * lib/strsignal.c: Update includes.
56982         * modules/lock (Files, Makefile.am): Update.
56983         (Include): Change to "glthread/lock.h".
56984         * modules/tls (Files, Makefile.am): Update.
56985         (Include): Change to "glthread/tls.h".
56986         * tests/test-lock.c: Update includes.
56987         * tests/test-tls.c: Update includes.
56988         * NEWS: Mention the renamed header files.
56989
56990 2008-08-11  Jim Meyering  <meyering@redhat.com>
56991
56992         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
56993
56994 2008-08-11  Eric Blake  <ebb9@byu.net>
56995
56996         test-c-stack: avoid C99-ism
56997         * tests/test-c-stack.c (main): Fix whitespace, move declaration
56998         before statement.
56999         Reported by Alain Guibert.
57000
57001 2008-08-10  Jim Meyering  <meyering@redhat.com>
57002
57003         ensure that return value of uinttostr et al are not ignored
57004         * lib/inttostr.h (__GNUC_PREREQ): Define.
57005         (__attribute_warn_unused_result__): Define.
57006         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
57007
57008 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
57009
57010         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
57011         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
57012
57013 2008-08-07  Jim Meyering  <meyering@redhat.com>
57014
57015         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
57016
57017         * modules/mkstemp (License): Relicense under LGPLv2+.
57018         * modules/tempname (License): Likewise.
57019
57020 2008-08-06  Bruno Haible  <bruno@clisp.org>
57021
57022         * lib/poll.c (poll): Further micro-optimization.
57023
57024 2008-08-06  Jim Meyering  <meyering@redhat.com>
57025
57026         inet_pton.c: use locale-independent tolower
57027         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
57028         (inet_pton6): Use c_tolower rather than tolower.
57029         * modules/inet_pton (Depends-on): Add c-ctype.
57030
57031 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
57032
57033         * lib/poll.c (poll): Avoid division when timeout is 0, cache
57034         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
57035
57036 2008-08-06  Jim Meyering  <meyering@redhat.com>
57037
57038         * modules/inet_pton (License): Relicense under LGPLv2+.
57039
57040 2008-08-03  Bruno Haible  <bruno@clisp.org>
57041
57042         Additional non-aborting API for lock and tls.
57043         * lib/lock.h: Include <errno.h>.
57044         (glthread_lock_init): New macro/function.
57045         (gl_lock_init): Define as wrapper around glthread_lock_init.
57046         (glthread_lock_lock): New macro/function.
57047         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
57048         (glthread_lock_unlock): New macro/function.
57049         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
57050         (glthread_lock_destroy): New macro/function.
57051         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
57052         (glthread_rwlock_init): New macro/function.
57053         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
57054         (glthread_rwlock_rdlock): New macro/function.
57055         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
57056         (glthread_rwlock_wrlock): New macro/function.
57057         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
57058         (glthread_rwlock_unlock): New macro/function.
57059         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
57060         (glthread_rwlock_destroy): New macro/function.
57061         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
57062         (glthread_recursive_lock_init): New macro/function.
57063         (gl_recursive_lock_init): Define as wrapper around
57064         glthread_recursive_lock_init.
57065         (glthread_recursive_lock_lock): New macro/function.
57066         (gl_recursive_lock_lock): Define as wrapper around
57067         glthread_recursive_lock_lock.
57068         (glthread_recursive_lock_unlock): New macro/function.
57069         (gl_recursive_lock_unlock): Define as wrapper around
57070         glthread_recursive_lock_unlock.
57071         (glthread_recursive_lock_destroy): New macro/function.
57072         (gl_recursive_lock_destroy): Define as wrapper around
57073         glthread_recursive_lock_destroy.
57074         (glthread_once): New macro/function.
57075         (gl_once): Define as wrapper around glthread_once.
57076         Update function declarations.
57077         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
57078         glthread_rwlock_init. Return error code.
57079         (glthread_rwlock_rdlock_multithreaded): Renamed from
57080         glthread_rwlock_rdlock. Return error code.
57081         (glthread_rwlock_wrlock_multithreaded): Renamed from
57082         glthread_rwlock_wrlock. Return error code.
57083         (glthread_rwlock_unlock_multithreaded): Renamed from
57084         glthread_rwlock_unlock. Return error code.
57085         (glthread_rwlock_destroy_multithreaded): Renamed from
57086         glthread_rwlock_destroy. Return error code.
57087         (glthread_recursive_lock_init_multithreaded): Renamed from
57088         glthread_recursive_lock_init. Return error code.
57089         (glthread_recursive_lock_lock_multithreaded): Renamed from
57090         glthread_recursive_lock_lock. Return error code.
57091         (glthread_recursive_lock_unlock_multithreaded): Renamed from
57092         glthread_recursive_lock_unlock. Return error code.
57093         (glthread_recursive_lock_destroy_multithreaded): Renamed from
57094         glthread_recursive_lock_destroy. Return error code.
57095         (glthread_once_call): Make static.
57096         (glthread_once_multithreaded): Renamed from glthread_once.
57097         * lib/tls.h: Include <errno.h>.
57098         (glthread_tls_key_init): New macro/function.
57099         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
57100         (glthread_tls_set): New macro/function.
57101         (gl_tls_set): Define as wrapper around glthread_tls_set.
57102         (glthread_tls_key_destroy): New macro/function.
57103         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
57104         Update function declarations.
57105         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
57106         glthread_tls_get.
57107         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57108
57109 2008-08-04  Eric Blake  <ebb9@byu.net>
57110
57111         gnumakefile: use space, not TAB, outside of targets
57112         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
57113
57114 2008-08-02  Jim Meyering  <meyering@redhat.com>
57115
57116         getdate.y: avoid locale-dependent date parsing failure
57117         In Turkish locales, getdate would fail to recognize keywords
57118         containing a lowercase "i".  The solution is not to rely on
57119         locale-sensitive case-conversion.
57120         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
57121         (lookup_word): Use c_toupper in place of toupper.
57122         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
57123         Reported by Vefa Bicakci <bicave@superonline.com> in
57124         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
57125         * modules/getdate (Depends-on): Add c-ctype.
57126
57127 2008-08-02  Bruno Haible  <bruno@clisp.org>
57128
57129         * gnulib-tool (func_import): When updating or creating a .gitignore
57130         file, prepend each added line with a slash, and ignore leading slashes
57131         from the existing lines.
57132         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57133
57134 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57135
57136         Portability fix for GNU make 3.79.1.
57137         * top/GNUmakefile: Avoid 'else COND', which older GNU make
57138         versions do not understand.
57139
57140 2008-08-01  Bruno Haible  <bruno@clisp.org>
57141
57142         Work around bug of HP-UX 10.20 cc with -0.0 literal.
57143         * tests/test-isnanf.h (zero): New variable.
57144         (main): Avoid literal -0.0f.
57145         * tests/test-isnand.h (zero): New variable.
57146         (main): Avoid literal -0.0.
57147         * tests/test-isnanl.h (zero): New variable.
57148         (main): Avoid literal -0.0L.
57149         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
57150         (test_float, test_double, test_long_double): Avoid literals -0.0f,
57151         -0.0, -0.0L.
57152         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
57153         (test_signbitd): Avoid literal -0.0.
57154         (test_signbitl): Avoid literal -0.0L.
57155         * tests/test-ceilf1.c (zero): New variable.
57156         (main): Avoid literal -0.0f.
57157         * tests/test-ceill.c (zero): New variable.
57158         (main): Avoid literal -0.0L.
57159         * tests/test-floorf1.c (zero): New variable.
57160         (main): Avoid literal -0.0f.
57161         * tests/test-floorl.c (zero): New variable.
57162         (main): Avoid literal -0.0L.
57163         * tests/test-roundf1.c (zero): New variable.
57164         (main): Avoid literal -0.0f.
57165         * tests/test-round1.c (zero): New variable.
57166         (main): Avoid literal -0.0.
57167         * tests/test-roundl.c (zero): New variable.
57168         (main): Avoid literal -0.0L.
57169         * tests/test-truncf1.c (zero): New variable.
57170         (main): Avoid literal -0.0f.
57171         * tests/test-trunc1.c (zero): New variable.
57172         (main): Avoid literal -0.0.
57173         * tests/test-truncl.c (zero): New variable.
57174         (main): Avoid literal -0.0L.
57175         * tests/test-frexp.c (zero): New variable.
57176         (main): Avoid literal -0.0.
57177         * tests/test-frexpl.c (zero): New variable.
57178         (main): Avoid literal -0.0L.
57179         * tests/test-ldexpl.c (zero): New variable.
57180         (main): Avoid literal -0.0L.
57181         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57182         (zerod, zerol): New variables.
57183         (test_function): Avoid literals -0.0, -0.0L.
57184         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57185         (zerod, zerol): New variables.
57186         (test_function): Avoid literals -0.0, -0.0L.
57187         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57188         (zerod, zerol): New variables.
57189         (test_function): Avoid literals -0.0, -0.0L.
57190         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57191         (zerod, zerol): New variables.
57192         (test_function): Avoid literals -0.0, -0.0L.
57193         * tests/test-strtod.c (zero): New variable.
57194         (main): Avoid literal -0.0.
57195         Reported by Jonathan C. Patschke <jp@centtech.com>.
57196
57197 2008-07-31  Jim Meyering  <meyering@redhat.com>
57198
57199         sha256.h: correct definition of SHA224_DIGEST_SIZE
57200         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
57201         Reported by Paulie Pena IV <paulie4@gmail.com>.
57202         Define as 224 / 8, rather than as a literal.
57203         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
57204         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
57205         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
57206
57207 2008-07-31  Bruno Haible  <bruno@clisp.org>
57208
57209         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
57210         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
57211         Reported by Jonathan Patschke <jp@centtech.com>.
57212
57213 2008-07-31  Bruno Haible  <bruno@clisp.org>
57214
57215         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
57216         Reported by Paolo Bonzini <bonzini@gnu.org>.
57217
57218 2008-07-30  Eric Blake  <ebb9@byu.net>
57219
57220         test-strtod: allow compilation without -lm
57221         * tests/test-strtod.c (main): Avoid link dependence on fabs.
57222         Reported by Dennis Clarke <blastwave@gmail.com>.
57223
57224 2008-07-28  Jim Meyering  <meyering@redhat.com>
57225
57226         bootstrap: work also when there are no .po files in po/
57227         * build-aux/bootstrap (update_po_files): Complete the change
57228         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
57229
57230 2008-07-27  Jim Meyering  <meyering@redhat.com>
57231
57232         * users.txt: Add zile.
57233
57234 2008-07-26  Ben Pfaff  <blp@gnu.org>
57235
57236         Add missing dependencies on new m4/exponent[fdl].m4 files.
57237         * modules/isnanf-nolibm: Add m4/exponentf.m4.
57238         * modules/isnand-nolibm: Add m4/exponentd.m4.
57239         * modules/isnanl-nolibm: Add m4/exponentl.m4.
57240         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
57241         m4/isnan[fdl].m4, because the macros actually used moved.
57242         Reported by Jim Meyering.
57243
57244 2008-07-14  Ben Pfaff  <blp@gnu.org>
57245
57246         Add isinf module.
57247         * lib/isinf.c: New file.
57248         * lib/math.in.h: Define isinf macro if we have decided to replace
57249         it.
57250         * m4/isinf.m4: New file.
57251         * m4/math_h.m4: Initialize and substitute variables for isinf
57252         module.
57253         * modules/isinf: New file.
57254         * modules/isinf-tests: New file.
57255         * modules/math: Add substitutions for new module.
57256         * tests/test-isinf.c: New file.
57257         * doc/posix-functions/isinf.texi: Mention new module.
57258         * MODULES.html.sh: Mention new module.
57259
57260 2008-07-14  Ben Pfaff  <blp@gnu.org>
57261
57262         Factor out some macros for use by additional modules.
57263         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
57264         exponentf.m4.
57265         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
57266         exponentd.m4.
57267         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
57268         file exponentl.m4.
57269         * m4/exponentf.m4: New file.
57270         * m4/exponentd.m4: New file.
57271         * m4/exponentl.m4: New file.
57272         * modules/isnanf: Use new file m4/exponentf.m4.
57273         * modules/isnand: Use new file m4/exponentd.m4.
57274         * modules/isnanl: Use new file m4/exponentl.m4.
57275
57276 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
57277
57278         mktime.c: normalize tp->tm_isdst value to -1/0/1.
57279         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
57280         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
57281         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
57282
57283         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
57284         readlink on platforms without PATH_MAX.
57285
57286 2008-07-21  Eric Blake  <ebb9@byu.net>
57287
57288         Warn, not fail, on stale version.
57289         * top/GNUmakefile (_curr-ver): Tone down previous patch.
57290
57291         Don't allow installation with stale devel version number.
57292         * top/GNUmakefile (_is-install-target): New macro.
57293         (_curr-ver): Forbid installation with stale version number.
57294
57295 2008-07-20  Bruno Haible  <bruno@clisp.org>
57296
57297         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
57298         TESTS_ENVIRONMENT.
57299         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
57300
57301 2008-07-20  Bruno Haible  <bruno@clisp.org>
57302
57303         * lib/c-stack.h (c_stack_action): Add documentation.
57304         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
57305
57306 2008-07-20  Bruno Haible  <bruno@clisp.org>
57307
57308         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
57309         * modules/readlink (License): Likewise.
57310
57311 2008-07-17  Eric Blake  <ebb9@byu.net>
57312
57313         * modules/c-stack (Link): Fix typo.
57314
57315         Make c-stack use libsigsegv, when available.
57316         * modules/c-stack (Depends-on): Add libsigsegv.
57317         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
57318         needed.
57319         * lib/c-stack.c (SIGSTKSZ): Define fallback.
57320         (segv_handler, overflow_handler, c_stack_action)
57321         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
57322         implementation when libsigsegv is available, but only when using
57323         the library is necessary.
57324         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
57325         comment, explaining why XSI check fails on Linux.
57326         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
57327         * tests/test-c-stack2.sh: Tweak skip message.
57328         * NEWS: Document new link-time requirements.
57329
57330 2008-07-16  Eric Blake  <ebb9@byu.net>
57331
57332         c-stack: Expose false positives when not using libsigsegv.
57333         * modules/c-stack-tests (Files): Expand test.
57334         * tests/test-c-stack.c (main): Add means to conditionally trigger
57335         non-overflow SIGSEGV.
57336         * tests/test-c-stack2.sh: New file.
57337
57338 2008-07-14  Bruno Haible  <bruno@clisp.org>
57339
57340         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
57341         Reported by Eric Blake.
57342
57343 2008-07-14  Sam Steingold  <sds@gnu.org>
57344             Bruno Haible  <bruno@clisp.org>
57345
57346         New module libsigsegv.
57347         * modules/libsigsegv: New file.
57348         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
57349         modifications.
57350         * MODULES.html.sh (Signal handling): New section.
57351
57352 2008-07-14  Bruno Haible  <bruno@clisp.org>
57353
57354         * modules/unictype/ctype-* (Description): Add the word "function".
57355         Improves the resulting doc in MODULES.html.
57356
57357 2008-07-12  Ben Pfaff  <blp@gnu.org>
57358
57359         Add longlong module.
57360         * modules/longlong: New file.
57361
57362 2008-07-12  Bruno Haible  <bruno@clisp.org>
57363
57364         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
57365         to empty.
57366
57367 2008-07-10  Ben Pfaff  <blp@gnu.org>
57368
57369         Add isnan module.
57370         * doc/posix-functions/isnan.texi: Mention new module.
57371         * lib/math.in.h: Define isnan macro if we have decided to replace
57372         it.
57373         * m4/isnan.m4: New file.
57374         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
57375         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
57376         also.
57377         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
57378         redundancy.
57379         * m4/math_h.m4: Initialize and substitute variables for isnan
57380         module.
57381         * modules/isnan: New file.
57382         * modules/isnan-tests: New file.
57383         * modules/math: Add substitutions for new module.
57384         * tests/test-isnan.c: New file.
57385         * MODULES.html.sh: Mention new module.
57386
57387 2008-07-10  Ben Pfaff  <blp@gnu.org>
57388
57389         Add isnanf module.
57390         * lib/isnanf.m4: New file.
57391         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
57392         (gl_HAVE_ISNANF_IN_LIBM): New macro.
57393         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
57394         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
57395         * modules/isnanf: New file.
57396         * modules/isnanf-tests: New file.
57397         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
57398         files.
57399         * tests/test-isnanf-nolibm.c: factored most of its contents into
57400         new file tests/test-isnanf.h.
57401         * tests/test-isnanf.h: New file.
57402         * tests/test-isnanf.c: New file.
57403         * MODULES.html.sh: Mention new module.
57404         * doc/glibc-functions/isnanf.texi: Mention new module.
57405
57406 2008-07-10  Ben Pfaff  <blp@gnu.org>
57407
57408         Add isnand module.
57409         * lib/isnand.h: New file.
57410         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
57411         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
57412         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
57413         functionality also.
57414         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
57415         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
57416         (gl_HAVE_ISNAND_IN_LIBM): New macro.
57417         * modules/isnand: New file.
57418         * modules/isnand-tests: New file.
57419         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
57420         files.
57421         * tests/test-isnand-nolibm.c: factored most of its contents into
57422         new file tests/test-isnand.h.
57423         * tests/test-isnand.h: New file.
57424         * tests/test-isnand.c: New file.
57425         * MODULES.html.sh: Mention new module.
57426
57427 2008-07-10  Ben Pfaff  <blp@gnu.org>
57428
57429         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
57430         * lib/isnand.h: Rename lib/isnand-nolibm.h.
57431         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
57432         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
57433         * modules/isnanf-nolibm: Update references to renamed files.
57434         * modules/isnand-nolibm: Likewise.
57435         * modules/isnanf-nolibm-tests: Likewise.
57436         * modules/isnand-nolibm-tests: Likewise.
57437         * lib/frexp.c: Likewise.
57438         * lib/isfinite.c: Likewise.
57439         * lib/signbitd.c: Likewise.
57440         * lib/signbitf.c: Likewise.
57441         * lib/vasnprintf.c: Likewise.
57442         * tests/test-ceilf1.c: Likewise.
57443         * tests/test-ceilf2.c: Likewise.
57444         * tests/test-floorf1.c: Likewise.
57445         * tests/test-floorf2.c: Likewise.
57446         * tests/test-frexp.c: Likewise.
57447         * tests/test-round1.c: Likewise.
57448         * tests/test-round2.c: Likewise.
57449         * tests/test-roundf1.c: Likewise.
57450         * tests/test-strtod.c: Likewise.
57451         * tests/test-trunc1.c: Likewise.
57452         * tests/test-trunc2.c: Likewise.
57453         * tests/test-truncf1.c: Likewise.
57454         * tests/test-truncf2.c: Likewise.
57455         * NEWS: Mention the renamed header files.
57456
57457 2008-07-11  Jim Meyering  <meyering@redhat.com>
57458
57459         vc-list-files: make the last-resort awk code more portable
57460         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
57461         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
57462         does not support it.
57463
57464 2008-07-10  Eric Blake  <ebb9@byu.net>
57465
57466         Work with tar's bootstrap.
57467         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
57468         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
57469         an m4 comment.
57470
57471 2008-07-09  Jim Meyering  <meyering@redhat.com>
57472
57473         posix-shell.m4: fix typo that made this test malfunction
57474         * m4/posix-shell.m4: Remove capitalization in variable name.
57475
57476 2008-07-08  Bruno Haible  <bruno@clisp.org>
57477
57478         * m4/onceonly.m4: Update comments.
57479         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57480
57481 2008-07-04  Jim Meyering  <meyering@redhat.com>
57482
57483         * users.txt: Add vc-dwim.
57484         (bison, coreutils): Use the gitweb URL.
57485
57486 2008-07-03  Jim Meyering  <meyering@redhat.com>
57487
57488         * users.txt: Add libffcall.  From Sam Steingold.
57489
57490 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
57491
57492         getdate.y: do not ignore TZ with relative day, month or year offset
57493         * lib/getdate.y (get_date): Move the tz-handling block to follow the
57494         relative-date-handling, since otherwise, the latter would clobber the
57495         sole output (an updated Start value) of the tz-handling block.
57496         * tests/test-getdate.c: Tests for the fix
57497
57498 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57499
57500         Recognize 'foo_LIBRARIES += libgnu.a'.
57501         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
57502         makefile snippet has already specified an installation location,
57503         also using '+='.
57504
57505 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
57506
57507         getdate.y: factor out common actions
57508         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
57509         Use them in place of open-coded actions.
57510
57511 2008-07-01  Simon Josefsson  <simon@josefsson.org>
57512
57513         Add self-test for getdate module.
57514         * modules/getdate-tests: New file.
57515         * tests/test-getdate.c: New file.
57516
57517 2008-06-29  Bruno Haible  <bruno@clisp.org>
57518
57519         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
57520         .gitignore.
57521         Reported by Sylvain Beucler <beuc@beuc.net>.
57522
57523 2008-06-29  Bruno Haible  <bruno@clisp.org>
57524
57525         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
57526         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
57527
57528 2008-06-29  Bruno Haible  <bruno@clisp.org>
57529
57530         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
57531         EXTRA_DIST.
57532         Reported by Sylvain Beucler <beuc@beuc.net>.
57533
57534 2008-06-26  Jim Meyering  <meyering@redhat.com>
57535
57536         make several modules depend on the "open" module
57537         This provides slightly increased consistency when opening-for-write
57538         the name of a non-directory spelled with a trailing slash.
57539         * modules/chdir-safer: Likewise.
57540         * modules/chown: Likewise.
57541         * modules/clean-temp: Likewise.
57542         * modules/copy-file: Likewise.
57543         * modules/fchdir: Likewise.
57544         * modules/fcntl-safer: Likewise.
57545         * modules/pipe: Likewise.
57546         * modules/utime: Likewise.
57547         Prompted by Eric Blake and Bruno Haible.
57548
57549 2008-06-24  Andreas Schwab  <schwab@suse.de>
57550
57551         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
57552         literals can be used as initializers for global variables.
57553
57554 2008-06-23  Eric Blake  <ebb9@byu.net>
57555
57556         Make gnulib-cache.m4 easier to diff.
57557         * gnulib-tool (func_import): Allow newlines when reading cached
57558         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
57559
57560 2008-06-23  Bruno Haible  <bruno@clisp.org>
57561
57562         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
57563         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
57564         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
57565         m4/signalblocking.m4.
57566         (gl_PREREQ_SIGACTION): Don't invoke it.
57567         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
57568         gl_PREREQ_SIG_HANDLER_H.
57569         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57570         Don't check for sigaction here.
57571
57572 2008-06-23  Bruno Haible  <bruno@clisp.org>
57573
57574         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
57575         (install_handlers): Don't set the SA_RESETHAND flag.
57576
57577 2008-06-23  Bruno Haible  <bruno@clisp.org>
57578
57579         * m4/sigaction.m4: Comment fixes.
57580         * lib/signal.in.h: Likewise.
57581
57582 2008-06-23  Eric Blake  <ebb9@byu.net>
57583
57584         Fix typo.
57585         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
57586
57587         Avoid SA_ namespace.
57588         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
57589         Reported by Ralf Wildenhues.
57590
57591         Avoid test failure due to SA_RESTORER.
57592         * tests/test-sigaction.c (SA_MASK): New macro.
57593         (main): Avoid failing due to extension flags being set.
57594         Reported by Jim Meyering.
57595
57596         Revert use of sig-handler.h in sigprocmask.c.
57597         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
57598         it requires the existence of struct sigaction.
57599         * lib/sigprocmask.c (handler_t): Restore typedef.
57600         (rpl_signal, old_handlers): Use local type.
57601
57602 2008-06-22  Bruno Haible  <bruno@clisp.org>
57603
57604         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
57605         conditionally.
57606         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57607
57608 2008-06-22  Bruno Haible  <bruno@clisp.org>
57609
57610         * doc/posix-functions/siginterrupt.texi: Move note.
57611
57612         * lib/signal.in.h (SA_RESTART): New macro.
57613         * lib/sigaction.c: Update comment.
57614
57615         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
57616
57617         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
57618         (gl_PREREQ_SIGPROCMASK): Invoke it.
57619         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
57620
57621         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
57622
57623         * lib/sigprocmask.c: Update a comment.
57624
57625 2008-06-21  Eric Blake  <ebb9@byu.net>
57626
57627         Use sigaction module rather than signal().
57628         * modules/c-stack (Depends-on): Add sigaction.
57629         * modules/fatal-signal (Depends-on): Likewise.
57630         * modules/nanosleep (Depends-on): Likewise.
57631         * modules/sigprocmask (Files): Add sig-handler.h.
57632         * modules/sigaction (Files): Likewise.
57633         * lib/sig-handler.h (get_handler): New file, suggested by Paul
57634         Eggert.
57635         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
57636         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
57637         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
57638         (init_fatal_signals): Likewise.
57639         * lib/nanosleep.c (rpl_nanosleep): Likewise.
57640         (siginterrupt): Delete fallback.
57641         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
57642         instead.
57643         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
57644         siginterrupt.
57645
57646         New module sigaction, for mingw.
57647         * modules/sigaction: New module...
57648         * modules/sigaction-tests: ...and its test.
57649         * m4/sigaction.m4: New file.
57650         * lib/sigaction.c: Likewise.
57651         * tests/test-sigaction.c: Likewise.
57652         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
57653         * modules/signal (Makefile.am): Likewise.
57654         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
57655         needed.
57656         * doc/posix-headers/signal.texi (signal.h): Mention provided
57657         types.
57658         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
57659         that sigaction is preferable.
57660         * doc/posix-functions/sigaction.texi (sigaction): Mention new
57661         module.
57662         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57663         sigaction.
57664
57665         Improve robustness of sigprocmask by overriding signal.
57666         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
57667         is in use.
57668         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
57669         (SIGKILL, SIGSTOP): Provide fallbacks.
57670         (rpl_signal): Implement.
57671         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
57672         signal can be called inside handlers.
57673
57674         Fix nanosleep module on mingw.
57675         * modules/nanosleep (Depends-on): Add sys_select.
57676         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
57677
57678         Fix licensing of sigprocmask.
57679         * modules/raise (License): Relicense as LGPL.
57680
57681 2008-06-21  Bruno Haible  <bruno@clisp.org>
57682
57683         * lib/propername.c (proper_name_utf8): Don't use the transliterated
57684         result if it contains question marks.
57685         Reported by Michael Geng <linux@michaelgeng.de>.
57686
57687 2008-06-19  Bruno Haible  <bruno@clisp.org>
57688
57689         Fix CVS-ism.
57690         * doc/gnulib.texi: Include updated-stamp.texi.
57691         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
57692         (updated-stamp.texi): New rule.
57693         (gnulib.info): Depend on it.
57694         * doc/.gitignore: Add updated-stamp.texi.
57695         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
57696
57697 2008-06-19  Bruno Haible  <bruno@clisp.org>
57698
57699         * doc/Makefile (gnulib.info): Update and simplify dependencies.
57700         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57701
57702 2008-06-19  Eric Blake  <ebb9@byu.net>
57703
57704         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
57705         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
57706         Reported by Stepan Kasal.
57707
57708 2008-06-18  Bruno Haible  <bruno@clisp.org>
57709
57710         * lib/fatal-signal.c (init_fatal_signals): Add comment.
57711         Reported by Eric Blake.
57712
57713 2008-06-18  Eric Blake  <ebb9@byu.net>
57714
57715         Work around cygwin 1.5.25 strsignal bug.
57716         * tests/test-strsignal.c: Allow for const char *.
57717         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
57718
57719 2008-06-18  Simon Josefsson  <simon@josefsson.org>
57720
57721         * users.txt: Update URL to article and add author/date
57722         information.
57723
57724 2008-06-17  Bruno Haible  <bruno@clisp.org>
57725
57726         New macro gl_DISABLE_THREADS.
57727         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
57728         if the user did not pass --enable-threads or --disable-threads option.
57729         (gl_DISABLE_THREADS): New macro.
57730         Reported by Eric Blake <ebb9@byu.net>.
57731
57732 2008-06-17  Bruno Haible  <bruno@clisp.org>
57733
57734         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
57735         when the macro ignores it.
57736         Based on a patch by Eric Blake <ebb9@byu.net>.
57737
57738 2008-06-17  Bruno Haible  <bruno@clisp.org>
57739
57740         * modules/tls (License): Change to LGPLv2+.
57741         Reported by Eric Blake.
57742
57743 2008-06-17  Eric Blake  <ebb9@byu.net>
57744
57745         Simplify c-stack prerequisites.
57746         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
57747         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
57748         no longer requires <ucontext.h> to exist.  Optimize setrlimit
57749         check.
57750         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
57751         <sys/resource.h>.
57752
57753         Move c-stack test into testsuite.
57754         * modules/c-stack-tests: New file.
57755         * lib/c-stack.c [DEBUG]: Move test program...
57756         * tests/test-c-stack.c: ...into this new file.  Skip rather than
57757         fail test if sigaltstack is lacking.
57758         * tests/test-c-stack.sh: New driver file.
57759
57760 2008-06-16  Eric Blake  <ebb9@byu.net>
57761
57762         Use raise module consistently.
57763         * modules/fatal-signal (Depends-on): Add raise.
57764         * modules/sigprocmask (Depends-on): Likewise.
57765         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
57766         * lib/sigprocmask.c (sigprocmask): Likewise.
57767         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57768         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
57769
57770         Fix compliance bug in sigpending.
57771         * lib/sigprocmask.c (sigpending): Return pending array via
57772         parameter, not return value.
57773
57774 2008-06-14  Eric Blake  <ebb9@byu.net>
57775
57776         Improve obstack-printf test code.
57777         * tests/test-obstack-printf.c (test_function): Fix comment, and
57778         simplify usage of obstack_* in macros.  Add a test for coverage.
57779         Reported by Bruno Haible.
57780
57781 2008-06-14  Bruno Haible  <bruno@clisp.org>
57782
57783         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
57784         array size as a constant, not as a const variable.
57785         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
57786         AC_USE_SYSTEM_EXTENSIONS.
57787         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
57788         Test whether the obstack_printf function actually exists.
57789         * modules/obstack-printf (Depends-on): Add extensions.
57790         (Include): Remove obstack.h.
57791         * modules/obstack-printf-posix (Depends-on): Add extensions.
57792         (Include): Remove obstack.h.
57793
57794 2008-06-13  Eric Blake  <ebb9@byu.net>
57795
57796         Add obstack-printf and obstack-printf-posix modules.
57797         * modules/obstack-printf: New file.
57798         * modules/obstack-printf-posix: Likewise.
57799         * MODULES.html.sh (Misc): Mention them.
57800         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
57801         Likewise.
57802         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
57803         Likewise.
57804         * modules/stdio (Makefile.am): Accomodate new modules.
57805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57806         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
57807         Declare.
57808         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
57809         functions.
57810         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
57811         (gl_REPLACE_OBSTACK_PRINTF): New macros
57812         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
57813         * tests/test-obstack-printf.c: New file.
57814         * modules/obstack-printf-tests: Likewise.
57815         * modules/obstack-printf-posix-tests: Likewise.
57816
57817 2008-06-11  Bruno Haible  <bruno@clisp.org>
57818
57819         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
57820         * lib/open.c: Include errno.h.
57821         (open): Fail when attempting to write to a file that has a trailing
57822         slash.
57823         * tests/test-open.c (main): Test against trailing slash bug.
57824         * doc/posix-functions/open.texi: Mention the trailing slash bug.
57825
57826 2008-06-10  Bruno Haible  <bruno@clisp.org>
57827
57828         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
57829         for $? to work inside the trap command, with various /bin/sh-s.
57830         * tests/test-vc-list-files-cvs.sh: Likewise.
57831
57832 2008-06-10  Bruno Haible  <bruno@clisp.org>
57833
57834         * lib/acl-internal.h: Don't include gettext.h here.
57835         * lib/set-mode-acl.c: Include gettext.h here.
57836         * lib/copy-acl.c: Likewise.
57837
57838 2008-06-10  Bruno Haible  <bruno@clisp.org>
57839
57840         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
57841         * lib/wait-process.c (wait_subprocess): Likewise.
57842         * lib/execute.h (execute): Add termsigp argument.
57843         * lib/execute.c (execute): Likewise.
57844         * lib/csharpcomp.c (compile_csharp_using_pnet,
57845         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
57846         * lib/csharpexec.c (execute_csharp_using_pnet,
57847         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
57848         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
57849         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
57850         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
57851         is_jikes_present): Update.
57852         * lib/javaexec.c (execute_java_class): Update.
57853         * lib/javaversion.c (execute_and_read_line): Update.
57854         * NEWS: Document the changes.
57855         Reported by Eric Blake.
57856
57857 2008-06-10  Eric Blake  <ebb9@byu.net>
57858
57859         Add missing include.
57860         * tests/test-strstr.c (includes): Add <signal.h>.
57861         * tests/test-strcasestr.c (includes): Likewise.
57862         * tests/test-memmem.c (includes): Likewise.
57863
57864 2008-06-10  Bruno Haible  <bruno@clisp.org>
57865
57866         * lib/wait-process.c (wait_subprocess): Add an assertion.
57867
57868 2008-06-10  Bruno Haible  <bruno@clisp.org>
57869
57870         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
57871
57872 2008-06-10  Bruno Haible  <bruno@clisp.org>
57873
57874         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
57875         using alarm().
57876         * tests/test-strcasestr.c (main): Likewise.
57877         * tests/test-strstr.c (main): Likewise.
57878
57879 2008-06-09  Bruno Haible  <bruno@clisp.org>
57880
57881         Work around the Solaris 10 ACE ACLs ABI change.
57882         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
57883         declare if ACL_NO_TRIVIAL is present.
57884         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
57885         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
57886         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
57887         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
57888         define if ACL_NO_TRIVIAL is present.
57889         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
57890         and use the current ABI.
57891         (file_has_acl): Use same #if condition as elsewhere.
57892         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
57893         in use, and use the current ABI.
57894         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
57895         Reported by Jim Meyering.
57896
57897 2008-06-09  Eric Blake  <ebb9@byu.net>
57898
57899         Work around environments that (stupidly) ignore SIGALRM.
57900         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
57901         before using alarm().
57902         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57903         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57904         Reported by Ian Beckwith <ianb@erislabs.net>.
57905
57906         Produce autobuild blurb earlier in log.
57907         * modules/autobuild (configure.ac-early): Move AB_INIT here.
57908
57909 2008-06-09  Jim Meyering  <meyering@redhat.com>
57910         and Ondřej Vašík  <ovasik@redhat.com>
57911
57912         utimens.c: correct kernel bug work-around
57913         Ondřej Vašík found that the invalid return value of 280 indicates
57914         failure, not success, and the kernel bug we're trying to work
57915         around affects not just the utimensat call, but also the fallback
57916         futimens call.
57917         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
57918         not success.
57919         [HAVE_FUTIMENS]: Use the same work-around, here.
57920
57921 2008-06-09  Jim Meyering  <meyering@redhat.com>
57922
57923         add more guards around definition of ACE_-related code
57924         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
57925         ALLOW and ACE_OWNER are also defined.
57926
57927 2008-06-08  Bruno Haible  <bruno@clisp.org>
57928
57929         * lib/acl-internal.h: Add me as co-author.
57930         * lib/file-has-acl.c: Likewise.
57931         * lib/set-mode-acl.c: Likewise.
57932         * lib/copy-acl.c: Likewise.
57933
57934 2008-06-08  Bruno Haible  <bruno@clisp.org>
57935
57936         Add support for AIX ACLs.
57937         * lib/acl-internal.h (acl_nontrivial): New declaration.
57938         * lib/file-has-acl.c (acl_nontrivial): New function.
57939         (file_has_acl): Add implementation using AIX 4 ACL API.
57940         * lib/set-mode-acl.c (qset_acl): Likewise.
57941         * lib/copy-acl.c (qcopy_acl): Likewise.
57942
57943 2008-06-08  Bruno Haible  <bruno@clisp.org>
57944
57945         Add support for HP-UX ACLs.
57946         * lib/acl-internal.h (acl_nontrivial): New declaration.
57947         * lib/file-has-acl.c (acl_nontrivial): New function.
57948         (file_has_acl): Add implementation using HP-UX 11 ACL API.
57949         * lib/set-mode-acl.c (qset_acl): Likewise.
57950         * lib/copy-acl.c (qcopy_acl): Likewise.
57951
57952 2008-06-08  Bruno Haible  <bruno@clisp.org>
57953
57954         Add support for Cygwin ACLs.
57955         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
57956         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
57957         the chmod_or_fchmod call.
57958         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
57959
57960 2008-06-08  Bruno Haible  <bruno@clisp.org>
57961
57962         Fix bug with setuid modes in Solaris 10+ code.
57963         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
57964         succeeded, when the mode contains some special bits.
57965
57966 2008-06-08  Bruno Haible  <bruno@clisp.org>
57967
57968         Add support for Solaris 7..10 ACLs.
57969         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
57970         declarations.
57971         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
57972         functions.
57973         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
57974         * lib/set-mode-acl.c (qset_acl): Likewise.
57975         * lib/copy-acl.c (qcopy_acl): Likewise.
57976
57977 2008-06-08  Bruno Haible  <bruno@clisp.org>
57978
57979         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
57980         declaration.
57981         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
57982         (acl_access_nontrivial): Remove MacOS X case.
57983         (file_has_acl): Use acl_extended_nontrivial.
57984         * lib/copy-acl.c (qcopy_acl): Likewise.
57985
57986 2008-06-08  Bruno Haible  <bruno@clisp.org>
57987
57988         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
57989
57990 2008-06-08  Jim Meyering  <meyering@redhat.com>
57991
57992         * modules/acl (Maintainer): Add Bruno Haible.
57993
57994 2008-06-07  Bruno Haible  <bruno@clisp.org>
57995
57996         Improve support for Tru64 ACLs.
57997         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
57998         ACL on OSF/1.
57999
58000 2008-06-07  Bruno Haible  <bruno@clisp.org>
58001
58002         Add support for MacOS X ACLs.
58003         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
58004         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
58005         * lib/set-mode-acl.c (qset_acl): Likewise.
58006         * lib/copy-acl.c (qcopy_acl): Likewise.
58007
58008 2008-06-07  Bruno Haible  <bruno@clisp.org>
58009
58010         Fix memory leak introduced on 2008-05-22.
58011         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
58012         use.
58013
58014 2008-06-07  Bruno Haible  <bruno@clisp.org>
58015
58016         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
58017         to construct an empty ACL.
58018
58019 2008-06-07  Bruno Haible  <bruno@clisp.org>
58020
58021         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
58022         precisely.
58023         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
58024
58025 2008-06-07  Bruno Haible  <bruno@clisp.org>
58026
58027         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
58028         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
58029
58030 2008-06-07  Bruno Haible  <bruno@clisp.org>
58031
58032         * doc/posix-functions/_setjmp.texi: Explain the use of this function
58033         regardless of POSIX.
58034         * doc/posix-functions/_longjmp.texi: Likewise.
58035         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
58036         SystemV platform in this case.
58037
58038 2008-06-06  Eric Blake  <ebb9@byu.net>
58039
58040         Document abort() bugs.
58041         * doc/posix-functions/abort.texi (abort): Mention anomalies.
58042
58043         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
58044         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
58045         sigsetjmp.
58046         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
58047         siglongjmp, but only as a macro.
58048         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
58049         is obsolete.
58050         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
58051
58052         Tweak documentation to cover cygwin argz bugs.
58053         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
58054         argz bug fix; no code change needed since no cygwin releases
58055         occurred between the last fix and the bug being tested.
58056         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
58057         module and recently fixed cygwin bugs.
58058         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
58059         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
58060         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
58061         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
58062         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
58063         Likewise.
58064         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
58065         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
58066         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
58067         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
58068         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
58069         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
58070         Likewise.
58071
58072         Avoid gcc warning on cygwin.
58073         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
58074         !ACL_NO_TRIVIAL]: Avoid unused variable.
58075
58076 2008-06-05  Eric Blake  <ebb9@byu.net>
58077
58078         Be tolerant of UNKNOWN version in gnulib-tool test dir.
58079         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
58080         git-version-gen fails to come up with a version.
58081         Reported by Simon Josefsson.
58082
58083 2008-06-05  Jim Meyering  <meyering@redhat.com>
58084             Paul Eggert  <eggert@cs.ucla.edu>
58085
58086         utimens.c: work around a probable Linux kernel bug
58087         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
58088         appears to be a kernel bug that causes utimensat to return 280
58089         instead of 0, indicating success.
58090
58091 2008-06-04  Bruno Haible  <bruno@clisp.org>
58092
58093         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
58094         2008-06-01 commit.
58095
58096 2008-06-04  Bruno Haible  <bruno@clisp.org>
58097
58098         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
58099         * lib/file-has-acl.c (acl_access_nontrivial): New function.
58100         (file_has_acl): Use it. Save errno afterwards.
58101         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
58102
58103 2008-06-03  Bruno Haible  <bruno@clisp.org>
58104
58105         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
58106         draft code. Simplify #ifs.
58107         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
58108         Put Solaris code after POSIX-draft code. Fix comments regarding
58109         Solaris 10, HP-UX. Mention Cygwin.
58110         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
58111
58112 2008-06-03  Eric Blake  <ebb9@byu.net>
58113
58114         Provide fallback for older kernels.
58115         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
58116         Provide runtime fallback if kernel lacks support.
58117         Reported by Mike Frysinger.
58118
58119 2008-06-02  Bruno Haible  <bruno@clisp.org>
58120
58121         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
58122         it exists.
58123
58124 2008-06-02  Bruno Haible  <bruno@clisp.org>
58125
58126         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
58127         * lib/copy-acl.c (qcopy_acl): Update comment.
58128
58129 2008-06-02  Bruno Haible  <bruno@clisp.org>
58130
58131         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
58132         like ACL APIs.
58133
58134 2008-06-02  Bruno Haible  <bruno@clisp.org>
58135
58136         * tests/test-file-has-acl.sh: Use different code for Cygwin.
58137         * tests/test-set-mode-acl.sh: Likewise.
58138         * tests/test-copy-acl.sh: Likewise.
58139         * tests/test-copy-file.sh: Likewise.
58140
58141 2008-06-02  Bruno Haible  <bruno@clisp.org>
58142
58143         * tests/test-file-has-acl.sh: Remove unused code.
58144
58145 2008-06-01  Bruno Haible  <bruno@clisp.org>
58146
58147         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
58148         (copy_acl): Just a wrapper around qcopy_acl that emits the error
58149         messages.
58150         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
58151
58152 2008-06-01  Bruno Haible  <bruno@clisp.org>
58153
58154         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
58155         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
58156         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
58157         APIs.
58158         * modules/acl-tests (configure.ac): Remove tests now contained in
58159         m4/acl.m4.
58160
58161 2008-06-02  Jim Meyering  <meyering@redhat.com>
58162
58163         announce-gen: use a better key-server host name
58164         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
58165         it may be more consistently reliable.  Suggested by Werner Koch
58166         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
58167
58168 2008-06-01  Bruno Haible  <bruno@clisp.org>
58169
58170         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
58171         Reported by Voroskoi Andras <voroskoi@gmail.com>.
58172
58173 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
58174
58175         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
58176
58177 2008-06-01  Bruno Haible  <bruno@clisp.org>
58178
58179         New ACL tests.
58180         * tests/test-file-has-acl.sh: New file.
58181         * tests/test-file-has-acl.c: New file.
58182         * tests/test-set-mode-acl.sh: New file.
58183         * tests/test-set-mode-acl.c: New file.
58184         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
58185         * tests/test-copy-acl.c: New file.
58186         * modules/acl-tests: New file, based on modules/copy-file-tests.
58187         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
58188         (Depends-on): Add acl-tests.
58189         (configure.ac): Remove checks.
58190         (Makefile.am): Don't create test-sameacls program here any more.
58191
58192 2008-06-01  Bruno Haible  <bruno@clisp.org>
58193
58194         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
58195         * tests/test-sameacls.c: Include progname.h.
58196         (main): Invoke set_program_name. Portability fixes for MacOS X,
58197         Solaris, HP-UX.
58198
58199 2008-06-01  Bruno Haible  <bruno@clisp.org>
58200
58201         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
58202         function.
58203         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
58204
58205 2008-06-01  Bruno Haible  <bruno@clisp.org>
58206
58207         * modules/rpmatch (Depends-on): Add strdup.
58208
58209 2008-06-01  Bruno Haible  <bruno@clisp.org>
58210
58211         * lib/pipe.c: Include unistd-safer.h.
58212         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
58213         * modules/pipe (Depends-on): Add unistd-safer.
58214
58215 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58216
58217         * modules/autobuild (configure.ac): Call AB_INIT.
58218
58219 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58220
58221         * tests/test-getaddrinfo.c: Don't print debug messages by default.
58222         Suggested by Bruno Haible <bruno@clisp.org>.
58223
58224 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58225
58226         * tests/test-base64.c: Cast size_t to unsigned long when invoking
58227         printf.  Use %lu instead of %d.  Reported by Bruno Haible
58228         <bruno@clisp.org>.
58229
58230 2008-05-29  Eric Blake  <ebb9@byu.net>
58231
58232         Prefer new POSIX 200x interfaces over futimesat.
58233         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
58234         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
58235         when available.
58236         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
58237
58238 2008-05-28  Bruno Haible  <bruno@clisp.org>
58239
58240         * modules/stpcpy (License): Change to LGPLv2+.
58241         Requested by David Lutterkort <dlutter@redhat.com>.
58242
58243 2008-05-27  Bruno Haible  <bruno@clisp.org>
58244
58245         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
58246         current mingw.
58247         Reported by Jose E. Marchesi <jemarch@gnu.org>.
58248
58249 2008-05-27  Bruno Haible  <bruno@clisp.org>
58250
58251         * modules/iconv_open (Link): New section, from module 'iconv'.
58252         * modules/striconv (Link): Likewise.
58253         * modules/striconveh (Link): Likewise.
58254         * modules/xstriconv (Link): Likewise.
58255         * modules/unicodeio (Link): Likewise.
58256         * modules/propername (Link): Likewise.
58257         Reported by Jim Meyering.
58258
58259 2008-05-26  Jim Meyering  <meyering@redhat.com>
58260
58261         sha256: do not artificially restrict buffer length to be < 2^32
58262         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
58263         uint32_t to size_t.
58264         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
58265         to match.
58266
58267         avoid unaligned access errors, e.g., on sparc
58268         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
58269         direct access through a possibly-unaligned uint64* pointer.
58270         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
58271         direct access through a possibly-unaligned uint32* pointer.
58272         Prompted by this patch from Tom "spot" Callaway:
58273         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
58274
58275         sha512.c: fix typo in comment
58276         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
58277
58278 2008-05-25  Bruno Haible  <bruno@clisp.org>
58279
58280         * lib/set-mode-acl.c: Renamed from lib/acl.c.
58281         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
58282         (Makefile.am): Update lib_SOURCES.
58283
58284 2008-05-25  Bruno Haible  <bruno@clisp.org>
58285
58286         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
58287
58288 2008-05-25  Jim Meyering  <meyering@redhat.com>
58289
58290         useless-if-before-free: freed expr may have white-space differences
58291         * build-aux/useless-if-before-free: Recognize cases in which the
58292         freed expression differs from the tested one in embedded white
58293         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
58294         $1 was used, so we can't make any regexp shy.  Improved tests now
58295         detect this.
58296
58297         useless-if-before-free: accept white space in the expression.
58298         * build-aux/useless-if-before-free: For now, any white space
58299         in the expression must be identical in the free argument.
58300
58301         useless-if-before-free: efficiency tweak
58302         * build-aux/useless-if-before-free: Make the expression-matching
58303         regexp "shy".
58304         Make the *outer* regexp shy, not the expr-matching one.
58305
58306         update code-in-comment to accept cast of free arg
58307         * build-aux/useless-if-before-free: Update regexp.
58308
58309 2008-05-25  Bruno Haible  <bruno@clisp.org>
58310
58311         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
58312         * modules/copy-file-tests (Files, Makefile.am): Update.
58313         * tests/test-copy-file.c (func_test_copy): Update.
58314
58315 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
58316
58317         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
58318
58319 2008-05-23  Bruno Haible  <bruno@clisp.org>
58320
58321         Improve support for ACLs on OSF/1.
58322         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
58323         Remove fallback for unknown flavors of ACLs.
58324
58325 2008-05-22  Bruno Haible  <bruno@clisp.org>
58326
58327         Add support for ACLs on OSF/1.
58328         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
58329         replacements.
58330         (acl_free_text): New macro fallback.
58331         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
58332         acl_free.
58333         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
58334         acl_free_text function. Require AC_C_INLINE.
58335
58336 2008-05-22  Bruno Haible  <bruno@clisp.org>
58337
58338         Make copy_acl work on MacOS X 10.5.
58339         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
58340         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
58341         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
58342         If MODE_INSIDE_ACL, don't assume that every system has the same text
58343         representation for ACLs as FreeBSD.
58344         * lib/copy-acl.c (copy_acl): Add support for platforms with
58345         !MODE_INSIDE_ACL.
58346         * lib/file-has-acl.c (file_has_acl): Likewise.
58347         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
58348         FreeBSD, MacOS X, or IRIX, respectively.
58349
58350 2008-05-22  Bruno Haible  <bruno@clisp.org>
58351
58352         * lib/acl.h: Don't include <sys/acl.h>.
58353         (GETACLCNT): Move fallback to lib/acl-internal.h.
58354         * lib/acl-internal.h: Include <sys/acl.h> here.
58355         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
58356
58357 2008-05-22  Bruno Haible  <bruno@clisp.org>
58358
58359         Split off copy_acl function to separate file.
58360         * lib/copy-acl.c: New file, extracted from lib/acl.c.
58361         * lib/acl.c (copy_acl): Moved function to separate file.
58362         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
58363         * modules/acl (Files): Add lib/copy-acl.c.
58364         (Makefiles.am): Augment lib_SOURCES.
58365
58366 2008-05-22  Bruno Haible  <bruno@clisp.org>
58367
58368         * modules/copy-file-tests: New file.
58369         * tests/test-copy-file.sh: New file.
58370         * tests/test-copy-file.c: New file.
58371         * tests/test-copy-file-sameacls.c: New file.
58372
58373 2008-05-22  Eric Blake  <ebb9@byu.net>
58374
58375         Avoid gcc warning.
58376         * tests/test-memcmp.c (main): Pass NULL indirectly.
58377
58378 2008-05-21  Bruno Haible  <bruno@clisp.org>
58379
58380         Add reference doc about ACLs.
58381         * doc/acl-resources.txt: New file.
58382         * doc/acl-cygwin.txt: New file.
58383
58384 2008-05-21  Bruno Haible  <bruno@clisp.org>
58385
58386         Avoid one more warning from gcc.
58387         * lib/vasnprintf.c (IF_LINT): Update comments.
58388         (VASNPRINTF): Use it also for the 'prefix' array initializer.
58389
58390 2008-05-21  Jim Meyering  <meyering@redhat.com>
58391
58392         avoid a warning from gcc
58393         * lib/vasnprintf.c (IF_LINT): Define.
58394         (scale10_round_decimal_long_double):
58395         Use it to avoid a "may be used uninitialized" warning.
58396         (scale10_round_decimal_double): Likewise.
58397
58398 2008-05-21  Simon Josefsson  <simon@josefsson.org>
58399
58400         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
58401         declared.
58402
58403 2008-05-20  Bruno Haible  <bruno@clisp.org>
58404
58405         * tests/test-memcmp.c (main): Test also the sign of the result. Test
58406         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
58407
58408 2008-05-20  Simon Josefsson  <simon@josefsson.org>
58409
58410         * modules/memcmp-tests: New file.
58411         * tests/test-memcmp.c: New file.
58412
58413 2008-05-19  Bruno Haible  <bruno@clisp.org>
58414
58415         * modules/propername (Notice, configure.ac): Put quoted "..." into
58416         --keyword option.
58417         * lib/propername.h: Update comments accordingly.
58418         Reported by Eric Blake.
58419
58420 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
58421
58422         * modules/getpass-gnu (Depends-on): Add fseeko.
58423
58424 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58425
58426         * modules/base64-tests: New file.
58427
58428 2008-05-19  Bo Borgerson <gigabo@gmail.com>
58429
58430         * lib/base64.c (base64_decode_ctx): If a decode context structure
58431         was passed in use it to ignore newlines.  If a context structure
58432         was _not_ passed in, continue to treat newlines as garbage (this
58433         is the historical behavior).  Formerly base64_decode.
58434         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58435         takes a decode context structure.
58436         * lib/base64.h (base64_decode): Macro for four-argument calls.
58437         (base64_decode_alloc): Likewise.
58438         * lib/base64.c (base64_decode_ctx): If a decode context structure
58439         was passed in use it to ignore newlines.  If a context structure
58440         was _not_ passed in, continue to treat newlines as garbage (this
58441         is the historical behavior).  Formerly base64_decode.
58442         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58443         takes a decode context structure.
58444         * lib/base64.h (base64_decode): Macro for four-argument calls.
58445         (base64_decode_alloc): Likewise.
58446
58447 2008-05-19  Jim Meyering  <meyering@redhat.com>
58448
58449         avoid a warning from gcc
58450         * lib/trim.c (IF_LINT): Define.
58451         (trim2): Use it to avoid a "may be used uninitialized" warning.
58452
58453         Fix doc typo.
58454         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
58455
58456 2008-05-19  Bruno Haible  <bruno@clisp.org>
58457
58458         * doc/glibc-functions/getpass.texi: Document limits of other
58459         implementations.
58460
58461 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58462             Bruno Haible <bruno@clisp.org>
58463
58464         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
58465
58466 2008-05-18  Bruno Haible  <bruno@clisp.org>
58467
58468         * modules/propername: New file, from GNU gettext.
58469         * lib/propername.h: New file, from GNU gettext.
58470         * lib/propername.c: New file, from GNU gettext.
58471         * MODULES.html.sh (Internationalization functions): Add propername.
58472
58473 2008-05-16  Jim Meyering  <meyering@redhat.com>
58474             Bruno Haible  <bruno@clisp.org>
58475
58476         Avoid some warnings from "gcc -Wshadow".
58477         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
58478
58479 2008-05-15  Eric Blake  <ebb9@byu.net>
58480
58481         Extend previous patch to cygwin 1.7.0.
58482         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
58483         fast implementation in cygwin >= 1.7.0.
58484         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58485         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58486
58487 2008-05-15  Bruno Haible  <bruno@clisp.org>
58488
58489         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
58490         implementation in glibc >= 2.9.
58491         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58492         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58493
58494 2008-05-15  Bruno Haible  <bruno@clisp.org>
58495
58496         * MODULES.html.sh (Internationalization functions): Remove linebreak.
58497         (Unicode string functions): Add unilbrk/*.
58498         Reported by Karl Berry.
58499
58500 2008-05-15  Eric Blake  <ebb9@byu.net>
58501
58502         Fix violation of <stdbool.h> replacement in regex.
58503         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
58504         * lib/regexec.c (re_search_internal): Likewise.
58505         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
58506
58507 2008-05-15  Jim Meyering  <meyering@redhat.com>
58508
58509         avoid distracting test output when git or cvs is not found
58510         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
58511         * tests/test-vc-list-files-git.sh: Likewise.
58512
58513 2008-05-15  Eric Blake  <ebb9@byu.net>
58514
58515         Glibc finally accepted the memmem speedup code, bugzilla #5514.
58516         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
58517         glibc version.
58518         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
58519         * doc/posix-functions/strstr.texi (strstr): Likewise.
58520         * lib/str-two-way.h (MAX): Sychronize with glibc.
58521
58522 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
58523
58524         * lib/regcomp.c (optimize_utf8): Add a note on why we test
58525         opr.ctx_type.
58526         (calc_first): Initialize constraint field.
58527         (duplicate_node_closure): Use it instead of special casing ANCHORS.
58528         Fix grammar.
58529         (duplicate_node): Merge constraint field for all node types.
58530         (calc_eclosure_iter): Look at constraint field for all node types.
58531         * lib/regex_internal.c (create_cd_newstate): Don't look at
58532         opr.ctx_type.
58533
58534 2008-05-14  Bruno Haible  <bruno@clisp.org>
58535
58536         Help GCC to do better code generation.
58537         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
58538         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
58539         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
58540         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
58541         Declare with attribute 'malloc' if supported.
58542
58543 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
58544
58545         use "echo STR|wc -c" rather than unportable "expr length STR"
58546         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
58547         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
58548
58549 2008-05-14  Jim Meyering  <meyering@redhat.com>
58550
58551         use dd ibs=$n count=1 ... rather than less-portable head -c$n
58552         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
58553         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
58554         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
58555         via Collin Lasse.
58556
58557 2008-05-14  Eric Blake  <ebb9@byu.net>
58558
58559         Avoid quadratic growth in gl_LIBSOURCES.
58560         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
58561         Suggested by Bruno Haible.
58562
58563         Test xmemdup0.
58564         * modules/xmemdup0-tests: New file.
58565         * tests/test-xmemdup0.c: Likewise.
58566
58567 2008-05-13  Eric Blake  <ebb9@byu.net>
58568
58569         Split xmemdup0 into its own module.
58570         * modules/xmemdup0: New file.
58571         * lib/xmemdup0.h: Likewise.
58572         * lib/xmemdup0.c: Likewise.
58573         * MODULES.html.sh (Memory management functions): Add xmemdup0.
58574         * lib/xalloc.h (xmemdup0): Remove.
58575         * lib/xmalloc.c (xmemdup0): Likewise.
58576
58577 2008-05-13  Eric Blake  <ebb9@byu.net>
58578             Bruno Haible  <bruno@clisp.org>
58579
58580         Reduce number of forks required during autoconf.
58581         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
58582         and gl_LIBSOURCES_DIR.
58583         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
58584         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
58585         m4_syscmd per file.
58586         <m4_foreach_w>: Move...
58587         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
58588
58589 2008-05-13  Eric Blake  <ebb9@byu.net>
58590
58591         * gnulib-tool: Fix various comment typos.
58592
58593 2008-05-12  Bruno Haible  <bruno@clisp.org>
58594
58595         Tailor the linebreaking algorithm.
58596         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
58597
58598 2008-05-12  Bruno Haible  <bruno@clisp.org>
58599
58600         Update to Unicode 5.0.0.
58601         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58602         LBP_JV, LBP_JT. Redistribute values.
58603         (unilbrk_table): Change size.
58604         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
58605         Unicode TR#14 rev. 22.
58606         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58607         LBP_JV, LBP_JT. Redistribute values.
58608         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
58609         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
58610         Update.
58611         * lib/unilbrk/lbrkprop1.h: Regenerated.
58612         * lib/unilbrk/lbrkprop2.h: Regenerated.
58613         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
58614         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
58615         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
58616         Likewise.
58617         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
58618         Likewise.
58619         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
58620         result.
58621         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
58622         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
58623         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
58624         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
58625         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
58626         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
58627
58628 2008-05-11  Bruno Haible  <bruno@clisp.org>
58629
58630         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
58631
58632 2008-05-11  Bruno Haible  <bruno@clisp.org>
58633
58634         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
58635         * modules/unilbrk/gen-lbrk: New file.
58636
58637 2008-05-11  Bruno Haible  <bruno@clisp.org>
58638
58639         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
58640         * m4/sha512.m4 (gl_SHA512): Likewise.
58641
58642 2008-05-11  Jim Meyering  <meyering@redhat.com>
58643
58644         New modules: crypto/sha256, crypto/sha512 (from coreutils)
58645         * modules/crypto/sha256: New file.
58646         * modules/crypto/sha512: Likewise.
58647         * lib/sha256.c: Likewise.
58648         * lib/sha256.h: Likewise.
58649         * lib/sha512.c: Likewise.
58650         * lib/sha512.h: Likewise.
58651         * lib/u64.h: Likewise.
58652         * m4/sha256.m4: Likewise.
58653         * m4/sha512.m4: Likewise.
58654         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
58655
58656 2008-05-10  Bruno Haible  <bruno@clisp.org>
58657
58658         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
58659         (Input/Output <stdio.h>): Add xprintf.
58660         (Signal handling <signal.h>): Add strsignal.
58661         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
58662         (Core language properties): Add func.
58663         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
58664         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
58665         strings.
58666         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
58667         (Input/output): New section.
58668         (File system functions): Add openat-die, stat-macros.
58669         (Networking functions): Add sockets.
58670         (Unicode string functions): Add unictype/*.
58671         (Support for building libraries and executables): Add gperf.
58672         (Support for building documentation): Add agpl-3.0.
58673         (Misc): Add nocrash.
58674
58675 2008-05-10  Bruno Haible  <bruno@clisp.org>
58676
58677         * modules/unictype/gen-ctype: New file.
58678
58679 2008-05-10  Jim Meyering  <meyering@redhat.com>
58680
58681         Make chdir-safer.c more efficient on a system with no symlinks.
58682         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
58683         also if ELOOP is zero.  Suggested by Bruno Haible.
58684
58685         Make chdir-safer.c slightly safer.
58686         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
58687         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
58688
58689         Avoid compile failure on systems without ELOOP (like mingw).
58690         * lib/chdir-safer.c (ELOOP): Define if not already defined.
58691         Reported by Bruno Haible.
58692
58693 2008-05-10  Bruno Haible  <bruno@clisp.org>
58694
58695         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
58696         (is_utf8_encoding): Use a case-insensitive comparison.
58697         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
58698         streq.
58699
58700 2008-05-10  Bruno Haible  <bruno@clisp.org>
58701
58702         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
58703         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
58704         * lib/unilbrk/ulc-common.h (iconv_string_length,
58705         iconv_string_keeping_offsets): Remove declarations.
58706         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
58707         Don't include <iconv.h>, streq.h, xsize.h.
58708         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
58709         conversion.
58710         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
58711         <iconv.h>, streq.h, xsize.h.
58712         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
58713         conversion.
58714         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
58715         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
58716         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
58717         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
58718
58719 2008-05-10  Bruno Haible  <bruno@clisp.org>
58720
58721         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
58722         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
58723
58724         * modules/unilbrk/u32-width-linebreaks-tests: New file.
58725         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
58726
58727         * modules/unilbrk/u16-width-linebreaks-tests: New file.
58728         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
58729
58730         * modules/unilbrk/u8-width-linebreaks-tests: New file.
58731         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
58732
58733         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
58734         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
58735
58736         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
58737         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
58738
58739         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
58740         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
58741
58742         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
58743         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
58744
58745 2008-05-10  Bruno Haible  <bruno@clisp.org>
58746
58747         Split up 'linebreak' module.
58748         * lib/unilbrk.h: New file, based on lib/linebreak.h.
58749         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
58750         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
58751         modifications.
58752         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
58753         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
58754         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
58755         lib/linebreak.c.
58756         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
58757         lib/linebreak.c.
58758         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
58759         lib/linebreak.c.
58760         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
58761         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
58762         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
58763         lib/linebreak.c.
58764         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
58765         lib/linebreak.c.
58766         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
58767         lib/linebreak.c.
58768         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
58769         lib/linebreak.c.
58770         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
58771         lib/linebreak.c.
58772         * modules/unilbrk/base: New file.
58773         * modules/unilbrk/tables: New file.
58774         * modules/unilbrk/u8-possible-linebreaks: New file.
58775         * modules/unilbrk/u16-possible-linebreaks: New file.
58776         * modules/unilbrk/u32-possible-linebreaks: New file.
58777         * modules/unilbrk/ulc-common: New file.
58778         * modules/unilbrk/ulc-possible-linebreaks: New file.
58779         * modules/unilbrk/u8-width-linebreaks: New file.
58780         * modules/unilbrk/u16-width-linebreaks: New file.
58781         * modules/unilbrk/u32-width-linebreaks: New file.
58782         * modules/unilbrk/ulc-width-linebreaks: New file.
58783         * lib/linebreak.h: Remove file.
58784         * lib/linebreak.c: Remove file.
58785         * m4/linebreak.m4: Remove file.
58786         * modules/linebreak: Remove file.
58787         * NEWS: Mention the changes.
58788
58789 2008-05-09  Eric Blake  <ebb9@byu.net>
58790
58791         Add xmemdup0.
58792         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
58793         implementation.
58794         * lib/xmalloc.c (xmemdup0): New C implementation.
58795
58796 2008-05-08  Bruno Haible  <bruno@clisp.org>
58797
58798         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
58799
58800 2008-05-07  Eric Blake  <ebb9@byu.net>
58801
58802         Support cross-compilation of <wctype.h>.
58803         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
58804         AC_CACHE_CHECK.
58805
58806 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
58807
58808         * build-aux/vc-list-files: Add support for bzr.
58809
58810 2008-05-03  Jim Meyering  <meyering@redhat.com>
58811
58812         avoid failed assertion with tight malloc
58813         * tests/test-getndelim2.c: Correct an off-by-one assertion.
58814
58815 2008-05-03  Simon Josefsson  <simon@josefsson.org>
58816
58817         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
58818         are needed from arpa/inet.h.
58819         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
58820         Reported by Bruno Haible.
58821
58822 2008-05-02  Jim Meyering  <meyering@redhat.com>
58823
58824         avoid compilation error on FreeBSD 6
58825         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
58826
58827 2008-05-01  Jim Meyering  <meyering@redhat.com>
58828
58829         useless-if-before-free: correct --help's exit status description
58830         * build-aux/useless-if-before-free (usage): Like grep, exit 0
58831         for one or more matches, etc.  Reported by Bruno Haible.
58832
58833         vc-list-files: make the stand-alone gnulib test work
58834         * modules/vc-list-files-tests (configure.ac):
58835         Define and AC_SUBST abs_aux_dir.
58836         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
58837         $(abs_top_srcdir) to each script and having each of them
58838         duplicate the work of setting PATH, set PATH here, using
58839         the new variable, abs_aux_dir instead.
58840         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
58841         * tests/test-vc-list-files-git.sh: Likewise.
58842         Reported by Bruno Haible.
58843
58844 2008-05-01  Bruno Haible  <bruno@clisp.org>
58845
58846         * lib/getndelim2.c (getndelim2): Fix newsize computation during
58847         reallocation. Rename 'done' to 'found_delimiter'.
58848
58849 2008-05-01  Jim Meyering  <meyering@redhat.com>
58850
58851         vc-list-files: accommodate /bin/sh like the one from Solaris 10
58852         * build-aux/vc-list-files: Use `...`, not $(...).
58853
58854 2008-04-30  Jim Meyering  <meyering@redhat.com>
58855
58856         add tests for vc-list-files
58857         * modules/vc-list-files-tests: New module.
58858         * tests/test-vc-list-files-cvs.sh: New file.
58859         * tests/test-vc-list-files-git.sh: New file.
58860
58861         avoid a warning from gcc
58862         * lib/getndelim2.c (IF_LINT): Define.
58863         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
58864
58865         vc-list-files: work properly with build-aux/cvsu, too
58866         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
58867         to all cvs-based clauses.
58868
58869         vc-list-files: work properly in the CVS+awk case, too
58870         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
58871
58872         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
58873         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
58874         take more than one file argument, so .  Add quotes, just in case $dir
58875         ever contains a shell meta-character.  Prompted by Soren Hansen in
58876         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
58877
58878 2008-04-29  Eric Blake  <ebb9@byu.net>
58879
58880         Optimize getndelim2 to use block operations when possible.
58881         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
58882         freadseek, and memchr2.
58883         * lib/getndelim2.c (getndelim2): Use them for block reads.
58884
58885 2008-04-29  Bruno Haible  <bruno@clisp.org>
58886
58887         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
58888         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58889         * modules/inet_ntop (Depends-on): Add extensions.
58890         * modules/inet_pton (Depends-on): Likewise.
58891         Reported by Simon Josefsson.
58892
58893 2008-04-29  Jim Meyering  <meyering@redhat.com>
58894
58895         When the is more than one match in a block, match all of them.
58896         * build-aux/useless-if-before-free: Iterate through each block
58897         until there are no more matches.
58898
58899         Fix broken useless-if-before-free script.
58900         * build-aux/useless-if-before-free: Fix typo: missing "?" after
58901         the expression to match cast of argument to free-like function.
58902
58903 2008-04-29  Eric Blake  <ebb9@byu.net>
58904
58905         Use new header.
58906         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
58907
58908 2008-04-29  Jim Meyering  <meyering@redhat.com>
58909
58910         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
58911         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
58912         by gnulib to exist and to declare e.g., inet_ntop.
58913         Don't include "inet_ntop.h", now removed.
58914
58915         * m4/arpa_inet_h.m4: Remove trailing blanks.
58916
58917 2008-04-29  Eric Blake  <ebb9@byu.net>
58918
58919         Silence valgrind on safe reads beyond potential array bounds.
58920         * lib/rawmemchr.valgrind: New file.
58921         * lib/strchrnul.valgrind: Likewise.
58922         * modules/rawmemchr (Files): Distribute new file.
58923         * modules/strchrnul (Files): Likewise.
58924         Suggested by Bruno Haible.
58925
58926 2008-04-29  Bruno Haible  <bruno@clisp.org>
58927
58928         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
58929         (inet_ntop, inet_pton): Change portability warning's wording.
58930         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
58931         Invoke gl_CHECK_NEXT_HEADERS.
58932         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
58933         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
58934         set ARPA_INET_H.
58935         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58936         * modules/arpa_inet (Description): No longer only for systems that
58937         lack it.
58938         (Depends-on): Add include_next.
58939         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
58940         HAVE_ARPA_INET_H.
58941
58942 2008-04-29  Jim Meyering  <meyering@redhat.com>
58943
58944         * modules/mkdir (License): Re-license as LGPLv2+.
58945
58946 2008-04-29  Bruno Haible  <bruno@clisp.org>
58947
58948         * modules/rawmemchr (Maintainer): Set to Eric.
58949         * modules/strchrnul (Maintainer): Likewise.
58950
58951 2008-04-29  Simon Josefsson  <simon@josefsson.org>
58952
58953         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
58954         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
58955
58956         * modules/arpa_inet (arpa/inet.h): Use them.
58957
58958 2008-04-28  Eric Blake  <ebb9@byu.net>
58959
58960         Test getndelim2.
58961         * modules/getndelim2-tests: New file.
58962         * tests/test-getndelim2.c: Likewise.
58963         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
58964         stream.
58965         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
58966
58967         * MODULES.html.sh: Document new module.
58968
58969 2008-04-20  Bruno Haible  <bruno@clisp.org>
58970
58971         * lib/c-stack.c (die): Use raise.
58972         * modules/c-stack (Depends-on): Add raise.
58973
58974 2008-04-28  Bruno Haible  <bruno@clisp.org>
58975
58976         Expect rpmatch to be declared.
58977         * lib/yesno.c (rpmatch): Remove declaration.
58978
58979         Declare rpmatch.
58980         * lib/stdlib.in.h (rpmatch): New declaration.
58981         * lib/rpmatch.c: Include <stdlib.h> first.
58982         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
58983         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
58984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
58985         HAVE_RPMATCH.
58986         * modules/rpmatch (Depends-on): Add stdlib, extensions.
58987         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58988         (Include): Set to <stdlib.h>.
58989         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
58990         HAVE_RPMATCH.
58991         * NEWS: Document the change.
58992
58993 2008-04-28  Bruno Haible  <bruno@clisp.org>
58994
58995         Change rpmatch to use nl_langinfo when appropriate.
58996         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
58997         (N_): New macro.
58998         (localized_pattern): New function/macro.
58999         (try): Remove match, nomatch arguments. Copy the pattern into safe
59000         memory before caching it.
59001         (rpmatch): Use localized_pattern. Add translator comments.
59002         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
59003         Suggested by Eric Blake.
59004         * modules/rpmatch (Depends-on): Add stdbool.
59005
59006 2008-04-28  Eric Blake  <ebb9@byu.net>
59007
59008         Add rawmemchr module, matching glibc.
59009         * modules/string (Makefile.am): New indicator.
59010         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
59011         * lib/string.in.h (rawmemchr): Declare when appropriate.
59012         * modules/rawmemchr: New file.
59013         * m4/rawmemchr.m4: Likewise.
59014         * lib/rawmemchr.c: Likewise.
59015         * modules/rawmemchr-tests: Likewise.
59016         * tests/test-rawmemchr.c: Likewise.
59017         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
59018         module.
59019         * modules/strchrnul (Depends-on): Add rawmemchr.
59020         * lib/strchrnul.c (strchrnul): Optimize a corner case.
59021
59022         Whitespace cleanup.
59023         * tests/test-strchrnul.c: Reindent.
59024         * lib/strchrnul.c: Likewise.
59025
59026         Optimize and test strchrnul.
59027         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
59028         * modules/strchrnul-tests: New file.
59029         * tests/test-strchrnul.c: Likewise.
59030
59031         Remove intprops dependency.
59032         * modules/memchr (Depends-on): Remove intprops.
59033         * modules/memrchr (Depends-on): Likewise.
59034         * modules/memchr2 (Depends-on): Likewise.
59035         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
59036         * lib/memrchr.c (__memrchr): Likewise.
59037         * lib/memrchr2.c (memchr2): Likewise.
59038         Reported by Simon Josefsson.
59039
59040 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59041
59042         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
59043         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59044
59045 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59046
59047         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
59048
59049         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
59050
59051         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
59052
59053         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
59054         declarations.
59055         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
59056
59057         * m4/inet_pton.m4: Don't check for header files.
59058
59059         * m4/inet_ntop.m4: Don't check for header files.
59060
59061 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59062
59063         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
59064         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
59065         trigger for cygwin).
59066         Reported by Bruno Haible  <bruno@clisp.org>.
59067
59068 2008-04-28  Bruno Haible  <bruno@clisp.org>
59069
59070         * doc/posix-functions/strdup.texi: Mention mingw problem.
59071
59072 2008-04-27  Bruno Haible  <bruno@clisp.org>
59073
59074         * modules/stat-time-tests (Depends-on): Add sleep.
59075         * tests/test-stat-time.c (force_unlink): New function.
59076         (cleanup): Use it.
59077         (test_mtime): Remove the ctime related tests.
59078         (test_ctime): New function, containing the ctime related tests.
59079         (main): Call test_ctime, except on native Windows platforms.
59080
59081 2008-04-27  Bruno Haible  <bruno@clisp.org>
59082
59083         * lib/rpmatch.c (rpmatch): Add some comments.
59084         Reported by James Youngman <jay@gnu.org>.
59085
59086 2008-04-27  Bruno Haible  <bruno@clisp.org>
59087
59088         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
59089         quiet NaNs.
59090
59091 2008-04-27  Bruno Haible  <bruno@clisp.org>
59092
59093         Make test-yesno.sh work on mingw.
59094         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
59095         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
59096         (main): Set stdin to binary mode.
59097         * modules/yesno-tests (Depends-on): Add binary-io.
59098
59099 2008-04-27  Bruno Haible  <bruno@clisp.org>
59100
59101         Fix 'isfinite' on x86, x86_64, ia64 platforms.
59102         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
59103         argument that lie outside the IEEE 854 domain.
59104         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
59105         (gl_ISFINITE): Use it.
59106         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
59107
59108 2008-04-27  Bruno Haible  <bruno@clisp.org>
59109
59110         Allow local renaming in config.h.
59111         * lib/memrchr.c (memrchr): Don't undefine outside libc.
59112
59113 2008-04-27  Bruno Haible  <bruno@clisp.org>
59114
59115         * lib/memchr.c (__memchr): Change type of 'i'.
59116         * lib/memchr2.c (memchr2): Likewise.
59117
59118 2008-04-26  Eric Blake  <ebb9@byu.net>
59119         and Bruno Haible  <bruno@clisp.org>
59120
59121         Optimize and test memrchr.
59122         * modules/memrchr (Depends-on): Add intprops.
59123         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
59124         * modules/memrchr-tests: New file.
59125         * tests/test-memrchr.c: New file.
59126
59127 2008-04-26  Bruno Haible  <bruno@clisp.org>
59128
59129         Add tentative support for DragonFly BSD.
59130         * lib/stdio-impl.h: Add macros for DragonFly BSD.
59131         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
59132         fp.
59133         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59134         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
59135         * lib/fpurge.c (fpurge): Likewise.
59136         * lib/freadable.c (freaadable): Likewise.
59137         * lib/freadahead.c (freadahead): Likewise.
59138         * lib/freading.c (freading): Likewise.
59139         * lib/freadptr.c (freadptr): Likewise.
59140         * lib/freadseek.c (freadptrinc): Likewise.
59141         * lib/fseeko.c (fseeko): Likewise.
59142         * lib/fseterr.c (fseterr): Likewise.
59143         * lib/fwritable.c (fwritable): Likewise.
59144         * lib/fwriting.c (fwriting): Likewise.
59145
59146 2008-04-26  Bruno Haible  <bruno@clisp.org>
59147
59148         * lib/stdio-impl.h: New file.
59149         * lib/fbufmode.c: Include stdio-impl.h.
59150         (fbufmode): Use fp_, remove redundant #defines.
59151         * lib/fflush.c: Include stdio-impl.h.
59152         (clear_ungetc_buffer): Remove redundant #defines.
59153         * lib/fpurge.c: Include stdio-impl.h.
59154         (fpurge): Remove redundant #defines.
59155         * lib/freadable.c: Include stdio-impl.h.
59156         (freadable): Remove redundant #defines.
59157         * lib/freadahead.c: Include stdio-impl.h.
59158         (freadahead): Remove redundant #defines.
59159         * lib/freading.c: Include stdio-impl.h.
59160         (freading): Remove redundant #defines.
59161         * lib/freadptr.c: Include stdio-impl.h.
59162         (freadptr): Remove redundant #defines.
59163         * lib/freadseek.c: Include stdio-impl.h.
59164         (freadptrinc): Remove redundant #defines.
59165         * lib/fseeko.c: Include stdio-impl.h.
59166         (rpl_fseeko): Remove redundant #defines.
59167         * lib/fseterr.c: Include stdio-impl.h.
59168         (fseterr): Remove redundant #defines.
59169         * lib/fwritable.c: Include stdio-impl.h.
59170         (fwritable: Remove redundant #defines.
59171         * lib/fwriting.c: Include stdio-impl.h.
59172         (fwriting): Remove redundant #defines.
59173         * modules/fbufmode (Files): Add lib/stdio-impl.h.
59174         * modules/fflush (Files): Likewise.
59175         * modules/fpurge (Files): Likewise.
59176         * modules/freadable (Files): Likewise.
59177         * modules/freadahead (Files): Likewise.
59178         * modules/freading (Files): Likewise.
59179         * modules/freadptr (Files): Likewise.
59180         * modules/freadseek (Files): Likewise.
59181         * modules/fseeko (Files): Likewise.
59182         * modules/fseterr (Files): Likewise.
59183         * modules/fwritable (Files): Likewise.
59184         * modules/fwriting (Files): Likewise.
59185
59186 2008-04-26  Bruno Haible  <bruno@clisp.org>
59187
59188         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59189         restore_seek_optimization, update_fpos_cache): New functions, extracted
59190         from rpl_fflush.
59191         (rpl_fflush): Use them.
59192         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
59193         (gl_REPLACE_FFLUSH): Use it.
59194
59195 2008-04-26  Bruno Haible  <bruno@clisp.org>
59196
59197         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
59198         on Solaris.
59199         * tests/test-xstrtoimax.sh: Likewise.
59200         * tests/test-xstrtoumax.sh: Likewise.
59201         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59202
59203 2008-04-26  Bruno Haible  <bruno@clisp.org>
59204
59205         * modules/memchr-tests: New file.
59206         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
59207
59208 2008-04-26  Eric Blake  <ebb9@byu.net>
59209             Bruno Haible  <bruno@clisp.org>
59210
59211         * lib/memchr.c: Include intprops.h.
59212         (__memchr): Optimize parallel detection of matching bytes. Rename local
59213         variables. Add explanatory comments.
59214
59215 2008-04-26  Bruno Haible  <bruno@clisp.org>
59216
59217         Fix module 'memchr', broken since 2000-10-28.
59218         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
59219
59220 2008-04-26  Bruno Haible  <bruno@clisp.org>
59221
59222         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
59223         comments.
59224
59225 2008-04-25  Eric Blake  <ebb9@byu.net>
59226
59227         Use native fstatat on cygwin 1.7.0.
59228         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
59229         first.
59230
59231 2008-04-23  Eric Blake  <ebb9@byu.net>
59232
59233         Improve memchr2 performance.
59234         * lib/memchr2.c (memchr2): Further optimize parallel detection of
59235         NUL bytes.
59236         * modules/memchr2 (Depends-on): Use intprops.h.
59237
59238 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59239
59240         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
59241         an inline function instead of a CPP macro.  Patch by Ben Pfaff
59242         <blp@cs.stanford.edu>.
59243
59244 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59245
59246         * lib/arpa_inet.in.h: New file.
59247
59248         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
59249         (Makefile.am): Sed in substitute header file.
59250
59251         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
59252         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
59253
59254         * modules/inet_ntop (configure.ac): Use
59255         gl_ARPA_INET_MODULE_INDICATOR.
59256
59257         * modules/inet_pton (configure.ac): Use
59258         gl_ARPA_INET_MODULE_INDICATOR.
59259
59260 2008-04-22  Jim Meyering  <meyering@redhat.com>
59261
59262         * modules/verify (License): Re-license as LGPLv2+.
59263
59264 2008-04-22  Simon Josefsson  <simon@josefsson.org>
59265
59266         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
59267         parameter to void* as per POSIX standard (MinGW uses char*).
59268
59269 2008-04-21  Bruno Haible  <bruno@clisp.org>
59270
59271         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59272         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59273         Define to replacements if REPLACE_ISWCNTRL is 1.
59274         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
59275         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
59276         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
59277         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
59278         what it fixes.
59279         * doc/posix-functions/iswalpha.texi: Likewise.
59280         * doc/posix-functions/iswblank.texi: Likewise.
59281         * doc/posix-functions/iswcntrl.texi: Likewise.
59282         * doc/posix-functions/iswdigit.texi: Likewise.
59283         * doc/posix-functions/iswgraph.texi: Likewise.
59284         * doc/posix-functions/iswlower.texi: Likewise.
59285         * doc/posix-functions/iswprint.texi: Likewise.
59286         * doc/posix-functions/iswpunct.texi: Likewise.
59287         * doc/posix-functions/iswspace.texi: Likewise.
59288         * doc/posix-functions/iswupper.texi: Likewise.
59289         * doc/posix-functions/iswxdigit.texi: Likewise.
59290         Reported by Alain Guibert.
59291
59292 2008-04-21  Bruno Haible  <bruno@clisp.org>
59293
59294         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
59295         Patch by Alain Guibert.
59296
59297 2008-04-21  Bruno Haible  <bruno@clisp.org>
59298
59299         Fix test failures on mingw.
59300         * tests/test-xstrtol.c (print_no_progname): New function.
59301         (main): Install it in error_print_progname hook.
59302         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
59303         * tests/test-xstrtoimax.sh: Likewise.
59304         * tests/test-xstrtoumax.sh: Likewise.
59305
59306 2008-04-21  Bruno Haible  <bruno@clisp.org>
59307
59308         Fix test failure on mingw.
59309         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
59310
59311 2008-04-21  Bruno Haible  <bruno@clisp.org>
59312
59313         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
59314         Actually assign a value.
59315
59316 2008-04-20  Bruno Haible  <bruno@clisp.org>
59317
59318         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
59319         take 2.
59320         * lib/canonicalize.c (canonicalize_file_name): Elide if the
59321         'canonicalize-lgpl' module is also used.
59322         * lib/canonicalize-lgpl.c: Undo last change.
59323         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
59324
59325 2008-04-20  Bruno Haible  <bruno@clisp.org>
59326
59327         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
59328         config.h. Provide _mkdir based fallback for mingw.
59329         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
59330         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
59331         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
59332         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
59333         rather than defining mkdir in config.h.
59334         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
59335         (gl_SYS_STAT_H_DEFAULTS): New macro.
59336         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
59337         HAVE_IO_H any more.
59338         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
59339         HAVE_DECL_MKDIR and HAVE_IO_H.
59340
59341 2008-04-20  Bruno Haible  <bruno@clisp.org>
59342
59343         * lib/isapipe.c: Port to native Windows platforms.
59344
59345 2008-04-20  Bruno Haible  <bruno@clisp.org>
59346
59347         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
59348
59349 2008-04-21  Eric Blake  <ebb9@byu.net>
59350
59351         Work around preprocessors that don't handle UINTMAX_MAX.
59352         * lib/memchr2.c (memchr2): Avoid embedded #if.
59353         Reported by Alain Guibert, fix suggested by Bruno Haible.
59354
59355 2008-04-21  Simon Josefsson  <simon@josefsson.org>
59356
59357         * doc/posix-functions/strftime.texi (strftime): Explain better
59358         Windows incompatibility.  Suggested by Micah Cowan
59359         <micah@cowan.name>.
59360
59361 2008-04-20  Bruno Haible  <bruno@clisp.org>
59362
59363         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
59364         unistr/u8-mblen.
59365
59366 2008-04-20  Bruno Haible  <bruno@clisp.org>
59367
59368         Fix test failure on platforms with non-GNU iconv.
59369         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
59370         (U_TO_U8): Use it, rather than u16_to_u8.
59371         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
59372         units at the end of the input string.
59373         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
59374
59375 2008-04-20  Bruno Haible  <bruno@clisp.org>
59376
59377         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
59378         when the resulting length is 0.
59379         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
59380
59381 2008-04-20  Bruno Haible  <bruno@clisp.org>
59382
59383         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
59384         works.
59385         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
59386
59387 2008-04-20  Bruno Haible  <bruno@clisp.org>
59388
59389         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
59390         * modules/tsearch-tests (configure.ac): Test for initstate function.
59391
59392 2008-04-20  Bruno Haible  <bruno@clisp.org>
59393
59394         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
59395         for nlink_t if missing.
59396         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
59397
59398 2008-04-19  Bruno Haible  <bruno@clisp.org>
59399
59400         Work around snprintf bug on Linux libc5.
59401         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
59402         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59403         gl_SNPRINTF_SIZE1.
59404         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59405         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
59406         that test failed.
59407         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
59408         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
59409         * modules/snprintf (Files): Add m4/printf.m4.
59410         * modules/vsnprintf (Files): Likewise.
59411         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
59412         * doc/posix-functions/vsnprintf.texi: Likewise.
59413
59414 2008-04-19  Bruno Haible  <bruno@clisp.org>
59415
59416         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
59417         from 0.0058 to less than 10^-7.
59418
59419 2008-04-19  Bruno Haible  <bruno@clisp.org>
59420
59421         Fix rounding when a precision is given.
59422         * lib/vasnprintf.c (is_borderline): New function.
59423         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
59424         9...9x.
59425         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
59426         %e, %g.
59427         * tests/test-vasprintf-posix.c (test_function): Likewise.
59428         * tests/test-snprintf-posix.h (test_function): Likewise.
59429         * tests/test-sprintf-posix.h (test_function): Likewise.
59430         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
59431         * tests/test-printf-posix.h (test_function): Likewise.
59432         * tests/test-printf-posix.output: Update.
59433         Reported by John Darrington <john@darrington.wattle.id.au> via
59434         Ben Pfaff <blp@cs.stanford.edu>.
59435
59436 2008-04-18  Simon Josefsson  <simon@josefsson.org>
59437
59438         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
59439         Suggested by Bruno Haible <bruno@clisp.org>.
59440
59441 2008-04-17  Bruno Haible  <bruno@clisp.org>
59442
59443         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
59444         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
59445         implementation.
59446         Patch by Bruce Merry <bmerry@gmail.com>.
59447
59448 2008-04-17  Simon Josefsson  <simon@josefsson.org>
59449
59450         * doc/posix-functions/strftime.texi (strftime): Mention that %e
59451         doesn't work under Windows.
59452
59453 2008-04-16  Bruno Haible  <bruno@clisp.org>
59454
59455         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
59456         New macros.
59457         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
59458         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
59459         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
59460         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
59461         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
59462         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
59463         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
59464         macros.
59465         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
59466         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
59467         Northern Sotho, Uighur.
59468
59469 2008-04-16  Bruno Haible  <bruno@clisp.org>
59470
59471         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
59472         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
59473         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
59474         Reported by Daniel Bergström <daniel@octocode.com>.
59475
59476 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
59477             Bruno Haible  <bruno@clisp.org>
59478
59479         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
59480         function.
59481         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
59482         New functions, mostly extracted from gl_locale_name_default.
59483         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
59484
59485 2008-04-16  Eric Blake  <ebb9@byu.net>
59486
59487         Adjust strtod detection to catch glibc 2.7 bug.
59488         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
59489         Reported by John Gatewood Ham.
59490
59491 2008-04-16  Bruno Haible  <bruno@clisp.org>
59492
59493         Add tentative support for Linux libc5.
59494         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
59495         * lib/fpurge.c (fpurge): Likewise.
59496         * lib/freadable.c (freadable): Likewise.
59497         * lib/freadahead.c (freadahead): Likewise.
59498         * lib/freading.c (freading): Likewise.
59499         * lib/freadptr.c (freadptr): Likewise.
59500         * lib/freadseek.c (freadptrinc): Likewise.
59501         * lib/fseeko.c (rpl_fseeko): Likewise.
59502         * lib/fseterr.c (fseterr): Likewise.
59503         * lib/fwritable.c (fwritable): Likewise.
59504         * lib/fwriting.c (fwriting): Likewise.
59505         Reported by Alain Guibert <alguibert+bts@free.fr>.
59506
59507 2008-04-15  Bruno Haible  <bruno@clisp.org>
59508
59509         * modules/mathl (configure.ac): Define module indicator.
59510
59511 2008-04-15  Bruno Haible  <bruno@clisp.org>
59512
59513         * lib/logl.c (logl): Remove unused variables.
59514
59515 2008-04-15  Bruno Haible  <bruno@clisp.org>
59516
59517         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
59518         fails.
59519
59520 2008-04-15  Bruno Haible  <bruno@clisp.org>
59521
59522         * lib/trim.c (trim2): Fix argument of isspace() macro.
59523
59524 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
59525
59526         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
59527         to 0.
59528         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
59529
59530 2008-04-14  Bruno Haible  <bruno@clisp.org>
59531
59532         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
59533         AC_LANG_PROGRAM argument.
59534         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
59535         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
59536         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59537         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59538         * m4/math_h.m4 (gl_MATH_H): Likewise.
59539         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
59540         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59541         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59542         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
59543         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59544         * m4/regex.m4 (gl_REGEX): Likewise.
59545         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
59546         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
59547         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59548         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
59549         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59550         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59551         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59552         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59553
59554 2008-04-14  Jim Meyering  <meyering@redhat.com>
59555
59556         test-strtod: fix typos: s/abs/fabs/
59557         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
59558
59559 2008-04-13  Bruno Haible  <bruno@clisp.org>
59560
59561         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
59562         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
59563         module is also used and while not building the reloc-wrapper.
59564
59565 2008-04-13  Bruno Haible  <bruno@clisp.org>
59566
59567         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
59568
59569 2008-04-13  Bruno Haible  <bruno@clisp.org>
59570
59571         Fix AIX compilation failure introduced on 2008-04-02.
59572         * tests/test-frexp.c (exp): Undefine before redefining.
59573         * tests/test-frexpl.c (exp): Likewise.
59574
59575 2008-04-13  Bruno Haible  <bruno@clisp.org>
59576
59577         Work around a HP-UX stdio bug.
59578         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
59579         * tests/test-ftello.c (main): Likewise.
59580         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
59581         * doc/posix-functions/ftello.texi: Likewise.
59582
59583 2008-04-13  Bruno Haible  <bruno@clisp.org>
59584
59585         Make test-signbit pass on HP-UX/hppa.
59586         * tests/test-signbit.c (minus_zerol): New variable.
59587         (test_signbitl): Use it.
59588
59589 2008-04-13  Bruno Haible  <bruno@clisp.org>
59590
59591         Make truncl work on OSF/1 4.0.
59592         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
59593         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59594         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59595         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
59596         HAVE_DECL_TRUNCL.
59597         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
59598         HAVE_DECL_TRUNCL.
59599         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
59600
59601 2008-04-13  Bruno Haible  <bruno@clisp.org>
59602
59603         * lib/unictype.h: Remove trailing comma from enumeration definitions.
59604
59605 2008-04-13  Bruno Haible  <bruno@clisp.org>
59606
59607         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
59608         expression, so as to avoid HP-UX 11 cc compiler bug.
59609
59610 2008-04-13  Bruno Haible  <bruno@clisp.org>
59611
59612         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
59613
59614 2008-04-13  Bruno Haible  <bruno@clisp.org>
59615
59616         * lib/git-merge-changelog.c: Remove empty declaration outside of
59617         functions.
59618
59619 2008-04-13  Bruno Haible  <bruno@clisp.org>
59620
59621         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
59622
59623 2008-04-13  Bruno Haible  <bruno@clisp.org>
59624
59625         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
59626         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
59627         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
59628         also if it exists but lacks definitions of the SHUT_* macros.
59629         * modules/sys_socket (Description): Update.
59630         Reported by Elbert Pol <e.pol@chello.nl>.
59631
59632 2008-04-13  Bruno Haible  <bruno@clisp.org>
59633
59634         * lib/localcharset.c (OS2): Don't redefine if already defined.
59635         Reported by Elbert Pol <e.pol@chello.nl>.
59636
59637 2008-04-13  Bruno Haible  <bruno@clisp.org>
59638
59639         * lib/binary-io.h [__EMX__]: Include <io.h>.
59640         Reported by Elbert Pol <e.pol@chello.nl>.
59641
59642 2008-04-12  Bruno Haible  <bruno@clisp.org>
59643
59644         * lib/fpucw.h: Enable the definitions also for x86_64.
59645         Needed for NetBSD/x86_64.
59646         Reported by Thomas Klausner <tk@giga.or.at>.
59647
59648 2008-04-12  Bruno Haible  <bruno@clisp.org>
59649
59650         * tests/test-strtod.c: Include isnand.h.
59651         (main): Use isnand instead of isnan.
59652         Reported by Jim Meyering.
59653
59654 2008-04-12  Bruno Haible  <bruno@clisp.org>
59655
59656         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
59657         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59658
59659 2008-04-12  Jim Meyering  <meyering@redhat.com>
59660
59661         * m4/math_h.m4 (gl_MATH_H): Fix typos.
59662
59663 2008-04-12  Bruno Haible  <bruno@clisp.org>
59664
59665         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
59666         Reported by Elbert Pol <e.pol@chello.nl>.
59667
59668 2008-04-12  Eric Blake  <ebb9@byu.net>
59669
59670         Work around Solaris 10 math.h bug.
59671         * m4/math_h.m4 (gl_MATH_H): Check for bug.
59672         (gl_MATH_H_DEFAULTS): Set up default.
59673         * modules/math (Makefile.am): Replace new indicators.
59674         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
59675         * tests/test-math.c (main): Test this.
59676         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
59677         * doc/posix-headers/math.texi (math.h): Mention bug.
59678         Reported by Nelson H. F. Beebe and Jim Meyering.
59679
59680 2008-04-11  Bruno Haible  <bruno@clisp.org>
59681
59682         Adapt to future versions of Apple GCC.
59683         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
59684         Reported by Peter O'Gorman <peter@pogma.com>.
59685
59686 2008-04-11  Bruno Haible  <bruno@clisp.org>
59687
59688         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
59689
59690 2008-04-11  Bruno Haible  <bruno@clisp.org>
59691
59692         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
59693
59694         * modules/getaddrinfo-tests (Makefile.am): Define
59695         test_getaddrinfo_LDADD.
59696
59697 2008-04-11  Bruno Haible  <bruno@clisp.org>
59698
59699         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
59700         (init): Fix syntax error.
59701         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
59702         is declared.
59703
59704 2008-04-11  Bruno Haible  <bruno@clisp.org>
59705
59706         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
59707         * modules/glob (Depends-on): Add stdbool.
59708
59709 2008-04-11  Bruno Haible  <bruno@clisp.org>
59710
59711         * lib/trim.c: Include <string.h>.
59712
59713 2008-04-11  Eric Blake  <ebb9@byu.net>
59714
59715         Avoid compile failure on OS/2.
59716         * lib/regex_internal.h (internal_function): Disable optimization
59717         on OS/2 (__EMX__), where it caused compiler error.
59718         Reported by Elbert Pol.
59719
59720 2008-04-11  Bruno Haible  <bruno@clisp.org>
59721
59722         Flush the standard error stream before aborting. Needed on mingw.
59723         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
59724         * tests/test-array_list.c (ASSERT): Likewise.
59725         * tests/test-array_oset.c (ASSERT): Likewise.
59726         * tests/test-avltree_list.c (ASSERT): Likewise.
59727         * tests/test-avltree_oset.c (ASSERT): Likewise.
59728         * tests/test-avltreehash_list.c (ASSERT): Likewise.
59729         * tests/test-binary-io.c (ASSERT): Likewise.
59730         * tests/test-byteswap.c (ASSERT): Likewise.
59731         * tests/test-c-ctype.c (ASSERT): Likewise.
59732         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
59733         * tests/test-c-strcasestr.c (ASSERT): Likewise.
59734         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
59735         * tests/test-c-strstr.c (ASSERT): Likewise.
59736         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
59737         * tests/test-canonicalize.c (ASSERT): Likewise.
59738         * tests/test-carray_list.c (ASSERT): Likewise.
59739         * tests/test-ceilf1.c (ASSERT): Likewise.
59740         * tests/test-ceilf2.c (ASSERT): Likewise.
59741         * tests/test-ceill.c (ASSERT): Likewise.
59742         * tests/test-count-one-bits.c (ASSERT): Likewise.
59743         * tests/test-fbufmode.c (ASSERT): Likewise.
59744         * tests/test-fflush2.c (ASSERT): Likewise.
59745         * tests/test-floorf1.c (ASSERT): Likewise.
59746         * tests/test-floorf2.c (ASSERT): Likewise.
59747         * tests/test-floorl.c (ASSERT): Likewise.
59748         * tests/test-fopen.c (ASSERT): Likewise.
59749         * tests/test-fpending.c (ASSERT): Likewise.
59750         * tests/test-fprintf-posix.c (ASSERT): Likewise.
59751         * tests/test-fpurge.c (ASSERT): Likewise.
59752         * tests/test-freadable.c (ASSERT): Likewise.
59753         * tests/test-freadahead.c (ASSERT): Likewise.
59754         * tests/test-freading.c (ASSERT): Likewise.
59755         * tests/test-freadptr.c (ASSERT): Likewise.
59756         * tests/test-freadptr2.c (ASSERT): Likewise.
59757         * tests/test-freadseek.c (ASSERT): Likewise.
59758         * tests/test-freopen.c (ASSERT): Likewise.
59759         * tests/test-frexp.c (ASSERT): Likewise.
59760         * tests/test-frexpl.c (ASSERT): Likewise.
59761         * tests/test-fseek.c (ASSERT): Likewise.
59762         * tests/test-fseeko.c (ASSERT): Likewise.
59763         * tests/test-fstrcmp.c (ASSERT): Likewise.
59764         * tests/test-ftell.c (ASSERT): Likewise.
59765         * tests/test-ftello.c (ASSERT): Likewise.
59766         * tests/test-func.c (ASSERT): Likewise.
59767         * tests/test-fwritable.c (ASSERT): Likewise.
59768         * tests/test-fwriting.c (ASSERT): Likewise.
59769         * tests/test-getdelim.c (ASSERT): Likewise.
59770         * tests/test-getline.c (ASSERT): Likewise.
59771         * tests/test-i-ring.c (ASSERT): Likewise.
59772         * tests/test-iconv-utf.c (ASSERT): Likewise.
59773         * tests/test-iconv.c (ASSERT): Likewise.
59774         * tests/test-isfinite.c (ASSERT): Likewise.
59775         * tests/test-isnand.c (ASSERT): Likewise.
59776         * tests/test-isnanf.c (ASSERT): Likewise.
59777         * tests/test-isnanl.h (ASSERT): Likewise.
59778         * tests/test-ldexpl.c (ASSERT): Likewise.
59779         * tests/test-linked_list.c (ASSERT): Likewise.
59780         * tests/test-linkedhash_list.c (ASSERT): Likewise.
59781         * tests/test-localename.c (ASSERT): Likewise.
59782         * tests/test-lseek.c (ASSERT): Likewise.
59783         * tests/test-mbscasecmp.c (ASSERT): Likewise.
59784         * tests/test-mbscasestr1.c (ASSERT): Likewise.
59785         * tests/test-mbscasestr2.c (ASSERT): Likewise.
59786         * tests/test-mbscasestr3.c (ASSERT): Likewise.
59787         * tests/test-mbscasestr4.c (ASSERT): Likewise.
59788         * tests/test-mbschr.c (ASSERT): Likewise.
59789         * tests/test-mbscspn.c (ASSERT): Likewise.
59790         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
59791         * tests/test-mbspbrk.c (ASSERT): Likewise.
59792         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
59793         * tests/test-mbsrchr.c (ASSERT): Likewise.
59794         * tests/test-mbsspn.c (ASSERT): Likewise.
59795         * tests/test-mbsstr1.c (ASSERT): Likewise.
59796         * tests/test-mbsstr2.c (ASSERT): Likewise.
59797         * tests/test-mbsstr3.c (ASSERT): Likewise.
59798         * tests/test-memchr2.c (ASSERT): Likewise.
59799         * tests/test-memmem.c (ASSERT): Likewise.
59800         * tests/test-open.c (ASSERT): Likewise.
59801         * tests/test-printf-frexp.c (ASSERT): Likewise.
59802         * tests/test-printf-frexpl.c (ASSERT): Likewise.
59803         * tests/test-printf-posix.c (ASSERT): Likewise.
59804         * tests/test-quotearg.c (ASSERT): Likewise.
59805         * tests/test-rbtree_list.c (ASSERT): Likewise.
59806         * tests/test-rbtree_oset.c (ASSERT): Likewise.
59807         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
59808         * tests/test-round1.c (ASSERT): Likewise.
59809         * tests/test-roundf1.c (ASSERT): Likewise.
59810         * tests/test-roundl.c (ASSERT): Likewise.
59811         * tests/test-signbit.c (ASSERT): Likewise.
59812         * tests/test-sleep.c (ASSERT): Likewise.
59813         * tests/test-snprintf-posix.c (ASSERT): Likewise.
59814         * tests/test-snprintf.c (ASSERT): Likewise.
59815         * tests/test-sprintf-posix.c (ASSERT): Likewise.
59816         * tests/test-stat-time.c (ASSERT): Likewise.
59817         * tests/test-strcasestr.c (ASSERT): Likewise.
59818         * tests/test-strerror.c (ASSERT): Likewise.
59819         * tests/test-striconv.c (ASSERT): Likewise.
59820         * tests/test-striconveh.c (ASSERT): Likewise.
59821         * tests/test-striconveha.c (ASSERT): Likewise.
59822         * tests/test-strsignal.c (ASSERT): Likewise.
59823         * tests/test-strstr.c (ASSERT): Likewise.
59824         * tests/test-strtod.c (ASSERT): Likewise.
59825         * tests/test-trunc1.c (ASSERT): Likewise.
59826         * tests/test-trunc2.c (ASSERT): Likewise.
59827         * tests/test-truncf1.c (ASSERT): Likewise.
59828         * tests/test-truncf2.c (ASSERT): Likewise.
59829         * tests/test-truncl.c (ASSERT): Likewise.
59830         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
59831         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
59832         * tests/test-vasnprintf.c (ASSERT): Likewise.
59833         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
59834         * tests/test-vasprintf.c (ASSERT): Likewise.
59835         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
59836         * tests/test-vprintf-posix.c (ASSERT): Likewise.
59837         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
59838         * tests/test-vsnprintf.c (ASSERT): Likewise.
59839         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
59840         * tests/test-wcwidth.c (ASSERT): Likewise.
59841         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
59842         * tests/test-xprintf-posix.c (ASSERT): Likewise.
59843         * tests/test-xvasprintf.c (ASSERT): Likewise.
59844         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
59845         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
59846         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
59847         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
59848         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
59849         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
59850         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
59851         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
59852         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
59853         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
59854         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
59855         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
59856         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
59857         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
59858         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
59859         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
59860         * tests/unictype/test-block_list.c (ASSERT): Likewise.
59861         * tests/unictype/test-block_of.c (ASSERT): Likewise.
59862         * tests/unictype/test-block_test.c (ASSERT): Likewise.
59863         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
59864         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
59865         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
59866         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
59867         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
59868         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
59869         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
59870         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
59871         * tests/unictype/test-combining.c (ASSERT): Likewise.
59872         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
59873         * tests/unictype/test-digit.c (ASSERT): Likewise.
59874         * tests/unictype/test-mirror.c (ASSERT): Likewise.
59875         * tests/unictype/test-numeric.c (ASSERT): Likewise.
59876         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
59877         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
59878         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
59879         * tests/unictype/test-scripts.c (ASSERT): Likewise.
59880         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
59881         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
59882         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
59883         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
59884         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
59885         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
59886         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
59887         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
59888         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
59889         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
59890         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
59891         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
59892         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
59893         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
59894         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
59895         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
59896         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
59897         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
59898         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
59899         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
59900         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
59901         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
59902         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
59903         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
59904         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
59905         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
59906         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
59907         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
59908         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
59909         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
59910         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
59911         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
59912         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
59913         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
59914         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
59915         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
59916         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
59917         Reported by Eric Blake.
59918
59919 2008-04-11  Bruno Haible  <bruno@clisp.org>
59920
59921         * lib/wchar.in.h: Tweak comment.
59922
59923 2008-04-11  Bruno Haible  <bruno@clisp.org>
59924
59925         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
59926         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
59927         gl_COMMON.
59928         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
59929
59930 2008-04-11  Bruno Haible  <bruno@clisp.org>
59931
59932         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
59933
59934 2008-04-11  Simon Josefsson  <simon@josefsson.org>
59935
59936         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
59937         of attempting to use non-existing /dev/*random.  Based on patch
59938         from Adam Strzelecki <ono@java.pl> in
59939         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
59940
59941 2008-04-08  Bruno Haible  <bruno@clisp.org>
59942
59943         Add tentative support for emx+gcc.
59944         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
59945         * lib/fpurge.c (fpurge): Likewise.
59946         * lib/freadable.c (freadable): Likewise.
59947         * lib/freadahead.c (freadahead): Likewise.
59948         * lib/freading.c (freading): Likewise.
59949         * lib/freadptr.c (freadptr): Likewise.
59950         * lib/freadseek.c (freadptrinc): Likewise.
59951         * lib/fseeko.c (rpl_fseeko): Likewise.
59952         * lib/fseterr.c (fseterr): Likewise.
59953         * lib/fwritable.c (fwritable): Likewise.
59954         * lib/fwriting.c (fwriting): Likewise.
59955         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
59956
59957 2008-04-09  Eric Blake  <ebb9@byu.net>
59958
59959         Avoid some autoconf warnings.
59960         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
59961         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
59962         * m4/afs.m4 (gl_AFS): Likewise.
59963         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
59964         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
59965         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59966         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
59967         (gl_INTEGER_TYPE_SUFFIX): Likewise.
59968         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
59969         (AC_CHECK_DECLS_ONCE): Likewise.
59970         Rename file...
59971         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
59972         gnulib-tool requires autoconf 2.59 or better.
59973         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
59974
59975 2008-04-08  Eric Blake  <ebb9@byu.net>
59976
59977         Use 'git describe --match' if present (added in git 1.5.5).
59978         * build-aux/git-version-gen: Limit result to tags that match 'v*'
59979         if possible.
59980
59981 2008-04-08  Bruno Haible  <bruno@clisp.org>
59982
59983         Add tentative support for OpenServer.
59984         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
59985         _ptr, _cnt.
59986         * lib/fpurge.c (fpurge): Likewise.
59987         * lib/freadable.c (freadable): Likewise.
59988         * lib/freadahead.c (freadahead): Likewise.
59989         * lib/freading.c (freading): Likewise.
59990         * lib/freadptr.c (freadptr): Likewise.
59991         * lib/freadseek.c (freadptrinc): Likewise.
59992         * lib/fseeko.c (rpl_fseeko): Likewise.
59993         * lib/fseterr.c (fseterr): Likewise.
59994         * lib/fwritable.c (fwritable): Likewise.
59995         * lib/fwriting.c (fwriting): Likewise.
59996         Reported by Roger Cornelius <rac@tenzing.org> and
59997         Brian K. White <brian@aljex.com>.
59998
59999 2008-04-06  Jim Meyering  <meyering@redhat.com>
60000
60001         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
60002
60003 2008-04-06  Bruno Haible  <bruno@clisp.org>
60004
60005         Avoid possible error with non-ASCII bytes in UTF-8 locales.
60006         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
60007         * tests/test-printf-posix.sh: Likewise.
60008         * tests/test-vfprintf-posix.sh: Likewise.
60009         * tests/test-vprintf-posix.sh: Likewise.
60010         * tests/test-xprintf-posix.sh: Likewise.
60011
60012 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60013
60014         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
60015         hide error from 'ls', needed on OS/2.
60016         Report by Elbert Pol <elbert.pol@gmail.com>.
60017
60018 2008-04-04  Eric Blake  <ebb9@byu.net>
60019
60020         Make test-fseeko.c failures meaningful.
60021         * tests/test-fseeko.c: Print line number on failure.
60022         * tests/test-fseek.c: Likewise.
60023         Reported by Nelson H. F. Beebe.
60024
60025         Improve strtod bug detection check.
60026         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
60027         required for Solaris 10.
60028         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
60029
60030 2008-04-04  Bruno Haible  <bruno@clisp.org>
60031
60032         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
60033         by m4/setenv.m4.
60034
60035 2008-04-03  Eric Blake  <ebb9@byu.net>
60036
60037         Ensure sane .version contents.
60038         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
60039         version string.
60040         * build-aux/git-version-gen: Improve documentation.
60041
60042         Make GNU make output nicer.
60043         * top/GNUmakefile [!_have-Makefile]: Add dependency on
60044         MAKECMDGOALS to enforce message for all command line targets.  Set
60045         srcdir for use in maint.mk.
60046
60047         Another maintainer tweak.
60048         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
60049         a target that regenerates version.
60050
60051 2008-04-03  Jim Meyering  <meyering@redhat.com>
60052
60053         vc-list-files: don't cause coreutils "make po-check" failure
60054         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
60055
60056 2008-04-03  Eric Blake  <ebb9@byu.net>
60057
60058         Allow VPATH usage of vc-list-files.
60059         * build-aux/vc-list-files (scriptversion): Add timestamp.
60060         (options): Add --help, --version, -C.
60061         (CVS): Support installed cvsu.
60062
60063 2008-04-02  Bruno Haible  <bruno@clisp.org>
60064
60065         Avoid some "statement with no effect" warnings from gcc.
60066         * tests/test-wctype.c (main): Explicitly ignore unused values.
60067         Reported by Jim Meyering.
60068
60069 2008-04-02  Jim Meyering  <meyering@redhat.com>
60070
60071         Avoid some warnings from "gcc -Wshadow".
60072         * tests/test-frexp.c (exp): Define to a different identifier.
60073         * tests/test-frexpl.c (exp): Likewise.
60074
60075 2008-04-03  Jim Meyering  <meyering@redhat.com>
60076
60077         bootstrap: remove dangling *.[ch] symlinks from lib
60078         * build-aux/bootstrap [dangling symlink removal]: Move find's
60079         -depth option to precede all others, to avoid a warning.
60080         Remove *.[ch] files too, and from "$source_base" (usually lib/).
60081
60082 2008-04-02  Bruno Haible  <bruno@clisp.org>
60083
60084         Avoid some warnings from "gcc -Wshadow".
60085         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
60086         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
60087         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
60088         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
60089         Reported by Jim Meyering.
60090
60091 2008-04-01  Bruno Haible  <bruno@clisp.org>
60092
60093         Fix test to work on IRIX 6.5 with cc.
60094         * tests/test-math.c (numeric_equal): New function.
60095         (main): Use it.
60096
60097 2008-04-01  Bruno Haible  <bruno@clisp.org>
60098
60099         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
60100
60101 2008-04-01  Bruno Haible  <bruno@clisp.org>
60102
60103         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
60104         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60105         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
60106         (Depends-on): Remove math.
60107
60108         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
60109         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60110         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
60111         (Depends-on): Remove math.
60112
60113         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
60114         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60115         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
60116         (Depends-on): Remove math.
60117         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
60118         (Depends-on): Remove math.
60119
60120         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
60121         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60122         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
60123         (Depends-on): Remove math.
60124         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
60125         (Depends-on): Remove math.
60126
60127         * tests/test-round1.c: Include nan.h.
60128         (main): Use NaNd instead of NAN.
60129         * modules/round-tests (Files): Add tests/nan.h.
60130
60131         * tests/test-trunc1.c: Include nan.h.
60132         (main): Use NaNd instead of NAN.
60133         * modules/trunc-tests (Files): Add tests/nan.h.
60134
60135         * tests/test-roundf1.c: Include nan.h.
60136         (main): Use NaNf instead of NAN.
60137         * modules/roundf-tests (Files): Add tests/nan.h.
60138
60139         * tests/test-truncf1.c: Include nan.h.
60140         (main): Use NaNf instead of NAN.
60141         * modules/truncf-tests (Files): Add tests/nan.h.
60142
60143         * tests/test-ceilf1.c: Include nan.h.
60144         (main): Use NaNf instead of NAN.
60145         * modules/ceilf-tests (Files): Add tests/nan.h.
60146
60147         * tests/test-floorf1.c: Include nan.h.
60148         (main): Use NaNf instead of NAN.
60149         * modules/floorf-tests (Files): Add tests/nan.h.
60150
60151         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
60152         (main): Use NaNf instead of NAN.
60153         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
60154
60155         * tests/test-isnand.c: Include nan.h instead of <math.h>.
60156         (main): Use NaNd instead of NAN.
60157         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
60158
60159         * tests/test-frexp.c: Include nan.h.
60160         (main): Use NaNd instead of NAN.
60161         * modules/frexp-tests (Files): Add tests/nan.h.
60162
60163         * lib/isnan.c: Don't include <math.h>.
60164         (FUNC): Don't use NAN macro.
60165         * modules/isnand-nolibm (Depends-on): Remove math.
60166         * modules/isnanf-nolibm (Depends-on): Remove math.
60167         * modules/isnanl (Depends-on): Remove math.
60168         * modules/isnanl-nolibm (Depends-on): Remove math.
60169
60170         * tests/nan.h: New file.
60171
60172 2008-04-01  Eric Blake  <ebb9@byu.net>
60173
60174         Fix typos.
60175         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
60176         values to be the right type.
60177
60178         For now, cater to gnulib strtod inaccuracies.
60179         * tests/test-strtod.c (main): Allow 1-ulp error on expected
60180         fractional results.  While not as nice from a QoI perspective, it
60181         is a quicker patch than correctly implementing decimal to binary
60182         rounding.
60183
60184 2008-03-31  Eric Blake  <ebb9@byu.net>
60185
60186         Guarantee a definition of NAN.
60187         * lib/math.in.h (NAN): Define if missing.
60188         * tests/test-math.c (main): Test it.
60189         * doc/posix-headers/math.texi (math.h): Document this.
60190         * lib/isnan.c (rpl_isnand): Use it.
60191         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
60192         * tests/test-floorf1.c (NaN): Likewise.
60193         * tests/test-frexp.c (NaN): Likewise.
60194         * tests/test-isnand.c (NaN): Likewise.
60195         * tests/test-isnanf.c (NaN): Likewise.
60196         * tests/test-round1.c (NaN): Likewise.
60197         * tests/test-roundf1.c (NaN): Likewise.
60198         * tests/test-snprintf-posix.h (NaN): Likewise.
60199         * tests/test-sprintf-posix.h (NaN): Likewise.
60200         * tests/test-trunc1.c (NaN): Likewise.
60201         * tests/test-truncf1.c (NaN): Likewise.
60202         * tests/test-vasnprintf-posix.c (NaN): Likewise.
60203         * tests/test-vasprintf-posix.c (NaN): Likewise.
60204         * modules/isnand-nolibm (Depends-on): Add math.
60205         * modules/isnanf-nolibm (Depends-on): Likewise.
60206         * modules/isnanl (Depends-on): Likewise.
60207         * modules/isnanl-nolibm (Depends-on): Likewise.
60208         * modules/snprintf-posix-tests (Depends-on): Likewise.
60209         * modules/sprintf-posix-tests (Depends-on): Likewise.
60210         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
60211         * modules/vsprintf-posix-tests (Depends-on): Likewise.
60212         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
60213         * modules/vasprintf-posix-tests (Depends-on): Likewise.
60214
60215 2008-03-31  Bruno Haible  <bruno@clisp.org>
60216
60217         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
60218         * doc/posix-functions/strtod.texi: Likewise.
60219
60220 2008-03-31  Bruno Haible  <bruno@clisp.org>
60221
60222         * tests/test-strtod.c (main): Don't use C99 syntax.
60223
60224 2008-03-31  Bruno Haible  <bruno@clisp.org>
60225
60226         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
60227         Reported by Eric Blake.
60228
60229 2008-03-31  Jim Meyering  <meyering@redhat.com>
60230
60231         Don't compare actual signbit return values.
60232         * tests/test-strtod.c (main): Rather, compare only their
60233         zero/non-zero nature.
60234
60235 2008-03-31  Eric Blake  <ebb9@byu.net>
60236
60237         More strtod documentation.
60238         * doc/posix-functions/strtod.texi (strtod): Interpret more test
60239         failures as distinct bugs.
60240
60241 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60242
60243         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
60244         Problem reported by Erik Benada in
60245         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
60246
60247 2008-03-30  Bruno Haible  <bruno@clisp.org>
60248
60249         * tests/test-strtod.c: Add comments about which assertion fails on which
60250         platform.
60251         * doc/posix-functions/strtod.texi: Add info about many more platforms.
60252
60253 2008-03-30  Eric Blake  <ebb9@byu.net>
60254
60255         Test signbit behavior on zeros.
60256         * tests/test-signbit.c (test_signbitf): Add tests for zero.
60257         (test_signbitd, test_signbitl): Likewise.
60258
60259         More strtod touchups.
60260         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
60261         sign of negative underflow, for now.  Use .5, not .1.
60262         * doc/posix-functions/strtod.texi (strtod): Mention these
60263         limitations.
60264         Reported by Jim Meyering.
60265
60266 2008-03-30  Bruno Haible  <bruno@clisp.org>
60267
60268         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
60269         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
60270
60271 2008-03-30  Bruno Haible  <bruno@clisp.org>
60272
60273         Avoid failure when attempting to return empty iconv results on some
60274         platforms.
60275         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
60276         allocation, don't report ENOMEM when the resulting string is empty.
60277
60278 2008-03-30  Bruno Haible  <bruno@clisp.org>
60279
60280         Fix buffer overrun.
60281         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
60282         Don't consider the width for tmp_length. Check count against tmp_length
60283         before doing the padding. Ensure enough allocation during padding.
60284
60285 2008-03-30  Eric Blake  <ebb9@byu.net>
60286
60287         strtod touchups.
60288         * lib/strtod.c (strtod): Avoid compiler warnings.
60289         Reported by Jim Meyering.
60290
60291 2008-03-30  Bruno Haible  <bruno@clisp.org>
60292
60293         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
60294         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
60295         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
60296         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
60297         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
60298         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
60299         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
60300         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
60301
60302         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
60303         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
60304         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
60305         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
60306         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
60307         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
60308         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
60309         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
60310
60311         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
60312         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
60313         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
60314         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
60315         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
60316         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
60317         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
60318         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
60319
60320         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
60321         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
60322
60323         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
60324         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
60325
60326         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
60327         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
60328
60329         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
60330         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
60331         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
60332
60333         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
60334         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
60335         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
60336
60337         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
60338         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
60339         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
60340
60341         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
60342         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
60343         * modules/vasprintf (Depends-on): Add EOVERFLOW.
60344
60345         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
60346         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
60347         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
60348         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
60349         (Depends-on): Add EOVERFLOW.
60350         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
60351         (Depends-on): Add EOVERFLOW.
60352         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60353         (Depends-on): Add EOVERFLOW.
60354         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60355         (Depends-on): Add EOVERFLOW.
60356         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60357         (Depends-on): Add EOVERFLOW.
60358         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60359         (Depends-on): Add EOVERFLOW.
60360         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60361         (Depends-on): Add EOVERFLOW.
60362         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60363         (Depends-on): Add EOVERFLOW.
60364
60365         * lib/sprintf.c (EOVERFLOW): Remove fallback.
60366         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
60367         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
60368
60369         * lib/snprintf.c (EOVERFLOW): Remove fallback.
60370         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
60371         * modules/snprintf (Depends-on): Add EOVERFLOW.
60372
60373         * lib/poll.c (EOVERFLOW): Remove fallback.
60374         * modules/poll (Depends-on): Add EOVERFLOW.
60375
60376         * lib/getugroups.c (EOVERFLOW): Remove fallback.
60377         * modules/getugroups (Depends-on): Add EOVERFLOW.
60378
60379         * lib/getdelim.c (EOVERFLOW): Remove fallback.
60380         * modules/getdelim (Depends-on): Add EOVERFLOW.
60381
60382         * lib/ftell.c (EOVERFLOW): Remove fallback.
60383         * modules/ftell (Depends-on): Add EOVERFLOW.
60384
60385         * lib/fprintf.c (EOVERFLOW): Remove fallback.
60386         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
60387         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
60388
60389         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
60390
60391         * modules/EOVERFLOW-tests: New file.
60392         * tests/test-EOVERFLOW.c: New file.
60393
60394         * modules/EOVERFLOW: New file.
60395         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
60396
60397 2008-03-30  Bruno Haible  <bruno@clisp.org>
60398
60399         Fix bug introduced on 2007-06-10.
60400         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
60401         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
60402
60403 2008-03-30  Bruno Haible  <bruno@clisp.org>
60404
60405         Improve freadseek's efficiency after ungetc.
60406         * lib/freadseek.c: Include freadahead.h.
60407         (freadptrinc): New function, extracted from freadseek.
60408         (freadseek): Use it in a loop. Use freadahead to determine the number
60409         of loop iterations.
60410         * modules/freadseek (Depends-on): Add freadahead.
60411         (configure.ac): Require AC_C_INLINE.
60412
60413 2008-03-30  Bruno Haible  <bruno@clisp.org>
60414
60415         * lib/freadseek.c (freadseek): Don't ignore the return value of
60416         freadptr.
60417
60418 2008-03-29  Eric Blake  <ebb9@byu.net>
60419
60420         Add hex float support.
60421         * modules/strtod (Depends-on): Add c-ctype.
60422         (Link): Mention POW_LIB.
60423         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
60424         whitespace between 'e' and exponent.
60425         * tests/test-strtod.c (main): Enable hex float tests.
60426         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
60427         now provides.
60428
60429         Document various strtod bugs, with some fixes.
60430         * doc/posix-functions/strtod.texi (strtod): Document bugs with
60431         "-0x", "inf", "nan", and hex constants.
60432         * doc/posix-functions/atof.texi (atof): Likewise.
60433         * modules/stdlib (Makefile.am): Support strtod.
60434         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
60435         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
60436         detect additional strtod bugs.
60437         * lib/stdlib.in.h (rpl_strtod): Add declarations.
60438         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
60439         bool where appropriate.  Parse 'inf' and 'nan'.
60440         * tests/test-strtod.c: New file.
60441         * modules/strtod (Depends-on): Add stdbool, stdlib.
60442         (configure.ac): Turn on module indicator.
60443         * modules/strtod-tests: New module.
60444
60445 2008-03-29  Eric Blake  <ebb9@byu.net>
60446
60447         Fix ftell on mingw.
60448         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
60449         * modules/ftell-tests (Depends-on): Add binary-io.
60450         * modules/ftello-tests (Depends-on): Likewise.
60451         * tests/test-ftell.c (main): Enhance test to cover behavior after
60452         ungetc.  Enforce binary mode.
60453         * tests/test-ftello.c (main): Likewise.
60454
60455         Pass test-freadseek on cygwin.
60456         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
60457         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
60458         ungetc buffer.
60459
60460         * tests/test-fflush2.c (main): Fix typo.
60461
60462 2008-03-29  Bruno Haible  <bruno@clisp.org>
60463
60464         * tests/test-fflush2.c (main): Temporarily disable the contents of
60465         this test.
60466         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
60467         Reported by Eric Blake.
60468
60469 2008-03-28  Simon Josefsson  <simon@josefsson.org>
60470
60471         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
60472         (GC_SHA224_DIGEST_SIZE): Add.
60473
60474         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
60475         (gc_hash_digest_length): Likewise.
60476         (gc_hash_buffer): Likewise.
60477
60478 2008-03-25  Bruno Haible  <bruno@clisp.org>
60479
60480         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
60481         detail which gettext release to use.
60482         Reported by Simon Josefsson.
60483
60484 2008-03-26  Jim Meyering  <meyering@redhat.com>
60485
60486         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
60487         * modules/gnumakefile (clean-GNUmakefile): Also, use
60488         test ... && ... || : syntax rather than if-then ... fi.
60489
60490         gnumakefile: Don't double-quote-expand $(VPATH) value.
60491         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
60492
60493 2008-03-24  Eric Blake  <ebb9@byu.net>
60494
60495         Alter GNUmakefile to install into top directory.
60496         * modules/maintainer-makefile: Split, and add dependency...
60497         * modules/gnumakefile: to this new module.
60498         * build-aux/GNUmakefile: Move...
60499         * top/GNUmakefile: ...here.
60500         * build-aux/maint.mk: Move...
60501         * top/maint.mk: ...here.
60502         * MODULES.html.sh (Support for maintaining...): Document new
60503         module.
60504
60505 2008-03-23  Bruno Haible  <bruno@clisp.org>
60506
60507         * gnulib-tool: New options --vc-files, --no-vc-files.
60508         (func_usage): Document them.
60509         (vc_files): New variable.
60510         (func_import): Consider vc_files.
60511         (func_create_testdir): Set vc_files to empty.
60512         Suggested by Jim Meyering and Karl Berry.
60513
60514 2008-03-23  Bruno Haible  <bruno@clisp.org>
60515
60516         Fix regex compilation error on HP-UX 11.
60517         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
60518         * modules/regex (Files): Add m4/mbstate_t.m4.
60519         Reported by Ton Voon <ton.voon@altinity.com>.
60520
60521 2008-03-23  Bruno Haible  <bruno@clisp.org>
60522
60523         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
60524
60525 2008-03-23  Eric Blake  <ebb9@byu.net>
60526             Bruno Haible  <bruno@clisp.org>
60527
60528         Install files from top/ in the destination directory.
60529         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60530         augmentation also for the files from top/.
60531         (func_import, func_create_testdir): Rewrite file names:
60532         top/filename -> filename.
60533
60534 2008-03-23  Bruno Haible  <bruno@clisp.org>
60535
60536         Tweak "gnulib --version" output.
60537         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
60538
60539 2008-03-23  Bruno Haible  <bruno@clisp.org>
60540
60541         Tweak "gnulib --version" output.
60542         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
60543         rather than contents of ChangeLog, when possible.
60544
60545 2008-03-21  Eric Blake  <ebb9@byu.net>
60546
60547         More --version tweaks.
60548         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
60549         date of last ChangeLog entry.
60550
60551 2008-03-21  Jim Meyering  <meyering@redhat.com>
60552
60553         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
60554
60555 2008-03-20  Eric Blake  <ebb9@byu.net>
60556
60557         VPATH fix.
60558         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
60559
60560 2008-03-20  Simon Josefsson  <simon@josefsson.org>
60561
60562         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
60563         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
60564
60565 2008-03-20  Eric Blake  <ebb9@byu.net>
60566
60567         Sync GNUmakefile with coreutils.
60568         * build-aux/GNUmakefile (have-Makefile): Rename...
60569         (_have-Makefile): ...to this, for namespace consideration.
60570         (GNUmakefile.cfg): Include, if present.
60571         (_autoreconf): Define a default.
60572         (_is-dist-target): New rule for rebuilds to pick up intra-release
60573         version.
60574         (maint-cfg.mk): Rename...
60575         (cfg.mk): ...to this.
60576
60577 2008-03-18  Jim Meyering  <meyering@redhat.com>
60578
60579         New script and module: mktempd
60580         * MODULES.html.sh (maint+release support): Add mktempd.
60581         * build-aux/mktempd: New file.
60582         * modules/mktempd: New file.
60583
60584 2008-03-15  Jim Meyering  <meyering@redhat.com>
60585
60586         Undo last change.
60587         * lib/sha1.c, lib/md5.c: 63 != ~63.
60588         Reported by Andreas Schwab.
60589
60590         sha1.c, md5.c: Hoist a redundant expression.
60591         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
60592         "ctx->buflen" only once, before calling *_process_block.
60593         * lib/md5.c (md5_process_bytes): Likewise.
60594
60595 2008-03-14  Eric Blake  <ebb9@byu.net>
60596
60597         Bump copyright year in files generated by gnulib-tool.
60598         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
60599         gnulib-tool, rather than hard-coding it.
60600
60601         Fix 'gnulib-tool --version' output to work with git.
60602         * gnulib-tool (func_gnulib_dir): New function, extracted from...
60603         (startup): ...here.
60604         (func_version): Use it to invoke git-version-gen, rather than
60605         relying on CVS keyword expansion.  Modernize wording.
60606         (cvsdatestamp, last_checkin_date, version): Kill unused
60607         variables.
60608
60609 2008-03-12  Jim Meyering  <meyering@redhat.com>
60610
60611         Recognize optional cast of the argument to free.
60612         * build-aux/useless-if-before-free: Update regexps.
60613
60614         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
60615
60616 2008-03-11  Bruno Haible  <bruno@clisp.org>
60617
60618         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
60619         by a single package.
60620         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
60621         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
60622         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
60623         Reported by Sam Steingold <sds@gnu.org>.
60624
60625 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60626
60627         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
60628         repositories.
60629
60630 2008-03-11  Bruno Haible  <bruno@clisp.org>
60631
60632         Avoid conflicts between local macro definitions.
60633         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60634         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
60635
60636 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
60637             Bruno Haible  <bruno@clisp.org>
60638
60639         Make va_copy work with some version of xlc on AIX 5.1.
60640         * lib/stdarg.in.h: New file.
60641         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
60642         On AIX, use a <stdarg.h> file substitute.
60643         * modules/stdarg (Files): Add lib/stdarg.in.h.
60644         (Depends-on): Add include_next.
60645         (Makefile.am): Build a stdarg.h substitute if requested.
60646         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
60647
60648 2008-03-10  Bruno Haible  <bruno@clisp.org>
60649
60650         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
60651         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60652         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60653
60654 2008-03-10  Bruno Haible  <bruno@clisp.org>
60655
60656         * modules/stdlib (Depends-on): Add include_next, remove
60657         absolute-header.
60658
60659 2008-03-09  Bruno Haible  <bruno@clisp.org>
60660
60661         * lib/freadahead.h (freadahead): Document more precisely.
60662         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
60663         the sum of both buffer sizes.
60664         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
60665         * NEWS: Document the change.
60666
60667 2008-03-09  Bruno Haible  <bruno@clisp.org>
60668
60669         Extend freadptr to return also the buffer size.
60670         * lib/freadptr.h (freadptr): Add sizep argument.
60671         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
60672         (freadptr): Add sizep argument. Determine buffer size like freadahead
60673         does.
60674         * tests/test-freadptr.c: Don't include freadahead.h.
60675         (main): Adapt for new calling convention of freadptr.
60676         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
60677         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
60678         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
60679         tests/test-freadptr2.sh.
60680         (Depends): Remove freadahead.
60681         (TESTS): Add test-freadptr2.sh.
60682         (check_PROGRAMS): Add test-freadptr2.
60683
60684 2008-03-09  Bruno Haible  <bruno@clisp.org>
60685
60686         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
60687         Report and solution by Simon Josefsson.
60688
60689 2008-03-06  Bruno Haible  <bruno@clisp.org>
60690
60691         Make fflush after ungetc work on BSD platforms.
60692         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
60693         * tests/test-fflush2.c: New file.
60694         * tests/test-fflush2.sh: New file.
60695         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
60696         tests/test-fflush2.c.
60697         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
60698         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
60699
60700 2008-03-06  Eric Blake  <ebb9@byu.net>
60701
60702         Likewise for ftello.
60703         * modules/ftello (Dependencies): Add extensions.
60704         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
60705
60706 2008-03-06  Bruno Haible  <bruno@clisp.org>
60707
60708         * modules/fseeko (Dependencies): Add extensions.
60709         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
60710         Needed on glibc systems.
60711
60712 2008-03-06  Bruno Haible  <bruno@clisp.org>
60713
60714         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
60715         email address.
60716         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60717
60718 2008-03-06  Bruno Haible  <bruno@clisp.org>
60719
60720         * users.txt: Add libgnupdf.
60721
60722 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60723
60724         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
60725         (Header File Substitutes, Function Substitutes,
60726         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
60727         (Build robot for gnulib): Fix typo.
60728
60729 2008-03-06  Bruno Haible  <bruno@clisp.org>
60730
60731         * doc/gnulib-tool.texi (VCS Issues): Small updates.
60732         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60733
60734 2008-03-06  Bruno Haible  <bruno@clisp.org>
60735
60736         * doc/func.texi: New file, extracted from doc/gnulib.texi.
60737         * doc/gnulib.texi: Include it.
60738
60739 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60740
60741         * modules/func (License): Change license to unlimited; there was
60742         no LGPL parts in the module anyway.
60743
60744 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60745
60746         * modules/__func__: Renamed to modules/func.
60747         * modules/__func__-tests: Renamed to modules/func-tests.
60748         * tests/test-__func__.c: Renamed to tests/test-func.c.
60749         * m4/__func__.m4: Renamed to m4/func.m4.
60750         * doc/gnulib.texi (__func__): Section renamed to func.
60751         Suggested by Eric Blake <ebb9@byu.net>.
60752
60753 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60754
60755         * doc/gnulib.texi (__func__): Use C99 terminology when talking
60756         about __func__.  Make example self-contained.  Suggested by Eric
60757         Blake <ebb9@byu.net>.
60758
60759         * tests/test-__func__.c (main): Avoid extraneous () around __func.
60760         Suggested by Eric Blake <ebb9@byu.net>.
60761
60762 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60763
60764         * modules/__func__: New file.
60765         * modules/__func__-tests: New file.
60766         * tests/test-__func__.c: New file.
60767         * m4/__func__.m4: New file.
60768         * doc/gnulib.texi (__func__): Document __func__ module.
60769
60770 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60771
60772         * modules/byteswap (License): Re-license as LGPLv2+.
60773
60774 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60775
60776         * doc/Makefile: Add pdf target.
60777
60778 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60779
60780         * modules/inline (License): Use 'unlimited', since there are only
60781         *.m4 files in this module.
60782
60783 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60784             Bruno Haible  <bruno@clisp.org>
60785
60786         Add support for HP C 7.1 on OpenVMS 8.3.
60787         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
60788
60789 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60790
60791         Update VMS specifics.
60792         * lib/getopt.c [VMS]: Remove include of unixlib.h.
60793
60794 2008-03-02  Jim Meyering  <meyering@redhat.com>
60795
60796         Remove the last dependency on the "free" module.
60797         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
60798         Reported by Bob Proulx.
60799
60800         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
60801
60802         Remove useless "if" tests before free.  Deprecate "free" module.
60803         * doc/posix-functions/free.texi: Mention that this
60804         module is no longer useful.
60805         * modules/free (Notice): Say this module is obsolete.
60806         * modules/readutmp (Depends-on): Remove free.
60807         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
60808         * lib/putenv.c (putenv): Likewise.
60809         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
60810         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
60811         * tests/test-c-strcasestr.c (main): Likewise.
60812         * tests/test-c-strstr.c (main): Likewise.
60813         * tests/test-mbscasestr1.c (main): Likewise.
60814         * tests/test-mbscasestr2.c (main): Likewise.
60815         * tests/test-mbsstr1.c (main): Likewise.
60816         * tests/test-mbsstr2.c (main): Likewise.
60817         * tests/test-memmem.c (main): Likewise.
60818         * tests/test-strcasestr.c (main): Likewise.
60819         * tests/test-striconv.c (main): Likewise.
60820         * tests/test-striconveh.c (main): Likewise.
60821         * tests/test-striconveha.c (main): Likewise.
60822         * tests/test-strstr.c (main): Likewise.
60823
60824         * build-aux/git-version-gen: Adjust a comment and the Usage string.
60825
60826         bootstrap: sync from coreutils again
60827         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
60828
60829 2008-03-01  Jim Meyering  <meyering@redhat.com>
60830
60831         bootstrap: sync from coreutils
60832         * build-aux/bootstrap (update_po_files): Copy a .po file into place
60833         also when the target doesn't exist.
60834
60835 2008-03-01  Eric Blake  <ebb9@byu.net>
60836
60837         Fix bugs in last patch.
60838         * lib/memchr2.c (memchr2): Fix typo.
60839         * tests/test-memchr2.c: Test previous bug, and don't use GNU
60840         extension.
60841         Reported by Bruce Korb.
60842
60843         New module 'memchr2'.
60844         * modules/memchr2: New file.
60845         * modules/memchr2-tests: Likewise.
60846         * lib/memchr2.h: Likewise.
60847         * lib/memchr2.c: Likewise, based on memchr.c.
60848         * tests/test-memchr2.c: New test.
60849         * MODULES.html.sh (String handling): Add memchr2.
60850
60851 2008-02-29  Bruno Haible  <bruno@clisp.org>
60852
60853         * modules/freadseek-tests: New file.
60854         * tests/test-freadseek.sh: New file.
60855         * tests/test-freadseek.c: New file.
60856
60857         New module 'freadseek'.
60858         * modules/freadseek: New file.
60859         * lib/freadseek.h: New file.
60860         * lib/freadseek.c: New file.
60861         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
60862
60863 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60864
60865         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
60866         wydawca.
60867
60868         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
60869         program_invocation_name and program_invocation_short_name are
60870         present.
60871
60872 2008-02-28  Bruno Haible  <bruno@clisp.org>
60873
60874         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
60875         * tests/test-freadptr.sh: Also test non-seekable stdin.
60876
60877 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
60878
60879         * build-aux/bootstrap (source_base, m4_base)
60880         (doc_base, tests_base): New variables.
60881         (gnulib_tool_options): Do not hardcode base directories, use
60882         the above variables instead.
60883
60884 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
60885
60886         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
60887
60888 2008-02-28  Bruno Haible  <bruno@clisp.org>
60889
60890         * modules/freadptr-tests: New file.
60891         * tests/test-freadptr.sh: New file.
60892         * tests/test-freadptr.c: New file.
60893
60894         New module 'freadptr'.
60895         * modules/freadptr: New file.
60896         * lib/freadptr.h: New file.
60897         * lib/freadptr.c: New file.
60898         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
60899
60900 2008-02-26  Karl Berry  <karl@freefriends.org>
60901
60902         Sync from Libtool:
60903         * libltdl/argz.c (argz_add, argz_count): New functions.
60904         * libltdl/argz.in.h: Declare them.
60905         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
60906
60907 2008-02-22  Bruno Haible  <bruno@clisp.org>
60908
60909         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
60910         is a pointer type.  Needed for HP-UX 10.
60911         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
60912         * doc/posix-functions/gmtime_r.texi: Likewise.
60913         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60914
60915 2008-02-24  Bruno Haible  <bruno@clisp.org>
60916
60917         * modules/environ-tests: New file.
60918         * tests/test-environ.c: New file.
60919
60920         New module 'environ'.
60921         * modules/environ: New file.
60922         * lib/unistd.in.h (environ): New declaration.
60923         * m4/environ.m4: New file.
60924         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
60925         after use.
60926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
60927         HAVE_DECL_ENVIRON.
60928         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
60929         HAVE_DECL_ENVIRON.
60930         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
60931         wrong claim that 'environ' is missing on some systems.
60932         * modules/execute (Depends-on): Add environ.
60933         * lib/execute.c (environ): Remove fallback declaration.
60934         * modules/pipe (Depends-on): Add environ.
60935         * lib/pipe.c (environ): Remove fallback declaration.
60936         * modules/setenv (Depends-on): Add environ.
60937         * lib/setenv.c (environ): Remove fallback declaration.
60938         * modules/unsetenv (Depends-on): Add environ.
60939         * lib/unsetenv.c (environ): Remove fallback declaration.
60940         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
60941         m4/environ.m4.
60942         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
60943         (gl_PREREQ_UNSETENV): Likewise.
60944
60945 2008-02-24  Bruno Haible  <bruno@clisp.org>
60946
60947         * doc/posix-functions/environ.texi: Document the MacOS X problem.
60948
60949 2008-02-20  Bob Proulx  <bob@proulx.com>
60950
60951         Enable use of older two part flavor 'git describe'.
60952         * build-aux/git-version-gen: If using the older two part flavor of
60953         git version then recreate the third part now present in the
60954         newer three part flavor of git describe.
60955
60956 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
60957
60958         * lib/fts.c (fts_build): Typo correction to comment.
60959
60960 2008-02-17  Bruno Haible  <bruno@clisp.org>
60961
60962         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
60963         generating no-op conflicts.
60964
60965 2008-02-17  Bruno Haible  <bruno@clisp.org>
60966
60967         Speed up by 10%.
60968         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
60969         result_entries, rather than an index-based loop.
60970
60971 2008-02-17  Bruno Haible  <bruno@clisp.org>
60972
60973         Speed up by 25%.
60974         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
60975         'hashcode_cached'.
60976         (entry_create): New function.
60977         (entry_hashcode): Use the cached hashcode if possible.
60978         (read_changelog_file, try_split_merged_entry): Use entry_create.
60979
60980 2008-02-17  Bruno Haible  <bruno@clisp.org>
60981
60982         Speed up from O(n^2) to O(n) for long ChangeLog files.
60983         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
60984         (read_changelog_file): Change implementation of entries_reversed list
60985         to rbtreehash.
60986         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
60987
60988 2008-02-17  Bruno Haible  <bruno@clisp.org>
60989
60990         New option --split-merged-entry.
60991         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
60992         (find_paragraph_end, try_split_merged_entry): New functions.
60993         (long_options): Add option --split-merged-entry.
60994         (usage): Document option --split-merged-entry.
60995         (main): Implement option --split-merged-entry.
60996         Reported by Eric Blake.
60997
60998 2008-02-17  Bruno Haible  <bruno@clisp.org>
60999
61000         * lib/git-merge-changelog.c: Include c-strstr.h.
61001         (main): Support the "git pull --rebase" situation.
61002         * modules/git-merge-changelog (Depends-on): Add c-strstr.
61003         Reported by Eric Blake.
61004
61005 2008-02-16  Eric Blake  <ebb9@byu.net>
61006
61007         Avoid doubling \ in common case of "c-maybe" quoting style.
61008         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
61009         eliding outer quotes.
61010         * lib/quotearg.h: Document this.
61011         * tests/test-quotearg.c (result_strings, inputs, results_g)
61012         (flag_results, locale_results): Test it by adding a new string to
61013         each test group.
61014         (compare_strings): Test new string.
61015
61016 2008-02-13  Eric Blake  <ebb9@byu.net>
61017
61018         Avoid trigraph quoting in default output.
61019         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
61020         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
61021         unless explicitly requested.
61022         * tests/test-quotearg.c (flag_results, main): Add additional tests.
61023
61024 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
61025
61026         Don't rely on signed integer overflowing to negative value.
61027         * lib/getugroups.c (getugroups): Include <limits.h>.
61028         Instead, compare against INT_MAX, and increment only if the test passes.
61029
61030 2008-02-13  Jim Meyering  <meyering@redhat.com>
61031         and Eric Blake  <ebb9@byu.net>
61032
61033         Avoid shadowing warning and compile errors on Linux.
61034         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
61035         forwarding macros on Linux.
61036         (dcgettext): Define a stub, for Linux.
61037         (results_g, main): Avoid warnings.
61038
61039 2008-02-12  Eric Blake  <ebb9@byu.net>
61040
61041         Silence warning in last patch.
61042         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
61043
61044         Quotearg part 4: add tests, fix c-maybe colon quoting.
61045         * lib/quotearg.h: Improve documentation.
61046         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
61047         escapes when adding outer quotes.  When quoting trigraphs, use
61048         valid C notation.  When quoting NUL, omit extra characters if next
61049         character is not digit.  Alter prototype.
61050         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
61051         callers.
61052         * modules/quotearg-tests: New module.
61053         * tests/test-quotearg.c: New test.
61054
61055 2008-02-07  Eric Blake  <ebb9@byu.net>
61056
61057         Quotearg part 3: add flag to control outer quote elision.
61058         * lib/quotearg.h (c_maybe_quoting_style): New style.
61059         (enum quoting_flags): Better documentation of flags.
61060         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
61061         c-maybe style.
61062         (quotearg_buffer_restyled): Handle new flag to elide outer
61063         quotes.
61064
61065         Quotearg part 2: add flag that can control NUL elision.
61066         * lib/quotearg.h (set_quoting_flags): New prototype.
61067         * lib/quotearg.c (struct quoting_options): Add flag field.
61068         (set_quoting_flags): New function.
61069         (quotearg_buffer_restyled): Add flags parameter.
61070         (quotearg_alloc_mem): Set the flag if length cannot be returned.
61071         (quotearg_n_options): Set the flag, since length cannot be
61072         returned.
61073         (quoting_options_from_style): Default flags correctly.
61074
61075         Quotearg part 1: more wrappers, restore quotearg_char state.
61076         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
61077         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
61078         (quotearg_colon_mem): New wrappers.
61079         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
61080         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
61081         functions.
61082         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
61083         (quotearg_colon_mem): New functions.
61084
61085 2008-02-11  Bruno Haible  <bruno@clisp.org>
61086
61087         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
61088         library in the current directory: it does not work with parallel make.
61089         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61090
61091 2008-02-11  Bruno Haible  <bruno@clisp.org>
61092
61093         * .gitattributes: New file.
61094
61095 2008-02-11  Jim Meyering  <meyering@redhat.com>
61096
61097         useless-if-before-free: Fix reversed exit values.
61098         * build-aux/useless-if-before-free: Use correct values
61099         for EXIT_MATCH and EXIT_NO_MATCH.
61100
61101         * build-aux/useless-if-before-free: Close stdout carefully.
61102
61103 2008-02-10  Bruno Haible  <bruno@clisp.org>
61104
61105         New module 'git-merge-changelog'.
61106         * modules/git-merge-changelog: New file.
61107         * lib/git-merge-changelog.c: New file.
61108
61109 2008-02-10  Jim Meyering  <meyering@redhat.com>
61110
61111         useless-if-before-free: New option: --list (-l).
61112
61113         useless-if-before-free: Don't exit immediately upon open failure.
61114         * build-aux/useless-if-before-free: Exit 2 for errors.
61115         Upon failure to open a file, don't exit immediately.
61116         Rather, just warn and continue with any remaining files.
61117
61118 2008-02-10  Bruno Haible  <bruno@clisp.org>
61119
61120         New abstract list operation 'node_set_value'.
61121         * lib/gl_list.h (gl_list_node_set_value): New function.
61122         (struct gl_list_implementation): New field node_set_value.
61123         * lib/gl_list.c (gl_list_node_set_value): New function.
61124         * lib/gl_array_list.c (gl_array_node_set_value): New function.
61125         (gl_array_list_implementation): Update.
61126         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
61127         (gl_carray_list_implementation): Update.
61128         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
61129         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61130         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61131         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
61132         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61133         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61134         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61135         Update.
61136         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61137         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
61138         (gl_sublist_list_implementation): Update.
61139
61140 2008-02-10  Bruno Haible  <bruno@clisp.org>
61141
61142         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
61143         Needed when ELEMENT is #defined to 'some_type *'.
61144
61145 2008-02-10  Jim Meyering  <meyering@redhat.com>
61146
61147         New script and module: useless-if-before-free
61148         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
61149         * build-aux/useless-if-before-free: New file.
61150         * modules/useless-if-before-free: New file.
61151
61152         * build-aux/gitlog-to-changelog: Use committer date, not author date.
61153
61154         xstrtol_error: Fix typo.
61155         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
61156         s/exit_failure/exit_status/.
61157
61158 2008-02-09  Jim Meyering  <meyering@redhat.com>
61159
61160         New script and module: gitlog-to-changelog
61161         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
61162         * modules/gitlog-to-changelog: New file.
61163         * build-aux/gitlog-to-changelog: New file.
61164
61165 2008-02-08  Jim Meyering  <meyering@redhat.com>
61166
61167         Avoid two "parameter unused" warnings.
61168         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
61169         Mark "st" as used.
61170
61171         Use "git COMMAND", not "git-COMMAND".
61172         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
61173         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
61174         * build-aux/git-version-gen: Use "git status", not "git-status".
61175
61176 2008-02-07  Bruno Haible  <bruno@clisp.org>
61177
61178         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
61179         Avoids a crash on Windows Vista.
61180         Reported by Adam Strzelecki <ono@java.pl> via
61181         Simon Josefsson <simon@josefsson.org>.
61182
61183 2008-02-06  Bruno Haible  <bruno@clisp.org>
61184
61185         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
61186         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
61187         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
61188         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
61189         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61190         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61191         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
61192         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
61193         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61194         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61195         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61196         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61197         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61198         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61199         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61200         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
61201         left-adjust flag.
61202         * tests/test-snprintf-posix.h (test_function): Likewise.
61203         * tests/test-sprintf-posix.h (test_function): Likewise.
61204         * tests/test-vasprintf-posix.c (test_function): Likewise.
61205         * doc/posix-functions/fprintf.texi: Update.
61206         * doc/posix-functions/printf.texi: Update.
61207         * doc/posix-functions/snprintf.texi: Update.
61208         * doc/posix-functions/sprintf.texi: Update.
61209         * doc/posix-functions/vfprintf.texi: Update.
61210         * doc/posix-functions/vprintf.texi: Update.
61211         * doc/posix-functions/vsnprintf.texi: Update.
61212         * doc/posix-functions/vsprintf.texi: Update.
61213         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61214
61215 2008-02-06  Bruno Haible  <bruno@clisp.org>
61216
61217         Fix bug introduced on 2008-01-26.
61218         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
61219
61220 2008-02-06  Bruno Haible  <bruno@clisp.org>
61221
61222         Fix bug introduced on 2007-06-10.
61223         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
61224         !NEED_PRINTF_FLAG_ZERO.
61225
61226 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
61227
61228         getloadavg: use libperfstat on AIX5
61229         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
61230
61231 2008-02-03  Bruno Haible  <bruno@clisp.org>
61232
61233         * lib/diffseq.h: Add comments about required #includes.
61234         Reported by Michael Biggs <gnulib@doubleplum.net>.
61235
61236 2008-02-01  Bruno Haible  <bruno@clisp.org>
61237
61238         * users.txt: Add gnuit.
61239
61240 2008-01-31  Bruno Haible  <bruno@clisp.org>
61241
61242         * lib/md4.c (set_uint32): Mark as inline.
61243         * lib/md5.c (set_uint32): Likewise.
61244         * lib/sha1.c (set_uint32): Likewise.
61245         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
61246         * m4/md5.m4 (gl_MD5): Likewise.
61247         * m4/sha1.m4 (gl_SHA1): Likewise.
61248
61249 2008-01-31  Jim Meyering  <meyering@redhat.com>
61250
61251         Use "sizeof VAR", rather than a literal "4".
61252         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
61253         * lib/md4.c (md4_read_ctx): Likewise.
61254         * lib/sha1.c (sha1_read_ctx): Likewise.
61255
61256 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61257
61258         * tests/test-sha1.c: New file, based on test-md5.c.
61259
61260         * modules/crypto/sha1-tests: New file.
61261
61262 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61263
61264         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
61265
61266 2008-01-31  Jim Meyering  <meyering@redhat.com>
61267
61268         Prefer "sizeof v" over the equivalent "4".
61269         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
61270         * lib/md5.c (set_uint32): Likewise.
61271         * lib/sha1.c (set_uint32): Likewise.
61272
61273 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61274
61275         * lib/sha1.c (set_uint32): Mark function as static.
61276
61277 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61278
61279         md2: clarify comments to say that alignment is not required.
61280         * lib/md2.h: Remove warning about alignment in comment.
61281         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
61282         never been required.
61283
61284 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61285
61286         md4: adapt alignment constraint fix from sha1.
61287         * lib/md4.c (set_uint32): New function, from sha1.c
61288         (md4_read_ctx): Use it.
61289         (md4_finish_ctx): Doc fix.
61290         * lib/md4.h: Doc fix.
61291
61292 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61293
61294         md5: adapt alignment constraint fix from sha1.
61295         * lib/md5.c (set_uint32): New function, from sha1.c
61296         (md5_read_ctx): Use it.
61297         (md5_finish_ctx): Doc fix.
61298         * lib/md5.h: Doc fix.
61299
61300 2008-01-30  Peter Palfrader  <weasel@debian.org>
61301
61302         sha1: remove the result buffer alignment constraint
61303         * lib/sha1.c (set_uint32): New function.
61304         (sha1_read_ctx): Rewrite to remove the result buffer alignment
61305         constraint.
61306         (sha1_finish_ctx): Remove comment warning about alignment constraint.
61307         * lib/sha1.h: Likewise.
61308
61309 2008-01-30  Andreas Schwab  <schwab@suse.de>
61310             Bruno Haible  <bruno@clisp.org>
61311
61312         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
61313         correct definition of LDBL_MIN_EXP.
61314
61315 2008-01-30  Karl Berry  <karl@gnu.org>
61316
61317         * config/srclist-update: try to preserve x bit on updates.
61318         * config/srclistvars.sh: update for karl.
61319
61320 2008-01-29  Jim Meyering  <meyering@redhat.com>
61321
61322         vasnprintf.c: Avoid warning about unused label
61323         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
61324         "overflow" label definition and associated code with the
61325         same cpp condition that guards the sole use of that label.
61326
61327 2008-01-26  Bruno Haible  <bruno@clisp.org>
61328
61329         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
61330         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
61331         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
61332         * lib/isnanl-nolibm.h (isnanl): Likewise.
61333         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61334
61335 2008-01-26  Bruno Haible  <bruno@clisp.org>
61336
61337         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
61338         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
61339
61340 2008-01-26  Bruno Haible  <bruno@clisp.org>
61341
61342         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
61343         GCC >= 4.0 built-in.
61344         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
61345
61346 2008-01-26  Bruno Haible  <bruno@clisp.org>
61347
61348         Rename isnan, applicable to 'double' only, to isnand.
61349         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
61350         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
61351         (configure.ac): Update.
61352         (Include): Replace "isnan.h" with "isnand.h".
61353         * m4/isnand.m4: Renamed from m4/isnan.m4.
61354         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
61355         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
61356         instead of isnan.c.
61357         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
61358         instead of HAVE_ISNAN_IN_LIBC.
61359         (isnand): Renamed from isnan.
61360         * lib/isnand.c: New file.
61361         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
61362         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
61363         (Makefile.am): Update.
61364         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
61365         Include isnand.h instead of isnan.h.
61366         (main): Test isnand instead of isnan.
61367         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
61368         isnan-nolibm.
61369         * modules/frexp (Depends-on): Likewise.
61370         * modules/frexp-tests (Depends-on): Likewise.
61371         * modules/frexp-nolibm (Depends-on): Likewise.
61372         * modules/frexp-nolibm-tests (Depends-on): Likewise.
61373         * modules/isfinite (Depends-on): Likewise.
61374         * modules/round-tests (Depends-on): Likewise.
61375         * modules/signbit (Depends-on): Likewise.
61376         * modules/signbit-tests (Depends-on): Likewise.
61377         * modules/snprintf-posix (Depends-on): Likewise.
61378         * modules/sprintf-posix (Depends-on): Likewise.
61379         * modules/trunc-tests (Depends-on): Likewise.
61380         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61381         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61382         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61383         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61384         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61385         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61386         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61387         * modules/vasnprintf-posix (Depends-on): Likewise.
61388         * modules/vasprintf-posix (Depends-on): Likewise.
61389         * modules/vfprintf-posix (Depends-on): Likewise.
61390         * modules/vsnprintf-posix (Depends-on): Likewise.
61391         * modules/vsprintf-posix (Depends-on): Likewise.
61392         * lib/frexp.c: Include isnand.h instead of isnan.h.
61393         (ISNAN): Set to isnand instead of isnan.
61394         * lib/isfinite.c: Include isnand.h instead of isnan.h.
61395         (gl_isfinited): Use isnand instead of isnan.
61396         * lib/signbitd.c: Include isnand.h instead of isnan.h.
61397         (gl_signbitd): Use isnand instead of isnan.
61398         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
61399         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
61400         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
61401         (main): Use isnand instead of isnan.
61402         * tests/test-round1.c: Include isnand.h.
61403         (main): Use isnand instead of isnan.
61404         * tests/test-round2.c: Include isnand.h instead of isnan.h.
61405         (ISNAN): Set to isnand instead of isnan.
61406         * tests/test-trunc1.c: Include isnand.h.
61407         (main): Use isnand instead of isnan.
61408         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
61409         (equal): Use isnand instead of isnan.
61410         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
61411         isnand-nolibm.
61412         * NEWS: Mention the change.
61413
61414 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61415             Bruno Haible  <bruno@clisp.org>
61416
61417         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
61418         the GCC builtins for signbits are present and set
61419         REPLACE_SIGNBIT_USING_GCC if so.
61420         * lib/math.in.h (signbit): Define using GCC builtins if
61421         REPLACE_SIGNBIT_USING_GCC is set.
61422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
61423         REPLACE_SIGNBIT_USING_GCC.
61424         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
61425
61426 2008-01-25  Jim Meyering  <meyering@redhat.com>
61427
61428         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
61429         * lib/poll.c: Include <config.h>, not "config.h".
61430         * tests/test-getaddrinfo.c: Likewise.
61431
61432 2008-01-25  Simon Josefsson  <simon@josefsson.org>
61433
61434         * modules/sockets-tests: New file.
61435
61436 2008-01-24  Simon Josefsson  <simon@josefsson.org>
61437
61438         * modules/sockets: New module, can be used to call WSA_Startup and
61439         WSA_Cleanup when needed.
61440
61441         * lib/sockets.h, lib/sockets.c: New files.
61442
61443         * m4/sockets.m4: New file.
61444
61445         * tests/test-sockets.c: New file.
61446
61447 2008-01-19  Bruno Haible  <bruno@clisp.org>
61448
61449         * doc/posix-headers: Renamed from doc/headers.
61450         * doc/posix-functions: Renamed from doc/functions.
61451         * doc/gnulib.texi: Update.
61452
61453 2008-01-19  Bruno Haible  <bruno@clisp.org>
61454
61455         * doc/glibc-functions/strcasestr.texi: Include contents of
61456         doc/functions/strcasestr.texi, fixing the list of platforms.
61457         * doc/functions/strcasestr.texi: Remove file.
61458
61459 2008-01-19  Bruno Haible  <bruno@clisp.org>
61460
61461         * doc/glibc-functions/memmem.texi: Include contents of
61462         doc/functions/memmem.texi.
61463         * doc/functions/memmem.texi: Remove file.
61464
61465 2008-01-18  Bruno Haible  <bruno@clisp.org>
61466
61467         * doc/glibc-functions/*.texi: New files.
61468         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
61469         to use the new files.
61470
61471 2008-01-17  Bruno Haible  <bruno@clisp.org>
61472
61473         * tests/test-gethostname.c (main): Fix printf statement.
61474
61475 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61476
61477         * modules/gethostname-tests: New file.
61478
61479         * tests/test-gethostname.c: New file.
61480
61481 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61482
61483         * lib/gethostname.c: Include string.h unconditionally, strncpy is
61484         used by the UNAME case.  Reported by Bruno Haible
61485         <bruno@clisp.org>.
61486
61487 2008-01-17  Eric Blake  <ebb9@byu.net>
61488
61489         Convert c-strcasestr to be more efficient.
61490         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
61491         (Depends-on): Add c-strcase, remove malloca, strnlen.
61492         * tests/test-c-strcasestr.c (main): Enhance test.
61493         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
61494
61495 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61496
61497         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
61498         Use it in creating po/Makevars.
61499
61500 2008-01-15  Simon Josefsson  <simon@josefsson.org>
61501
61502         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
61503         Applications that requires it should initialize libgcrypt
61504         manually.
61505
61506 2008-01-16  Simon Josefsson  <simon@josefsson.org>
61507
61508         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
61509
61510 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
61511
61512         Fix problem with getdate on mingw32 reported by Simon Josefsson
61513         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
61514         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
61515         tzname", when deciding whether to declare tzname.
61516         * lib/strftime.c (tzname): Likewise.
61517
61518 2008-01-15  Bruno Haible  <bruno@clisp.org>
61519
61520         Work around a MacOS X 10.5 bug in frexpl().
61521         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
61522         * doc/functions/frexpl.texi: Document the bug.
61523         Reported by Elias Pipping <pipping@gentoo.org>.
61524
61525 2008-01-14  Eric Blake  <ebb9@byu.net>
61526
61527         Touch up previous patch.
61528         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
61529         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
61530
61531         Convert strcasestr module to use Two-Way algorithm.
61532         * modules/strcasestr-simple: New module, based on the old
61533         strcasestr, but with Two-Way rather than KMP.
61534         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
61535         * lib/string.in.h (rpl_strcasestr): Declare.
61536         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
61537         performance.
61538         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
61539         * modules/string (Makefile.am): Support strcasestr.
61540         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
61541         * modules/strcasestr-tests (Depends-on): Check for alarm.
61542         * tests/test-strcasestr.c: Augment test.
61543         * lib/str-two-way.h: Clean up stray macro.
61544         * NEWS: Document new module.
61545         * MODULES.html.sh (string handling): Likewise.
61546         * doc/functions/strcasestr.texi: New file.
61547         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
61548         here, since it is not a POSIX function.
61549
61550 2008-01-14  Colin Watson  <cjwatson@debian.org>
61551             Bruno Haible  <bruno@clisp.org>
61552
61553         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
61554         works fine; if not, set REPLACE_STRSIGNAL.
61555         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
61556         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61557         REPLACE_STRSIGNAL.
61558         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
61559         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
61560         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
61561
61562 2008-01-14  Bruno Haible  <bruno@clisp.org>
61563
61564         * modules/strsignal (Include): Change to <string.h>.
61565
61566 2008-01-14  Colin Watson  <cjwatson@debian.org>
61567
61568         * modules/argp (Notice): Add a notice recommending to change
61569         XGETTEXT_OPTIONS.
61570         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
61571
61572 2008-01-13  Colin Watson  <cjwatson@debian.org>
61573
61574         * modules/strsignal-tests: New file.
61575         * tests/test-strsignal.c: New file.
61576
61577         * lib/strsignal.c: New file, from glibc with modifications.
61578         * lib/siglist.h: New file, from glibc with modifications.
61579         * lib/string.in.h (strsignal): New declaration.
61580         * m4/strsignal.m4: New file.
61581         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61582         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
61583         * modules/strsignal: New file.
61584         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
61585         HAVE_DECL_STRSIGNAL.
61586
61587 2008-01-13  Bruno Haible  <bruno@clisp.org>
61588
61589         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
61590         locale encoding is not ASCII. Needed for OpenBSD 4.0.
61591         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61592         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61593
61594 2008-01-13  Bruno Haible  <bruno@clisp.org>
61595
61596         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
61597         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
61598         * lib/argp.h (__attribute__): Likewise.
61599         * lib/c-stack.c (__attribute__): Likewise.
61600         * lib/error.h (__attribute__): Likewise.
61601         * lib/fts.c (__attribute__): Likewise.
61602         * lib/openat.h (__attribute__): Likewise.
61603         * lib/stdio.in.h (__attribute__): Likewise.
61604         * lib/string.in.h (__attribute__): Likewise.
61605         * lib/utimens.c (__attribute__): Likewise.
61606         * lib/vasnprintf.h (__attribute__): Likewise.
61607         * lib/xalloc.h (__attribute__): Likewise.
61608         * lib/xprintf.h (__attribute__): Likewise.
61609         * lib/xstrtol.h (__attribute__): Likewise.
61610         * lib/xvasprintf.h (__attribute__): Likewise.
61611
61612 2008-01-12  Bruno Haible  <bruno@clisp.org>
61613
61614         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
61615         * doc/glibc-headers/a.out.texi: New file.
61616         * doc/glibc-headers/aliases.texi: New file.
61617         * doc/glibc-headers/alloca.texi: New file.
61618         * doc/glibc-headers/ar.texi: New file.
61619         * doc/glibc-headers/argp.texi: New file.
61620         * doc/glibc-headers/argz.texi: New file.
61621         * doc/glibc-headers/byteswap.texi: New file.
61622         * doc/glibc-headers/crypt.texi: New file.
61623         * doc/glibc-headers/endian.texi: New file.
61624         * doc/glibc-headers/envz.texi: New file.
61625         * doc/glibc-headers/err.texi: New file.
61626         * doc/glibc-headers/error.texi: New file.
61627         * doc/glibc-headers/execinfo.texi: New file.
61628         * doc/glibc-headers/fpu_control.texi: New file.
61629         * doc/glibc-headers/fstab.texi: New file.
61630         * doc/glibc-headers/fts.texi: New file.
61631         * doc/glibc-headers/getopt.texi: New file.
61632         * doc/glibc-headers/ieee754.texi: New file.
61633         * doc/glibc-headers/ifaddrs.texi: New file.
61634         * doc/glibc-headers/libintl.texi: New file.
61635         * doc/glibc-headers/mcheck.texi: New file.
61636         * doc/glibc-headers/mntent.texi: New file.
61637         * doc/glibc-headers/obstack.texi: New file.
61638         * doc/glibc-headers/paths.texi: New file.
61639         * doc/glibc-headers/printf.texi: New file.
61640         * doc/glibc-headers/pty.texi: New file.
61641         * doc/glibc-headers/resolv.texi: New file.
61642         * doc/glibc-headers/shadow.texi: New file.
61643         * doc/glibc-headers/sysexits.texi: New file.
61644         * doc/glibc-headers/ttyent.texi: New file.
61645
61646 2008-01-12  Jim Meyering  <meyering@redhat.com>
61647
61648         announce-gen: emit Gnulib's git-based version string.
61649         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
61650         New option --gnulib-version=V, where V is expected to be
61651         the output of running git describe in the gnulib directory.
61652         (get_tool_versions): Request feedback on xdelta.  I suspect it's
61653         not useful, and plan to stop publishing an xdelta file with each
61654         coreutils release.
61655
61656         * build-aux/announce-gen: Also check for lzma-compressed files.
61657
61658 2008-01-11  Bruno Haible  <bruno@clisp.org>
61659
61660         * tests/test-memmem.c (main): Increase maximum allowed time.
61661         * tests/test-strstr.c (main): Likewise.
61662
61663 2008-01-11  Bruno Haible  <bruno@clisp.org>
61664
61665         * doc/functions/memmem.texi: Add more precisions about platforms.
61666         * doc/functions/strstr.texi: Likewise.
61667
61668 2008-01-10  Eric Blake  <ebb9@byu.net>
61669
61670         * m4/strstr.m4: Delete cruft from copy-n-paste.
61671         Reported by Bruno Haible.
61672
61673 2008-01-10  Bruno Haible  <bruno@clisp.org>
61674
61675         Make c-strstr rely on strstr.
61676         * lib/c-strstr.c: Don't include str-kmp.h.
61677         (c_strstr): Define in terms of strstr.
61678         * modules/c-strstr (Files): Remove lib/str-kmp.h.
61679         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
61680
61681 2008-01-10  Bruno Haible  <bruno@clisp.org>
61682
61683         * doc/gnulib.texi (String Functions in C Locale): New section.
61684         * doc/c-ctype.texi: New file.
61685         * doc/c-strcase.texi: New file.
61686         * doc/c-strcaseeq.texi: New file.
61687         * doc/c-strcasestr.texi: New file.
61688         * doc/c-strstr.texi: New file.
61689         * doc/c-strtod.texi: New file.
61690         * doc/c-strtold.texi: New file.
61691
61692 2008-01-10  Eric Blake  <ebb9@byu.net>
61693
61694         * lib/relocatable.h: Fix a comment.
61695
61696 2008-01-10  Eric Blake  <ebb9@byu.net>
61697
61698         Share two-way algorithm.
61699         * lib/str-two-way.h: New file, merged from...
61700         * lib/memmem.c: ...here...
61701         * lib/strstr.c: ...and here.
61702         * modules/memmem (Files): Use it.
61703         * modules/strstr (Files): Likewise.
61704
61705         Avoid quadratic strstr implementations.
61706         * lib/strstr.c: New file.
61707         * m4/strstr.m4: Likewise.
61708         * modules/strstr: Likewise.
61709         * modules/strstr-tests: Likewise.
61710         * tests/test-strstr.c: Likewise.
61711         * lib/string.in.h (rpl_strstr): Declare.
61712         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
61713         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
61714         * modules/string (Makefile.am): Likewise.
61715         * MODULES.html.sh (string handling): Mention new module.
61716         * doc/functions/strstr.texi (strstr): Document the bug.
61717
61718 2008-01-10  Bruno Haible  <bruno@clisp.org>
61719
61720         * lib/relocatable.h (relocate): State whether result is freshly
61721         allocated or not.
61722         * lib/relocatable.c (relocate): Return a freshly allocated string
61723         instead of a pointer to a privately held string.
61724         Reported by Sylvain Beucler <beuc@gnu.org>.
61725
61726 2008-01-10  Colin Watson  <cjwatson@debian.org>
61727
61728         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
61729         s/S_ISNLK/S_ISLNK/.
61730
61731 2008-01-09  Bruno Haible  <bruno@clisp.org>
61732
61733         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
61734         and other files.
61735         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
61736         if it's only a guess.
61737         * modules/memmem: Simplify by depending on memmem-simple.
61738
61739 2008-01-09  Bruno Haible  <bruno@clisp.org>
61740
61741         Work around OpenBSD 4.0 tdelete() bug.
61742         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
61743         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
61744         macros and don't redefine the enum values.
61745         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
61746         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
61747         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
61748
61749 2008-01-09  Bruno Haible  <bruno@clisp.org>
61750
61751         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
61752         (main): Don't perform the tests if setlocale did not install a UTF-8
61753         locale. Needed on OpenBSD 4.0.
61754         * modules/wcwidth-tests (Depends-on): Add localcharset.
61755
61756 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61757
61758         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
61759         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
61760         * NEWS: announce this.
61761         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
61762
61763 2008-01-09  Simon Josefsson  <simon@josefsson.org>
61764         and Eric Blake  <ebb9@byu.net>
61765
61766         Add memmem-simple module.
61767         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
61768         (gl_FUNC_MEMMEM): Separate performance from presence checks.
61769         * modules/memmem-simple: New file.
61770         * modules/memmem (Description): Tweak.
61771         * MODULES.html.sh (string handling): Mention new module.
61772         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
61773         addressed by memmem-simple.
61774         * NEWS: Document the difference.
61775
61776 2008-01-09  Eric Blake  <ebb9@byu.net>
61777
61778         Give gcc some memmem optimization hints.
61779         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
61780         (strcasestr): Declare as pure.
61781         * modules/memmem (Maintainer): Claim my implementation.
61782
61783 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61784
61785         Support AIX 6.1 and higher.
61786         * build-aux/config.libpath: Likewise.
61787         * build-aux/config.rpath: Likewise.
61788
61789 2008-01-08  Jim Meyering  <meyering@redhat.com>
61790             Bruno Haible  <bruno@clisp.org>
61791
61792         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
61793         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
61794         Reported by Peter Fales in
61795         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
61796
61797 2008-01-08  Bruno Haible  <bruno@clisp.org>
61798
61799         * modules/unictype/category-of (Depends-on): Add
61800         unictype/category-none.
61801         * modules/unictype/category-and-tests (Depends-on): Add
61802         unictype/category-{L,N,Lu,Nd}.
61803         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
61804         * modules/unictype/category-or-tests (Depends-on): Add
61805         unictype/category-{L,N}.
61806         * modules/unictype/category-name-tests (Depends-on): Add
61807         unictype/category-{Z,Nl}.
61808         Reported by Simon Josefsson.
61809
61810 2008-01-08  Bruno Haible  <bruno@clisp.org>
61811
61812         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
61813         convention better.
61814         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
61815         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
61816         Reported by Peter Miller <millerp@canb.auug.org.au>.
61817
61818 2008-01-08  Eric Blake  <ebb9@byu.net>
61819
61820         Rewrite memmem to guarantee linear complexity without malloc.
61821         * lib/memmem.c (memmem): Use Two-Way rather than
61822         Knuth-Morris-Pratt, to allow O(1) space usage.
61823         (critical_factorization, two_way_short_needle)
61824         (two_way_long_needle): New functions.
61825         (knuth_morris_pratt): Delete.
61826         * modules/memmem (Depends-on): No longer need malloca or stdbool.
61827         Add stdint.
61828         * tests/test-memmem.c (main): Add tests for periodic needle and
61829         sublinear performance.
61830         * doc/functions/memmem.texi (memmem): Document other deficiencies
61831         in cygwin and older glibc.
61832
61833 2008-01-08  Bruno Haible  <bruno@clisp.org>
61834
61835         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
61836         augmentation.
61837
61838 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
61839
61840         Add a configure time option: --disable-acl.
61841         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
61842         AC_ARG_ENABLE(acl).
61843
61844 2008-01-06  Simon Josefsson  <simon@josefsson.org>
61845
61846         * tests/test-localename.c: Don't include obsolete "setenv.h".
61847
61848         * modules/localename-tests (Depends-on): Need unsetenv.
61849
61850 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61851
61852         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
61853
61854 2008-01-06  Colin Watson  <cjwatson@debian.org>
61855
61856         * users.txt: Add man-db.
61857
61858 2008-01-07  Bruno Haible  <bruno@clisp.org>
61859
61860         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
61861         previous section name.
61862
61863 2008-01-07  Bruno Haible  <bruno@clisp.org>
61864
61865         * lib/progname.c (set_program_name): Don't strip off a leading
61866         "lt-" prefix outside a .libs directory.
61867         Suggested by Paul Eggert.
61868
61869 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
61870             Bruno Haible  <bruno@clisp.org>
61871
61872         Improve memory cleanup in 'relocatable' module.
61873         * lib/relocatable.h (compute_curr_prefix): Change return type to
61874         'char *'.
61875         * lib/relocatable.c (compute_curr_prefix): Change return type to
61876         'char *'. Free curr_installdir after use.
61877         (relocate): Free curr_prefix_better after use.
61878         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
61879
61880 2008-01-01  Bruno Haible  <bruno@clisp.org>
61881
61882         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
61883         failure on older glibc systems.
61884         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61885
61886 2008-01-05  Eric Blake  <ebb9@byu.net>
61887
61888         Avoid quadratic system memmem.
61889         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
61890         Reported by Ralf Wildenhues.
61891
61892         Fix memmem test for mingw.
61893         * modules/memmem-tests (configure.ac): Check for alarm.
61894         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
61895         it.
61896         * doc/functions/memmem.texi: New file.
61897         * doc/gnulib.texi (Function Substitutes): Add memmem.
61898         Reported by Bruno Haible.
61899
61900 2008-01-04  Bruno Haible  <bruno@clisp.org>
61901
61902         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
61903         Require gl_HEADER_STRINGS_H_DEFAULTS, not
61904         gl_HEADER_STRING_H_DEFAULTS.
61905
61906 2008-01-04  Eric Blake  <ebb9@byu.net>
61907
61908         Shorten duration of memmem test.
61909         * tests/test-memmem.c (main): Use alarm to declare failure if test
61910         is taking too long.
61911         Reported by Ralf Wildenhues.
61912
61913 2007-12-21  Simon Josefsson  <simon@josefsson.org>
61914
61915         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
61916         string, needed by strerror.
61917
61918 2008-01-03  Colin Watson  <cjwatson@debian.org>
61919             Bruno Haible  <bruno@clisp.org>
61920
61921         * doc/gnulib-tool.texi (Localization): New section.
61922
61923 2008-01-02  Bruno Haible  <bruno@clisp.org>
61924
61925         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
61926         variables to 'unsigned char *' type.
61927         Reported by Paul Eggert.
61928
61929 2008-01-02  Jim Meyering  <jim@meyering.net>
61930
61931         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
61932
61933 2007-12-31  Jim Meyering  <jim@meyering.net>
61934
61935         Avoid use of private FTS type name.
61936         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
61937
61938 2007-12-30  Karl Berry  <karl@gnu.org>
61939
61940         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
61941         work around defect in Texinfo and/or the standalone Info browser.
61942
61943 2007-12-30  Bruno Haible  <bruno@clisp.org>
61944
61945         Unify 5 copies of the KMP code.
61946         * lib/str-kmp.h: New file.
61947         * lib/c-strcasestr.c: Include str-kmp.h.
61948         (knuth_morris_pratt): Remove function.
61949         (c_strcasestr): Update.
61950         * lib/c-strstr.c: Include str-kmp.h.
61951         (knuth_morris_pratt): Remove function.
61952         (c_strcasestr): Update.
61953         * lib/mbscasestr.c: Include str-kmp.h.
61954         (knuth_morris_pratt_unibyte): Remove function.
61955         * lib/mbsstr.c: Include str-kmp.h.
61956         (knuth_morris_pratt_unibyte): Remove function.
61957         * lib/strcasestr.c: Include str-kmp.h.
61958         (knuth_morris_pratt): Remove function.
61959         (strcasestr): Update.
61960         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
61961         * modules/c-strstr (Files): Likewise.
61962         * modules/mbscasestr (Files): Likewise.
61963         * modules/mbsstr (Files): Likewise.
61964         * modules/strcasestr (Files): Likewise.
61965         Suggested by Paul Eggert.
61966
61967 2007-12-30  Bruno Haible  <bruno@clisp.org>
61968
61969         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
61970         defined.
61971
61972 2007-12-30  Bruno Haible  <bruno@clisp.org>
61973
61974         * lib/xmalloca.h: Include xalloc.h.
61975         (xnmalloca): New macro.
61976
61977 2007-12-30  Bruno Haible  <bruno@clisp.org>
61978
61979         * lib/malloca.h (nmalloca): New macro.
61980         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
61981         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
61982         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
61983         knuth_morris_pratt_multibyte): Likewise.
61984         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
61985         knuth_morris_pratt_multibyte): Likewise.
61986         * lib/memmem.c (knuth_morris_pratt): Likewise.
61987         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
61988
61989 2007-12-25  Bruno Haible  <bruno@clisp.org>
61990
61991         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
61992         * lib/glob.c: Don't include openat.h.
61993         (link_exists2_p): Add back the code that deals with the
61994         !GLOB_ALTDIRFUNC case.
61995         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
61996         let it do the filename concatenation.
61997         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
61998         * modules/glob (Depends-on): Remove openat.
61999
62000 2007-12-31  Bruno Haible  <bruno@clisp.org>
62001
62002         * modules/dirfd (License): Change to LGPLv2+.
62003         Approved by Jim Meyering.
62004
62005 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62006
62007         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
62008         when multiplying M by sizeof (size_t).
62009
62010 2007-12-10  Martin Lambers  <marlam@marlam.de>
62011
62012         Override getpagesize on mingw.
62013         * lib/getpagesize.c: New file.
62014         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
62015         * modules/getpagesize (Files): Add lib/getpagesize.c.
62016         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
62017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62018         REPLACE_GETPAGESIZE.
62019         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
62020
62021 2007-12-25  Bruno Haible  <bruno@clisp.org>
62022
62023         * modules/localcharset (Notice): New field.
62024         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
62025         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
62026
62027 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62028             Bruno Haible  <bruno@clisp.org>
62029
62030         Avoid using the syntax symbol() in formatted documentation.
62031         * MODULES.html.sh (func_module): When replacing symbol() with a
62032         hyperlink, remove the parentheses. Show an error if some remain.
62033         Recognize and render the '...' syntax.
62034         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
62035         Rework. Add paragraph about GCC's inlining.
62036         * doc/alloca.texi: Likewise.
62037         * doc/error.texi: Remove parentheses from symbol reference.
62038         * doc/gnulib-intro.texi: Likewise.
62039         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
62040         * modules/fnmatch (Description): Reword to say "the ... function".
62041         * modules/full-read (Description): Likewise.
62042         * modules/full-write (Description): Likewise.
62043         * modules/safe-read (Description): Likewise.
62044         * modules/safe-write (Description): Likewise.
62045         * modules/strchrnul (Description): Likewise.
62046         * modules/trim (Description): Likewise.
62047         * modules/error (Description): Remove parentheses from symbol
62048         references.
62049         * modules/verror (Description): Likewise.
62050         Reported by Karl Berry.
62051
62052 2007-12-25  Bruno Haible  <bruno@clisp.org>
62053
62054         Fixup after 2007-10-16 commit.
62055         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
62056
62057 2007-12-24  Bruno Haible  <bruno@clisp.org>
62058
62059         Make --enable-relocatable work with DESTDIR.
62060         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
62061         to compute installdir from destprog.
62062         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
62063         also set the RELOC_DESTDIR variable.
62064         Reported by Левашев Иван <octagram@bluebottle.com>.
62065
62066 2007-12-24  Bruno Haible  <bruno@clisp.org>
62067
62068         Fix link error due to xalloc_die().
62069         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
62070         of xreadlink.
62071         * lib/relocwrapper.c: Update comments.
62072         * build-aux/install-reloc: Remove xreadlink.c from file list.
62073         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
62074         xreadlink.c.
62075         Reported by Левашев Иван <octagram@bluebottle.com>.
62076
62077 2007-12-24  Bruno Haible  <bruno@clisp.org>
62078
62079         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
62080         * lib/setenv.h: Remove file.
62081         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
62082         lib/setenv.h.
62083         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
62084         (Depends-on): Add stdlib.
62085         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
62086         gl_FUNC_UNSETENV.
62087         (Include): Replace setenv.h with <stdlib.h>.
62088         * modules/unsetenv: New file.
62089         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
62090         * lib/unsetenv.c: Include <stdlib.h> first.
62091         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
62092         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
62093         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
62094         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
62095         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
62096         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62097         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
62098         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62099         * doc/functions/unsetenv.texi: Update.
62100         * modules/xsetenv (Depends-on): Add unsetenv.
62101         * modules/getdate (Depends-on): Likewise.
62102         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
62103         * lib/xsetenv.c: Don't include setenv.h.
62104         * lib/getdate.y: Likewise.
62105         * lib/relocwrapper.c: Likewise.
62106         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
62107         (Depends-on): Add stdlib.
62108         * NEWS: Mention the changes.
62109         Reported by Левашев Иван <octagram@bluebottle.com>.
62110
62111 2007-12-23  Bruno Haible  <bruno@clisp.org>
62112
62113         * lib/memmem.c (memmem): Use lowercase variable names. Tab
62114         indentation.
62115
62116 2007-12-23  Bruno Haible  <bruno@clisp.org>
62117
62118         * lib/c-strcasestr.c: Add more comments.
62119         * lib/c-strstr.c: Likewise.
62120         * lib/mbscasestr.c: Likewise.
62121         * lib/mbsstr.c: Likewise.
62122         * lib/strcasestr.c: Likewise.
62123         * lib/memmem.c: Likewise.
62124
62125 2007-12-23  Bruno Haible  <bruno@clisp.org>
62126
62127         * tests/test-memmem.c: Include <string.h> first.
62128
62129 2007-12-22  Bruno Haible  <bruno@clisp.org>
62130
62131         * gnulib-tool (func_create_testdir): Change $auxdir while generating
62132         the contents of $testsbase.
62133         Reported by Ralf Wildenhues.
62134
62135 2007-12-22  Bruno Haible  <bruno@clisp.org>
62136
62137         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
62138         two variables local_ldadd_before, local_ldadd_last.
62139
62140 2007-12-20  Eric Blake  <ebb9@byu.net>
62141
62142         Work around circular library issue when cross-compiling.
62143         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
62144         that progname.o does not need to pull in rpl_memcmp.
62145
62146 2007-12-19  Eric Blake  <ebb9@byu.net>
62147
62148         Fix memmem to avoid O(n^2) worst-case complexity.
62149         * lib/memmem.c (knuth_morris_pratt): New function.
62150         (memmem): Use it if first few naive iterations fail.
62151         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
62152         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
62153         * modules/memchr (License): Likewise.
62154         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
62155         malloca.
62156         * tests/test-memmem.c: Rewrite, borrowing ideas from
62157         test-mbsstr1.c; the old version wouldn't even compile!
62158         * modules/memmem-tests: New file.
62159         * lib/string.in.h (rpl_memmem): Add declaration.
62160         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
62161         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
62162         REPLACE_MEMMEM.
62163
62164 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62165
62166         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
62167         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
62168         before any system include files, and undef after them all.  This
62169         should fix a problem on VMS reported by John E. Malmberg in
62170         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
62171
62172 2007-12-17  Eric Blake  <ebb9@byu.net>
62173
62174         Revert addition of verify, for BSD/OS.
62175         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
62176         can't handle large files, for the sake of obsolete platforms.
62177         * modules/fseeko (Depends-on): Remove verify.
62178         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
62179         * doc/functions/ftello.texi (ftello): Likewise.
62180         * doc/functions/fgetpos.texi (fgetpos): Likewise.
62181         Reported by Larry Jones.
62182
62183 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
62184
62185         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
62186         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
62187
62188 2007-12-17  Jim Meyering  <meyering@redhat.com>
62189
62190         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
62191         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
62192         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
62193         * modules/getcwd (Depends-on): Add openat.
62194         Reported by Petr Salinger.
62195
62196 2007-12-17  Bruno Haible  <bruno@clisp.org>
62197
62198         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
62199         avoid a segmentation fault of the configure test on x86_64 systems.
62200
62201 2007-12-15  Jim Meyering  <meyering@redhat.com>
62202
62203         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
62204
62205 2007-12-13  Eric Blake  <ebb9@byu.net>
62206
62207         Another fseek test.
62208         * tests/test-fseek.c (main): Also test ungetc handling.
62209         * tests/test-fseeko.c (main): Likewise.
62210         * modules/fseeko (Depends-on): Add verify.
62211         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
62212         large.
62213         Reported by Larry Jones.
62214
62215         Fix fseeko on mingw.
62216         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
62217         seek.
62218
62219         Beef up fseek tests.
62220         * tests/test-fseek.c (main): Also test eof handling.
62221         * tests/test-fseeko.c (main): Likewise.
62222         Reported by Larry Jones.
62223
62224 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
62225
62226         Fix fseeko on BSD-based platforms.
62227         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
62228         successful seek.
62229
62230 2007-12-12  Eric Blake  <ebb9@byu.net>
62231
62232         Allow circular dependency of separate libtests.a
62233         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
62234         when use_libtests.
62235
62236 2007-12-11  Eric Blake  <ebb9@byu.net>
62237
62238         Fix bug with -0.0L in previous patch.
62239         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
62240         * tests/test-isnan.c (main): Also test on zeroes.
62241         * tests/test-isnanf.c (main): Likewise.
62242         * tests/test-isnanl.h (main): Likewise.
62243
62244         Detect pseudo-denormals on x86 even when cross-compiling.
62245         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
62246         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
62247         invalid bit patterns that happen to satisfy ==.
62248
62249         Avoid link failures with separate libtests.a.
62250         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
62251         last, to satisfy circular dependencies.
62252
62253 2007-12-11  Eric Blake  <ebb9@byu.net>
62254         and Bruno Haible  <bruno@clisp.org>
62255
62256         Fix OpenBSD 4.0 <float.h> handling of long double.
62257         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
62258         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
62259         * doc/headers/float.texi (float.h): Document OpenBSD bug.
62260
62261 2007-12-11  Jim Meyering  <meyering@redhat.com>
62262
62263         * users.txt: Add libvirt.
62264
62265         Support versions of autoconf prior to 2.59c.
62266         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
62267         if it is not already defined.
62268
62269 2007-12-09  Bruno Haible  <bruno@clisp.org>
62270
62271         Let 'gnulib-tool --import' collect sources needed for the tests in
62272         tests/ rather than in lib/.
62273         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
62274         argument. If true, add rules to generate libtests.a, and put libtests.a
62275         into $(LDADD). Consider source files in subdirectories and set
62276         uses_subdirs.
62277         (func_emit_initmacro_start, func_emit_initmacro_end,
62278         func_emit_initmacro_done): Pass all arguments explicitly.
62279         (func_import): Determine two module lists main_modules,
62280         testsrelated_modules. Determine use_libtests. Determine two variables
62281         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
62282         instead of just sed_transform_lib_file. Determine two variables
62283         main_files and testsrelated_files. Compute 'files' as the union of
62284         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
62285         func_add_or_update. In the generated gnulib-comp.m4, collect the
62286         object files for tests/ in different variables than those for lib/.
62287         Substitute LIBTESTS_LIBDEPS.
62288         (func_create_testdir): Combine the uses_subdirs results from
62289         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
62290
62291 2007-12-09  Bruno Haible  <bruno@clisp.org>
62292
62293         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
62294         the build-aux directory.
62295
62296 2007-12-09  Bruno Haible  <bruno@clisp.org>
62297
62298         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
62299         introduced on 2006-09-09.
62300
62301 2007-12-07  Jim Meyering  <meyering@redhat.com>
62302
62303         Let these macros work also with autoconf-2.59.
62304         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
62305         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
62306         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62307
62308 2007-12-06  Jim Meyering  <meyering@redhat.com>
62309
62310         Avoid a configure-time syntax error in gl_FUNC_ACL.
62311         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
62312         function in each branch, before testing the cache variable.
62313
62314 2007-12-04  Eric Blake  <ebb9@byu.net>
62315
62316         Make scripts executable.
62317         * build-aux/config.guess: Add execute permissions.
62318         * build-aux/config.sub: Likewise.
62319         * build-aux/gendocs.sh: Likewise.
62320
62321         Fix frexp on mingw.
62322         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
62323         cross-compiling.
62324         * doc/functions/frexp.texi (frexp): Document the bug.
62325
62326         Make cygwin fseeko check more reliable.
62327         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
62328         version numbers, rather than unrelated feature check.
62329         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
62330         * doc/functions/ftello.texi (ftello): Likewise.
62331         Reported by Bruno Haible.
62332
62333         * m4/strerror.m4: Bump version number.
62334
62335 2007-12-03  Bruno Haible  <bruno@clisp.org>
62336
62337         * doc/functions/mprotect.texi: Mention the mingw problem.
62338
62339 2007-12-03  Eric Blake  <ebb9@byu.net>
62340
62341         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
62342         REPLACE_STRERROR is initialized before this macro.
62343
62344 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62345
62346         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
62347         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
62348         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
62349         put -lsec in even for programs other than 'ls'.  This fixes a problem
62350         for gettext reported by Bruno Haible in
62351         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
62352         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
62353         Add support for Solaris 10.  This isn't efficient, but should get the
62354         job done for now.
62355
62356 2007-12-03  James Youngman  <jay@gnu.org>
62357
62358         * doc/regexprops-generic.texi: change "an close-group" to "a
62359         close-group" and "illegal" to "not allowed".
62360
62361 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62362
62363         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
62364         pr_byname.h. Needed for the rare case when the maintainer has done
62365         "make maintainer-clean" in the source directory and then attempts a
62366         build outside the source directory.
62367         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
62368         scripts_byname.h.
62369
62370 2007-12-02  Martin Lambers <marlam@marlam.de>
62371             Bruno Haible  <bruno@clisp.org>
62372
62373         * lib/getpagesize.h: Remove file.
62374         * lib/unistd.in.h: Include declaration of getpagesize here.
62375         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
62376         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
62377         HAVE_SYS_PARAM_H.
62378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
62379         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62380         * modules/getpagesize (Files): Remove lib/getpagesize.h.
62381         (Depends-on): Add unistd.
62382         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62383         (Include): Use <unistd.h> instead of getpagesize.h.
62384         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
62385         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62386         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
62387         gl_GETPAGESIZE invocation, already handled by module dependency.
62388         * lib/pagealign_alloc.c: Don't include getpagesize.h.
62389
62390 2007-12-02  Bruno Haible  <bruno@clisp.org>
62391
62392         * modules/strings-tests: New file.
62393         * tests/test-strings.c: New file.
62394
62395         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
62396         * lib/strings.in.h: New file.
62397         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
62398         * m4/strings_h.m4: New file.
62399         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
62400         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
62401         * modules/strings: New file.
62402         * modules/string (Makefile.am): Update.
62403         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
62404         Reported by Karl Berry.
62405
62406 2007-12-01  Eric Blake  <ebb9@byu.net>
62407
62408         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
62409         accommodate fix in cygwin 1.5.25.
62410
62411 2007-12-01  Jim Meyering  <meyering@redhat.com>
62412
62413         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
62414         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
62415         that would inhibit utf8-optimization of a regexp containing line-
62416         or buffer-anchors, e.g., `^', `$'.
62417
62418 2007-11-30  Bruno Haible  <bruno@clisp.org>
62419
62420         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
62421         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
62422         glthread_recursive_lock_init.
62423         * lib/lock.c (glthread_recursive_lock_init)
62424         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
62425         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62426
62427 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
62428
62429         New function qset_acl, like set_acl but with syscall semantics.
62430         * lib/acl.h (qset_acl): New decl.
62431         * lib/acl.c (qset_acl): New function.
62432         (set_acl): Use new function.  Use more-consistent diagnostics.
62433
62434 2007-11-28  Jim Meyering  <meyering@redhat.com>
62435
62436         * modules/physmem (License): Change from GPL to LGPLv2+.
62437
62438 2007-11-26  Bruno Haible  <bruno@clisp.org>
62439
62440         * lib/vasnprintf.c (decode_long_double): Don't abort if the
62441         'long double' type has excess precision.
62442         Reported by Jim Meyering in
62443         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
62444
62445 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62446
62447         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
62448         Sync from <http://gnu.org/licenses>.
62449         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
62450         with license text from same location.
62451         * doc/maintain.texi, doc/standards.texi:  Sync from
62452         <http://savannah.gnu.org/projects/gnustandards>.
62453
62454 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
62455         and Jim Meyering  <meyering@redhat.com>
62456
62457         Adjust getdate' grammar to accept a slightly more regular language.
62458         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
62459         Before, the former was rejected.
62460         * lib/getdate.y (digits_to_date_time): New function, factored
62461         out of ...
62462         (number): ...here.  Just call digits_to_date_time.
62463         (hybrid): New non-terminal to handle an <unsigned number,
62464         signed relative offset> sequence consistently.
62465
62466 2007-11-18  Jim Meyering  <meyering@redhat.com>
62467
62468         Pull my changes from coreutils:
62469         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
62470         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
62471         use of $gnulib_tool_option_extras, so that it's separated from the
62472         preceding argument.
62473
62474         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
62475         * build-aux/bootstrap (cp_mark_as_generated): Create any required
62476         parent destination directories before copying a file into place.
62477
62478 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62479
62480         bootstrap: work also with 4-argument variant of AC_INIT
62481         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
62482
62483 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62484
62485         Port test-getaddrinfo to Solaris.
62486         Problem reported by Bruno Haible in
62487         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
62488         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
62489         explanation of setting 'hints'.
62490         Don't reject an implementation merely because it returns EAI_SERVICE.
62491         (EAI_SERVICE): Define to 0 if not defined.
62492
62493 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62494
62495         The license of gnu-make and posix-shell is now "GPLed build tool".
62496         * modules/gnu-make (License): Likewise.
62497         * modules/posix-shell (License): Likewise.
62498
62499         New module posix-shell, for determining a POSIX shell
62500         or perhaps something that is close enough to a POSIX shell.
62501         * m4/posix-shell.m4: New file.
62502         * modules/posix-shell: New file.
62503
62504         * MODULES.html.sh: Mention new module.
62505
62506         New module gnu-make, for determining whether we're using GNU Make.
62507         * m4/gnu-make.m4: New file.
62508         * modules/gnu-make: New file.
62509         * MODULES.html.sh: Mention new module.
62510
62511 2007-11-14  Jim Meyering  <meyering@redhat.com>
62512
62513         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
62514         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
62515         use this macro to create a function _definition_.
62516         Remove useless "#undef ARGMATCH_DIE".
62517
62518 2007-11-14  Bruno Haible  <bruno@clisp.org>
62519
62520         * lib/config.charset: Update for OpenBSD 4.1.
62521         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
62522
62523 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
62524
62525         Document 64-bit #if problems in stdint.texi.
62526         * doc/headers/stdint.texi (stdint.h): Mention problems with
62527         64-bit-#if, and how to work around them.
62528
62529         Don't insist on 'long long int' support in the preprocessor.  It
62530         breaks too many things.  For example, PRIdMAX still uses a 'long
62531         long int' format with the latest Sun compiler, even though
62532         HAVE_LONG_LONG_INT isn't defined due to that compiler's
62533         preprocessor problem.  This causes the latest coreutils to dump
62534         core on Solaris 10 sparc with the Sun C compiler.
62535         Instead, fix the 2007-10-16 problem in a different way, by evaluating
62536         the troublesome expressions at configure-time, not at #if-time.
62537         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
62538         preprocessor.
62539         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
62540         compile-time C checks, done at 'configure'-time.
62541         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
62542         * modules/inttypes (Makefile): Substitute the new symbols that
62543         gl_INTTYPES_H now generates.
62544         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
62545
62546 2007-11-12  Bruno Haible  <bruno@clisp.org>
62547
62548         Tests for Unicode character classification functions.
62549
62550         * modules/unictype/bidicategory-byname-tests: New file.
62551         * modules/unictype/bidicategory-name-tests: New file.
62552         * modules/unictype/bidicategory-of-tests: New file.
62553         * modules/unictype/bidicategory-test-tests: New file.
62554         * modules/unictype/block-list-tests: New file.
62555         * modules/unictype/block-of-tests: New file.
62556         * modules/unictype/block-test-tests: New file.
62557         * modules/unictype/category-C-tests: New file.
62558         * modules/unictype/category-Cc-tests: New file.
62559         * modules/unictype/category-Cf-tests: New file.
62560         * modules/unictype/category-Cn-tests: New file.
62561         * modules/unictype/category-Co-tests: New file.
62562         * modules/unictype/category-Cs-tests: New file.
62563         * modules/unictype/category-L-tests: New file.
62564         * modules/unictype/category-Ll-tests: New file.
62565         * modules/unictype/category-Lm-tests: New file.
62566         * modules/unictype/category-Lo-tests: New file.
62567         * modules/unictype/category-Lt-tests: New file.
62568         * modules/unictype/category-Lu-tests: New file.
62569         * modules/unictype/category-M-tests: New file.
62570         * modules/unictype/category-Mc-tests: New file.
62571         * modules/unictype/category-Me-tests: New file.
62572         * modules/unictype/category-Mn-tests: New file.
62573         * modules/unictype/category-N-tests: New file.
62574         * modules/unictype/category-Nd-tests: New file.
62575         * modules/unictype/category-Nl-tests: New file.
62576         * modules/unictype/category-No-tests: New file.
62577         * modules/unictype/category-P-tests: New file.
62578         * modules/unictype/category-Pc-tests: New file.
62579         * modules/unictype/category-Pd-tests: New file.
62580         * modules/unictype/category-Pe-tests: New file.
62581         * modules/unictype/category-Pf-tests: New file.
62582         * modules/unictype/category-Pi-tests: New file.
62583         * modules/unictype/category-Po-tests: New file.
62584         * modules/unictype/category-Ps-tests: New file.
62585         * modules/unictype/category-S-tests: New file.
62586         * modules/unictype/category-Sc-tests: New file.
62587         * modules/unictype/category-Sk-tests: New file.
62588         * modules/unictype/category-Sm-tests: New file.
62589         * modules/unictype/category-So-tests: New file.
62590         * modules/unictype/category-Z-tests: New file.
62591         * modules/unictype/category-Zl-tests: New file.
62592         * modules/unictype/category-Zp-tests: New file.
62593         * modules/unictype/category-Zs-tests: New file.
62594         * modules/unictype/category-and-not-tests: New file.
62595         * modules/unictype/category-and-tests: New file.
62596         * modules/unictype/category-byname-tests: New file.
62597         * modules/unictype/category-name-tests: New file.
62598         * modules/unictype/category-none-tests: New file.
62599         * modules/unictype/category-of-tests: New file.
62600         * modules/unictype/category-or-tests: New file.
62601         * modules/unictype/category-test-withtable-tests: New file.
62602         * modules/unictype/combining-class-tests: New file.
62603         * modules/unictype/ctype-alnum-tests: New file.
62604         * modules/unictype/ctype-alpha-tests: New file.
62605         * modules/unictype/ctype-blank-tests: New file.
62606         * modules/unictype/ctype-cntrl-tests: New file.
62607         * modules/unictype/ctype-digit-tests: New file.
62608         * modules/unictype/ctype-graph-tests: New file.
62609         * modules/unictype/ctype-lower-tests: New file.
62610         * modules/unictype/ctype-print-tests: New file.
62611         * modules/unictype/ctype-punct-tests: New file.
62612         * modules/unictype/ctype-space-tests: New file.
62613         * modules/unictype/ctype-upper-tests: New file.
62614         * modules/unictype/ctype-xdigit-tests: New file.
62615         * modules/unictype/decimal-digit-tests: New file.
62616         * modules/unictype/digit-tests: New file.
62617         * modules/unictype/mirror-tests: New file.
62618         * modules/unictype/numeric-tests: New file.
62619         * modules/unictype/property-alphabetic-tests: New file.
62620         * modules/unictype/property-ascii-hex-digit-tests: New file.
62621         * modules/unictype/property-bidi-arabic-digit-tests: New file.
62622         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
62623         * modules/unictype/property-bidi-block-separator-tests: New file.
62624         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
62625         * modules/unictype/property-bidi-common-separator-tests: New file.
62626         * modules/unictype/property-bidi-control-tests: New file.
62627         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
62628         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
62629         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
62630         * modules/unictype/property-bidi-european-digit-tests: New file.
62631         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
62632         * modules/unictype/property-bidi-left-to-right-tests: New file.
62633         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
62634         * modules/unictype/property-bidi-other-neutral-tests: New file.
62635         * modules/unictype/property-bidi-pdf-tests: New file.
62636         * modules/unictype/property-bidi-segment-separator-tests: New file.
62637         * modules/unictype/property-bidi-whitespace-tests: New file.
62638         * modules/unictype/property-byname-tests: New file.
62639         * modules/unictype/property-combining-tests: New file.
62640         * modules/unictype/property-composite-tests: New file.
62641         * modules/unictype/property-currency-symbol-tests: New file.
62642         * modules/unictype/property-dash-tests: New file.
62643         * modules/unictype/property-decimal-digit-tests: New file.
62644         * modules/unictype/property-default-ignorable-code-point-tests: New file.
62645         * modules/unictype/property-deprecated-tests: New file.
62646         * modules/unictype/property-diacritic-tests: New file.
62647         * modules/unictype/property-extender-tests: New file.
62648         * modules/unictype/property-format-control-tests: New file.
62649         * modules/unictype/property-grapheme-base-tests: New file.
62650         * modules/unictype/property-grapheme-extend-tests: New file.
62651         * modules/unictype/property-grapheme-link-tests: New file.
62652         * modules/unictype/property-hex-digit-tests: New file.
62653         * modules/unictype/property-hyphen-tests: New file.
62654         * modules/unictype/property-id-continue-tests: New file.
62655         * modules/unictype/property-id-start-tests: New file.
62656         * modules/unictype/property-ideographic-tests: New file.
62657         * modules/unictype/property-ids-binary-operator-tests: New file.
62658         * modules/unictype/property-ids-trinary-operator-tests: New file.
62659         * modules/unictype/property-ignorable-control-tests: New file.
62660         * modules/unictype/property-iso-control-tests: New file.
62661         * modules/unictype/property-join-control-tests: New file.
62662         * modules/unictype/property-left-of-pair-tests: New file.
62663         * modules/unictype/property-line-separator-tests: New file.
62664         * modules/unictype/property-logical-order-exception-tests: New file.
62665         * modules/unictype/property-lowercase-tests: New file.
62666         * modules/unictype/property-math-tests: New file.
62667         * modules/unictype/property-non-break-tests: New file.
62668         * modules/unictype/property-not-a-character-tests: New file.
62669         * modules/unictype/property-numeric-tests: New file.
62670         * modules/unictype/property-other-alphabetic-tests: New file.
62671         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
62672         * modules/unictype/property-other-grapheme-extend-tests: New file.
62673         * modules/unictype/property-other-id-continue-tests: New file.
62674         * modules/unictype/property-other-id-start-tests: New file.
62675         * modules/unictype/property-other-lowercase-tests: New file.
62676         * modules/unictype/property-other-math-tests: New file.
62677         * modules/unictype/property-other-uppercase-tests: New file.
62678         * modules/unictype/property-paired-punctuation-tests: New file.
62679         * modules/unictype/property-paragraph-separator-tests: New file.
62680         * modules/unictype/property-pattern-syntax-tests: New file.
62681         * modules/unictype/property-pattern-white-space-tests: New file.
62682         * modules/unictype/property-private-use-tests: New file.
62683         * modules/unictype/property-punctuation-tests: New file.
62684         * modules/unictype/property-quotation-mark-tests: New file.
62685         * modules/unictype/property-radical-tests: New file.
62686         * modules/unictype/property-sentence-terminal-tests: New file.
62687         * modules/unictype/property-soft-dotted-tests: New file.
62688         * modules/unictype/property-space-tests: New file.
62689         * modules/unictype/property-terminal-punctuation-tests: New file.
62690         * modules/unictype/property-test-tests: New file.
62691         * modules/unictype/property-titlecase-tests: New file.
62692         * modules/unictype/property-unassigned-code-value-tests: New file.
62693         * modules/unictype/property-unified-ideograph-tests: New file.
62694         * modules/unictype/property-uppercase-tests: New file.
62695         * modules/unictype/property-variation-selector-tests: New file.
62696         * modules/unictype/property-white-space-tests: New file.
62697         * modules/unictype/property-xid-continue-tests: New file.
62698         * modules/unictype/property-xid-start-tests: New file.
62699         * modules/unictype/property-zero-width-tests: New file.
62700         * modules/unictype/scripts-tests: New file.
62701         * modules/unictype/syntax-c-ident-tests: New file.
62702         * modules/unictype/syntax-c-whitespace-tests: New file.
62703         * modules/unictype/syntax-java-ident-tests: New file.
62704         * modules/unictype/syntax-java-whitespace-tests: New file.
62705         * tests/unictype/test-bidi_byname.c: New file.
62706         * tests/unictype/test-bidi_name.c: New file.
62707         * tests/unictype/test-bidi_of.c: New file.
62708         * tests/unictype/test-bidi_test.c: New file.
62709         * tests/unictype/test-block_list.c: New file.
62710         * tests/unictype/test-block_of.c: New file.
62711         * tests/unictype/test-block_test.c: New file.
62712         * tests/unictype/test-categ_and.c: New file.
62713         * tests/unictype/test-categ_and_not.c: New file.
62714         * tests/unictype/test-categ_byname.c: New file.
62715         * tests/unictype/test-categ_name.c: New file.
62716         * tests/unictype/test-categ_none.c: New file.
62717         * tests/unictype/test-categ_of.c: New file.
62718         * tests/unictype/test-categ_or.c: New file.
62719         * tests/unictype/test-categ_test_withtable.c: New file.
62720         * tests/unictype/test-combining.c: New file.
62721         * tests/unictype/test-decdigit.c: New file.
62722         * tests/unictype/test-digit.c: New file.
62723         * tests/unictype/test-mirror.c: New file.
62724         * tests/unictype/test-numeric.c: New file.
62725         * tests/unictype/test-pr_byname.c: New file.
62726         * tests/unictype/test-pr_test.c: New file.
62727         * tests/unictype/test-predicate-part1.h: New file.
62728         * tests/unictype/test-predicate-part2.h: New file.
62729         * tests/unictype/test-scripts.c: New file.
62730         * tests/unictype/test-sy_c_ident.c: New file.
62731         * tests/unictype/test-sy_java_ident.c: New file.
62732
62733         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
62734         for Unicode 5.0.0.
62735         * tests/unictype/test-categ_Cc.c: Likewise.
62736         * tests/unictype/test-categ_Cf.c: Likewise.
62737         * tests/unictype/test-categ_Cn.c: Likewise.
62738         * tests/unictype/test-categ_Co.c: Likewise.
62739         * tests/unictype/test-categ_Cs.c: Likewise.
62740         * tests/unictype/test-categ_L.c: Likewise.
62741         * tests/unictype/test-categ_Ll.c: Likewise.
62742         * tests/unictype/test-categ_Lm.c: Likewise.
62743         * tests/unictype/test-categ_Lo.c: Likewise.
62744         * tests/unictype/test-categ_Lt.c: Likewise.
62745         * tests/unictype/test-categ_Lu.c: Likewise.
62746         * tests/unictype/test-categ_M.c: Likewise.
62747         * tests/unictype/test-categ_Mc.c: Likewise.
62748         * tests/unictype/test-categ_Me.c: Likewise.
62749         * tests/unictype/test-categ_Mn.c: Likewise.
62750         * tests/unictype/test-categ_N.c: Likewise.
62751         * tests/unictype/test-categ_Nd.c: Likewise.
62752         * tests/unictype/test-categ_Nl.c: Likewise.
62753         * tests/unictype/test-categ_No.c: Likewise.
62754         * tests/unictype/test-categ_P.c: Likewise.
62755         * tests/unictype/test-categ_Pc.c: Likewise.
62756         * tests/unictype/test-categ_Pd.c: Likewise.
62757         * tests/unictype/test-categ_Pe.c: Likewise.
62758         * tests/unictype/test-categ_Pf.c: Likewise.
62759         * tests/unictype/test-categ_Pi.c: Likewise.
62760         * tests/unictype/test-categ_Po.c: Likewise.
62761         * tests/unictype/test-categ_Ps.c: Likewise.
62762         * tests/unictype/test-categ_S.c: Likewise.
62763         * tests/unictype/test-categ_Sc.c: Likewise.
62764         * tests/unictype/test-categ_Sk.c: Likewise.
62765         * tests/unictype/test-categ_Sm.c: Likewise.
62766         * tests/unictype/test-categ_So.c: Likewise.
62767         * tests/unictype/test-categ_Z.c: Likewise.
62768         * tests/unictype/test-categ_Zl.c: Likewise.
62769         * tests/unictype/test-categ_Zp.c: Likewise.
62770         * tests/unictype/test-categ_Zs.c: Likewise.
62771         * tests/unictype/test-ctype_alnum.c: Likewise.
62772         * tests/unictype/test-ctype_alpha.c: Likewise.
62773         * tests/unictype/test-ctype_blank.c: Likewise.
62774         * tests/unictype/test-ctype_cntrl.c: Likewise.
62775         * tests/unictype/test-ctype_digit.c: Likewise.
62776         * tests/unictype/test-ctype_graph.c: Likewise.
62777         * tests/unictype/test-ctype_lower.c: Likewise.
62778         * tests/unictype/test-ctype_print.c: Likewise.
62779         * tests/unictype/test-ctype_punct.c: Likewise.
62780         * tests/unictype/test-ctype_space.c: Likewise.
62781         * tests/unictype/test-ctype_upper.c: Likewise.
62782         * tests/unictype/test-ctype_xdigit.c: Likewise.
62783         * tests/unictype/test-decdigit.h: Likewise.
62784         * tests/unictype/test-digit.h: Likewise.
62785         * tests/unictype/test-numeric.h: Likewise.
62786         * tests/unictype/test-pr_alphabetic.c: Likewise.
62787         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
62788         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
62789         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
62790         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
62791         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
62792         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
62793         * tests/unictype/test-pr_bidi_control.c: Likewise.
62794         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
62795         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
62796         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
62797         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
62798         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
62799         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
62800         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
62801         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
62802         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
62803         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
62804         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
62805         * tests/unictype/test-pr_combining.c: Likewise.
62806         * tests/unictype/test-pr_composite.c: Likewise.
62807         * tests/unictype/test-pr_currency_symbol.c: Likewise.
62808         * tests/unictype/test-pr_dash.c: Likewise.
62809         * tests/unictype/test-pr_decimal_digit.c: Likewise.
62810         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
62811         * tests/unictype/test-pr_deprecated.c: Likewise.
62812         * tests/unictype/test-pr_diacritic.c: Likewise.
62813         * tests/unictype/test-pr_extender.c: Likewise.
62814         * tests/unictype/test-pr_format_control.c: Likewise.
62815         * tests/unictype/test-pr_grapheme_base.c: Likewise.
62816         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
62817         * tests/unictype/test-pr_grapheme_link.c: Likewise.
62818         * tests/unictype/test-pr_hex_digit.c: Likewise.
62819         * tests/unictype/test-pr_hyphen.c: Likewise.
62820         * tests/unictype/test-pr_id_continue.c: Likewise.
62821         * tests/unictype/test-pr_id_start.c: Likewise.
62822         * tests/unictype/test-pr_ideographic.c: Likewise.
62823         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
62824         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
62825         * tests/unictype/test-pr_ignorable_control.c: Likewise.
62826         * tests/unictype/test-pr_iso_control.c: Likewise.
62827         * tests/unictype/test-pr_join_control.c: Likewise.
62828         * tests/unictype/test-pr_left_of_pair.c: Likewise.
62829         * tests/unictype/test-pr_line_separator.c: Likewise.
62830         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
62831         * tests/unictype/test-pr_lowercase.c: Likewise.
62832         * tests/unictype/test-pr_math.c: Likewise.
62833         * tests/unictype/test-pr_non_break.c: Likewise.
62834         * tests/unictype/test-pr_not_a_character.c: Likewise.
62835         * tests/unictype/test-pr_numeric.c: Likewise.
62836         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
62837         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
62838         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
62839         * tests/unictype/test-pr_other_id_continue.c: Likewise.
62840         * tests/unictype/test-pr_other_id_start.c: Likewise.
62841         * tests/unictype/test-pr_other_lowercase.c: Likewise.
62842         * tests/unictype/test-pr_other_math.c: Likewise.
62843         * tests/unictype/test-pr_other_uppercase.c: Likewise.
62844         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
62845         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
62846         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
62847         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
62848         * tests/unictype/test-pr_private_use.c: Likewise.
62849         * tests/unictype/test-pr_punctuation.c: Likewise.
62850         * tests/unictype/test-pr_quotation_mark.c: Likewise.
62851         * tests/unictype/test-pr_radical.c: Likewise.
62852         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
62853         * tests/unictype/test-pr_soft_dotted.c: Likewise.
62854         * tests/unictype/test-pr_space.c: Likewise.
62855         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
62856         * tests/unictype/test-pr_titlecase.c: Likewise.
62857         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
62858         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
62859         * tests/unictype/test-pr_uppercase.c: Likewise.
62860         * tests/unictype/test-pr_variation_selector.c: Likewise.
62861         * tests/unictype/test-pr_white_space.c: Likewise.
62862         * tests/unictype/test-pr_xid_continue.c: Likewise.
62863         * tests/unictype/test-pr_xid_start.c: Likewise.
62864         * tests/unictype/test-pr_zero_width.c: Likewise.
62865         * tests/unictype/test-sy_c_whitespace.c: Likewise.
62866         * tests/unictype/test-sy_java_whitespace.c: Likewise.
62867
62868 2007-11-12  Bruno Haible  <bruno@clisp.org>
62869
62870         Unicode character classification functions.
62871         * lib/unictype.h: New file.
62872         * modules/unictype/base: New file.
62873         * modules/unictype/category-L: New file.
62874         * modules/unictype/category-Lu: New file.
62875         * modules/unictype/category-Ll: New file.
62876         * modules/unictype/category-Lt: New file.
62877         * modules/unictype/category-Lm: New file.
62878         * modules/unictype/category-Lo: New file.
62879         * modules/unictype/category-M: New file.
62880         * modules/unictype/category-Mn: New file.
62881         * modules/unictype/category-Mc: New file.
62882         * modules/unictype/category-Me: New file.
62883         * modules/unictype/category-N: New file.
62884         * modules/unictype/category-Nd: New file.
62885         * modules/unictype/category-Nl: New file.
62886         * modules/unictype/category-No: New file.
62887         * modules/unictype/category-P: New file.
62888         * modules/unictype/category-Pc: New file.
62889         * modules/unictype/category-Pd: New file.
62890         * modules/unictype/category-Ps: New file.
62891         * modules/unictype/category-Pe: New file.
62892         * modules/unictype/category-Pi: New file.
62893         * modules/unictype/category-Pf: New file.
62894         * modules/unictype/category-Po: New file.
62895         * modules/unictype/category-S: New file.
62896         * modules/unictype/category-Sm: New file.
62897         * modules/unictype/category-Sc: New file.
62898         * modules/unictype/category-Sk: New file.
62899         * modules/unictype/category-So: New file.
62900         * modules/unictype/category-Z: New file.
62901         * modules/unictype/category-Zs: New file.
62902         * modules/unictype/category-Zl: New file.
62903         * modules/unictype/category-Zp: New file.
62904         * modules/unictype/category-C: New file.
62905         * modules/unictype/category-Cc: New file.
62906         * modules/unictype/category-Cf: New file.
62907         * modules/unictype/category-Cs: New file.
62908         * modules/unictype/category-Co: New file.
62909         * modules/unictype/category-Cn: New file.
62910         * modules/unictype/category-or: New file.
62911         * modules/unictype/category-of: New file.
62912         * modules/unictype/category-test: New file.
62913         * modules/unictype/category-test-withtable: New file.
62914         * modules/unictype/category-byname: New file.
62915         * modules/unictype/category-none: New file.
62916         * modules/unictype/category-and: New file.
62917         * modules/unictype/category-and-not: New file.
62918         * modules/unictype/category-name: New file.
62919         * modules/unictype/combining-class: New file.
62920         * modules/unictype/category-all: New file.
62921         * modules/unictype/bidicategory-all: New file.
62922         * modules/unictype/bidicategory-byname: New file.
62923         * modules/unictype/bidicategory-name: New file.
62924         * modules/unictype/bidicategory-of: New file.
62925         * modules/unictype/bidicategory-test: New file.
62926         * modules/unictype/decimal-digit: New file.
62927         * modules/unictype/digit: New file.
62928         * modules/unictype/numeric: New file.
62929         * modules/unictype/mirror: New file.
62930         * modules/unictype/property-white-space: New file.
62931         * modules/unictype/property-alphabetic: New file.
62932         * modules/unictype/property-other-alphabetic: New file.
62933         * modules/unictype/property-not-a-character: New file.
62934         * modules/unictype/property-default-ignorable-code-point: New file.
62935         * modules/unictype/property-other-default-ignorable-code-point: New
62936         file.
62937         * modules/unictype/property-deprecated: New file.
62938         * modules/unictype/property-logical-order-exception: New file.
62939         * modules/unictype/property-variation-selector: New file.
62940         * modules/unictype/property-private-use: New file.
62941         * modules/unictype/property-unassigned-code-value: New file.
62942         * modules/unictype/property-uppercase: New file.
62943         * modules/unictype/property-other-uppercase: New file.
62944         * modules/unictype/property-lowercase: New file.
62945         * modules/unictype/property-other-lowercase: New file.
62946         * modules/unictype/property-titlecase: New file.
62947         * modules/unictype/property-soft-dotted: New file.
62948         * modules/unictype/property-id-start: New file.
62949         * modules/unictype/property-other-id-start: New file.
62950         * modules/unictype/property-id-continue: New file.
62951         * modules/unictype/property-other-id-continue: New file.
62952         * modules/unictype/property-xid-start: New file.
62953         * modules/unictype/property-xid-continue: New file.
62954         * modules/unictype/property-pattern-white-space: New file.
62955         * modules/unictype/property-pattern-syntax: New file.
62956         * modules/unictype/property-join-control: New file.
62957         * modules/unictype/property-grapheme-base: New file.
62958         * modules/unictype/property-grapheme-extend: New file.
62959         * modules/unictype/property-other-grapheme-extend: New file.
62960         * modules/unictype/property-grapheme-link: New file.
62961         * modules/unictype/property-bidi-control: New file.
62962         * modules/unictype/property-bidi-left-to-right: New file.
62963         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
62964         * modules/unictype/property-bidi-arabic-right-to-left: New file.
62965         * modules/unictype/property-bidi-european-digit: New file.
62966         * modules/unictype/property-bidi-eur-num-separator: New file.
62967         * modules/unictype/property-bidi-eur-num-terminator: New file.
62968         * modules/unictype/property-bidi-arabic-digit: New file.
62969         * modules/unictype/property-bidi-common-separator: New file.
62970         * modules/unictype/property-bidi-block-separator: New file.
62971         * modules/unictype/property-bidi-segment-separator: New file.
62972         * modules/unictype/property-bidi-whitespace: New file.
62973         * modules/unictype/property-bidi-non-spacing-mark: New file.
62974         * modules/unictype/property-bidi-boundary-neutral: New file.
62975         * modules/unictype/property-bidi-pdf: New file.
62976         * modules/unictype/property-bidi-embedding-or-override: New file.
62977         * modules/unictype/property-bidi-other-neutral: New file.
62978         * modules/unictype/property-hex-digit: New file.
62979         * modules/unictype/property-ascii-hex-digit: New file.
62980         * modules/unictype/property-ideographic: New file.
62981         * modules/unictype/property-unified-ideograph: New file.
62982         * modules/unictype/property-radical: New file.
62983         * modules/unictype/property-ids-binary-operator: New file.
62984         * modules/unictype/property-ids-trinary-operator: New file.
62985         * modules/unictype/property-zero-width: New file.
62986         * modules/unictype/property-space: New file.
62987         * modules/unictype/property-non-break: New file.
62988         * modules/unictype/property-iso-control: New file.
62989         * modules/unictype/property-format-control: New file.
62990         * modules/unictype/property-dash: New file.
62991         * modules/unictype/property-hyphen: New file.
62992         * modules/unictype/property-punctuation: New file.
62993         * modules/unictype/property-line-separator: New file.
62994         * modules/unictype/property-paragraph-separator: New file.
62995         * modules/unictype/property-quotation-mark: New file.
62996         * modules/unictype/property-sentence-terminal: New file.
62997         * modules/unictype/property-terminal-punctuation: New file.
62998         * modules/unictype/property-currency-symbol: New file.
62999         * modules/unictype/property-math: New file.
63000         * modules/unictype/property-other-math: New file.
63001         * modules/unictype/property-paired-punctuation: New file.
63002         * modules/unictype/property-left-of-pair: New file.
63003         * modules/unictype/property-combining: New file.
63004         * modules/unictype/property-composite: New file.
63005         * modules/unictype/property-decimal-digit: New file.
63006         * modules/unictype/property-numeric: New file.
63007         * modules/unictype/property-diacritic: New file.
63008         * modules/unictype/property-extender: New file.
63009         * modules/unictype/property-ignorable-control: New file.
63010         * modules/unictype/property-test: New file.
63011         * modules/unictype/property-byname: New file.
63012         * modules/unictype/property-all: New file.
63013         * modules/unictype/scripts: New file.
63014         * modules/unictype/scripts-all: New file.
63015         * modules/unictype/block-of: New file.
63016         * modules/unictype/block-test: New file.
63017         * modules/unictype/block-list: New file.
63018         * modules/unictype/block-all: New file.
63019         * modules/unictype/syntax-c-whitespace: New file.
63020         * modules/unictype/syntax-java-whitespace: New file.
63021         * modules/unictype/syntax-c-ident: New file.
63022         * modules/unictype/syntax-java-ident: New file.
63023         * modules/unictype/ctype-alnum: New file.
63024         * modules/unictype/ctype-alpha: New file.
63025         * modules/unictype/ctype-cntrl: New file.
63026         * modules/unictype/ctype-digit: New file.
63027         * modules/unictype/ctype-graph: New file.
63028         * modules/unictype/ctype-lower: New file.
63029         * modules/unictype/ctype-print: New file.
63030         * modules/unictype/ctype-punct: New file.
63031         * modules/unictype/ctype-space: New file.
63032         * modules/unictype/ctype-upper: New file.
63033         * modules/unictype/ctype-xdigit: New file.
63034         * modules/unictype/ctype-blank: New file.
63035         * lib/unictype/bidi_byname.c: New file.
63036         * lib/unictype/bidi_name.c: New file.
63037         * lib/unictype/bidi_of.c: New file.
63038         * lib/unictype/bidi_test.c: New file.
63039         * lib/unictype/bitmap.h: New file.
63040         * lib/unictype/block_test.c: New file.
63041         * lib/unictype/blocks.c: New file.
63042         * lib/unictype/categ_C.c: New file.
63043         * lib/unictype/categ_Cc.c: New file.
63044         * lib/unictype/categ_Cf.c: New file.
63045         * lib/unictype/categ_Cn.c: New file.
63046         * lib/unictype/categ_Co.c: New file.
63047         * lib/unictype/categ_Cs.c: New file.
63048         * lib/unictype/categ_L.c: New file.
63049         * lib/unictype/categ_Ll.c: New file.
63050         * lib/unictype/categ_Lm.c: New file.
63051         * lib/unictype/categ_Lo.c: New file.
63052         * lib/unictype/categ_Lt.c: New file.
63053         * lib/unictype/categ_Lu.c: New file.
63054         * lib/unictype/categ_M.c: New file.
63055         * lib/unictype/categ_Mc.c: New file.
63056         * lib/unictype/categ_Me.c: New file.
63057         * lib/unictype/categ_Mn.c: New file.
63058         * lib/unictype/categ_N.c: New file.
63059         * lib/unictype/categ_Nd.c: New file.
63060         * lib/unictype/categ_Nl.c: New file.
63061         * lib/unictype/categ_No.c: New file.
63062         * lib/unictype/categ_P.c: New file.
63063         * lib/unictype/categ_Pc.c: New file.
63064         * lib/unictype/categ_Pd.c: New file.
63065         * lib/unictype/categ_Pe.c: New file.
63066         * lib/unictype/categ_Pf.c: New file.
63067         * lib/unictype/categ_Pi.c: New file.
63068         * lib/unictype/categ_Po.c: New file.
63069         * lib/unictype/categ_Ps.c: New file.
63070         * lib/unictype/categ_S.c: New file.
63071         * lib/unictype/categ_Sc.c: New file.
63072         * lib/unictype/categ_Sk.c: New file.
63073         * lib/unictype/categ_Sm.c: New file.
63074         * lib/unictype/categ_So.c: New file.
63075         * lib/unictype/categ_Z.c: New file.
63076         * lib/unictype/categ_Zl.c: New file.
63077         * lib/unictype/categ_Zp.c: New file.
63078         * lib/unictype/categ_Zs.c: New file.
63079         * lib/unictype/categ_and.c: New file.
63080         * lib/unictype/categ_and_not.c: New file.
63081         * lib/unictype/categ_byname.c: New file.
63082         * lib/unictype/categ_name.c: New file.
63083         * lib/unictype/categ_none.c: New file.
63084         * lib/unictype/categ_of.c: New file.
63085         * lib/unictype/categ_or.c: New file.
63086         * lib/unictype/categ_test.c: New file.
63087         * lib/unictype/combining.c: New file.
63088         * lib/unictype/ctype_alnum.c: New file.
63089         * lib/unictype/ctype_alpha.c: New file.
63090         * lib/unictype/ctype_blank.c: New file.
63091         * lib/unictype/ctype_cntrl.c: New file.
63092         * lib/unictype/ctype_digit.c: New file.
63093         * lib/unictype/ctype_graph.c: New file.
63094         * lib/unictype/ctype_lower.c: New file.
63095         * lib/unictype/ctype_print.c: New file.
63096         * lib/unictype/ctype_punct.c: New file.
63097         * lib/unictype/ctype_space.c: New file.
63098         * lib/unictype/ctype_upper.c: New file.
63099         * lib/unictype/ctype_xdigit.c: New file.
63100         * lib/unictype/decdigit.c: New file.
63101         * lib/unictype/digit.c: New file.
63102         * lib/unictype/identsyntaxmap.h: New file.
63103         * lib/unictype/mirror.c: New file.
63104         * lib/unictype/numeric.c: New file.
63105         * lib/unictype/pr_alphabetic.c: New file.
63106         * lib/unictype/pr_ascii_hex_digit.c: New file.
63107         * lib/unictype/pr_bidi_arabic_digit.c: New file.
63108         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
63109         * lib/unictype/pr_bidi_block_separator.c: New file.
63110         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
63111         * lib/unictype/pr_bidi_common_separator.c: New file.
63112         * lib/unictype/pr_bidi_control.c: New file.
63113         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
63114         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
63115         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
63116         * lib/unictype/pr_bidi_european_digit.c: New file.
63117         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
63118         * lib/unictype/pr_bidi_left_to_right.c: New file.
63119         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
63120         * lib/unictype/pr_bidi_other_neutral.c: New file.
63121         * lib/unictype/pr_bidi_pdf.c: New file.
63122         * lib/unictype/pr_bidi_segment_separator.c: New file.
63123         * lib/unictype/pr_bidi_whitespace.c: New file.
63124         * lib/unictype/pr_byname.c: New file.
63125         * lib/unictype/pr_byname.gperf: New file.
63126         * lib/unictype/pr_combining.c: New file.
63127         * lib/unictype/pr_composite.c: New file.
63128         * lib/unictype/pr_currency_symbol.c: New file.
63129         * lib/unictype/pr_dash.c: New file.
63130         * lib/unictype/pr_decimal_digit.c: New file.
63131         * lib/unictype/pr_default_ignorable_code_point.c: New file.
63132         * lib/unictype/pr_deprecated.c: New file.
63133         * lib/unictype/pr_diacritic.c: New file.
63134         * lib/unictype/pr_extender.c: New file.
63135         * lib/unictype/pr_format_control.c: New file.
63136         * lib/unictype/pr_grapheme_base.c: New file.
63137         * lib/unictype/pr_grapheme_extend.c: New file.
63138         * lib/unictype/pr_grapheme_link.c: New file.
63139         * lib/unictype/pr_hex_digit.c: New file.
63140         * lib/unictype/pr_hyphen.c: New file.
63141         * lib/unictype/pr_id_continue.c: New file.
63142         * lib/unictype/pr_id_start.c: New file.
63143         * lib/unictype/pr_ideographic.c: New file.
63144         * lib/unictype/pr_ids_binary_operator.c: New file.
63145         * lib/unictype/pr_ids_trinary_operator.c: New file.
63146         * lib/unictype/pr_ignorable_control.c: New file.
63147         * lib/unictype/pr_iso_control.c: New file.
63148         * lib/unictype/pr_join_control.c: New file.
63149         * lib/unictype/pr_left_of_pair.c: New file.
63150         * lib/unictype/pr_line_separator.c: New file.
63151         * lib/unictype/pr_logical_order_exception.c: New file.
63152         * lib/unictype/pr_lowercase.c: New file.
63153         * lib/unictype/pr_math.c: New file.
63154         * lib/unictype/pr_non_break.c: New file.
63155         * lib/unictype/pr_not_a_character.c: New file.
63156         * lib/unictype/pr_numeric.c: New file.
63157         * lib/unictype/pr_other_alphabetic.c: New file.
63158         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
63159         * lib/unictype/pr_other_grapheme_extend.c: New file.
63160         * lib/unictype/pr_other_id_continue.c: New file.
63161         * lib/unictype/pr_other_id_start.c: New file.
63162         * lib/unictype/pr_other_lowercase.c: New file.
63163         * lib/unictype/pr_other_math.c: New file.
63164         * lib/unictype/pr_other_uppercase.c: New file.
63165         * lib/unictype/pr_paired_punctuation.c: New file.
63166         * lib/unictype/pr_paragraph_separator.c: New file.
63167         * lib/unictype/pr_pattern_syntax.c: New file.
63168         * lib/unictype/pr_pattern_white_space.c: New file.
63169         * lib/unictype/pr_private_use.c: New file.
63170         * lib/unictype/pr_punctuation.c: New file.
63171         * lib/unictype/pr_quotation_mark.c: New file.
63172         * lib/unictype/pr_radical.c: New file.
63173         * lib/unictype/pr_sentence_terminal.c: New file.
63174         * lib/unictype/pr_soft_dotted.c: New file.
63175         * lib/unictype/pr_space.c: New file.
63176         * lib/unictype/pr_terminal_punctuation.c: New file.
63177         * lib/unictype/pr_test.c: New file.
63178         * lib/unictype/pr_titlecase.c: New file.
63179         * lib/unictype/pr_unassigned_code_value.c: New file.
63180         * lib/unictype/pr_unified_ideograph.c: New file.
63181         * lib/unictype/pr_uppercase.c: New file.
63182         * lib/unictype/pr_variation_selector.c: New file.
63183         * lib/unictype/pr_white_space.c: New file.
63184         * lib/unictype/pr_xid_continue.c: New file.
63185         * lib/unictype/pr_xid_start.c: New file.
63186         * lib/unictype/pr_zero_width.c: New file.
63187         * lib/unictype/scripts.c: New file.
63188         * lib/unictype/sy_c_ident.c: New file.
63189         * lib/unictype/sy_c_whitespace.c: New file.
63190         * lib/unictype/sy_java_ident.c: New file.
63191         * lib/unictype/sy_java_whitespace.c: New file.
63192
63193         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
63194         Unicode 5.0.0.
63195         * lib/unictype/blocks.h: Likewise.
63196         * lib/unictype/categ_C.h: Likewise.
63197         * lib/unictype/categ_Cc.h: Likewise.
63198         * lib/unictype/categ_Cf.h: Likewise.
63199         * lib/unictype/categ_Cn.h: Likewise.
63200         * lib/unictype/categ_Co.h: Likewise.
63201         * lib/unictype/categ_Cs.h: Likewise.
63202         * lib/unictype/categ_L.h: Likewise.
63203         * lib/unictype/categ_Ll.h: Likewise.
63204         * lib/unictype/categ_Lm.h: Likewise.
63205         * lib/unictype/categ_Lo.h: Likewise.
63206         * lib/unictype/categ_Lt.h: Likewise.
63207         * lib/unictype/categ_Lu.h: Likewise.
63208         * lib/unictype/categ_M.h: Likewise.
63209         * lib/unictype/categ_Mc.h: Likewise.
63210         * lib/unictype/categ_Me.h: Likewise.
63211         * lib/unictype/categ_Mn.h: Likewise.
63212         * lib/unictype/categ_N.h: Likewise.
63213         * lib/unictype/categ_Nd.h: Likewise.
63214         * lib/unictype/categ_Nl.h: Likewise.
63215         * lib/unictype/categ_No.h: Likewise.
63216         * lib/unictype/categ_P.h: Likewise.
63217         * lib/unictype/categ_Pc.h: Likewise.
63218         * lib/unictype/categ_Pd.h: Likewise.
63219         * lib/unictype/categ_Pe.h: Likewise.
63220         * lib/unictype/categ_Pf.h: Likewise.
63221         * lib/unictype/categ_Pi.h: Likewise.
63222         * lib/unictype/categ_Po.h: Likewise.
63223         * lib/unictype/categ_Ps.h: Likewise.
63224         * lib/unictype/categ_S.h: Likewise.
63225         * lib/unictype/categ_Sc.h: Likewise.
63226         * lib/unictype/categ_Sk.h: Likewise.
63227         * lib/unictype/categ_Sm.h: Likewise.
63228         * lib/unictype/categ_So.h: Likewise.
63229         * lib/unictype/categ_Z.h: Likewise.
63230         * lib/unictype/categ_Zl.h: Likewise.
63231         * lib/unictype/categ_Zp.h: Likewise.
63232         * lib/unictype/categ_Zs.h: Likewise.
63233         * lib/unictype/categ_of.h: Likewise.
63234         * lib/unictype/combining.h: Likewise.
63235         * lib/unictype/ctype_alnum.h: Likewise.
63236         * lib/unictype/ctype_alpha.h: Likewise.
63237         * lib/unictype/ctype_blank.h: Likewise.
63238         * lib/unictype/ctype_cntrl.h: Likewise.
63239         * lib/unictype/ctype_digit.h: Likewise.
63240         * lib/unictype/ctype_graph.h: Likewise.
63241         * lib/unictype/ctype_lower.h: Likewise.
63242         * lib/unictype/ctype_print.h: Likewise.
63243         * lib/unictype/ctype_punct.h: Likewise.
63244         * lib/unictype/ctype_space.h: Likewise.
63245         * lib/unictype/ctype_upper.h: Likewise.
63246         * lib/unictype/ctype_xdigit.h: Likewise.
63247         * lib/unictype/decdigit.h: Likewise.
63248         * lib/unictype/digit.h: Likewise.
63249         * lib/unictype/mirror.h: Likewise.
63250         * lib/unictype/numeric.h: Likewise.
63251         * lib/unictype/pr_alphabetic.h: Likewise.
63252         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
63253         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
63254         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
63255         * lib/unictype/pr_bidi_block_separator.h: Likewise.
63256         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
63257         * lib/unictype/pr_bidi_common_separator.h: Likewise.
63258         * lib/unictype/pr_bidi_control.h: Likewise.
63259         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
63260         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
63261         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
63262         * lib/unictype/pr_bidi_european_digit.h: Likewise.
63263         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
63264         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
63265         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
63266         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
63267         * lib/unictype/pr_bidi_pdf.h: Likewise.
63268         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
63269         * lib/unictype/pr_bidi_whitespace.h: Likewise.
63270         * lib/unictype/pr_combining.h: Likewise.
63271         * lib/unictype/pr_composite.h: Likewise.
63272         * lib/unictype/pr_currency_symbol.h: Likewise.
63273         * lib/unictype/pr_dash.h: Likewise.
63274         * lib/unictype/pr_decimal_digit.h: Likewise.
63275         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
63276         * lib/unictype/pr_deprecated.h: Likewise.
63277         * lib/unictype/pr_diacritic.h: Likewise.
63278         * lib/unictype/pr_extender.h: Likewise.
63279         * lib/unictype/pr_format_control.h: Likewise.
63280         * lib/unictype/pr_grapheme_base.h: Likewise.
63281         * lib/unictype/pr_grapheme_extend.h: Likewise.
63282         * lib/unictype/pr_grapheme_link.h: Likewise.
63283         * lib/unictype/pr_hex_digit.h: Likewise.
63284         * lib/unictype/pr_hyphen.h: Likewise.
63285         * lib/unictype/pr_id_continue.h: Likewise.
63286         * lib/unictype/pr_id_start.h: Likewise.
63287         * lib/unictype/pr_ideographic.h: Likewise.
63288         * lib/unictype/pr_ids_binary_operator.h: Likewise.
63289         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
63290         * lib/unictype/pr_ignorable_control.h: Likewise.
63291         * lib/unictype/pr_iso_control.h: Likewise.
63292         * lib/unictype/pr_join_control.h: Likewise.
63293         * lib/unictype/pr_left_of_pair.h: Likewise.
63294         * lib/unictype/pr_line_separator.h: Likewise.
63295         * lib/unictype/pr_logical_order_exception.h: Likewise.
63296         * lib/unictype/pr_lowercase.h: Likewise.
63297         * lib/unictype/pr_math.h: Likewise.
63298         * lib/unictype/pr_non_break.h: Likewise.
63299         * lib/unictype/pr_not_a_character.h: Likewise.
63300         * lib/unictype/pr_numeric.h: Likewise.
63301         * lib/unictype/pr_other_alphabetic.h: Likewise.
63302         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
63303         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
63304         * lib/unictype/pr_other_id_continue.h: Likewise.
63305         * lib/unictype/pr_other_id_start.h: Likewise.
63306         * lib/unictype/pr_other_lowercase.h: Likewise.
63307         * lib/unictype/pr_other_math.h: Likewise.
63308         * lib/unictype/pr_other_uppercase.h: Likewise.
63309         * lib/unictype/pr_paired_punctuation.h: Likewise.
63310         * lib/unictype/pr_paragraph_separator.h: Likewise.
63311         * lib/unictype/pr_pattern_syntax.h: Likewise.
63312         * lib/unictype/pr_pattern_white_space.h: Likewise.
63313         * lib/unictype/pr_private_use.h: Likewise.
63314         * lib/unictype/pr_punctuation.h: Likewise.
63315         * lib/unictype/pr_quotation_mark.h: Likewise.
63316         * lib/unictype/pr_radical.h: Likewise.
63317         * lib/unictype/pr_sentence_terminal.h: Likewise.
63318         * lib/unictype/pr_soft_dotted.h: Likewise.
63319         * lib/unictype/pr_space.h: Likewise.
63320         * lib/unictype/pr_terminal_punctuation.h: Likewise.
63321         * lib/unictype/pr_titlecase.h: Likewise.
63322         * lib/unictype/pr_unassigned_code_value.h: Likewise.
63323         * lib/unictype/pr_unified_ideograph.h: Likewise.
63324         * lib/unictype/pr_uppercase.h: Likewise.
63325         * lib/unictype/pr_variation_selector.h: Likewise.
63326         * lib/unictype/pr_white_space.h: Likewise.
63327         * lib/unictype/pr_xid_continue.h: Likewise.
63328         * lib/unictype/pr_xid_start.h: Likewise.
63329         * lib/unictype/pr_zero_width.h: Likewise.
63330         * lib/unictype/scripts.h: Likewise.
63331         * lib/unictype/scripts_byname.gperf: Likewise.
63332         * lib/unictype/sy_c_ident.h: Likewise.
63333         * lib/unictype/sy_c_whitespace.h: Likewise.
63334         * lib/unictype/sy_java_ident.h: Likewise.
63335         * lib/unictype/sy_java_whitespace.h: Likewise.
63336
63337         * lib/unictype/Makefile: New file.
63338         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
63339         glibc.
63340         * lib/unictype/3level.h: New file, copied from glibc.
63341         * lib/unictype/3levelbit.h: New file.
63342
63343 2007-11-11  Bruno Haible  <bruno@clisp.org>
63344
63345         * modules/gperf: New file.
63346         * modules/iconv_open (Depends-on): Add it.
63347         (Makefile.am): Remove the GPERF definition.
63348
63349 2007-11-11  Bruno Haible  <bruno@clisp.org>
63350
63351         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
63352         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
63353
63354 2007-11-11  Bruno Haible  <bruno@clisp.org>
63355
63356         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
63357         (usage): Remove function.
63358
63359 2007-11-11  Bruno Haible  <bruno@clisp.org>
63360
63361         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
63362         gl_FUNC_CEILF_LIBS.
63363         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
63364         gl_FUNC_CEIL_LIBS.
63365         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
63366         gl_FUNC_CEILL_LIBS.
63367         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
63368         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
63369         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
63370
63371 2007-11-11  Bruno Haible  <bruno@clisp.org>
63372
63373         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
63374         roundf were declared but do not exist on functions.
63375         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
63376         roundl were declared but do not exist on functions.
63377         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
63378         HAVE_FLOORL_AND_CEILL, respectively.
63379         Needed for Sun C on Solaris 10.
63380
63381 2007-11-11  Bruno Haible  <bruno@clisp.org>
63382
63383         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
63384         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
63385         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
63386         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
63387         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
63388         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
63389         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
63390         HAVE_DECL_ROUNDF.
63391         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
63392         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
63393         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
63394         of HAVE_DECL_ROUND*.
63395         * modules/math (Makefile.am): Update.
63396
63397 2007-11-10  Bruno Haible  <bruno@clisp.org>
63398
63399         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
63400         ptrdiff_t as m4/intl.m4.
63401
63402 2007-11-10  Jim Meyering  <meyering@redhat.com>
63403
63404         Avoid link failure for the argmatch test.
63405         * tests/test-argmatch.c (usage): Define function to avoid a link
63406         failure: argmatch_die requires a usage function.
63407
63408 2007-11-09  Bruno Haible  <bruno@clisp.org>
63409
63410         * doc/functions/snprintf.texi: Mention BeOS deficiency.
63411         * doc/functions/vsnprintf.texi: Likewise.
63412         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
63413         with a size argument < 2.
63414
63415 2007-11-09  Bruno Haible  <bruno@clisp.org>
63416
63417         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
63418         buffer. Fixes an inefficiency introduced on 2007-11-03.
63419
63420 2007-11-09  Bruno Haible  <bruno@clisp.org>
63421
63422         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
63423         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
63424
63425 2007-11-08  Jim Meyering  <meyering@redhat.com>
63426
63427         Change cache variable name prefix "jm_" to "gl_" everywhere.
63428         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
63429         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
63430         * m4/uptime.m4: s/gl_/jm_/
63431
63432 2007-11-07  Bruno Haible  <bruno@clisp.org>
63433
63434         Update to GNU gettext 0.17.
63435         * m4/intl.m4: Update to GNU gettext 0.17.
63436         * m4/po.m4: Likewise.
63437         * modules/gettext (Files): Remove m4/ulonglong.m4.
63438         (configure.ac): Require gettext infrastructure from version 0.17.
63439
63440 2007-11-06  Bruno Haible  <bruno@clisp.org>
63441
63442         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
63443         symbolic values are not defined in a public header.
63444         * lib/freadable.c (freadable) [QNX]: Likewise.
63445         * lib/freadahead.c (freadahead) [QNX]: Likewise.
63446         * lib/freading.c (freading) [QNX]: Likewise.
63447         * lib/fseterr.c (fseterr) [QNX]: Likewise.
63448         * lib/fwritable.c (fwritable) [QNX]: Likewise.
63449         * lib/fwriting.c (fwriting) [QNX]: Likewise.
63450         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
63451         Reported by Alain Magloire.
63452
63453         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
63454
63455 2007-11-05  Bruno Haible  <bruno@clisp.org>
63456
63457         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
63458         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
63459         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
63460         Reported by Eric Blake.
63461
63462 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63463             Bruno Haible  <bruno@clisp.org>
63464
63465         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
63466         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
63467         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
63468         (malloc): Undefine also before including <stdlib.h>.
63469         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
63470         Needed on OSF/1 4.0.
63471
63472 2007-11-05  Jim Meyering  <meyering@redhat.com>
63473
63474         git-version-gen: sync from coreutils.
63475         * build-aux/git-version-gen: Add comments.
63476         Change the first '-' to '.' in the snapshot version string,
63477         e.g., 6.9-377-08144 -> 6.9.377-08144
63478         Remove first parameter.
63479         Don't declare a version "-dirty" merely because a time
63480         stamp has changed.
63481
63482 2007-11-04  Bruno Haible  <bruno@clisp.org>
63483
63484         * lib/lock.h: Protect all macro definitions containing an 'if'
63485         statement through a "do { ... } while (0)".
63486         * lib/tls.h: Likewise.
63487
63488 2007-11-04  Bruno Haible  <bruno@clisp.org>
63489
63490         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
63491
63492 2007-11-04  Bruno Haible  <bruno@clisp.org>
63493
63494         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
63495         * modules/fprintf-posix (Depends-on): Add nocrash.
63496         * modules/snprintf-posix (Depends-on): Likewise.
63497         * modules/sprintf-posix (Depends-on): Likewise.
63498         * modules/vasnprintf-posix (Depends-on): Likewise.
63499         * modules/vasprintf-posix (Depends-on): Likewise.
63500         * modules/vfprintf-posix (Depends-on): Likewise.
63501         * modules/vsnprintf-posix (Depends-on): Likewise.
63502         * modules/vsprintf-posix (Depends-on): Likewise.
63503         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63504         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63505         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63506         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63507         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63508         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63509         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63510
63511 2007-11-04  Bruno Haible  <bruno@clisp.org>
63512
63513         * modules/nocrash: New file.
63514         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
63515         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
63516
63517 2007-11-04  Bruno Haible  <bruno@clisp.org>
63518
63519         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
63520         precision handling.
63521         * tests/test-vasprintf-posix.c (test_function): Likewise.
63522         * tests/test-snprintf-posix.h (test_function): Likewise.
63523         * tests/test-sprintf-posix.h (test_function): Likewise.
63524
63525         Fix *printf behaviour for large precisions on mingw and BeOS.
63526         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
63527         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
63528         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
63529         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63530         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63531         gl_PRINTF_PRECISION and test its result. Invoke
63532         gl_PREREQ_VASNPRINTF_PRECISION.
63533         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63534         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63535         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63536         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63537         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63538         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63539         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63540         * doc/functions/fprintf.texi: Update.
63541         * doc/functions/printf.texi: Update.
63542         * doc/functions/snprintf.texi: Update.
63543         * doc/functions/sprintf.texi: Update.
63544         * doc/functions/vfprintf.texi: Update.
63545         * doc/functions/vprintf.texi: Update.
63546         * doc/functions/vsnprintf.texi: Update.
63547         * doc/functions/vsprintf.texi: Update.
63548
63549 2007-11-04  Bruno Haible  <bruno@clisp.org>
63550
63551         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
63552
63553 2007-11-04  Bruno Haible  <bruno@clisp.org>
63554
63555         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
63556         Reported by Sylvain Beucler <beuc@gnu.org>.
63557
63558 2007-11-03  Bruno Haible  <bruno@clisp.org>
63559
63560         * tests/test-fprintf-posix2.sh: New file.
63561         * tests/test-fprintf-posix2.c: New file.
63562         * modules/fprintf-posix-tests (Files): Add them.
63563         (TESTS): Add test-fprintf-posix2.sh.
63564         (configure.ac): Check for getrlimit and setrlimit.
63565         (check_PROGRAMS): Add test-fprintf-posix2.
63566
63567         * tests/test-printf-posix2.sh: New file.
63568         * tests/test-printf-posix2.c: New file.
63569         * modules/printf-posix-tests (Files): Add them.
63570         (TESTS): Add test-printf-posix2.sh.
63571         (configure.ac): Check for getrlimit and setrlimit.
63572         (check_PROGRAMS): Add test-printf-posix2.
63573
63574         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
63575         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
63576         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
63577         (decode_double): New function, copied from decode_long_double.
63578         (scale10_round_decimal_decoded): New function, extracted from
63579         scale10_round_decimal_long_double.
63580         (scale10_round_decimal_long_double): Use it.
63581         (scale10_round_decimal_double): New function.
63582         (floorlog10): New function.
63583         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
63584         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
63585         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63586         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63587         gl_PRINTF_ENOMEM and test its result. Invoke
63588         gl_PREREQ_VASNPRINTF_ENOMEM.
63589         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63590         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63591         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63592         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63593         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63594         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63595         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63596         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
63597         * modules/snprintf-posix (Depends-on): Likewise.
63598         * modules/sprintf-posix (Depends-on): Likewise.
63599         * modules/vasnprintf-posix (Depends-on): Likewise.
63600         * modules/vasprintf-posix (Depends-on): Likewise.
63601         * modules/vfprintf-posix (Depends-on): Likewise.
63602         * modules/vsnprintf-posix (Depends-on): Likewise.
63603         * modules/vsprintf-posix (Depends-on): Likewise.
63604         * doc/functions/fprintf.texi: Update.
63605         * doc/functions/printf.texi: Update.
63606         * doc/functions/snprintf.texi: Update.
63607         * doc/functions/sprintf.texi: Update.
63608         * doc/functions/vfprintf.texi: Update.
63609         * doc/functions/vprintf.texi: Update.
63610         * doc/functions/vsnprintf.texi: Update.
63611         * doc/functions/vsprintf.texi: Update.
63612
63613 2007-11-03  Bruno Haible  <bruno@clisp.org>
63614
63615         * modules/frexp-nolibm-tests: New file.
63616
63617         * modules/frexp-nolibm: New file.
63618         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
63619
63620 2007-11-03  Bruno Haible  <bruno@clisp.org>
63621
63622         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
63623         value is C99 compliant.
63624         Needed for OSF/1 5.1.
63625
63626 2007-11-03  Bruno Haible  <bruno@clisp.org>
63627
63628         Fix out-of-memory handling of vasnprintf.
63629         * lib/printf-parse.c: Include <errno.h>.
63630         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
63631         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
63632         is already set.
63633
63634 2007-11-02  Eric Blake  <ebb9@byu.net>
63635
63636         Fix tests on cygwin.
63637         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
63638
63639 2007-11-01  Bruno Haible  <bruno@clisp.org>
63640
63641         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
63642         warning.
63643         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
63644         needed for POSIX compatibility.
63645
63646 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63647
63648         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
63649         for compatibility with GNU.
63650
63651 2007-11-01  Bruno Haible  <bruno@clisp.org>
63652
63653         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
63654         (putenv): Renamed from rpl_putenv. Change argument type from
63655         'const char *' to 'char *'.
63656         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
63657         of defining putenv in config.h, just set REPLACE_PUTENV.
63658         * modules/putenv (Depends-on): Add stdlib.
63659         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63660         (Include): Use <stdlib.h>.
63661         * lib/stdlib.in.h (putenv): New declaration.
63662         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
63663         REPLACE_PUTENV.
63664         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
63665         REPLACE_PUTENV.
63666         Needed for MacOS X 10.5.0.
63667         Reported by Peter O'Gorman <peter@pogma.com>.
63668
63669 2007-11-01  Jim Meyering  <meyering@redhat.com>
63670
63671         Treat an empty date string exactly like "0".
63672         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
63673         if the remaining date string (to be parsed) is empty, use "0".
63674         Reported by Mischa Molhoek and discussed in this thread:
63675         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
63676
63677 2007-10-31  Bruno Haible  <bruno@clisp.org>
63678
63679         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
63680         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
63681         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
63682         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
63683         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
63684         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
63685
63686 2007-10-31  Bruno Haible  <bruno@clisp.org>
63687
63688         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
63689         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
63690         (AC_TYPE_LONG_LONG_INT): Use it.
63691         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
63692         it as well.
63693         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
63694         to m4/longlong.m4.
63695         * modules/stdint (Files): Remove m4/ulonglong.m4.
63696         * modules/strtoull (Files): Use m4/longlong.m4 instead of
63697         m4/ulonglong.m4.
63698         * modules/strtoumax (Files): Likewise.
63699
63700 2007-10-30  Bruno Haible  <bruno@clisp.org>
63701
63702         * modules/xvasprintf-posix: New file.
63703         Suggested by Eric Blake.
63704
63705 2007-10-30  Bruno Haible  <bruno@clisp.org>
63706
63707         * modules/xprintf-posix-tests: New file.
63708         * tests/test-xprintf-posix.sh: New file.
63709         * tests/test-xprintf-posix.c: New file.
63710         * tests/test-xfprintf-posix.c: New file.
63711
63712         * modules/xprintf-posix: New file.
63713
63714 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63715
63716         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
63717         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
63718         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
63719
63720 2007-10-29  Bruno Haible  <bruno@clisp.org>
63721
63722         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
63723         contain the special marker '_cv_'.
63724         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
63725         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
63726         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
63727         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
63728         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
63729         Reported by Ralf Wildenhues.
63730
63731 2007-10-29  Bruno Haible  <bruno@clisp.org>
63732
63733         * gnulib-tool (func_import): When --lgpl is not specified, set
63734         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
63735         GPLv3.
63736         Reported by Simon Josefsson.
63737
63738 2007-10-28  Bruno Haible  <bruno@clisp.org>
63739
63740         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
63741         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
63742         HAVE_DECL_ISFINITE.
63743         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63744         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
63745         HAVE_DECL_ISFINITE.
63746
63747 2007-10-28  Bruno Haible  <bruno@clisp.org>
63748
63749         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
63750         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
63751
63752 2007-10-28  Bruno Haible  <bruno@clisp.org>
63753
63754         Fix link errors with Sun C 5.0 on Solaris 10.
63755         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
63756         function is declared but not present in the compiler's libm.
63757         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
63758         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
63759         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
63760         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
63761         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
63762         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
63763         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
63764         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63765         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
63766         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
63767         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
63768         HAVE_DECL_FLOORL.
63769
63770 2007-10-28  Bruno Haible  <bruno@clisp.org>
63771
63772         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
63773         gl_FUNC_FLOORL. Cache the result.
63774         (gl_FUNC_FLOORL): Use it.
63775         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
63776         gl_FUNC_CEILL. Cache the result.
63777         (gl_FUNC_CEILL): Use it.
63778
63779         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
63780         gl_FUNC_FLOOR. Cache the result.
63781         (gl_FUNC_FLOOR): Use it.
63782         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
63783         gl_FUNC_CEIL. Cache the result.
63784         (gl_FUNC_CEIL): Use it.
63785
63786         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
63787         gl_FUNC_FLOORF. Cache the result.
63788         (gl_FUNC_FLOORF): Use it.
63789         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
63790         gl_FUNC_CEILF. Cache the result.
63791         (gl_FUNC_CEILF): Use it.
63792
63793 2007-10-28  Bruno Haible  <bruno@clisp.org>
63794
63795         * gnulib-tool: Allow specifying the LGPL version number through
63796         --lgpl=2 or --lgpl=3.
63797         (func_usage): Document --lgpl with argument.
63798         Handle --lgpl=... arguments.
63799         (func_import): Recognize also gl_LGPL calls with an argument. When
63800         --lgpl=2 is used and the module's license is just LGPL, report an
63801         error. Set sed_transform_lib_file according to the lgpl variable. In
63802         the generated files, use --lgpl or gl_LGPL invocations with argument,
63803         if necessary.
63804         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
63805         an LGPv2+ license.
63806         * doc/gnulib-tool.texi (Modified imports): Update explanation of
63807         gl_LGPL macro.
63808
63809 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63810             Bruno Haible  <bruno@clisp.org>
63811
63812         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
63813         (u16_uctomb_aux): Likewise.
63814         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
63815         !HAVE_INLINE.
63816         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
63817
63818 2007-10-28  Bruno Haible  <bruno@clisp.org>
63819
63820         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
63821         Invoke AM_GETTEXT_OPTION if it exists.
63822         * modules/vasprintf: Likewise.
63823         * modules/verror: Likewise.
63824         * modules/xprintf: Likewise.
63825         * modules/xvasprintf: Likewise.
63826
63827 2007-10-27  Ben Pfaff  <blp@gnu.org>
63828
63829         * lib/math.in.h: Define isfinite macro and prototypes for
63830         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
63831         implementations.
63832         * m4/math_h.m4: New substitutions for isfinite module.
63833         * lib/isfinite.c: New file.
63834         * m4/isfinite.m4: New file.
63835         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
63836         * modules/isfinite: New file.
63837         * modules/isfinite-tests: New file.
63838         * tests/tests-isfinite.c: New file.
63839         * doc/functions/isfinite.texi: Mention isfinite module.
63840         * MODULES.html.sh: Mention new module.
63841
63842 2007-10-27  Ben Pfaff  <blp@gnu.org>
63843
63844         Ralf Wildenhues reported that Tru64 4.0D declares the round
63845         functions but does not have definitions.
63846         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
63847         cannot be found in any library, set the output variable to
63848         "missing" instead of "".
63849         * m4/round.m4: Also use our substitute if we cannot find round in
63850         any library, even if it is declared.
63851         * m4/roundf.m4: Likewise for roundf.
63852         * m4/roundl.m4: Likewise for roundl.
63853         * lib/math.in.h: Undefine roundf, round, roundl before defining
63854         their replacements, to allow for hypothetical systems where these
63855         may be defined as macros but not available in libraries.
63856
63857 2007-10-27  Bruno Haible  <bruno@clisp.org>
63858
63859         * doc/gnulib.texi: Invoke @firstparagraphindent.
63860         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
63861         changes in gnulib.
63862         (Source changes): New section.
63863
63864 2007-10-26  Bruno Haible  <bruno@clisp.org>
63865
63866         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
63867         borrowed from autoconf.
63868
63869 2007-10-26  Bruno Haible  <bruno@clisp.org>
63870
63871         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
63872         strerror returned the empty string. Needed on HP-UX 11.00.
63873
63874 2007-10-24  Micah Cowan  <micah@cowan.name>
63875
63876         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
63877         * build-aux/bootstrap: Remove support for now-unnecessary option,
63878         --cvs-user, and envvars CVS_USER, CVS_RSH.
63879
63880 2007-10-24  Jim Meyering  <meyering@redhat.com>
63881
63882         Avoid diagnostics from sha1sum when there is no cached checksum.
63883         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
63884         if the po.s1 file hasn't been created yet.
63885
63886         * build-aux/bootstrap: Sync from coreutils:
63887         2007-10-24  Jim Meyering  <meyering@redhat.com>
63888         Get gnulib from the git repository, not from an obsolete cvs one.
63889         * build-aux/bootstrap: Suggestion from Micah Cowan.
63890         2007-10-04  Jim Meyering  <jim@meyering.net>
63891         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
63892         (update_po_files): Work also when there are no .po files in po/.
63893
63894 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63895
63896         * README: Append ".git" to git and cg examples.
63897         Problem reported by Benoit Sigoure.
63898
63899 2007-10-23  Micah Cowan  <micah@cowan.name>
63900
63901         * users.txt: Add wget.
63902
63903 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63904
63905         Fix linking of some unistdio tests on FreeBSD.
63906         * modules/unistdio/u16-vsnprintf-tests
63907         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
63908         * modules/unistdio/u16-vsprintf-tests
63909         (test_u16_vsnprintf1_LDADD): Likewise.
63910         * modules/unistdio/u32-vsnprintf-tests
63911         (test_u32_vsnprintf1_LDADD): Likewise.
63912         * modules/unistdio/u32-vsprintf-tests
63913         (test_u32_vsprintf1_LDADD): Likewise.
63914         * modules/unistdio/u8-vsnprintf-tests
63915         (test_u8_vsnprintf1_LDADD): Likewise.
63916         * modules/unistdio/u8-vsprintf-tests
63917         (test_u8_vsprintf1_LDADD): Likewise.
63918         * modules/unistdio/ulc-vsnprintf-tests
63919         (test_ulc_vsnprintf1_LDADD): Likewise.
63920         * modules/unistdio/ulc-vsprintf-tests
63921         (test_ulc_vsprintf1_LDADD): Likewise.
63922
63923         Fix linking of some uniconv tests on FreeBSD.
63924         * modules/uniconv/u16-conv-from-enc-tests
63925         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
63926         * modules/uniconv/u16-conv-to-enc-tests
63927         (test_u16_conv_to_enc_LDADD): Likewise.
63928         * modules/uniconv/u16-strconv-from-enc-tests
63929         (test_u16_strconv_from_enc_LDADD): Likewise.
63930         * modules/uniconv/u16-strconv-to-enc-tests
63931         (test_u16_strconv_to_enc_LDADD): Likewise.
63932         * modules/uniconv/u32-conv-from-enc-tests
63933         (test_u32_conv_from_enc_LDADD): Likewise.
63934         * modules/uniconv/u32-conv-to-enc-tests
63935         (test_u32_conv_to_enc_LDADD): Likewise.
63936         * modules/uniconv/u32-strconv-from-enc-tests
63937         (test_u32_strconv_from_enc_LDADD): Likewise.
63938         * modules/uniconv/u32-strconv-to-enc-tests
63939         (test_u32_strconv_to_enc_LDADD): Likewise.
63940         * modules/uniconv/u8-conv-from-enc-tests
63941         (test_u8_conv_from_enc_LDADD): Likewise.
63942         * modules/uniconv/u8-conv-to-enc-tests
63943         (test_u8_conv_to_enc_LDADD): Likewise.
63944         * modules/uniconv/u8-strconv-from-enc-tests
63945         (test_u8_strconv_from_enc_LDADD): Likewise.
63946         * modules/uniconv/u8-strconv-to-enc-tests
63947         (test_u8_strconv_to_enc_LDADD): Likewise.
63948
63949 2007-10-22  Bruno Haible  <bruno@clisp.org>
63950
63951         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
63952         size.
63953
63954 2007-10-22  Eric Blake  <ebb9@byu.net>
63955
63956         Tweak x*printf documentation.
63957         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
63958         variable name and comments.
63959         Suggested by Bruno Haible.
63960
63961 2007-10-22  Bruno Haible  <bruno@clisp.org>
63962
63963         * lib/acl.c (copy_acl): Fix file name in comment.
63964
63965 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63966
63967         Fix Tru64 problem with stdbool.h.
63968         * lib/stdbool.in.h (false, true):
63969         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
63970         Don't declare as an enum in this situation; it runs afoul of Tru64.
63971         Problem reported by Steven M. Schweda in
63972         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
63973
63974 2007-10-22  Eric Blake  <ebb9@byu.net>
63975
63976         Also wrap vf?printf.
63977         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
63978         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
63979         (xvprintf, xvfprintf): New functions.
63980
63981 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63982
63983         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
63984         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
63985
63986         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
63987         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
63988
63989 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63990
63991         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
63992         by Bruno Haible.
63993
63994 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63995
63996         * lib/getloadavg.c
63997         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
63998         Undef `sys' after including sys/table.h, for Tru64 4.0D.
63999
64000         * tests/test-i-ring.c: Work for C89.
64001
64002 2007-10-22  Bruno Haible  <bruno@clisp.org>
64003
64004         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
64005         -1u, in preprocessor expression, so that we don't test for the bug
64006         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
64007         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
64008
64009 2007-10-22  Eric Blake  <ebb9@byu.net>
64010
64011         * tests/test-yesno.sh: Silence stderr during test.
64012
64013 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64014
64015         * modules/crypto/gc-camellia: New file.
64016
64017         * m4/gc-camellia.m4: New file.
64018
64019         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
64020
64021         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
64022
64023 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64024
64025         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
64026         --help to stdout.  Reported by sms@antinode.org (Steven
64027         M. Schweda).
64028
64029 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64030
64031         * users.txt: Fix link to libksba.
64032
64033 2007-10-21  Ben Pfaff  <blp@gnu.org>
64034
64035         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
64036         round.c roundf implementation that depends on floorf and ceilf to
64037         be tested unconditionally.
64038
64039 2007-10-21  Ben Pfaff  <blp@gnu.org>
64040
64041         * m4/check-libm-func.m4: Removed.
64042         * m4/check-math-lib.m4: New file.
64043         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
64044         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
64045         definition and lack of AC_LIBOBJ([roundf]).
64046         * m4/roundl.m4: Ditto, and similarly for roundl.
64047         * modules/round: Reference new m4 file.
64048         * modules/roundf: Ditto.
64049         * modules/roundl: Ditto.
64050         * tests/test-round2.c (main): Use ROUND instead of round.
64051         Bug report from Bruno Haible.
64052
64053 2007-10-21  Bruno Haible  <bruno@clisp.org>
64054
64055         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
64056         context.
64057
64058 2007-10-21  Bruno Haible  <bruno@clisp.org>
64059
64060         * tests/test-wcwidth.c (main): Allow negative result for some control
64061         characters.
64062
64063         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
64064         Needed on OSF/1 5.1.
64065
64066 2007-10-21  Bruno Haible  <bruno@clisp.org>
64067
64068         * tests/test-floorf1.c: Include isnanf.h.
64069         (main): Use isnanf() instead of isnan().
64070         * tests/test-ceilf1.c: Include isnanf.h.
64071         (main): Use isnanf() instead of isnan().
64072         * tests/test-truncf1.c: Include isnanf.h.
64073         (main): Use isnanf() instead of isnan().
64074         * tests/test-roundf1.c: Include isnanf.h.
64075         (main): Use isnanf() instead of isnan().
64076
64077 2007-10-21  Eric Blake  <ebb9@byu.net>
64078
64079         * users.txt: Update URL for m4.
64080
64081 2007-10-21  Bruno Haible  <bruno@clisp.org>
64082
64083         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
64084
64085 2007-10-21  Bruno Haible  <bruno@clisp.org>
64086
64087         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
64088         Git's management files if the CVS files are not present.
64089
64090 2007-10-20  Bruno Haible  <bruno@clisp.org>
64091
64092         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
64093         gcc-3.4.x.
64094
64095 2007-10-20  Ben Pfaff  <blp@gnu.org>
64096
64097         * lib/math.in.h: Declare round, roundf, roundl if we are providing
64098         implementations.
64099         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
64100         * lib/round.c: New file.
64101         * lib/roundf.c: New file.
64102         * lib/roundl.c: New file.
64103         * m4/round.m4: New file.
64104         * m4/roundf.m4: New file.
64105         * m4/roundl.m4: New file.
64106         * m4/check-libm-func-m4: New file.
64107         * modules/math: Replace round, roundf, roundl related @VARS@ in
64108         math.in.h.
64109         * modules/round: New file.
64110         * modules/round-tests: New file.
64111         * modules/roundf: New file.
64112         * modules/roundf-tests: New file.
64113         * modules/roundl: New file.
64114         * modules/roundl-tests: New file.
64115         * tests/test-round1.c: New file.
64116         * tests/test-round2.c: New file.
64117         * tests/test-roundf1.c: New file.
64118         * tests/test-roundf2.c: New file.
64119         * tests/test-roundl.c: New file.
64120         * doc/functions/round.texi: Mention round module.
64121         * doc/functions/roundf.texi: Mention roundf module.
64122         * doc/functions/roundl.texi: Mention roundl module.
64123         * MODULES.html.sh: Mention new modules.
64124         Thanks to Bruno Haible for suggestions.
64125
64126 2007-10-20  Jim Meyering  <meyering@redhat.com>
64127
64128         * lib/xprintf.c: Include <config.h> unconditionally.
64129
64130         Change xprintf's license to GPL.
64131         * modules/xprintf (License): s/LGPL/GPL/, since this module
64132         depends on modules (exit and exitfail) which are GPL.
64133         Suggestion from Bruno Haible.
64134
64135         xprintf fixes.
64136         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
64137         Use a clearer diagnostic.
64138         Patch from Bruno Haible.
64139
64140 2007-10-20  Bruno Haible  <bruno@clisp.org>
64141
64142         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
64143         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
64144         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64145
64146 2007-10-20  Bruno Haible  <bruno@clisp.org>
64147
64148         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
64149         precision in the comparison result > x - 1 or similar.
64150         * tests/test-ceilf2.c (correct_result_p): Likewise.
64151         * tests/test-truncf2.c (correct_result_p): Likewise.
64152         * tests/test-trunc2.c (correct_result_p): Likewise.
64153         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64154
64155 2007-10-20  Bruno Haible  <bruno@clisp.org>
64156
64157         * modules/ceil: New file.
64158         * m4/ceil.m4: New file.
64159         * doc/functions/ceil.texi: Mention the 'ceil' module.
64160
64161 2007-10-20  Bruno Haible  <bruno@clisp.org>
64162
64163         * modules/floor: New file.
64164         * m4/floor.m4: New file.
64165         * doc/functions/floor.texi: Mention the 'floor' module.
64166
64167 2007-10-20  Bruno Haible  <bruno@clisp.org>
64168
64169         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
64170         of %a.
64171         * modules/floorf-tests (Depends-on): Likewise.
64172         * modules/truncf-tests (Depends-on): Likewise.
64173         * modules/trunc-tests (Depends-on): Likewise.
64174         Reported by Ben Pfaff.
64175
64176 2007-10-19  Jim Meyering  <meyering@redhat.com>
64177
64178         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
64179         Don't bother testing specific errno values.  Just test ferror.
64180
64181         New module: xprintf
64182         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
64183
64184 2007-10-19  Bruno Haible  <bruno@clisp.org>
64185
64186         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
64187         syntax.
64188         * modules/javaexec (Makefile.am): Likewise.
64189         * modules/relocatable-prog (Makefile.am): Likewise.
64190         Suggested by Jim Meyering.
64191
64192 2007-10-18  Bruno Haible  <bruno@clisp.org>
64193
64194         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
64195         Reported by Jim Meyering.
64196
64197 2007-10-18  Eric Blake  <ebb9@byu.net>
64198
64199         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
64200
64201 2007-10-18  Bruno Haible  <bruno@clisp.org>
64202
64203         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
64204         the format string into writable memory. Needed in Fortify conditions.
64205
64206 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
64207             Bruno Haible  <bruno@clisp.org>
64208
64209         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
64210         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
64211         * modules/trim (Depends-on): Add mbchar.
64212         (configure.ac): Add gl_FUNC_MBRTOWC.
64213         (Makefile.am): Augment lib_SOURCES.
64214
64215 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64216
64217         Modify glob.c to use fstatat and dirfd, to simplify it.
64218         Suggested by Eric Blake.
64219         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
64220         Don't include <stdbool.h>; not used.
64221         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
64222         (link_exists_p): Simplify implementation, since we can now assume
64223         dirfd and fstatat.
64224         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
64225
64226 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64227
64228         * gnulib-tool (func_get_dependencies): Fix sed script to
64229         match only tests.
64230
64231 2007-10-17  Bruno Haible  <bruno@clisp.org>
64232
64233         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
64234         allow locale names without encoding suffix.
64235         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
64236         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64237
64238 2007-10-16  Bruno Haible  <bruno@clisp.org>
64239
64240         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
64241         * lib/getgroups.c (getgroups): Likewise.
64242         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
64243
64244 2007-10-16  Bruno Haible  <bruno@clisp.org>
64245
64246         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
64247         * modules/malloc-posix (License): Likewise.
64248         * modules/realloc-posix (License): Likewise.
64249         * modules/calloc-posix (License): Likewise.
64250         * modules/intprops (License): Change from GPL to LGPL, with
64251         Paul Eggert's approval.
64252
64253 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64254
64255         Merge glibc changes into lib/glob.c.
64256
64257         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
64258         2007-10-15 04:59:03 UTC.  Here are the changes:
64259
64260         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
64261
64262         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
64263
64264         * lib/glob.c: Add some branch prediction throughout.
64265
64266         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
64267
64268         [BZ #5103]
64269         * lib/glob.c (glob): Recognize patterns starting \/.
64270
64271         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
64272
64273         [BZ #3996]
64274         * lib/glob.c (attribute_hidden): Define if not defined.
64275         (glob): Unescape dirname, filename or username when needed and not
64276         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
64277         is NULL.  Handle unescaped [ in pattern without closing ].
64278         Don't pass GLOB_CHECK down to recursive glob for directories.
64279         (__glob_pattern_type): New function.
64280         (__glob_pattern_p): Implement using __glob_pattern_type.
64281         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
64282         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
64283         Remove unreachable code.
64284
64285         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
64286
64287         * lib/glob.c (glob_in_dir): Add some comments and asserts to
64288         explain why there are no leaks.
64289
64290         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
64291
64292         [BZ #3253]
64293         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
64294         time, rather allocate increasingly bigger arrays of pointers, if
64295         possible with alloca, if too large with malloc.
64296
64297 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64298
64299         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
64300         Problem reported by H.Merijn Brand in
64301         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
64302         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
64303         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64304
64305 2007-10-15  Bruno Haible  <bruno@clisp.org>
64306
64307         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
64308         with explicit rpl_ prefix.
64309         * lib/fopen.c (fopen): Likewise.
64310         * lib/freopen.c (freopen): Likewise.
64311         * lib/iconv.c (iconv): Likewise.
64312         * lib/iconv_close.c (iconv_close): Likewise.
64313
64314 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64315
64316         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
64317
64318 2007-10-15  Bruno Haible  <bruno@clisp.org>
64319
64320         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
64321         <stddef.h> instead of <stdlib.h> since we only need NULL.
64322         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64323
64324 2007-10-15  Bruno Haible  <bruno@clisp.org>
64325
64326         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
64327         Replace paragraph talking about LIBOBJS.
64328         Reported by Colin Watson <cjwatson@debian.org>.
64329
64330 2007-10-15  Bruno Haible  <bruno@clisp.org>
64331
64332         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
64333         <stdlib.h> before using NULL.
64334
64335 2007-10-15  Simon Josefsson  <simon@josefsson.org>
64336
64337         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
64338         Reported by Albert Chin <china@thewrittenword.com>.
64339
64340 2007-10-14  Bruno Haible  <bruno@clisp.org>
64341
64342         * modules/iconv_open-utf-tests: New file.
64343         * tests/test-iconv-utf.c: New file.
64344
64345         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
64346         * modules/iconv_open-utf: New file.
64347         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
64348         (iconv, iconv_close): New declarations.
64349         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
64350         be defined.
64351         (iconv_open): Add special handling of conversion between UTF-8 and
64352         UTF-{16,32}{BE,LE}.
64353         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
64354         * lib/iconv_close.c: New file.
64355         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
64356         gl_FUNC_ICONV_OPEN.
64357         (gl_FUNC_ICONV_OPEN): Use it.
64358         (gl_FUNC_ICONV_OPEN_UTF): New macro.
64359         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
64360         and REPLACE_ICONV_UTF.
64361         * modules/iconv_open (Depends-on): Add c-strcase.
64362         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
64363         ICONV_CONST.
64364         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
64365
64366 2007-10-13  Albert Chin  <china@thewrittenword.com>
64367             Bruno Haible  <bruno@clisp.org>
64368
64369         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
64370         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
64371
64372 2007-10-13  Bruno Haible  <bruno@clisp.org>
64373
64374         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
64375         defined, use the ISO C99 inline semantics.
64376         * lib/argp.h (ARGP_EI): Likewise.
64377
64378 2007-10-13  Bruno Haible  <bruno@clisp.org>
64379
64380         Handle 'inline' change in gcc 4.3.0.
64381         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
64382         argp_fmtstream_write, argp_fmtstream_set_lmargin,
64383         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
64384         argp_fmtstream_point): Disable 'extern' declaration if the function
64385         definition is going to be provided inline.
64386         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
64387         semantics, not the ISO C99 inline semantics.
64388         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
64389         'extern' declaration if the function definition is going to be provided
64390         inline.
64391         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
64392         the GNU C inline semantics, not the ISO C99 inline semantics. With
64393         GCC 4.2, avoid a warning.
64394
64395 2007-10-13  Bruno Haible  <bruno@clisp.org>
64396
64397         * lib/freading.h (freading): Enable the use of __freading for
64398         glibc >= 2.7.
64399         * lib/freading.c (freading): Likewise.
64400
64401 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64402
64403         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
64404         "warning: C99 inline functions are not supported; using GNU89".
64405
64406 2007-10-12  Bruno Haible  <bruno@clisp.org>
64407
64408         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
64409         of 2.
64410         * tests/test-ceilf2.c: New file.
64411         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
64412
64413         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
64414         * modules/ceilf-tests: Update.
64415
64416 2007-10-12  Bruno Haible  <bruno@clisp.org>
64417
64418         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
64419         of 2.
64420         * tests/test-floorf2.c: New file.
64421         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
64422
64423         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
64424         * modules/floorf-tests: Update.
64425
64426 2007-10-12  Bruno Haible  <bruno@clisp.org>
64427
64428         * tests/test-trunc2.c: New file.
64429         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
64430
64431         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
64432         * modules/trunc-tests: Update.
64433
64434 2007-10-12  Bruno Haible  <bruno@clisp.org>
64435
64436         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
64437         of 2.
64438         * tests/test-truncf2.c: New file.
64439         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
64440
64441         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
64442         * modules/truncf-tests: Update.
64443
64444 2007-10-11  Eric Blake  <ebb9@byu.net>
64445
64446         Don't claim strerror is broken on Interix.
64447         * doc/functions/strerror.texi (strerror): Known broken systems are
64448         now Solaris 8, and not Interix.
64449         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
64450         Interix on cross-compile.
64451         Reported by Martin Koeppe in
64452         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
64453
64454 2007-10-11  Bruno Haible  <bruno@clisp.org>
64455
64456         * modules/i-ring-tests: New file.
64457         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
64458         instead of assert.
64459
64460 2007-10-11  Bruno Haible  <bruno@clisp.org>
64461
64462         * modules/filenamecat-tests: New file.
64463         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
64464         * lib/filenamecat.c: Remove test code.
64465
64466 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64467
64468         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
64469
64470         * lib/strerror.c: Include <string.h> always, to test interface,
64471         and to remove the need for the dummy.
64472         Include intprops.h to compute width instead of doing it ourselves
64473         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
64474         (strerror): Define it to return NULL if there's no system strerror.
64475         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
64476         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
64477         ancient pre-strerror Unix systems well any more.  Saying "unknown
64478         system error" is enough.
64479         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
64480         simpler strerror.c implementation.
64481         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
64482         Simplify the tests to reflect the simpler strerror implementation.
64483         * modules/strerror (Depends-on): Add intprops.
64484
64485 2007-10-09  Eric Blake  <ebb9@byu.net>
64486
64487         Silence test-fpending.
64488         * modules/fpending-tests (Files): Add wrapper script.
64489         * tests/test-fpending.sh: New file.
64490
64491 2007-10-09  Bruno Haible  <bruno@clisp.org>
64492
64493         * MODULES.html.sh (func_module): Don't create a hyperlink for
64494         function names like 'printf_frexp'.
64495         (Misc): Add crc, memxor.
64496         (Characteristics of floating types): New section.
64497         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
64498         isnanf-nolibm, signbit, trunc, truncf, truncl.
64499         (Enhancements for ISO C 99 functions): New subsection Input/output.
64500         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
64501         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
64502         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
64503         (Compatibility checks for POSIX:2001 functions): Add clock-time.
64504         (Enhancements for POSIX:2001 functions): Add chdir-long.
64505         (File system functions): Add areadlink, chdir-safer, read-file.
64506         Remove cycle-check.
64507         (File system as inode set): New section.
64508         (Date and time): Add gethrxtime.
64509         (Multithreading): Add openmp.
64510         (Internationalization functions): Add localename.
64511         (Unicode string functions): Add unistr/u*-mbsnlen.
64512         (Support for maintaining and releasing projects): Add git-version-gen.
64513         (Lone files): Remove directories.
64514
64515 2007-10-08  Ben Pfaff  <blp@gnu.org>
64516
64517         * lib/xmalloca.h: Fix typo in comment.
64518
64519 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64520
64521         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
64522         when avoiding problems with integer overflow.  Use a portable test
64523         instead.
64524
64525 2007-10-08  Simon Josefsson  <simon@josefsson.org>
64526
64527         * modules/dummy (License): Change to LGPLv2+.
64528         * modules/float (License): Likewise
64529         * modules/realloc (License): Likewise
64530         * modules/stdlib (License): Likewise
64531
64532 2007-10-07  Bruno Haible  <bruno@clisp.org>
64533
64534         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
64535         * floor.c (TWO_MANT_DIG): Likewise.
64536         * ceil.c (TWO_MANT_DIG): Likewise.
64537         Reported by Ben Pfaff.
64538
64539 2007-10-07  Bruno Haible  <bruno@clisp.org>
64540
64541         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
64542         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
64543         * lib/frexp.c (FUNC): Likewise.
64544         * lib/printf-frexp.h (printf_frexp): Likewise.
64545         * lib/printf-frexpl.h (printf_frexpl): Likewise.
64546         * lib/printf-frexp.c (FUNC): Likewise.
64547         Suggested by Jim Meyering.
64548
64549 2007-10-07  Jim Meyering  <meyering@redhat.com>
64550
64551         Make xnanosleep's integer overflow test more robust.
64552         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
64553         so that gcc-4.3.0 doesn't optimize away this test for overflow.
64554
64555 2007-10-07  Bruno Haible  <bruno@clisp.org>
64556
64557         * NEWS: Mention the license change.
64558
64559         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
64560         abbreviations in the modules files.
64561
64562         Change copyright notice from GPLv2+ to GPLv3+.
64563         * README: Change copyright notice.
64564         * MODULES.html.sh: Likewise.
64565         * build-aux/bootstrap.conf: Likewise.
64566         * build-aux/config.libpath: Likewise.
64567         * build-aux/csharpcomp.sh.in: Likewise.
64568         * build-aux/csharpexec.sh.in: Likewise.
64569         * build-aux/install-reloc: Likewise.
64570         * build-aux/javacomp.sh.in: Likewise.
64571         * build-aux/javaexec.sh.in: Likewise.
64572         * build-aux/ldd.sh.in: Likewise.
64573         * build-aux/reloc-ldflags: Likewise.
64574         * build-aux/relocatable.sh.in: Likewise.
64575         * build-aux/x-to-1.in: Likewise.
64576         * check-module: Likewise.
64577         * config/srclistvars.sh: Likewise.
64578         * gnulib-tool: Likewise.
64579         * lib/acl-internal.h: Likewise.
64580         * lib/acl.c: Likewise.
64581         * lib/acl.h: Likewise.
64582         * lib/acl_entries.c: Likewise.
64583         * lib/areadlink-with-size.c: Likewise.
64584         * lib/areadlink.c: Likewise.
64585         * lib/areadlink.h: Likewise.
64586         * lib/argmatch.c: Likewise.
64587         * lib/argmatch.h: Likewise.
64588         * lib/argp-ba.c: Likewise.
64589         * lib/argp-eexst.c: Likewise.
64590         * lib/argp-fmtstream.c: Likewise.
64591         * lib/argp-fmtstream.h: Likewise.
64592         * lib/argp-fs-xinl.c: Likewise.
64593         * lib/argp-help.c: Likewise.
64594         * lib/argp-namefrob.h: Likewise.
64595         * lib/argp-parse.c: Likewise.
64596         * lib/argp-pin.c: Likewise.
64597         * lib/argp-pv.c: Likewise.
64598         * lib/argp-pvh.c: Likewise.
64599         * lib/argp-xinl.c: Likewise.
64600         * lib/argp.h: Likewise.
64601         * lib/at-func.c: Likewise.
64602         * lib/atanl.c: Likewise.
64603         * lib/backupfile.c: Likewise.
64604         * lib/backupfile.h: Likewise.
64605         * lib/basename.c: Likewise.
64606         * lib/binary-io.h: Likewise.
64607         * lib/byteswap.in.h: Likewise.
64608         * lib/c-stack.c: Likewise.
64609         * lib/c-stack.h: Likewise.
64610         * lib/c-strcasestr.c: Likewise.
64611         * lib/c-strcasestr.h: Likewise.
64612         * lib/c-strstr.c: Likewise.
64613         * lib/c-strstr.h: Likewise.
64614         * lib/c-strtod.c: Likewise.
64615         * lib/calloc.c: Likewise.
64616         * lib/canon-host.c: Likewise.
64617         * lib/canon-host.h: Likewise.
64618         * lib/canonicalize-lgpl.c: Likewise.
64619         * lib/canonicalize.c: Likewise.
64620         * lib/canonicalize.h: Likewise.
64621         * lib/ceil.c: Likewise.
64622         * lib/ceilf.c: Likewise.
64623         * lib/ceill.c: Likewise.
64624         * lib/chdir-long.c: Likewise.
64625         * lib/chdir-long.h: Likewise.
64626         * lib/chdir-safer.c: Likewise.
64627         * lib/chdir-safer.h: Likewise.
64628         * lib/chown.c: Likewise.
64629         * lib/classpath.c: Likewise.
64630         * lib/classpath.h: Likewise.
64631         * lib/clean-temp.c: Likewise.
64632         * lib/clean-temp.h: Likewise.
64633         * lib/cloexec.c: Likewise.
64634         * lib/close-stream.c: Likewise.
64635         * lib/closein.c: Likewise.
64636         * lib/closein.h: Likewise.
64637         * lib/closeout.c: Likewise.
64638         * lib/closeout.h: Likewise.
64639         * lib/concat-filename.c: Likewise.
64640         * lib/copy-file.c: Likewise.
64641         * lib/copy-file.h: Likewise.
64642         * lib/count-one-bits.h: Likewise.
64643         * lib/crc.c: Likewise.
64644         * lib/crc.h: Likewise.
64645         * lib/creat-safer.c: Likewise.
64646         * lib/csharpcomp.c: Likewise.
64647         * lib/csharpcomp.h: Likewise.
64648         * lib/csharpexec.c: Likewise.
64649         * lib/csharpexec.h: Likewise.
64650         * lib/cycle-check.c: Likewise.
64651         * lib/cycle-check.h: Likewise.
64652         * lib/diacrit.c: Likewise.
64653         * lib/diacrit.h: Likewise.
64654         * lib/diffseq.h: Likewise.
64655         * lib/dirchownmod.c: Likewise.
64656         * lib/dirent.in.h: Likewise.
64657         * lib/dirfd.c: Likewise.
64658         * lib/dirfd.h: Likewise.
64659         * lib/dirname.c: Likewise.
64660         * lib/dirname.h: Likewise.
64661         * lib/dummy.c: Likewise.
64662         * lib/dup-safer.c: Likewise.
64663         * lib/dup2.c: Likewise.
64664         * lib/eealloc.h: Likewise.
64665         * lib/error.c: Likewise.
64666         * lib/error.h: Likewise.
64667         * lib/euidaccess.c: Likewise.
64668         * lib/exclude.c: Likewise.
64669         * lib/exclude.h: Likewise.
64670         * lib/execute.c: Likewise.
64671         * lib/execute.h: Likewise.
64672         * lib/exitfail.c: Likewise.
64673         * lib/exitfail.h: Likewise.
64674         * lib/expl.c: Likewise.
64675         * lib/fatal-signal.c: Likewise.
64676         * lib/fatal-signal.h: Likewise.
64677         * lib/fbufmode.c: Likewise.
64678         * lib/fbufmode.h: Likewise.
64679         * lib/fchdir.c: Likewise.
64680         * lib/fchmodat.c: Likewise.
64681         * lib/fchownat.c: Likewise.
64682         * lib/fcntl--.h: Likewise.
64683         * lib/fcntl-safer.h: Likewise.
64684         * lib/fcntl.in.h: Likewise.
64685         * lib/fd-safer.c: Likewise.
64686         * lib/fflush.c: Likewise.
64687         * lib/file-has-acl.c: Likewise.
64688         * lib/file-set.c: Likewise.
64689         * lib/file-type.c: Likewise.
64690         * lib/file-type.h: Likewise.
64691         * lib/fileblocks.c: Likewise.
64692         * lib/filemode.c: Likewise.
64693         * lib/filemode.h: Likewise.
64694         * lib/filename.h: Likewise.
64695         * lib/filenamecat.c: Likewise.
64696         * lib/filenamecat.h: Likewise.
64697         * lib/findprog.c: Likewise.
64698         * lib/findprog.h: Likewise.
64699         * lib/float.in.h: Likewise.
64700         * lib/floor.c: Likewise.
64701         * lib/floorf.c: Likewise.
64702         * lib/floorl.c: Likewise.
64703         * lib/fopen-safer.c: Likewise.
64704         * lib/fopen.c: Likewise.
64705         * lib/fpending.c: Likewise.
64706         * lib/fpending.h: Likewise.
64707         * lib/fprintf.c: Likewise.
64708         * lib/fprintftime.h: Likewise.
64709         * lib/fpucw.h: Likewise.
64710         * lib/fpurge.c: Likewise.
64711         * lib/fpurge.h: Likewise.
64712         * lib/freadable.c: Likewise.
64713         * lib/freadable.h: Likewise.
64714         * lib/freadahead.c: Likewise.
64715         * lib/freadahead.h: Likewise.
64716         * lib/freading.c: Likewise.
64717         * lib/freading.h: Likewise.
64718         * lib/free.c: Likewise.
64719         * lib/freopen.c: Likewise.
64720         * lib/frexp.c: Likewise.
64721         * lib/frexpl.c: Likewise.
64722         * lib/fseek.c: Likewise.
64723         * lib/fseterr.c: Likewise.
64724         * lib/fseterr.h: Likewise.
64725         * lib/fstatat.c: Likewise.
64726         * lib/fstrcmp.c: Likewise.
64727         * lib/fstrcmp.h: Likewise.
64728         * lib/fsusage.c: Likewise.
64729         * lib/fsusage.h: Likewise.
64730         * lib/ftell.c: Likewise.
64731         * lib/ftello.c: Likewise.
64732         * lib/fts-cycle.c: Likewise.
64733         * lib/fts.c: Likewise.
64734         * lib/fts_.h: Likewise.
64735         * lib/full-read.c: Likewise.
64736         * lib/full-read.h: Likewise.
64737         * lib/full-write.c: Likewise.
64738         * lib/full-write.h: Likewise.
64739         * lib/fwritable.c: Likewise.
64740         * lib/fwritable.h: Likewise.
64741         * lib/fwriteerror.c: Likewise.
64742         * lib/fwriteerror.h: Likewise.
64743         * lib/fwriting.c: Likewise.
64744         * lib/fwriting.h: Likewise.
64745         * lib/gcd.c: Likewise.
64746         * lib/gcd.h: Likewise.
64747         * lib/getcwd.c: Likewise.
64748         * lib/getdate.h: Likewise.
64749         * lib/getdate.y: Likewise.
64750         * lib/getdomainname.c: Likewise.
64751         * lib/getdomainname.h: Likewise.
64752         * lib/getgroups.c: Likewise.
64753         * lib/gethostname.c: Likewise.
64754         * lib/gethrxtime.c: Likewise.
64755         * lib/gethrxtime.h: Likewise.
64756         * lib/getloadavg.c: Likewise.
64757         * lib/getndelim2.c: Likewise.
64758         * lib/getndelim2.h: Likewise.
64759         * lib/getnline.c: Likewise.
64760         * lib/getnline.h: Likewise.
64761         * lib/getopt.c: Likewise.
64762         * lib/getopt.in.h: Likewise.
64763         * lib/getopt1.c: Likewise.
64764         * lib/getopt_int.h: Likewise.
64765         * lib/getpagesize.h: Likewise.
64766         * lib/getsubopt.c: Likewise.
64767         * lib/gettime.c: Likewise.
64768         * lib/getugroups.c: Likewise.
64769         * lib/getugroups.h: Likewise.
64770         * lib/getusershell.c: Likewise.
64771         * lib/gl_anyavltree_list1.h: Likewise.
64772         * lib/gl_anyavltree_list2.h: Likewise.
64773         * lib/gl_anyhash_list1.h: Likewise.
64774         * lib/gl_anyhash_list2.h: Likewise.
64775         * lib/gl_anylinked_list1.h: Likewise.
64776         * lib/gl_anylinked_list2.h: Likewise.
64777         * lib/gl_anyrbtree_list1.h: Likewise.
64778         * lib/gl_anyrbtree_list2.h: Likewise.
64779         * lib/gl_anytree_list1.h: Likewise.
64780         * lib/gl_anytree_list2.h: Likewise.
64781         * lib/gl_anytree_oset.h: Likewise.
64782         * lib/gl_anytreehash_list1.h: Likewise.
64783         * lib/gl_anytreehash_list2.h: Likewise.
64784         * lib/gl_array_list.c: Likewise.
64785         * lib/gl_array_list.h: Likewise.
64786         * lib/gl_array_oset.c: Likewise.
64787         * lib/gl_array_oset.h: Likewise.
64788         * lib/gl_avltree_list.c: Likewise.
64789         * lib/gl_avltree_list.h: Likewise.
64790         * lib/gl_avltree_oset.c: Likewise.
64791         * lib/gl_avltree_oset.h: Likewise.
64792         * lib/gl_avltreehash_list.c: Likewise.
64793         * lib/gl_avltreehash_list.h: Likewise.
64794         * lib/gl_carray_list.c: Likewise.
64795         * lib/gl_carray_list.h: Likewise.
64796         * lib/gl_linked_list.c: Likewise.
64797         * lib/gl_linked_list.h: Likewise.
64798         * lib/gl_linkedhash_list.c: Likewise.
64799         * lib/gl_linkedhash_list.h: Likewise.
64800         * lib/gl_list.c: Likewise.
64801         * lib/gl_list.h: Likewise.
64802         * lib/gl_oset.c: Likewise.
64803         * lib/gl_oset.h: Likewise.
64804         * lib/gl_rbtree_list.c: Likewise.
64805         * lib/gl_rbtree_list.h: Likewise.
64806         * lib/gl_rbtree_oset.c: Likewise.
64807         * lib/gl_rbtree_oset.h: Likewise.
64808         * lib/gl_rbtreehash_list.c: Likewise.
64809         * lib/gl_rbtreehash_list.h: Likewise.
64810         * lib/gl_sublist.c: Likewise.
64811         * lib/gl_sublist.h: Likewise.
64812         * lib/group-member.c: Likewise.
64813         * lib/group-member.h: Likewise.
64814         * lib/hard-locale.c: Likewise.
64815         * lib/hard-locale.h: Likewise.
64816         * lib/hash-pjw.c: Likewise.
64817         * lib/hash-pjw.h: Likewise.
64818         * lib/hash-triple.c: Likewise.
64819         * lib/hash.c: Likewise.
64820         * lib/hash.h: Likewise.
64821         * lib/human.c: Likewise.
64822         * lib/human.h: Likewise.
64823         * lib/i-ring.c: Likewise.
64824         * lib/i-ring.h: Likewise.
64825         * lib/idcache.c: Likewise.
64826         * lib/imaxabs.c: Likewise.
64827         * lib/imaxdiv.c: Likewise.
64828         * lib/inet_pton.c: Likewise.
64829         * lib/inet_pton.h: Likewise.
64830         * lib/intprops.h: Likewise.
64831         * lib/inttostr.c: Likewise.
64832         * lib/inttostr.h: Likewise.
64833         * lib/inttypes.in.h: Likewise.
64834         * lib/isapipe.c: Likewise.
64835         * lib/isdir.c: Likewise.
64836         * lib/isnan.c: Likewise.
64837         * lib/isnan.h: Likewise.
64838         * lib/isnanf.c: Likewise.
64839         * lib/isnanf.h: Likewise.
64840         * lib/isnanl-nolibm.h: Likewise.
64841         * lib/isnanl.c: Likewise.
64842         * lib/isnanl.h: Likewise.
64843         * lib/javacomp.c: Likewise.
64844         * lib/javacomp.h: Likewise.
64845         * lib/javaexec.c: Likewise.
64846         * lib/javaexec.h: Likewise.
64847         * lib/javaversion.c: Likewise.
64848         * lib/javaversion.h: Likewise.
64849         * lib/javaversion.java: Likewise.
64850         * lib/lbrkprop.h: Likewise.
64851         * lib/lchmod.h: Likewise.
64852         * lib/lchown.c: Likewise.
64853         * lib/ldexpl.c: Likewise.
64854         * lib/linebreak.c: Likewise.
64855         * lib/linebreak.h: Likewise.
64856         * lib/linebuffer.c: Likewise.
64857         * lib/linebuffer.h: Likewise.
64858         * lib/locale.in.h: Likewise.
64859         * lib/logl.c: Likewise.
64860         * lib/long-options.c: Likewise.
64861         * lib/long-options.h: Likewise.
64862         * lib/lstat.c: Likewise.
64863         * lib/lstat.h: Likewise.
64864         * lib/math.in.h: Likewise.
64865         * lib/mbchar.c: Likewise.
64866         * lib/mbchar.h: Likewise.
64867         * lib/mbfile.h: Likewise.
64868         * lib/mbiter.h: Likewise.
64869         * lib/mbscasecmp.c: Likewise.
64870         * lib/mbscasestr.c: Likewise.
64871         * lib/mbschr.c: Likewise.
64872         * lib/mbscspn.c: Likewise.
64873         * lib/mbslen.c: Likewise.
64874         * lib/mbsncasecmp.c: Likewise.
64875         * lib/mbsnlen.c: Likewise.
64876         * lib/mbspbrk.c: Likewise.
64877         * lib/mbspcasecmp.c: Likewise.
64878         * lib/mbsrchr.c: Likewise.
64879         * lib/mbssep.c: Likewise.
64880         * lib/mbsspn.c: Likewise.
64881         * lib/mbsstr.c: Likewise.
64882         * lib/mbstok_r.c: Likewise.
64883         * lib/mbswidth.c: Likewise.
64884         * lib/mbswidth.h: Likewise.
64885         * lib/mbuiter.h: Likewise.
64886         * lib/memcasecmp.c: Likewise.
64887         * lib/memcasecmp.h: Likewise.
64888         * lib/memchr.c: Likewise.
64889         * lib/memcmp.c: Likewise.
64890         * lib/memcoll.c: Likewise.
64891         * lib/memcoll.h: Likewise.
64892         * lib/memcpy.c: Likewise.
64893         * lib/memrchr.c: Likewise.
64894         * lib/mkancesdirs.c: Likewise.
64895         * lib/mkdir-p.c: Likewise.
64896         * lib/mkdir-p.h: Likewise.
64897         * lib/mkdir.c: Likewise.
64898         * lib/mkdirat.c: Likewise.
64899         * lib/mkdtemp.c: Likewise.
64900         * lib/mkstemp-safer.c: Likewise.
64901         * lib/mkstemp.c: Likewise.
64902         * lib/modechange.c: Likewise.
64903         * lib/modechange.h: Likewise.
64904         * lib/mountlist.c: Likewise.
64905         * lib/mountlist.h: Likewise.
64906         * lib/mpsort.c: Likewise.
64907         * lib/nanosleep.c: Likewise.
64908         * lib/obstack.c: Likewise.
64909         * lib/obstack.h: Likewise.
64910         * lib/open-safer.c: Likewise.
64911         * lib/open.c: Likewise.
64912         * lib/openat-die.c: Likewise.
64913         * lib/openat-priv.h: Likewise.
64914         * lib/openat-proc.c: Likewise.
64915         * lib/openat.c: Likewise.
64916         * lib/openat.h: Likewise.
64917         * lib/pagealign_alloc.c: Likewise.
64918         * lib/pagealign_alloc.h: Likewise.
64919         * lib/physmem.c: Likewise.
64920         * lib/physmem.h: Likewise.
64921         * lib/pipe-safer.c: Likewise.
64922         * lib/pipe.c: Likewise.
64923         * lib/pipe.h: Likewise.
64924         * lib/posixtm.c: Likewise.
64925         * lib/posixtm.h: Likewise.
64926         * lib/posixver.c: Likewise.
64927         * lib/printf-frexp.c: Likewise.
64928         * lib/printf-frexp.h: Likewise.
64929         * lib/printf-frexpl.c: Likewise.
64930         * lib/printf-frexpl.h: Likewise.
64931         * lib/printf.c: Likewise.
64932         * lib/progname.c: Likewise.
64933         * lib/progname.h: Likewise.
64934         * lib/progreloc.c: Likewise.
64935         * lib/putenv.c: Likewise.
64936         * lib/quote.c: Likewise.
64937         * lib/quote.h: Likewise.
64938         * lib/quotearg.c: Likewise.
64939         * lib/quotearg.h: Likewise.
64940         * lib/raise.c: Likewise.
64941         * lib/readline.c: Likewise.
64942         * lib/readline.h: Likewise.
64943         * lib/readlink.c: Likewise.
64944         * lib/readtokens.c: Likewise.
64945         * lib/readtokens.h: Likewise.
64946         * lib/readtokens0.c: Likewise.
64947         * lib/readtokens0.h: Likewise.
64948         * lib/readutmp.c: Likewise.
64949         * lib/readutmp.h: Likewise.
64950         * lib/realloc.c: Likewise.
64951         * lib/relocwrapper.c: Likewise.
64952         * lib/rename-dest-slash.c: Likewise.
64953         * lib/rename.c: Likewise.
64954         * lib/rmdir.c: Likewise.
64955         * lib/rpmatch.c: Likewise.
64956         * lib/safe-read.c: Likewise.
64957         * lib/safe-read.h: Likewise.
64958         * lib/safe-write.c: Likewise.
64959         * lib/safe-write.h: Likewise.
64960         * lib/same-inode.h: Likewise.
64961         * lib/same.c: Likewise.
64962         * lib/same.h: Likewise.
64963         * lib/save-cwd.c: Likewise.
64964         * lib/save-cwd.h: Likewise.
64965         * lib/savedir.c: Likewise.
64966         * lib/savedir.h: Likewise.
64967         * lib/savewd.c: Likewise.
64968         * lib/savewd.h: Likewise.
64969         * lib/search.in.h: Likewise.
64970         * lib/setenv.c: Likewise.
64971         * lib/setenv.h: Likewise.
64972         * lib/settime.c: Likewise.
64973         * lib/sh-quote.c: Likewise.
64974         * lib/sh-quote.h: Likewise.
64975         * lib/sig2str.c: Likewise.
64976         * lib/sig2str.h: Likewise.
64977         * lib/signal.in.h: Likewise.
64978         * lib/signbitd.c: Likewise.
64979         * lib/signbitf.c: Likewise.
64980         * lib/signbitl.c: Likewise.
64981         * lib/sigprocmask.c: Likewise.
64982         * lib/sincosl.c: Likewise.
64983         * lib/sleep.c: Likewise.
64984         * lib/sprintf.c: Likewise.
64985         * lib/sqrtl.c: Likewise.
64986         * lib/stat-time.h: Likewise.
64987         * lib/stdio--.h: Likewise.
64988         * lib/stdio-safer.h: Likewise.
64989         * lib/stdlib--.h: Likewise.
64990         * lib/stdlib-safer.h: Likewise.
64991         * lib/stdlib.in.h: Likewise.
64992         * lib/stpcpy.c: Likewise.
64993         * lib/stpncpy.c: Likewise.
64994         * lib/strchrnul.c: Likewise.
64995         * lib/strcspn.c: Likewise.
64996         * lib/strerror.c: Likewise.
64997         * lib/strftime.c: Likewise.
64998         * lib/strftime.h: Likewise.
64999         * lib/striconveh.c: Likewise.
65000         * lib/striconveh.h: Likewise.
65001         * lib/striconveha.c: Likewise.
65002         * lib/striconveha.h: Likewise.
65003         * lib/stripslash.c: Likewise.
65004         * lib/strnlen1.c: Likewise.
65005         * lib/strnlen1.h: Likewise.
65006         * lib/strtod.c: Likewise.
65007         * lib/strtoimax.c: Likewise.
65008         * lib/strtok_r.c: Likewise.
65009         * lib/strtol.c: Likewise.
65010         * lib/strtoll.c: Likewise.
65011         * lib/strtoul.c: Likewise.
65012         * lib/strtoull.c: Likewise.
65013         * lib/sysexits.in.h: Likewise.
65014         * lib/tempname.c: Likewise.
65015         * lib/tempname.h: Likewise.
65016         * lib/timespec.h: Likewise.
65017         * lib/tls.c: Likewise.
65018         * lib/tls.h: Likewise.
65019         * lib/tmpdir.c: Likewise.
65020         * lib/tmpdir.h: Likewise.
65021         * lib/tmpfile-safer.c: Likewise.
65022         * lib/tmpfile.c: Likewise.
65023         * lib/trigl.c: Likewise.
65024         * lib/trigl.h: Likewise.
65025         * lib/trim.c: Likewise.
65026         * lib/trim.h: Likewise.
65027         * lib/trunc.c: Likewise.
65028         * lib/truncf.c: Likewise.
65029         * lib/truncl.c: Likewise.
65030         * lib/tsearch.c: Likewise.
65031         * lib/unicodeio.c: Likewise.
65032         * lib/unicodeio.h: Likewise.
65033         * lib/unistd--.h: Likewise.
65034         * lib/unistd-safer.h: Likewise.
65035         * lib/unistdio/ulc-fprintf.c: Likewise.
65036         * lib/unistdio/ulc-vfprintf.c: Likewise.
65037         * lib/unlinkdir.c: Likewise.
65038         * lib/unlinkdir.h: Likewise.
65039         * lib/unlocked-io.h: Likewise.
65040         * lib/unsetenv.c: Likewise.
65041         * lib/userspec.c: Likewise.
65042         * lib/utime.c: Likewise.
65043         * lib/utimecmp.c: Likewise.
65044         * lib/utimecmp.h: Likewise.
65045         * lib/utimens.c: Likewise.
65046         * lib/verify.h: Likewise.
65047         * lib/verror.c: Likewise.
65048         * lib/verror.h: Likewise.
65049         * lib/version-etc-fsf.c: Likewise.
65050         * lib/version-etc.c: Likewise.
65051         * lib/version-etc.h: Likewise.
65052         * lib/vfprintf.c: Likewise.
65053         * lib/vprintf.c: Likewise.
65054         * lib/vsprintf.c: Likewise.
65055         * lib/w32spawn.h: Likewise.
65056         * lib/wait-process.c: Likewise.
65057         * lib/wait-process.h: Likewise.
65058         * lib/wcwidth.c: Likewise.
65059         * lib/write-any-file.c: Likewise.
65060         * lib/xalloc-die.c: Likewise.
65061         * lib/xalloc.h: Likewise.
65062         * lib/xasprintf.c: Likewise.
65063         * lib/xgetcwd.c: Likewise.
65064         * lib/xgetcwd.h: Likewise.
65065         * lib/xgetdomainname.c: Likewise.
65066         * lib/xgetdomainname.h: Likewise.
65067         * lib/xgethostname.c: Likewise.
65068         * lib/xmalloc.c: Likewise.
65069         * lib/xmalloca.c: Likewise.
65070         * lib/xmalloca.h: Likewise.
65071         * lib/xmemcoll.c: Likewise.
65072         * lib/xnanosleep.c: Likewise.
65073         * lib/xreadlink.c: Likewise.
65074         * lib/xreadlink.h: Likewise.
65075         * lib/xsetenv.c: Likewise.
65076         * lib/xsetenv.h: Likewise.
65077         * lib/xstriconv.c: Likewise.
65078         * lib/xstriconv.h: Likewise.
65079         * lib/xstrndup.c: Likewise.
65080         * lib/xstrndup.h: Likewise.
65081         * lib/xstrtod.c: Likewise.
65082         * lib/xstrtod.h: Likewise.
65083         * lib/xstrtol-error.c: Likewise.
65084         * lib/xstrtol.c: Likewise.
65085         * lib/xstrtol.h: Likewise.
65086         * lib/xtime.h: Likewise.
65087         * lib/xvasprintf.c: Likewise.
65088         * lib/xvasprintf.h: Likewise.
65089         * lib/yesno.c: Likewise.
65090         * lib/yesno.h: Likewise.
65091         * posix-modules: Likewise.
65092         * tests/test-alloca-opt.c: Likewise.
65093         * tests/test-arcfour.c: Likewise.
65094         * tests/test-arctwo.c: Likewise.
65095         * tests/test-argmatch.c: Likewise.
65096         * tests/test-argp-2.sh: Likewise.
65097         * tests/test-argp.c: Likewise.
65098         * tests/test-arpa_inet.c: Likewise.
65099         * tests/test-array_list.c: Likewise.
65100         * tests/test-array_oset.c: Likewise.
65101         * tests/test-atexit.c: Likewise.
65102         * tests/test-avltree_list.c: Likewise.
65103         * tests/test-avltree_oset.c: Likewise.
65104         * tests/test-avltreehash_list.c: Likewise.
65105         * tests/test-base64.c: Likewise.
65106         * tests/test-binary-io.c: Likewise.
65107         * tests/test-byteswap.c: Likewise.
65108         * tests/test-c-ctype.c: Likewise.
65109         * tests/test-c-strcasecmp.c: Likewise.
65110         * tests/test-c-strcasestr.c: Likewise.
65111         * tests/test-c-strncasecmp.c: Likewise.
65112         * tests/test-c-strstr.c: Likewise.
65113         * tests/test-canonicalize-lgpl.c: Likewise.
65114         * tests/test-canonicalize.c: Likewise.
65115         * tests/test-carray_list.c: Likewise.
65116         * tests/test-ceilf.c: Likewise.
65117         * tests/test-ceill.c: Likewise.
65118         * tests/test-count-one-bits.c: Likewise.
65119         * tests/test-crc.c: Likewise.
65120         * tests/test-dirname.c: Likewise.
65121         * tests/test-fbufmode.c: Likewise.
65122         * tests/test-fcntl.c: Likewise.
65123         * tests/test-fflush.c: Likewise.
65124         * tests/test-floorf.c: Likewise.
65125         * tests/test-floorl.c: Likewise.
65126         * tests/test-fopen.c: Likewise.
65127         * tests/test-fprintf-posix.c: Likewise.
65128         * tests/test-fprintf-posix.h: Likewise.
65129         * tests/test-fpurge.c: Likewise.
65130         * tests/test-freadable.c: Likewise.
65131         * tests/test-freadahead.c: Likewise.
65132         * tests/test-freading.c: Likewise.
65133         * tests/test-freopen.c: Likewise.
65134         * tests/test-frexp.c: Likewise.
65135         * tests/test-frexpl.c: Likewise.
65136         * tests/test-fseek.c: Likewise.
65137         * tests/test-fseeko.c: Likewise.
65138         * tests/test-fseterr.c: Likewise.
65139         * tests/test-fstrcmp.c: Likewise.
65140         * tests/test-ftell.c: Likewise.
65141         * tests/test-ftello.c: Likewise.
65142         * tests/test-fwritable.c: Likewise.
65143         * tests/test-fwriting.c: Likewise.
65144         * tests/test-getaddrinfo.c: Likewise.
65145         * tests/test-getpass.c: Likewise.
65146         * tests/test-gettimeofday.c: Likewise.
65147         * tests/test-hmac-md5.c: Likewise.
65148         * tests/test-hmac-sha1.c: Likewise.
65149         * tests/test-iconv.c: Likewise.
65150         * tests/test-iconvme.c: Likewise.
65151         * tests/test-inttypes.c: Likewise.
65152         * tests/test-isnan.c: Likewise.
65153         * tests/test-isnanf.c: Likewise.
65154         * tests/test-isnanl-nolibm.c: Likewise.
65155         * tests/test-isnanl.c: Likewise.
65156         * tests/test-isnanl.h: Likewise.
65157         * tests/test-ldexpl.c: Likewise.
65158         * tests/test-linked_list.c: Likewise.
65159         * tests/test-linkedhash_list.c: Likewise.
65160         * tests/test-locale.c: Likewise.
65161         * tests/test-localename.c: Likewise.
65162         * tests/test-lock.c: Likewise.
65163         * tests/test-lseek.c: Likewise.
65164         * tests/test-malloca.c: Likewise.
65165         * tests/test-math.c: Likewise.
65166         * tests/test-mbscasecmp.c: Likewise.
65167         * tests/test-mbscasestr1.c: Likewise.
65168         * tests/test-mbscasestr2.c: Likewise.
65169         * tests/test-mbscasestr3.c: Likewise.
65170         * tests/test-mbscasestr4.c: Likewise.
65171         * tests/test-mbschr.c: Likewise.
65172         * tests/test-mbscspn.c: Likewise.
65173         * tests/test-mbsncasecmp.c: Likewise.
65174         * tests/test-mbspbrk.c: Likewise.
65175         * tests/test-mbspcasecmp.c: Likewise.
65176         * tests/test-mbsrchr.c: Likewise.
65177         * tests/test-mbsspn.c: Likewise.
65178         * tests/test-mbsstr1.c: Likewise.
65179         * tests/test-mbsstr2.c: Likewise.
65180         * tests/test-mbsstr3.c: Likewise.
65181         * tests/test-md5.c: Likewise.
65182         * tests/test-memmem.c: Likewise.
65183         * tests/test-netinet_in.c: Likewise.
65184         * tests/test-open.c: Likewise.
65185         * tests/test-printf-frexp.c: Likewise.
65186         * tests/test-printf-frexpl.c: Likewise.
65187         * tests/test-printf-posix.c: Likewise.
65188         * tests/test-printf-posix.h: Likewise.
65189         * tests/test-rbtree_list.c: Likewise.
65190         * tests/test-rbtree_oset.c: Likewise.
65191         * tests/test-rbtreehash_list.c: Likewise.
65192         * tests/test-read-file.c: Likewise.
65193         * tests/test-rijndael.c: Likewise.
65194         * tests/test-search.c: Likewise.
65195         * tests/test-signbit.c: Likewise.
65196         * tests/test-sleep.c: Likewise.
65197         * tests/test-snprintf-posix.c: Likewise.
65198         * tests/test-snprintf-posix.h: Likewise.
65199         * tests/test-snprintf.c: Likewise.
65200         * tests/test-sprintf-posix.c: Likewise.
65201         * tests/test-sprintf-posix.h: Likewise.
65202         * tests/test-stat-time.c: Likewise.
65203         * tests/test-stdbool.c: Likewise.
65204         * tests/test-stdint.c: Likewise.
65205         * tests/test-stdio.c: Likewise.
65206         * tests/test-stdlib.c: Likewise.
65207         * tests/test-stpncpy.c: Likewise.
65208         * tests/test-strcasestr.c: Likewise.
65209         * tests/test-striconv.c: Likewise.
65210         * tests/test-striconveh.c: Likewise.
65211         * tests/test-striconveha.c: Likewise.
65212         * tests/test-string.c: Likewise.
65213         * tests/test-sys_select.c: Likewise.
65214         * tests/test-sys_socket.c: Likewise.
65215         * tests/test-sys_stat.c: Likewise.
65216         * tests/test-sys_time.c: Likewise.
65217         * tests/test-sysexits.c: Likewise.
65218         * tests/test-time.c: Likewise.
65219         * tests/test-tls.c: Likewise.
65220         * tests/test-trunc.c: Likewise.
65221         * tests/test-truncf.c: Likewise.
65222         * tests/test-truncl.c: Likewise.
65223         * tests/test-unistd.c: Likewise.
65224         * tests/test-vasnprintf-posix.c: Likewise.
65225         * tests/test-vasnprintf-posix2.c: Likewise.
65226         * tests/test-vasnprintf.c: Likewise.
65227         * tests/test-vasprintf-posix.c: Likewise.
65228         * tests/test-vasprintf.c: Likewise.
65229         * tests/test-verify.c: Likewise.
65230         * tests/test-vfprintf-posix.c: Likewise.
65231         * tests/test-vprintf-posix.c: Likewise.
65232         * tests/test-vsnprintf-posix.c: Likewise.
65233         * tests/test-vsnprintf.c: Likewise.
65234         * tests/test-vsprintf-posix.c: Likewise.
65235         * tests/test-wchar.c: Likewise.
65236         * tests/test-wctype.c: Likewise.
65237         * tests/test-wcwidth.c: Likewise.
65238         * tests/test-xstrtol.c: Likewise.
65239         * tests/test-xvasprintf.c: Likewise.
65240         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
65241         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
65242         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65243         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65244         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65245         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
65246         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65247         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65248         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65249         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
65250         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65251         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65252         * tests/uniname/test-uninames.c: Likewise.
65253         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
65254         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
65255         * tests/unistdio/test-u16-printf1.h: Likewise.
65256         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
65257         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
65258         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
65259         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
65260         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
65261         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
65262         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
65263         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
65264         * tests/unistdio/test-u32-printf1.h: Likewise.
65265         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
65266         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
65267         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
65268         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
65269         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
65270         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
65271         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
65272         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
65273         * tests/unistdio/test-u8-printf1.h: Likewise.
65274         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
65275         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
65276         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
65277         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
65278         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
65279         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
65280         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
65281         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
65282         * tests/unistdio/test-ulc-printf1.h: Likewise.
65283         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
65284         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
65285         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
65286         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
65287         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
65288         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
65289         * tests/uniwidth/test-u16-strwidth.c: Likewise.
65290         * tests/uniwidth/test-u16-width.c: Likewise.
65291         * tests/uniwidth/test-u32-strwidth.c: Likewise.
65292         * tests/uniwidth/test-u32-width.c: Likewise.
65293         * tests/uniwidth/test-u8-strwidth.c: Likewise.
65294         * tests/uniwidth/test-u8-width.c: Likewise.
65295         * tests/uniwidth/test-uc_width.c: Likewise.
65296         * config/srclist-update: Likewise.
65297         (fixlicense): Update to GPLv3+.
65298
65299         Change copyright notice from LGPLv2.1+ to LGPLv3+.
65300         * tests/test-tsearch.c: Change copyright notice.
65301
65302         Change copyright notice from LGPLv2.0+ to LGPLv3+.
65303         * lib/c-strcaseeq.h: Change copyright notice.
65304         * lib/streq.h: Likewise.
65305         * lib/uniconv.h: Likewise.
65306         * lib/uniconv/u-conv-from-enc.h: Likewise.
65307         * lib/uniconv/u-conv-to-enc.h: Likewise.
65308         * lib/uniconv/u-strconv-from-enc.h: Likewise.
65309         * lib/uniconv/u-strconv-to-enc.h: Likewise.
65310         * lib/uniconv/u16-conv-from-enc.c: Likewise.
65311         * lib/uniconv/u16-conv-to-enc.c: Likewise.
65312         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
65313         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
65314         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
65315         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
65316         * lib/uniconv/u32-conv-from-enc.c: Likewise.
65317         * lib/uniconv/u32-conv-to-enc.c: Likewise.
65318         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
65319         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
65320         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
65321         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
65322         * lib/uniconv/u8-conv-from-enc.c: Likewise.
65323         * lib/uniconv/u8-conv-to-enc.c: Likewise.
65324         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
65325         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
65326         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
65327         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
65328         * lib/uniname.h: Likewise.
65329         * lib/uniname/uniname.c: Likewise.
65330         * lib/unistdio.h: Likewise.
65331         * lib/unistdio/u-asnprintf.h: Likewise.
65332         * lib/unistdio/u-asprintf.h: Likewise.
65333         * lib/unistdio/u-printf-args.c: Likewise.
65334         * lib/unistdio/u-printf-args.h: Likewise.
65335         * lib/unistdio/u-printf-parse.h: Likewise.
65336         * lib/unistdio/u-snprintf.h: Likewise.
65337         * lib/unistdio/u-sprintf.h: Likewise.
65338         * lib/unistdio/u-vasprintf.h: Likewise.
65339         * lib/unistdio/u-vsnprintf.h: Likewise.
65340         * lib/unistdio/u-vsprintf.h: Likewise.
65341         * lib/unistdio/u16-asnprintf.c: Likewise.
65342         * lib/unistdio/u16-asprintf.c: Likewise.
65343         * lib/unistdio/u16-printf-parse.c: Likewise.
65344         * lib/unistdio/u16-snprintf.c: Likewise.
65345         * lib/unistdio/u16-sprintf.c: Likewise.
65346         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
65347         * lib/unistdio/u16-u16-asprintf.c: Likewise.
65348         * lib/unistdio/u16-u16-snprintf.c: Likewise.
65349         * lib/unistdio/u16-u16-sprintf.c: Likewise.
65350         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
65351         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
65352         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
65353         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
65354         * lib/unistdio/u16-vasnprintf.c: Likewise.
65355         * lib/unistdio/u16-vasprintf.c: Likewise.
65356         * lib/unistdio/u16-vsnprintf.c: Likewise.
65357         * lib/unistdio/u16-vsprintf.c: Likewise.
65358         * lib/unistdio/u32-asnprintf.c: Likewise.
65359         * lib/unistdio/u32-asprintf.c: Likewise.
65360         * lib/unistdio/u32-printf-parse.c: Likewise.
65361         * lib/unistdio/u32-snprintf.c: Likewise.
65362         * lib/unistdio/u32-sprintf.c: Likewise.
65363         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
65364         * lib/unistdio/u32-u32-asprintf.c: Likewise.
65365         * lib/unistdio/u32-u32-snprintf.c: Likewise.
65366         * lib/unistdio/u32-u32-sprintf.c: Likewise.
65367         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
65368         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
65369         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
65370         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
65371         * lib/unistdio/u32-vasnprintf.c: Likewise.
65372         * lib/unistdio/u32-vasprintf.c: Likewise.
65373         * lib/unistdio/u32-vsnprintf.c: Likewise.
65374         * lib/unistdio/u32-vsprintf.c: Likewise.
65375         * lib/unistdio/u8-asnprintf.c: Likewise.
65376         * lib/unistdio/u8-asprintf.c: Likewise.
65377         * lib/unistdio/u8-printf-parse.c: Likewise.
65378         * lib/unistdio/u8-snprintf.c: Likewise.
65379         * lib/unistdio/u8-sprintf.c: Likewise.
65380         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
65381         * lib/unistdio/u8-u8-asprintf.c: Likewise.
65382         * lib/unistdio/u8-u8-snprintf.c: Likewise.
65383         * lib/unistdio/u8-u8-sprintf.c: Likewise.
65384         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
65385         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
65386         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
65387         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
65388         * lib/unistdio/u8-vasnprintf.c: Likewise.
65389         * lib/unistdio/u8-vasprintf.c: Likewise.
65390         * lib/unistdio/u8-vsnprintf.c: Likewise.
65391         * lib/unistdio/u8-vsprintf.c: Likewise.
65392         * lib/unistdio/ulc-asnprintf.c: Likewise.
65393         * lib/unistdio/ulc-asprintf.c: Likewise.
65394         * lib/unistdio/ulc-printf-parse.c: Likewise.
65395         * lib/unistdio/ulc-snprintf.c: Likewise.
65396         * lib/unistdio/ulc-sprintf.c: Likewise.
65397         * lib/unistdio/ulc-vasnprintf.c: Likewise.
65398         * lib/unistdio/ulc-vasprintf.c: Likewise.
65399         * lib/unistdio/ulc-vsnprintf.c: Likewise.
65400         * lib/unistdio/ulc-vsprintf.c: Likewise.
65401         * lib/unistr.h: Likewise.
65402         * lib/unistr/u-cpy-alloc.h: Likewise.
65403         * lib/unistr/u-cpy.h: Likewise.
65404         * lib/unistr/u-endswith.h: Likewise.
65405         * lib/unistr/u-move.h: Likewise.
65406         * lib/unistr/u-set.h: Likewise.
65407         * lib/unistr/u-startswith.h: Likewise.
65408         * lib/unistr/u-stpcpy.h: Likewise.
65409         * lib/unistr/u-stpncpy.h: Likewise.
65410         * lib/unistr/u-strcat.h: Likewise.
65411         * lib/unistr/u-strcpy.h: Likewise.
65412         * lib/unistr/u-strcspn.h: Likewise.
65413         * lib/unistr/u-strdup.h: Likewise.
65414         * lib/unistr/u-strlen.h: Likewise.
65415         * lib/unistr/u-strncat.h: Likewise.
65416         * lib/unistr/u-strncpy.h: Likewise.
65417         * lib/unistr/u-strnlen.h: Likewise.
65418         * lib/unistr/u-strpbrk.h: Likewise.
65419         * lib/unistr/u-strspn.h: Likewise.
65420         * lib/unistr/u-strstr.h: Likewise.
65421         * lib/unistr/u-strtok.h: Likewise.
65422         * lib/unistr/u16-check.c: Likewise.
65423         * lib/unistr/u16-chr.c: Likewise.
65424         * lib/unistr/u16-cmp.c: Likewise.
65425         * lib/unistr/u16-cpy-alloc.c: Likewise.
65426         * lib/unistr/u16-cpy.c: Likewise.
65427         * lib/unistr/u16-endswith.c: Likewise.
65428         * lib/unistr/u16-mblen.c: Likewise.
65429         * lib/unistr/u16-mbsnlen.c: Likewise.
65430         * lib/unistr/u16-mbtouc-aux.c: Likewise.
65431         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
65432         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
65433         * lib/unistr/u16-mbtouc.c: Likewise.
65434         * lib/unistr/u16-mbtoucr.c: Likewise.
65435         * lib/unistr/u16-move.c: Likewise.
65436         * lib/unistr/u16-next.c: Likewise.
65437         * lib/unistr/u16-prev.c: Likewise.
65438         * lib/unistr/u16-set.c: Likewise.
65439         * lib/unistr/u16-startswith.c: Likewise.
65440         * lib/unistr/u16-stpcpy.c: Likewise.
65441         * lib/unistr/u16-stpncpy.c: Likewise.
65442         * lib/unistr/u16-strcat.c: Likewise.
65443         * lib/unistr/u16-strchr.c: Likewise.
65444         * lib/unistr/u16-strcmp.c: Likewise.
65445         * lib/unistr/u16-strcpy.c: Likewise.
65446         * lib/unistr/u16-strcspn.c: Likewise.
65447         * lib/unistr/u16-strdup.c: Likewise.
65448         * lib/unistr/u16-strlen.c: Likewise.
65449         * lib/unistr/u16-strmblen.c: Likewise.
65450         * lib/unistr/u16-strmbtouc.c: Likewise.
65451         * lib/unistr/u16-strncat.c: Likewise.
65452         * lib/unistr/u16-strncmp.c: Likewise.
65453         * lib/unistr/u16-strncpy.c: Likewise.
65454         * lib/unistr/u16-strnlen.c: Likewise.
65455         * lib/unistr/u16-strpbrk.c: Likewise.
65456         * lib/unistr/u16-strrchr.c: Likewise.
65457         * lib/unistr/u16-strspn.c: Likewise.
65458         * lib/unistr/u16-strstr.c: Likewise.
65459         * lib/unistr/u16-strtok.c: Likewise.
65460         * lib/unistr/u16-to-u32.c: Likewise.
65461         * lib/unistr/u16-to-u8.c: Likewise.
65462         * lib/unistr/u16-uctomb-aux.c: Likewise.
65463         * lib/unistr/u16-uctomb.c: Likewise.
65464         * lib/unistr/u32-check.c: Likewise.
65465         * lib/unistr/u32-chr.c: Likewise.
65466         * lib/unistr/u32-cmp.c: Likewise.
65467         * lib/unistr/u32-cpy-alloc.c: Likewise.
65468         * lib/unistr/u32-cpy.c: Likewise.
65469         * lib/unistr/u32-endswith.c: Likewise.
65470         * lib/unistr/u32-mblen.c: Likewise.
65471         * lib/unistr/u32-mbsnlen.c: Likewise.
65472         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
65473         * lib/unistr/u32-mbtouc.c: Likewise.
65474         * lib/unistr/u32-mbtoucr.c: Likewise.
65475         * lib/unistr/u32-move.c: Likewise.
65476         * lib/unistr/u32-next.c: Likewise.
65477         * lib/unistr/u32-prev.c: Likewise.
65478         * lib/unistr/u32-set.c: Likewise.
65479         * lib/unistr/u32-startswith.c: Likewise.
65480         * lib/unistr/u32-stpcpy.c: Likewise.
65481         * lib/unistr/u32-stpncpy.c: Likewise.
65482         * lib/unistr/u32-strcat.c: Likewise.
65483         * lib/unistr/u32-strchr.c: Likewise.
65484         * lib/unistr/u32-strcmp.c: Likewise.
65485         * lib/unistr/u32-strcpy.c: Likewise.
65486         * lib/unistr/u32-strcspn.c: Likewise.
65487         * lib/unistr/u32-strdup.c: Likewise.
65488         * lib/unistr/u32-strlen.c: Likewise.
65489         * lib/unistr/u32-strmblen.c: Likewise.
65490         * lib/unistr/u32-strmbtouc.c: Likewise.
65491         * lib/unistr/u32-strncat.c: Likewise.
65492         * lib/unistr/u32-strncmp.c: Likewise.
65493         * lib/unistr/u32-strncpy.c: Likewise.
65494         * lib/unistr/u32-strnlen.c: Likewise.
65495         * lib/unistr/u32-strpbrk.c: Likewise.
65496         * lib/unistr/u32-strrchr.c: Likewise.
65497         * lib/unistr/u32-strspn.c: Likewise.
65498         * lib/unistr/u32-strstr.c: Likewise.
65499         * lib/unistr/u32-strtok.c: Likewise.
65500         * lib/unistr/u32-to-u16.c: Likewise.
65501         * lib/unistr/u32-to-u8.c: Likewise.
65502         * lib/unistr/u32-uctomb.c: Likewise.
65503         * lib/unistr/u8-check.c: Likewise.
65504         * lib/unistr/u8-chr.c: Likewise.
65505         * lib/unistr/u8-cmp.c: Likewise.
65506         * lib/unistr/u8-cpy-alloc.c: Likewise.
65507         * lib/unistr/u8-cpy.c: Likewise.
65508         * lib/unistr/u8-endswith.c: Likewise.
65509         * lib/unistr/u8-mblen.c: Likewise.
65510         * lib/unistr/u8-mbsnlen.c: Likewise.
65511         * lib/unistr/u8-mbtouc-aux.c: Likewise.
65512         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
65513         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
65514         * lib/unistr/u8-mbtouc.c: Likewise.
65515         * lib/unistr/u8-mbtoucr.c: Likewise.
65516         * lib/unistr/u8-move.c: Likewise.
65517         * lib/unistr/u8-next.c: Likewise.
65518         * lib/unistr/u8-prev.c: Likewise.
65519         * lib/unistr/u8-set.c: Likewise.
65520         * lib/unistr/u8-startswith.c: Likewise.
65521         * lib/unistr/u8-stpcpy.c: Likewise.
65522         * lib/unistr/u8-stpncpy.c: Likewise.
65523         * lib/unistr/u8-strcat.c: Likewise.
65524         * lib/unistr/u8-strchr.c: Likewise.
65525         * lib/unistr/u8-strcmp.c: Likewise.
65526         * lib/unistr/u8-strcpy.c: Likewise.
65527         * lib/unistr/u8-strcspn.c: Likewise.
65528         * lib/unistr/u8-strdup.c: Likewise.
65529         * lib/unistr/u8-strlen.c: Likewise.
65530         * lib/unistr/u8-strmblen.c: Likewise.
65531         * lib/unistr/u8-strmbtouc.c: Likewise.
65532         * lib/unistr/u8-strncat.c: Likewise.
65533         * lib/unistr/u8-strncmp.c: Likewise.
65534         * lib/unistr/u8-strncpy.c: Likewise.
65535         * lib/unistr/u8-strnlen.c: Likewise.
65536         * lib/unistr/u8-strpbrk.c: Likewise.
65537         * lib/unistr/u8-strrchr.c: Likewise.
65538         * lib/unistr/u8-strspn.c: Likewise.
65539         * lib/unistr/u8-strstr.c: Likewise.
65540         * lib/unistr/u8-strtok.c: Likewise.
65541         * lib/unistr/u8-to-u16.c: Likewise.
65542         * lib/unistr/u8-to-u32.c: Likewise.
65543         * lib/unistr/u8-uctomb-aux.c: Likewise.
65544         * lib/unistr/u8-uctomb.c: Likewise.
65545         * lib/unitypes.h: Likewise.
65546         * lib/uniwidth.h: Likewise.
65547         * lib/uniwidth/cjk.h: Likewise.
65548         * lib/uniwidth/u16-strwidth.c: Likewise.
65549         * lib/uniwidth/u16-width.c: Likewise.
65550         * lib/uniwidth/u32-strwidth.c: Likewise.
65551         * lib/uniwidth/u32-width.c: Likewise.
65552         * lib/uniwidth/u8-strwidth.c: Likewise.
65553         * lib/uniwidth/u8-width.c: Likewise.
65554         * lib/uniwidth/width.c: Likewise.
65555
65556 2007-10-07  Bruno Haible  <bruno@clisp.org>
65557
65558         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
65559         The file is still under LGPL (see modules/inttypes).
65560
65561 2007-10-06  Bruno Haible  <bruno@clisp.org>
65562
65563         * modules/trunc (Dependencies): Add 'extensions'.
65564         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
65565         Reported by Ben Pfaff <blp@gnu.org>.
65566
65567 2007-10-06  Bruno Haible  <bruno@clisp.org>
65568
65569         * modules/freopen-tests: New file.
65570         * tests/test-freopen.c: New file.
65571
65572         * modules/fopen-tests: New file.
65573         * tests/test-fopen.c: New file.
65574
65575         * modules/fopen: New file.
65576         * lib/fopen.c: New file.
65577         * m4/fopen.m4: New file.
65578         * modules/freopen: New file.
65579         * lib/freopen.c: New file.
65580         * m4/freopen.m4: New file.
65581         * lib/stdio.in.h (fopen, freopen): New declarations.
65582         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
65583         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65584         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
65585         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65586         * doc/functions/fopen.texi: Mention the 'fopen' module.
65587         * doc/functions/freopen.texi: Mention the 'freopen' module.
65588
65589 2007-10-06  Bruno Haible  <bruno@clisp.org>
65590
65591         * modules/open-tests: New file.
65592         * tests/test-open.c: New file.
65593
65594         * modules/open: New file.
65595         * lib/open.c: New file.
65596         * m4/open.m4: New file.
65597         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
65598         lib/open.c does.
65599         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
65600         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
65601         macros.
65602         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
65603         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
65604         REPLACE_OPEN.
65605         * doc/functions/open.texi: Mention the 'open' module.
65606
65607 2007-10-04  Bruno Haible  <bruno@clisp.org>
65608
65609         * modules/ceill-tests: New file.
65610         * tests/test-ceill.c: New file.
65611
65612         * modules/ceill: New file.
65613         * lib/ceill.c: Replace entire file.
65614         * m4/ceill.m4: New file.
65615         * lib/math.in.h (ceill): Replace declaration.
65616         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
65617         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
65618         * doc/functions/ceill.texi: Mention the 'ceill' module.
65619         * modules/mathl (Files): Remove lib/ceill.c.
65620         (Depends-on): Add ceill.
65621
65622 2007-10-04  Bruno Haible  <bruno@clisp.org>
65623
65624         * modules/ceilf-tests: New file.
65625         * tests/test-ceilf.c: New file.
65626
65627         * modules/ceilf: New file.
65628         * lib/ceil.c: New file.
65629         * lib/ceilf.c: New file.
65630         * m4/ceilf.m4: New file.
65631         * lib/math.in.h (ceilf): New declaration.
65632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
65633         HAVE_DECL_CEILF.
65634         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
65635         HAVE_DECL_CEILF.
65636         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
65637
65638 2007-10-04  Bruno Haible  <bruno@clisp.org>
65639
65640         * modules/floorl-tests: New file.
65641         * tests/test-floorl.c: New file.
65642
65643         * modules/floorl: New file.
65644         * lib/floorl.c: Replace entire file.
65645         * m4/floorl.m4: New file.
65646         * lib/math.in.h (floorl): Replace declaration.
65647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
65648         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
65649         * doc/functions/floorl.texi: Mention the 'floorl' module.
65650         * modules/mathl (Files): Remove lib/floorl.c.
65651         (Depends-on): Add floorl.
65652
65653 2007-10-04  Bruno Haible  <bruno@clisp.org>
65654
65655         * modules/floorf-tests: New file.
65656         * tests/test-floorf.c: New file.
65657
65658         * modules/floorf: New file.
65659         * lib/floor.c: New file.
65660         * lib/floorf.c: New file.
65661         * m4/floorf.m4: New file.
65662         * lib/math.in.h (floorf): New declaration.
65663         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
65664         HAVE_DECL_FLOORF.
65665         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
65666         HAVE_DECL_FLOORF.
65667         * doc/functions/floorf.texi: Mention the 'floorf' module.
65668
65669 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
65670             Bruno Haible  <bruno@clisp.org>
65671
65672         Advertise for the Git server instead of the CVS server.
65673         * doc/gnulib-intro.texi (Steady Development): Mention the Git
65674         repository instead of the CVS one.
65675         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
65676         about all VCS systems generically.
65677         * doc/gnulib.texi (Introduction): Capitalize `Git'.
65678
65679 2007-10-04  Bruno Haible  <bruno@clisp.org>
65680
65681         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
65682         means.
65683         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
65684
65685 2007-10-04  Bruno Haible  <bruno@clisp.org>
65686
65687         * modules/truncl-tests: New file.
65688         * tests/test-truncl.c: New file.
65689
65690         * modules/truncl: New file.
65691         * lib/truncl.c: New file.
65692         * m4/truncl.m4: New file.
65693         * lib/math.in.h (truncl): New declaration.
65694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
65695         HAVE_DECL_TRUNCL.
65696         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
65697         HAVE_DECL_TRUNCL.
65698         * doc/functions/truncl.texi: Mention the 'truncl' module.
65699
65700 2007-10-04  Bruno Haible  <bruno@clisp.org>
65701
65702         * modules/truncf-tests: New file.
65703         * tests/test-truncf.c: New file.
65704
65705         * modules/truncf: New file.
65706         * lib/trunc.c: Make paramerizable through USE_* macros.
65707         * lib/truncf.c: New file.
65708         * m4/truncf.m4: New file.
65709         * lib/math.in.h (truncf): New declaration.
65710         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
65711         HAVE_DECL_TRUNCF.
65712         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
65713         HAVE_DECL_TRUNCF.
65714         * doc/functions/truncf.texi: Mention the 'truncf' module.
65715
65716 2007-10-03  Bruno Haible  <bruno@clisp.org>
65717
65718         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
65719         augmentation also for tests modules.
65720         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
65721         * modules/atexit-tests (Makefile.am): Likewise.
65722         * modules/binary-io-tests (Makefile.am): Likewise.
65723         * modules/c-strcase-tests (Makefile.am): Likewise.
65724         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
65725         * modules/canonicalize-tests (Makefile.am): Likewise.
65726         * modules/closein-tests (Makefile.am): Likewise.
65727         * modules/fprintf-posix-tests (Makefile.am): Likewise.
65728         * modules/freadahead-tests (Makefile.am): Likewise.
65729         * modules/fseek-tests (Makefile.am): Likewise.
65730         * modules/fseeko-tests (Makefile.am): Likewise.
65731         * modules/ftell-tests (Makefile.am): Likewise.
65732         * modules/ftello-tests (Makefile.am): Likewise.
65733         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
65734         * modules/isnanl-tests (Makefile.am): Likewise.
65735         * modules/lseek-tests (Makefile.am): Likewise.
65736         * modules/mbscasecmp-tests (Makefile.am): Likewise.
65737         * modules/mbscasestr-tests (Makefile.am): Likewise.
65738         * modules/mbschr-tests (Makefile.am): Likewise.
65739         * modules/mbscspn-tests (Makefile.am): Likewise.
65740         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
65741         * modules/mbspbrk-tests (Makefile.am): Likewise.
65742         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
65743         * modules/mbsrchr-tests (Makefile.am): Likewise.
65744         * modules/mbsspn-tests (Makefile.am): Likewise.
65745         * modules/mbsstr-tests (Makefile.am): Likewise.
65746         * modules/printf-posix-tests (Makefile.am): Likewise.
65747         * modules/snprintf-posix-tests (Makefile.am): Likewise.
65748         * modules/sprintf-posix-tests (Makefile.am): Likewise.
65749         * modules/tsearch-tests (Makefile.am): Likewise.
65750         * modules/uniname/uniname-tests (Makefile.am): Likewise.
65751         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
65752         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
65753         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
65754         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
65755         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
65756         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
65757         * modules/vprintf-posix-tests (Makefile.am): Likewise.
65758         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
65759         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
65760         * modules/xstrtoimax-tests (Makefile.am): Likewise.
65761         * modules/xstrtol-tests (Makefile.am): Likewise.
65762         * modules/xstrtoumax-tests (Makefile.am): Likewise.
65763         * modules/yesno-tests (Makefile.am): Likewise.
65764
65765 2007-10-03  Bruno Haible  <bruno@clisp.org>
65766
65767         * modules/trunc-tests: New file.
65768         * tests/test-trunc.c: New file.
65769
65770         * modules/trunc: New file.
65771         * lib/trunc.c: New file.
65772         * m4/trunc.m4: New file.
65773         * lib/math.in.h (trunc): New declaration.
65774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
65775         HAVE_DECL_TRUNC.
65776         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
65777         HAVE_DECL_TRUNC.
65778         * doc/functions/trunc.texi: Mention the 'trunc' module.
65779
65780 2007-10-03  Bruno Haible  <bruno@clisp.org>
65781
65782         * tests/test-fpending.c: New file, mostly copied
65783         from coreutils/lib/t-fpending.c.
65784         * modules/fpending-tests: New file.
65785
65786 2007-10-03  Bruno Haible  <bruno@clisp.org>
65787
65788         Port the stdio extensions to QNX (untested).
65789         * lib/fseterr.c (fseterr): Add support for QNX.
65790         * lib/fbufmode.c (fbufmode): Likewise.
65791         * lib/freadable.c (freadable): Likewise.
65792         * lib/fwritable.c (fwritable): Likewise.
65793         * lib/freading.c (freading): Likewise.
65794         * lib/fwriting.c (fwriting): Likewise.
65795         * lib/freadahead.c (freadahed): Likewise.
65796         * lib/fpurge.c (fpurge): Likewise.
65797         * lib/fseeko.c (rpl_fseeko): Likewise.
65798
65799 2007-10-03  Bruno Haible  <bruno@clisp.org>
65800             Jim Meyering  <jim@meyering.net>
65801             Eric Blake  <ebb9@byu.net>
65802
65803         * doc/relocatable.texi: Use @command instead of @program.
65804
65805 2007-10-02  Jim Meyering  <jim@meyering.net>
65806
65807         Perform one more "_.h" -> ".in.h" substitution.
65808         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
65809         instead of unistd_.h here, too.
65810
65811 2007-10-01  Bruno Haible  <bruno@clisp.org>
65812
65813         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
65814         Needed for the alloca-opt module.
65815
65816 2007-09-30  Bruno Haible  <bruno@clisp.org>
65817
65818         * lib/alloca.in.h: Renamed from lib/alloca_.h.
65819         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
65820         alloca_.h.
65821         * lib/argz.in.h: Renamed from lib/argz_.h.
65822         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
65823         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
65824         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
65825         byteswap_.h.
65826         * lib/dirent.in.h: Renamed from lib/dirent_.h.
65827         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
65828         dirent_.h.
65829         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
65830         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
65831         fcntl_.h.
65832         * lib/float.in.h: Renamed from lib/float_.h.
65833         * modules/float (Files, Makefile.am): Use float.in.h instead of
65834         float_.h.
65835         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
65836         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
65837         fnmatch_.h.
65838         * lib/getopt.in.h: Renamed from lib/getopt_.h.
65839         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
65840         getopt_.h.
65841         * lib/glob.in.h: Renamed from lib/glob_.h.
65842         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
65843         * lib/iconv.in.h: Renamed from lib/iconv_.h.
65844         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
65845         iconv_.h.
65846         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
65847         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
65848         inttypes_.h.
65849         * lib/locale.in.h: Renamed from lib/locale_.h.
65850         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
65851         locale_.h.
65852         * lib/math.in.h: Renamed from lib/math_.h.
65853         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
65854         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
65855         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
65856         of netinet_in_.h. Add dependency.
65857         * lib/poll.in.h: Renamed from lib/poll_.h.
65858         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
65859         * lib/search.in.h: Renamed from lib/search_.h.
65860         * modules/search (Files, Makefile.am): Use search.in.h instead of
65861         search_.h.
65862         * lib/signal.in.h: Renamed from lib/signal_.h.
65863         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
65864         _signal.h.
65865         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
65866         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
65867         stdbool_.h.
65868         * lib/stdint.in.h: Renamed from lib/stdint_.h.
65869         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
65870         stdint_.h.
65871         * lib/stdio.in.h: Renamed from lib/stdio_.h.
65872         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
65873         stdio_.h.
65874         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
65875         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
65876         stdlib_.h.
65877         * lib/string.in.h: Renamed from lib/string_.h.
65878         * modules/string (Files, Makefile.am): Use string.in.h instead of
65879         string_.h.
65880         * doc/gnulib-tool.texi (Initial import): Update.
65881         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
65882         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
65883         of sys_select_.h. Add dependency.
65884         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
65885         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
65886         of sys_socket_.h.
65887         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
65888         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
65889         sys_stat_.h.
65890         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
65891         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
65892         sys_time_.h.
65893         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
65894         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
65895         sysexits_.h.
65896         * lib/time.in.h: Renamed from lib/time_.h.
65897         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
65898         * lib/unistd.in.h: Renamed from lib/unistd_.h.
65899         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
65900         unistd_.h.
65901         * lib/wchar.in.h: Renamed from lib/wchar_.h.
65902         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
65903         wchar_.h.
65904         * lib/wctype.in.h: Renamed from lib/wctype_.h.
65905         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
65906         wctype_.h.
65907         * build-aux/bootstrap (slurp): Update.
65908         * lib/.cppi-disable: Update.
65909
65910 2007-09-30  Bruno Haible  <bruno@clisp.org>
65911
65912         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
65913         Needed on BeOS.
65914
65915 2007-09-30  Bruno Haible  <bruno@clisp.org>
65916
65917         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
65918
65919 2007-09-29  Bruno Haible  <bruno@clisp.org>
65920
65921         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
65922
65923 2007-09-29  Bruno Haible  <bruno@clisp.org>
65924
65925         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
65926         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
65927         * build-aux/install-reloc: Compile also areadlink.c.
65928         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
65929
65930 2007-09-29  Bruno Haible  <bruno@clisp.org>
65931
65932         * gnulib-tool (func_emit_initmacro_done): Indentation.
65933
65934 2007-09-29  Bruno Haible  <bruno@clisp.org>
65935
65936         * README: Add CVS checkout update instructions.
65937         Info from Bob Proulx <bob@proulx.com>.
65938
65939 2007-09-28  Eric Blake  <ebb9@byu.net>
65940
65941         Provide move-if-change.
65942         * build-aux/move-if-change: New file, based on best practice
65943         rather than any canonical upstream location.
65944
65945 2007-09-28  Jim Meyering  <jim@meyering.net>
65946
65947         Fix canonicalize loop-detection corner case.
65948         Do not attempt to stat the symlink values stored via seen_triple.
65949         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
65950         on linux-2.6.18, (but not 2.6.22).
65951         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
65952         triple_compare.  The former compares dev,ino,filename, while the latter
65953         would actually stat dirname(filename) when dev and ino were equal.
65954         * lib/hash-triple.c: Install <string.h>.
65955         (STREQ): Define.
65956         (triple_compare_ino_str): New function.
65957         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
65958
65959 2007-09-28  Eric Blake  <ebb9@byu.net>
65960
65961         Enforce that AC_REPLACE_FUNCS files exist.
65962         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
65963         override check for typos.
65964
65965         Fix test-closein on Solaris 10.
65966         * tests/test-closein.c (main): Don't assume stdin can be inherited
65967         closed on all systems.
65968         * tests/test-closein.sh: Likewise.
65969         Reported by Piotr Tarnowski.
65970
65971 2007-09-28  Jim Meyering  <jim@meyering.net>
65972
65973         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
65974
65975 2007-09-27  Jim Meyering  <jim@meyering.net>
65976
65977         canonicalize: Avoid a false-positive cycle failure.
65978         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
65979         Sort.  Remove cycle-check.
65980         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
65981         not cycle-check.h.
65982         (seen_triple): New function.
65983         (canonicalize_filename_mode): Use it instead of cycle-check.
65984         * tests/test-canonicalize.c: Add a test for this bug.
65985         * tests/test-canonicalize.sh: Set up and run the test.
65986
65987         New module, file-set, from coreutils.
65988         * modules/file-set: Define it.
65989         * lib/file-set.c, lib/file-set.h: Implement.
65990
65991         New module, hash-triple, from coreutils.
65992         * modules/hash-triple: Define it.
65993         * lib/hash-triple.c, lib/hash-triple.h: Implement.
65994
65995 2007-09-25  Eric Blake  <ebb9@byu.net>
65996
65997         Fix strerror on Interix.
65998         * lib/string_.h (strerror): Declare replacement.
65999         * doc/functions/strerror.texi (strerror): Document the Interix
66000         shortcoming.
66001         * modules/string (Makefile.am): Support new hooks.
66002         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
66003         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
66004         gl_FUNC_STRERROR_SEPARATE.
66005         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
66006         * lib/strerror.c (rpl_strerror): Provide replacement.
66007         * modules/strerror (Depends-on): Add string.
66008         (configure.ac): Detect use of module.
66009         * tests/test-strerror.c: New file.
66010         * modules/strerror-tests: New test module.
66011         * modules/argp (Depends-on): Add strerror.
66012         * modules/error (Depends-on): Likewise.
66013         Reported by Martin Koeppe.
66014
66015 2007-09-24  Bruno Haible  <bruno@clisp.org>
66016
66017         * README: Update git instructions.
66018
66019 2007-09-24  Eric Blake  <ebb9@byu.net>
66020
66021         Revert fpending breakage from 2007-09-08.
66022         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
66023         __fpending.c.
66024
66025 2007-09-24  Jim Meyering  <jim@meyering.net>
66026
66027         filenamecat.c: Add a test.
66028         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
66029         showing how the function works when DIR is the empty string.
66030
66031 2007-09-21  Simon Josefsson  <simon@josefsson.org>
66032
66033         * tests/test-canonicalize.sh: Turn on executable bit.
66034
66035 2007-09-19  Eric Blake  <ebb9@byu.net>
66036
66037         * README: Update CVS instructions.
66038
66039 2007-09-18  Bruno Haible  <bruno@clisp.org>
66040
66041         * modules/areadlink: New file.
66042         * lib/areadlink.h (areadlink): New declaration.
66043         * lib/areadlink.c: New file, based on lib/xreadlink.c.
66044
66045 2007-09-17  Jim Meyering  <jim@meyering.net>
66046
66047         * lib/savewd.c (ESTALE) [!defined]: Define.
66048         Reported to be required on Interix by Martin Koeppe.
66049
66050 2007-09-17  Bruno Haible  <bruno@clisp.org>
66051
66052         * gnulib-tool (func_version): Use $version.
66053
66054 2007-09-16  Bruno Haible  <bruno@clisp.org>
66055
66056         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
66057         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
66058         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
66059         Reported by Greg Schafer <gschafer@zip.com.au>.
66060
66061 2007-09-15  Bruno Haible  <bruno@clisp.org>
66062
66063         * gnulib-tool (sed): Try a little harder to make bash understand the
66064         alias.
66065         Reported by Bruce Korb <bruce.korb@gmail.com>.
66066
66067 2007-09-13  Eric Blake  <ebb9@byu.net>
66068
66069         * ChangeLog: Remove conflict markers.
66070
66071 2007-09-13  Simon Josefsson  <simon@josefsson.org>
66072
66073         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
66074         Reported by Bruno Haible <bruno@clisp.org>.
66075
66076 2007-09-12  Bruno Haible  <bruno@clisp.org>
66077
66078         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
66079         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
66080         is not defined.
66081
66082 2007-09-12  Eric Blake  <ebb9@byu.net>
66083
66084         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
66085         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
66086         Autoconf definition.
66087         * modules/euidaccess (Depends-on): Add extensions, for
66088         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
66089         * modules/fnmatch (Depends-on): Likewise.
66090         * modules/getaddrinfo (Depends-on): Likewise.
66091         * modules/getdelim (Depends-on): Likewise.
66092         * modules/getline (Depends-on): Likewise.
66093         * modules/getsubopt (Depends-on): Likewise.
66094         * modules/gettext (Depends-on): Likewise.
66095         * modules/group-member (Depends-on): Likewise.
66096         * modules/mbchar (Depends-on): Likewise.
66097         * modules/memmem (Depends-on): Likewise.
66098         * modules/mempcpy (Depends-on): Likewise.
66099         * modules/memrchr (Depends-on): Likewise.
66100         * modules/pagealign_alloc (Depends-on): Likewise.
66101         * modules/readutmp (Depends-on): Likewise.
66102         * modules/stpcpy (Depends-on): Likewise.
66103         * modules/stpncpy (Depends-on): Likewise.
66104         * modules/strchrnul (Depends-on): Likewise.
66105         * modules/strndup (Depends-on): Likewise.
66106         * modules/strsep (Depends-on): Likewise.
66107         * modules/strverscmp (Depends-on): Likewise.
66108         * modules/vasprintf (Depends-on): Likewise.
66109         * modules/wcwidth (Depends-on): Likewise.
66110         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
66111         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
66112         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
66113         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
66114         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
66115         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66116         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
66117         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66118         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
66119         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
66120         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
66121         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66122         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66123         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
66124         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
66125         * m4/readutmp.m4 (gl_READUTMP): Likewise.
66126         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66127         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66128         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66129         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66130         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66131         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66132         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66133         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
66134         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
66135         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66136         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
66137         so that lock.m4 can be used in gettext without extensions module.
66138
66139 2007-09-11  Bruno Haible  <bruno@clisp.org>
66140
66141         * m4/isc-posix.m4: Remove file.
66142         Suggested by Eric Blake.
66143
66144 2007-09-11  Eric Blake  <ebb9@byu.net>
66145
66146         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
66147
66148 2007-09-10  Bruno Haible  <bruno@clisp.org>
66149
66150         * posix-modules: Fix typo in error message.
66151         Reported by Matt <mkraai@beckman.com>.
66152
66153 2007-09-09  Bruno Haible  <bruno@clisp.org>
66154
66155         * doc/functions/getdelim.texi: Update list of platforms lacking the
66156         function.
66157         * doc/functions/getline.texi: Likewise.
66158
66159 2007-09-09  Jim Meyering  <jim@meyering.net>
66160
66161         * lib/hash.c (hash_initialize): Detect calloc failure.
66162         Reported by Bruno Haible.
66163
66164 2007-09-09  Bruno Haible  <bruno@clisp.org>
66165
66166         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
66167         malloc or realloc fails.
66168
66169 2007-09-09  Bruno Haible  <bruno@clisp.org>
66170
66171         * modules/getcwd (Depends-on): Add malloc-posix.
66172         * modules/glob (Depends-on): Likewise.
66173         * modules/putenv (Depends-on): Likewise.
66174         * modules/strdup (Depends-on): Likewise.
66175         * modules/getdelim (Depends-on): Add realloc-posix.
66176         * modules/read-file (Depends-on): Likewise.
66177
66178 2007-09-09  Bruno Haible  <bruno@clisp.org>
66179
66180         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
66181         (gl_FUNC_MALLOC_POSIX): Require it.
66182         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
66183         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
66184         * modules/realloc (Files): Add m4/malloc.m4.
66185         * modules/calloc (Files): Likewise.
66186
66187 2007-09-09  Bruno Haible  <bruno@clisp.org>
66188
66189         * modules/malloc-posix: New file.
66190         * modules/malloc (Depends-on): Add malloc-posix.
66191         * lib/malloc.c: Include errno.h.
66192         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
66193         and a POSIX-compatible malloc into a single function. Set ENOMEM
66194         when returning NULL.
66195         * m4/malloc.m4: New file.
66196         * doc/functions/malloc.texi: Mention the malloc-posix module.
66197         * lib/stdlib_.h (malloc): New declaration.
66198         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66199         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
66200         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
66201         and HAVE_MALLOC_POSIX.
66202
66203 2007-09-09  Bruno Haible  <bruno@clisp.org>
66204
66205         * modules/realloc-posix: New file.
66206         * modules/realloc (Depends-on): Add realloc-posix.
66207         * lib/realloc.c: Include errno.h.
66208         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
66209         and a POSIX-compatible realloc into a single function. Set ENOMEM
66210         when returning NULL.
66211         * m4/realloc.m4: New file.
66212         * doc/functions/realloc.texi: Mention the realloc-posix module.
66213         * lib/stdlib_.h (realloc): New declaration.
66214         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66215         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
66216         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
66217         and HAVE_REALLOC_POSIX.
66218
66219 2007-09-09  Bruno Haible  <bruno@clisp.org>
66220
66221         * modules/calloc-posix: New file.
66222         * modules/calloc (Depends-on): Add calloc-posix.
66223         * lib/calloc.c: Include errno.h.
66224         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
66225         and a POSIX-compatible calloc into a single function. Set ENOMEM
66226         when returning NULL.
66227         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
66228         * doc/functions/calloc.texi: Mention the calloc-posix module.
66229         * lib/stdlib_.h (calloc): New declaration.
66230         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66231         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
66232         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
66233         and HAVE_CALLOC_POSIX.
66234
66235 2007-09-09  Bruno Haible  <bruno@clisp.org>
66236
66237         Allow for modules to show an arbitrary notice.
66238         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
66239         * gnulib-tool: New option --extract-notice.
66240         (func_usage): Document it.
66241         (sed_extract_prog): Update.
66242         (func_get_notice): New function.
66243         (func_modules_notice): New function.
66244         (func_import, func_create_testdir): Invoke it.
66245         Suggested by Jim Meyering.
66246
66247 2007-09-09  Bruno Haible  <bruno@clisp.org>
66248
66249         * gnulib-tool: New options --verbose, --quiet.
66250         (func_usage): Document them.
66251         (verbose): New variable.
66252         (func_execute_command): New function.
66253         (func_import): Don't show the module list and the file list if
66254         $verbose < 0.
66255         (func_create_testdir): Likewise. Use func_execute_command.
66256         (func_create_megatestdir): Use func_execute_command.
66257
66258 2007-09-08  Bruno Haible  <bruno@clisp.org>
66259
66260         * gnulib-tool (func_import): Prefer rsync over wget when available,
66261         for fetching the PO files.
66262
66263 2007-09-08  Bruno Haible  <bruno@clisp.org>
66264
66265         * posix-modules: New file. Portions copied from gnulib-tool.
66266         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
66267
66268 2007-09-08  Jim Meyering  <jim@meyering.net>
66269
66270         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
66271         * lib/fpending.h: Rename from __fpending.h.
66272         * lib/fpending.c: Rename from __fpending.c.
66273         Include "fpending.h", not "__fpending.h".
66274         * lib/__fpending.h, lib/__fpending.c: Remove files.
66275         * modules/fpending (Files): Reflect new file names.
66276         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
66277
66278 2007-09-08  Bruno Haible  <bruno@clisp.org>
66279
66280         * m4/inttypes-h.m4: Remove stub file.
66281
66282 2007-09-07  Simon Josefsson  <simon@josefsson.org>
66283
66284         * doc/headers/stdint.texi: Discuss #include_next issue.
66285
66286 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66287
66288         * build-aux/bootstrap: Remove obsolete comment about wget --help.
66289
66290 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66291
66292         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
66293         in variable name.
66294
66295 2007-09-03  Jim Meyering  <jim@meyering.net>
66296
66297         New module: git-version-gen.
66298         * modules/git-version-gen: New file.
66299
66300         Import changes from coreutils for bootstrap script.
66301
66302         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
66303
66304         bootstrap: uses rsync to download the .po files
66305         * build-aux/bootstrap (po_download_command_format): New global.
66306         (download_po_files): Use rsync.
66307         (update_po_files): Don't remove .po files after download,
66308         so future rsync runs can take advantage of the copies.
66309
66310         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
66311
66312         Solve the unnecessary-.po-file-regeneration problem once and for all.
66313         * build-aux/bootstrap (download_po_files): New function, renamed from
66314         get_translations.  Now, downloads, but doesn't update LINGUAS.
66315         (update_po_files): New function.
66316
66317         bootstrap: Ignore more.
66318         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
66319         uniwidth to e.g., lib/.gitignore.
66320         (slurp): Handle the sys_stat_.h -> sys mapping, too.
66321
66322         * build-aux/bootstrap: New setting: vc_ignore.
66323         (insert_sorted_if_absent): Create $file if absent.
66324         Adapt to new, possibly empty, list: $vc_ignore.
66325
66326         bootstrap: generate more ignorable names
66327         * build-aux/bootstrap (slurp): When generating ignorable names,
66328         also map .sin to .sed, .gperf to .c, and .y to .c.
66329
66330 2007-09-03  Jim Meyering  <jim@meyering.net>
66331
66332         * build-aux/git-version-gen: New file, from coreutils.  For details, see
66333         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
66334
66335 2007-09-02  Bruno Haible  <bruno@clisp.org>
66336
66337         Fix mis-recognition of 'mcs' on QNX 6.
66338         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
66339         output contains the string "Mono".
66340         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
66341         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
66342
66343 2007-09-01  Bruno Haible  <bruno@clisp.org>
66344
66345         Fix collision between uniwidth/* and linebreak modules.
66346         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
66347         u32_width): Remove declarations.
66348         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
66349         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
66350         streq3, streq2, streq1, streq0): Remove functions.
66351         (STREQ): Remove macro.
66352         (is_cjk_encoding): Remove function.
66353         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
66354         (uc_width, u8_width, u16_width, u32_width): Remove functions.
66355         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
66356         * NEWS: Document the change.
66357
66358 2007-09-01  Bruno Haible  <bruno@clisp.org>
66359
66360         * lib/streq.h: Add double-inclusion guard.
66361
66362 2007-09-01  Karl Berry  <karl@gnu.org>
66363
66364         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
66365
66366 2007-08-28  Jim Meyering  <jim@meyering.net>
66367
66368         Rename mreadlink_with_size to areadlink_with_size.
66369         * NEWS: Document the change.
66370         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
66371         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
66372         * lib/mreadlink.h: Rename this to...
66373         * lib/areadlink.h: ...this.
66374         * modules/mreadlink-with-size: Rename this to...
66375         * modules/areadlink-with-size: ...this.
66376         * lib/canonicalize.c: Reflect the renaming.
66377         * modules/canonicalize: Likewise.
66378
66379 2007-08-26  Bruno Haible  <bruno@clisp.org>
66380
66381         * gnulib-tool (func_import): When deciding which files to remove,
66382         consider also dangling symbolic links.
66383         Reported by Eric Blake.
66384
66385 2007-08-26  Bruno Haible  <bruno@clisp.org>
66386
66387         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
66388
66389 2007-08-23  Simon Josefsson  <simon@josefsson.org>
66390
66391         * lib/readline.c: Don't include getline.h, the prototype is now
66392         found in stdio.h.
66393
66394 2007-08-23  Jim Meyering  <jim@meyering.net>
66395
66396         Getdelim touchup.
66397         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
66398         around the funlockfile call, since funlockfile never sets errno.
66399         Don't set errno upon failed realloc.
66400
66401 2007-08-22  Eric Blake  <ebb9@byu.net>
66402
66403         Getline touchups.
66404         * lib/getdelim.c (getdelim): Revert regression that required *n to
66405         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
66406         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
66407         getdelim, rather than whether implementation is missing.
66408         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
66409         * lib/stdio_.h (getline): Also declare if replacement is
66410         required.
66411         * doc/functions/getdelim.texi: New file.
66412         * doc/functions/getline.texi: Likewise.
66413         * doc/gnulib.texi (Function Substitutes): Add new files.
66414         Reported by Bruno Haible.
66415
66416 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
66417
66418         * users.txt: Add Guile.
66419
66420 2007-08-22  Eric Blake  <ebb9@byu.net>
66421
66422         * tests/test-getdelim.c (main): Use remove, not unlink.
66423         * tests/test-getline.c (main): Likewise.
66424
66425         Move getline and getdelim into stdio.h, per POSIX 200x.
66426         * modules/getline (Files): Remove getline.h.
66427         (Depends-on): Add stdio.
66428         (configure.ac): Add module indicator.
66429         * modules/getdelim (Files): Remove getdelim.h.
66430         (Depends-on): Add stdio.
66431         (configure.ac): Add module indicator.
66432         * modules/stdio (Makefile.am): Work with new indicators.
66433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
66434         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
66435         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66436         * lib/getdelim.h: Delete.
66437         * lib/getline.h: Delete.
66438         * lib/stdio_.h (getdelim, getline): Declare.
66439         * modules/getdelim-tests: New module.
66440         * modules/getline-tests: Likewise.
66441         * tests/test-getdelim.c: New file.
66442         * tests/test-getline.c: Likewise.
66443         * NEWS: Document the change.
66444         * lib/getline.c: Update choice of header.
66445         * lib/csharpcomp.c: Likewise.
66446         * lib/getpass.c: Likewise.
66447         * lib/javacomp.c: Likewise.
66448         * lib/javaversion.c: Likewise.
66449         * lib/yesno.c: Likewise.
66450         * lib/getdelim.c: Likewise.
66451         (getdelim): Set errno on failure, and avoid memory leak.
66452
66453 2007-08-19  Bruno Haible  <bruno@clisp.org>
66454
66455         * modules/closein (Depends-on): Add freadahead.
66456         * lib/closein.c: Include freadahead.h.
66457         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
66458         is zero.
66459
66460 2007-08-19  Bruno Haible  <bruno@clisp.org>
66461
66462         * modules/freadahead-tests: New file.
66463         * tests/test-freadahead.sh: New file.
66464         * tests/test-freadahead.c: New file.
66465
66466         * modules/freadahead: New file.
66467         * lib/freadahead.h: New file.
66468         * lib/freadahead.c: New file.
66469         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
66470         fbufmode, fpurge, freadable, fwritable.
66471
66472 2007-08-19  Eric Blake  <ebb9@byu.net>
66473
66474         Test yesno in combination with closein.
66475         * lib/yesno.c (yesno): Document use of stdin.
66476         * modules/yesno-tests (Files): New module.
66477         * tests/test-yesno.c (main): New file.
66478         * tests/test-yesno.sh: Likewise.
66479
66480 2007-08-19  Bruno Haible  <bruno@clisp.org>
66481
66482         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
66483         * lib/fseeko.c (rpl_fseeko): Likewise.
66484         * lib/fseterr.c (fseterr): Likewise.
66485
66486 2007-08-19  Bruno Haible  <bruno@clisp.org>
66487
66488         * tests/test-lseek.c (main): Disable a test for BeOS.
66489         * doc/functions/lseek.texi: Document the BeOS bug.
66490
66491 2007-08-19  Bruno Haible  <bruno@clisp.org>
66492             Eric Blake  <ebb9@byu.net>
66493
66494         * lib/lseek.c: Include <sys/stat.h>.
66495         (rpl_lseek): Add workaround code also for Unix platforms.
66496         Needed for BeOS.
66497         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
66498         * doc/functions/lseek.texi: Document BeOS definiency.
66499
66500 2007-08-18  Bruno Haible  <bruno@clisp.org>
66501
66502         * modules/fstrcmp-tests: New file.
66503         * tests/test-fstrcmp.c: New file.
66504
66505 2007-08-18  Bruno Haible  <bruno@clisp.org>
66506
66507         * modules/fstrcmp: New file, from GNU gettext with modifications.
66508         * lib/fstrcmp.h: New file, from GNU gettext.
66509         * lib/fstrcmp.c: New file, from GNU gettext.
66510         * MODULES.html.sh (String handling): Add fstrcmp.
66511
66512 2007-08-18  Bruno Haible  <bruno@clisp.org>
66513
66514         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
66515         'bool'.
66516         (diag, compareseq): Remove const from the ctxt argument.
66517         (USE_HEURISTIC): Undefine at the end.
66518
66519 2007-08-18  Jim Meyering  <jim@meyering.net>
66520
66521         New file: lib/idcache.h
66522         * NEWS: Mention the addition.
66523         * modules/idcache (Files): Add lib/idcache.h
66524         * lib/idcache.c: Include "idcache.h".
66525         Don't include <sys/types.h>.
66526         Add a FIXME comment.
66527         Move file-scoped "static" declarations to the top.
66528         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
66529
66530 2007-08-17  Bruno Haible  <bruno@clisp.org>
66531         and Paul Eggert  <eggert@cs.ucla.edu>
66532
66533         * MODULES.html.sh: Add diffseq.
66534         * modules/diffseq: New file.
66535         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
66536         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
66537
66538 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66539
66540         Import changes from coreutils for bootstrap script.
66541
66542         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
66543
66544         * build-aux/bootstrap (slurp): Work even in environments where
66545         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
66546         current code does not slurp files whose names start with ".", and
66547         this looks like it might be a troublesome area.
66548
66549         2007-07-11  Jim Meyering  <jim@meyering.net>
66550
66551         If there's a GPL vN copyright comment, require that N == 3.
66552
66553         2007-07-08  Jim Meyering  <jim@meyering.net>
66554
66555         Run the coreutils-specific code only if tests/Makefile.am.in exists.
66556         * build-aux/bootstrap (mam_template): Move definition out of loop.
66557
66558         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
66559
66560         * build-aux/bootstrap (symlink_to_dir): Rename function from
66561         symlink_to_gnulib.  Add a directory parameter.  Update all
66562         callers.
66563         (cp_mark_as_generated): Also check for -- and link to -- files in
66564         gl/.
66565
66566         2007-07-08  Jim Meyering  <jim@meyering.net>
66567
66568         Adapt to deeper hierarchy in gnulib.
66569         * build-aux/bootstrap (symlink_to_dir): If the destination
66570         directory doesn't exist, create it. This is required at least for
66571         "lib/uniwidth/cjk.h".
66572
66573         2007-05-15  Jim Meyering  <jim@meyering.net>
66574
66575         * build-aux/bootstrap: Now that generated Makefile.am files
66576         are no longer under version control, they must be created at
66577         bootstrap time.
66578
66579 2007-08-14  Ben Pfaff  <blp@gnu.org>
66580
66581         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
66582
66583 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66584
66585         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
66586         given the changes below.
66587         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
66588         even on hosts that have padding bits beyond the supported 64.
66589
66590 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66591
66592         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
66593         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
66594         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
66595         depends on it.
66596         (xstrtol_error): Remove.
66597         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
66598         but with a different signature.
66599         (ATTRIBUTE_NORETURN, __attribute__): New macros.
66600         * lib/xstrtol-error.c: Include exitfail.h.
66601         (xstrtol_fatal): New function, with a different signature from the
66602         old xstrtol_error, so that the caller need not worry about passing
66603         in an exit status, or about storage management of the option argument.
66604         (xstrtol_error): Now a static function.  Redo signature to
66605         implement xstrtol_fatal.  Output the correct number of hyphens in
66606         front of the option so that the caller need not worry about
66607         storage management.
66608         (N_): New macro.
66609         (_): Remove; not used now.
66610         * modules/xstrtol: Depend on getopt.
66611         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
66612         of old STRTOL_FATAL_ERROR macro.
66613         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
66614         of test program.
66615         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
66616         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
66617
66618 2007-08-08  Eric Blake  <ebb9@byu.net>
66619
66620         * lib/xstrtol-error.c: Add missing include.
66621
66622         Move xstrtol messages into gnulib domain, when --pobase is used.
66623         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
66624         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
66625         * modules/xstrtol (Files): Distribute new file.
66626         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
66627         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
66628         * tests/test-xstrtol.c: ...into new file.
66629         * tests/test-xstrtoul.c: Also test xstrtoul.
66630         * tests/test-xstrtoimax.c: Also test xstrtoimax.
66631         * tests/test-xstrtoumax.c: Also test xstrtoumax.
66632         * tests/test-xstrtol.sh: Drive the tests.
66633         * tests/test-xstrtoimax.sh: Likewise.
66634         * tests/test-xstrtoumax.sh: Likewise.
66635         * modules/xstrtol-tests: New module.
66636         * modules/xstrtoimax-tests: Likewise.
66637         * modules/xstrtoumax-tests: Likewise.
66638
66639 2007-08-08  Jim Meyering  <jim@meyering.net>
66640
66641         New function: mfile_name_concat.
66642         * lib/filenamecat.c (mfile_name_concat): New function, just like
66643         file_name_concat, but return NULL upon failure rather than exiting
66644         with a diagnostic.
66645         * lib/filenamecat.h: Declare it.
66646
66647 2007-08-07  Bruno Haible  <bruno@clisp.org>
66648
66649         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
66650         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
66651         warning from gcc.
66652         Reported by Eric Blake.
66653
66654 2007-08-07  Simon Josefsson  <simon@josefsson.org>
66655
66656         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
66657         * modules/crypto/arcfour (License): Likewise.
66658         * modules/crypto/des-tests (License): Likewise.
66659         * modules/crypto/gc-arctwo-tests (License): Likewise.
66660         * modules/crypto/gc-des-tests (License): Likewise.
66661         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
66662         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
66663         * modules/crypto/gc-md2-tests (License): Likewise.
66664         * modules/crypto/gc-md4-tests (License): Likewise.
66665         * modules/crypto/gc-md5-tests (License): Likewise.
66666         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
66667         * modules/crypto/gc-rijndael-tests (License): Likewise.
66668         * modules/crypto/gc-sha1-tests (License): Likewise.
66669         * modules/crypto/gc-tests (License): Likewise.
66670         * modules/crypto/hmac-md5 (License): Likewise.
66671         * modules/crypto/hmac-sha1 (License): Likewise.
66672         * modules/crypto/md2-tests (License): Likewise.
66673         * modules/crypto/md4-tests (License): Likewise.
66674         * modules/crypto/md5 (License): Likewise.
66675         * modules/crypto/rijndael (License): Likewise.
66676         * modules/crypto/sha1 (License): Likewise.
66677         * modules/memxor (License): Likewise.
66678
66679 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66680         and Bruno Haible  <bruno@clisp.org>
66681
66682         * NEWS: Describe interface changes to human, xstrtol.
66683         * lib/human.h: Include <xstrtol.h>.
66684         (human_options): Return enum strtol_error, not int.  Remove
66685         bool arg; take int * instead.
66686         * lib/human.c: Don't include "gettext.h".
66687         (_): Remove; no longer used.
66688         Don't include <xstrtol.h>, since human.h does it.
66689         (human_options): Adjust to abovementioned interface changes.
66690         Do not report error to stderr; that's now the caller's
66691         responsibility.
66692         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
66693         interface change.
66694         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
66695         Str, Argument_type_string.  All uses changed.  Put " argument"
66696         in diagnostics to make them clearer.  Change wording of suffix
66697         message for clarity.
66698         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
66699         Argument_type_string.
66700         (STRTOL_FATAL_WARN): Remove; no longer used.
66701         * modules/human (Depends-on): Remove gettext-h.
66702
66703 2007-08-06  Simon Josefsson  <simon@josefsson.org>
66704
66705         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
66706
66707 2007-07-31  Bruno Haible  <bruno@clisp.org>
66708
66709         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
66710         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
66711         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
66712
66713 2007-07-31  Bruno Haible  <bruno@clisp.org>
66714
66715         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
66716         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
66717
66718 2007-07-30  Bruno Haible  <bruno@clisp.org>
66719
66720         * modules/base64 (License): Use the synonymous term "LGPLv2+".
66721         * modules/c-ctype (License): Likewise.
66722         * modules/c-strcase (License): Likewise.
66723         * modules/check-version (License): Likewise.
66724         * modules/iconv (License): Likewise.
66725         * modules/iconv_open (License): Likewise.
66726         * modules/read-file (License): Likewise.
66727         * modules/striconv (License): Likewise.
66728         * modules/strverscmp (License): Likewise.
66729         * modules/vasprintf (License): Likewise.
66730         * modules/crypto/des (License): Likewise.
66731         * modules/crypto/gc (License): Likewise.
66732         * modules/crypto/gc-arcfour (License): Likewise.
66733         * modules/crypto/gc-arctwo (License): Likewise.
66734         * modules/crypto/gc-des (License): Likewise.
66735         * modules/crypto/gc-hmac-md5 (License): Likewise.
66736         * modules/crypto/gc-hmac-sha1 (License): Likewise.
66737         * modules/crypto/gc-md2 (License): Likewise.
66738         * modules/crypto/gc-md4 (License): Likewise.
66739         * modules/crypto/gc-md5 (License): Likewise.
66740         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
66741         * modules/crypto/gc-random (License): Likewise.
66742         * modules/crypto/gc-rijndael (License): Likewise.
66743         * modules/crypto/gc-sha1 (License): Likewise.
66744         * modules/crypto/md2 (License): Likewise.
66745         * modules/crypto/md4 (License): Likewise.
66746
66747 2007-07-30  Jim Meyering  <jim@meyering.net>
66748
66749         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
66750         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
66751         it has valid stat data.  This bug would cause du not to count the
66752         sizes of inaccessible directories.
66753         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
66754         in <http://bugzilla.redhat.com/250077>.
66755
66756 2007-07-25  Peter O'Gorman  <peter@pogma.com>
66757             Bruno Haible  <bruno@clisp.org>
66758
66759         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
66760         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
66761         #include_next, gives a diagnostic about it, but reports no error in
66762         the exit code.
66763         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
66764
66765 2007-07-24  Ben Pfaff  <blp@gnu.org>
66766
66767         Improve name: "count-one-bits" is better than "popcount".
66768         * MODULES.html.sh: Update name.
66769         * lib/popcount.h: Renamed lib/count-one-bits.h.
66770         (popcount): Renamed count_one_bits.
66771         (popcountl): Renamed count_one_bits_l.
66772         (popcountll): Renamed count_one_bits_ll.
66773         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
66774         * modules/popcount: Renamed module/count-one-bits.
66775         * modules/popcount-tests: Renamed module/count-one-bits-tests.
66776         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
66777
66778 2007-07-23  Ben Pfaff  <blp@gnu.org>
66779
66780         * lib/popcount.h (popcount32): Reduce size of constants, to allow
66781         better code generation, and add U to large constants to avoid
66782         warnings, in non-GCC case.
66783         Suggested by Bruno Haible.
66784
66785 2007-07-23  Ben Pfaff  <blp@gnu.org>
66786
66787         * lib/popcount.h: Use verify_true instead of if...abort.
66788         * modules/popcount: Depend on verify module.
66789         Suggested by Jim Meyering.
66790
66791 2007-07-23  Bruno Haible  <bruno@clisp.org>
66792
66793         * gnulib-tool (func_import): Create a .cvsignore file also when the
66794         directory is not yet in CVS but the toplevel directory is. When
66795         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
66796         Reported by Karl Berry.
66797
66798 2007-07-22  Ben Pfaff  <blp@gnu.org>
66799
66800         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
66801         case.
66802         Suggested by Eric Blake.
66803
66804 2007-07-22  Ben Pfaff  <blp@gnu.org>
66805
66806         New module: popcount.
66807         * MODULES.html.sh: Add popcount.
66808         * modules/popcount: New file.
66809         * modules/popcount-tests: New file.
66810         * tests/test-popcount.c: New file.
66811         * lib/popcount.h: New file.
66812         * m4/popcount.m4: New file.
66813
66814 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66815
66816         * build-aux/announce-gen: Update to GPLv3.
66817
66818         * build-aux/config.guess: Update from config.
66819
66820 2007-07-21  Bruno Haible  <bruno@clisp.org>
66821
66822         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
66823         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
66824
66825 2007-07-20  Jim Meyering  <jim@meyering.net>
66826
66827         * check-module: Diagnose a self-dependency.
66828
66829 2007-07-19  Bruno Haible  <bruno@clisp.org>
66830
66831         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
66832         empty.
66833         Reported by Eric Blake.
66834
66835 2007-07-18  Bruno Haible  <bruno@clisp.org>
66836
66837         * gnulib-tool: New options --po-base, --po-domain.
66838         (func_usage): Document them.
66839         (pobase, po_domain): New variables.
66840         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
66841         DEFAULT_TEXT_DOMAIN.
66842         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
66843         (func_import): Consider pobase and po_domain. Create a po/ directory.
66844         (func_create_testdir): Set pobase and po_domain to empty.
66845         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
66846         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
66847
66848 2007-07-18  Bruno Haible  <bruno@clisp.org>
66849
66850         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66851         EXTRA_DIST augmentation for files in build-aux/.
66852
66853 2007-07-16  Bruno Haible  <bruno@clisp.org>
66854
66855         * modules/lseek (License): Use the synonymous term "LGPLv2+".
66856         * modules/getdelim (License): Likewise.
66857
66858 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66859
66860         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
66861         * modules/d-type (License): Likewise.
66862         * modules/extensions (License): Likewise.
66863         * modules/fnmatch (License): Likewise.
66864         * modules/fseeko (License): Likewise.
66865         * modules/getaddrinfo (License): Likewise.
66866         * modules/getline (License): Likewise.
66867         * modules/getlogin_r (License): Likewise.
66868         * modules/getpass (License): Likewise.
66869         * modules/gettimeofday (License): Likewise.
66870         * modules/glob (License): Likewise.
66871         * modules/inet_ntop (License): Likewise.
66872         * modules/malloc (License): Likewise.
66873         * modules/malloca (License): Likewise.
66874         * modules/memmem (License): Likewise.
66875         * modules/mempcpy (License): Likewise.
66876         * modules/memset (License): Likewise.
66877         * modules/minmax (License): Likewise.
66878         * modules/mktime (License): Likewise.
66879         * modules/netinet_in (License): Likewise.
66880         * modules/pathmax (License): Likewise.
66881         * modules/poll (License): Likewise.
66882         * modules/regex (License): Likewise.
66883         * modules/snprintf (License): Likewise.
66884         * modules/stdbool (License): Likewise.
66885         * modules/stdint (License): Likewise.
66886         * modules/stdio (License): Likewise.
66887         * modules/strcase (License): Likewise.
66888         * modules/strcasestr (License): Likewise.
66889         * modules/strdup (License): Likewise.
66890         * modules/string (License): Likewise.
66891         * modules/strndup (License): Likewise.
66892         * modules/strnlen (License): Likewise.
66893         * modules/strpbrk (License): Likewise.
66894         * modules/strptime (License): Likewise.
66895         * modules/strsep (License): Likewise.
66896         * modules/sys_select (License): Likewise.
66897         * modules/sys_socket (License): Likewise.
66898         * modules/sys_stat (License): Likewise.
66899         * modules/sys_time (License): Likewise.
66900         * modules/time (License): Likewise.
66901         * modules/time_r (License): Likewise.
66902         * modules/timegm (License): Likewise.
66903         * modules/unistd (License): Likewise.
66904         * modules/vsnprintf (License): Likewise.
66905         * modules/wctype (License): Likewise.
66906
66907 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66908
66909         * modules/argz (License): LGPLv2+.
66910
66911 2007-07-15  Karl Berry  <karl@gnu.org>
66912
66913         * doc/gnulib.texi: revise node structure per new fdl.texi.
66914
66915 2007-07-14  Bruno Haible  <bruno@clisp.org>
66916
66917         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
66918         the output file.
66919         * lib/uniname/uninames.h: Regenerated.
66920
66921 2007-07-14  Karl Berry  <karl@gnu.org>
66922
66923         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
66924         omitting sectioning and index commands.
66925
66926 2007-07-13  Bruno Haible  <bruno@clisp.org>
66927
66928         New gnulib-tool option --more-symlinks.
66929         * gnulib-tool (func_usage): Document --more-symlinks.
66930         (do_copyrights): New variable.
66931         Recognize option --more-symlinks.
66932         (func_import): Don't add a copyright notice transform to
66933         sed_transform_lib_file if do_copyrights is empty.
66934
66935 2007-07-13  Bruno Haible  <bruno@clisp.org>
66936
66937         * lib/vasnprintf.c (decimal_point_char): Define also if
66938         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
66939         && !NEED_PRINTF_DIRECTIVE_A.
66940         Reported by Clemens Koller <clemens.koller@anagramm.de> via
66941         Gary V. Vaughan <gary@gnu.org>.
66942
66943 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
66944
66945         * lib/inttypes_.h: Undo previous change, since it was fixed
66946         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
66947
66948 2007-07-13  Bruno Haible  <bruno@clisp.org>
66949
66950         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
66951         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
66952
66953 2007-07-13  Jim Meyering  <jim@meyering.net>
66954
66955         df: Don't fail for Tru64's "file-on-file mount".
66956         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
66957         so we fall through and use statfs instead.  Details here:
66958         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
66959         Reported by Albert Chin.
66960
66961 2007-07-13  Bruno Haible  <bruno@clisp.org>
66962
66963         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
66964         * modules/configmake (License): Likewise.
66965         * modules/gettext (License): Likewise.
66966         * modules/gettext-h (License): Likewise.
66967         * modules/include_next (License): Likewise.
66968         * modules/link-warning (License): Likewise.
66969         * modules/localcharset (License): Likewise.
66970         * modules/localename (License): Likewise.
66971         * modules/lock (License): Likewise.
66972         * modules/relocatable-lib-lgpl (License): Likewise.
66973         * modules/size_max (License): Likewise.
66974         * modules/vasnprintf (License): Likewise.
66975         * modules/wchar (License): Likewise.
66976         * modules/xsize (License): Likewise.
66977
66978 2007-07-13  Bruno Haible  <bruno@clisp.org>
66979
66980         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
66981         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
66982
66983 2007-07-12  Bruno Haible  <bruno@clisp.org>
66984
66985         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
66986         in the modules files.
66987
66988 2007-07-11  Karl Berry  <karl@gnu.org>
66989
66990         * MODULES.html.sh (func_module): use
66991          sed -e '\|^'"${includefile}"'$|d'
66992          instead of /.../d, to avoid errors on $includefile's containing /.
66993
66994 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66995
66996         * gnulib-tool (func_import): Avoid duplication of --avoid
66997         statements
66998         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
66999         names to `_' in variable names.
67000
67001 2007-07-10  Eric Blake  <ebb9@byu.net>
67002
67003         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
67004         * NEWS: Document this change.
67005
67006 2007-07-08  Bruno Haible  <bruno@clisp.org>
67007
67008         Update to Unicode 5.0.
67009         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
67010         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
67011         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
67012         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
67013         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
67014         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
67015         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
67016         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
67017         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
67018         U+10A3F, U+1D242..U+1D244.
67019         (nonspacing_table_ind): Update.
67020         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
67021         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
67022
67023 2007-07-08  Bruno Haible  <bruno@clisp.org>
67024
67025         Update to Unicode 5.0.
67026         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
67027         code transform. Extend the name index field of unicode_name_to_code and
67028         unicode_code_to_name from 16 to 24 bits.
67029         * lib/uniname/uniname.c (unicode_character_name,
67030         unicode_name_character): Add the range 0x12xxx to the code transform.
67031         * lib/uniname/uninames.h: Regenerated.
67032         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
67033
67034 2007-07-07  Bruno Haible  <bruno@clisp.org>
67035
67036         * modules/wcwidth-tests: New file.
67037         * tests/test-wcwidth.c: New file.
67038
67039         Work around MacOS X wcwidth() bug.
67040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
67041         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
67042         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
67043         original wcwidth in non-UTF-8 locales.
67044         * modules/wcwidth (Depends-on): Add localcharset, streq,
67045         uniwidth/width.
67046         * doc/functions/wcwidth.texi: Update.
67047
67048 2007-07-07  Bruno Haible  <bruno@clisp.org>
67049
67050         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
67051         (wcwidth): New declaration.
67052         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
67053         macros.
67054         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
67055         here. Prepare for creating <wchar.h> unconditionally.
67056         * modules/wchar (Depends-on): Add link-warning.
67057         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
67058         REPLACE_WCWIDTH, and GL_LINK_WARNING.
67059         * lib/wcwidth.h: Remove file.
67060         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
67061         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
67062         * modules/wcwidth (Files): Remove lib/wcwidth.h.
67063         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
67064         (Include): Replace wcwidth.h with <wchar.h>.
67065         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
67066         * lib/mbchar.h: Don't include wcwidth.h.
67067         * lib/mbswidth.c: Likewise.
67068         * NEWS: Mention the change.
67069
67070 2007-07-07  Bruno Haible  <bruno@clisp.org>
67071
67072         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
67073         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
67074         definition with an external declaration.
67075         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
67076         defined as a function. Remove AC_C_INLINE requirement.
67077         * modules/wcwidth (Files): Add lib/wcwidth.c.
67078         (Makefile.am): Remove redundant statement.
67079
67080 2007-07-07  Bruno Haible  <bruno@clisp.org>
67081
67082         * MODULES.html.sh (Unicode string functions): Add the new modules.
67083
67084         * tests/uniwidth/test-u32-strwidth.c: New file.
67085         * modules/uniwidth/u32-strwidth-tests: New file.
67086
67087         * lib/uniwidth/u32-strwidth.c: New file.
67088         * modules/uniwidth/u32-strwidth: New file.
67089
67090         * tests/uniwidth/test-u16-strwidth.c: New file.
67091         * modules/uniwidth/u16-strwidth-tests: New file.
67092
67093         * lib/uniwidth/u16-strwidth.c: New file.
67094         * modules/uniwidth/u16-strwidth: New file.
67095
67096         * tests/uniwidth/test-u8-strwidth.c: New file.
67097         * modules/uniwidth/u8-strwidth-tests: New file.
67098
67099         * lib/uniwidth/u8-strwidth.c: New file.
67100         * modules/uniwidth/u8-strwidth: New file.
67101
67102         * tests/uniwidth/test-u32-width.c: New file.
67103         * modules/uniwidth/u32-width-tests: New file.
67104
67105         * lib/uniwidth/u32-width.c: New file.
67106         * modules/uniwidth/u32-width: New file.
67107
67108         * tests/uniwidth/test-u16-width.c: New file.
67109         * modules/uniwidth/u16-width-tests: New file.
67110
67111         * lib/uniwidth/u16-width.c: New file.
67112         * modules/uniwidth/u16-width: New file.
67113
67114         * tests/uniwidth/test-u8-width.c: New file.
67115         * modules/uniwidth/u8-width-tests: New file.
67116
67117         * lib/uniwidth/u8-width.c: New file.
67118         * modules/uniwidth/u8-width: New file.
67119
67120         * tests/uniwidth/test-uc_width.c: New file.
67121         * modules/uniwidth/width-tests: New file.
67122
67123         * lib/uniwidth/width.c: New file, from GNU libiconv.
67124         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
67125         * modules/uniwidth/width: New file.
67126
67127         * lib/uniwidth.h: New file, from GNU libiconv.
67128         * modules/uniwidth/base: New file.
67129
67130 2007-07-07  Bruno Haible  <bruno@clisp.org>
67131
67132         * lib/uniname.h: New file, from GNU gettext.
67133         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
67134         * lib/uniname/uninames.h: New file, from GNU gettext.
67135         * lib/uniname/uniname.c: New file, from GNU gettext.
67136         * tests/uniname/test-uninames.sh: New file.
67137         * tests/uniname/test-uninames.c: New file, from GNU gettext.
67138         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
67139         * modules/uniname/base: New file.
67140         * modules/uniname/uniname: New file.
67141         * modules/uniname/uniname-tests: New file.
67142         * MODULES.html.sh (Unicode string functions): Add the new modules.
67143
67144 2007-07-06  Bruno Haible  <bruno@clisp.org>
67145
67146         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
67147
67148 2007-07-06  Bruno Haible  <bruno@clisp.org>
67149
67150         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
67151         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
67152         includes <cygwin/sys_time.h> which includes <sys/select.h> which
67153         include <sys/time.h>.
67154         Reported by Eric Blake.
67155
67156 2007-07-06  Eric Blake  <ebb9@byu.net>
67157
67158         Fix testing canonicalize on cygwin.
67159         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67160         Revert patch from 2007-06-19.
67161         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
67162         canonicalize module is also in use.
67163         * tests/test-canonicalize.c: New file.
67164         * tests/test-canonicalize.sh: Likewise.
67165         * modules/canonicalize-tests: Likewise.
67166
67167 2007-07-06  Jim Meyering  <jim@meyering.net>
67168
67169         * lib/getugroups.c (getugroups): Detect getgrent failure.
67170         Adjust comment to reflect reality: this function may return -1.
67171
67172 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
67173
67174         * build-aux/bootstrap (TP_URL,get_translations): Update to use
67175         the new TP address.
67176         (usage): Fix typo
67177         (gnulib_mk): New variable.
67178
67179 2007-07-05  Jim Meyering  <jim@meyering.net>
67180
67181         Don't let endgrent clobber errno, no matter how improbable.
67182         * lib/getugroups.c (getugroups): Save and restore errno around
67183         endgrent call.
67184
67185         Close the group DB even when failing with 2^31 or more members.
67186         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
67187
67188 2007-07-04  Jim Meyering  <jim@meyering.net>
67189
67190         * lib/getugroups.h: New file.
67191         * lib/getugroups.c: Include "getugroups.h".
67192         Remove uses of "register" keyword.
67193         Move local variable, "cp", down into scope where used.
67194         Give "username" parameter the "const" attribute.
67195         * modules/getugroups (Files): Add lib/getugroups.h
67196
67197 2007-07-04  Karl Berry  <karl@gnu.org>
67198
67199         * MODULES.html.sh (func_all_modules): Complete rename of
67200         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
67201
67202 2007-07-02  Bruno Haible  <bruno@clisp.org>
67203
67204         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
67205         mode, when inttypes.h comes from gnulib.
67206         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67207
67208 2007-07-02  Simon Josefsson  <simon@josefsson.org>
67209
67210         * NEWS: Mention lgpl module name change.
67211
67212         * modules/lgpl-2.1: Renamed from lgpl.
67213
67214         * NEWS: Mention gpl module name change.
67215
67216         * modules/gpl-3.0: New file, based on gpl-2.0.
67217
67218         * modules/gpl-2.0: Renamed from gpl.
67219
67220         * modules/gpl: Fix filename, doc/gpl.texi is now found at
67221         doc/gpl-2.0.texi.
67222
67223 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67224
67225         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
67226         #define __STDC_LIMIT_MACROS temporarily while including
67227         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
67228         Problem reported by Joel E. Denny in
67229         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
67230
67231 2007-07-01  Bruno Haible  <bruno@clisp.org>
67232
67233         * lib/unistdio.h: New file.
67234         * lib/unistdio/u-asnprintf.h: New file.
67235         * lib/unistdio/u-asprintf.h: New file.
67236         * lib/unistdio/u-printf-args.c: New file.
67237         * lib/unistdio/u-printf-args.h: New file.
67238         * lib/unistdio/u-printf-parse.h: New file.
67239         * lib/unistdio/u-snprintf.h: New file.
67240         * lib/unistdio/u-sprintf.h: New file.
67241         * lib/unistdio/u-vasprintf.h: New file.
67242         * lib/unistdio/u-vsnprintf.h: New file.
67243         * lib/unistdio/u-vsprintf.h: New file.
67244         * lib/unistdio/ulc-asnprintf.c: New file.
67245         * lib/unistdio/ulc-asprintf.c: New file.
67246         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
67247         * lib/unistdio/ulc-printf-parse.c: New file.
67248         * lib/unistdio/ulc-snprintf.c: New file.
67249         * lib/unistdio/ulc-sprintf.c: New file.
67250         * lib/unistdio/ulc-vasnprintf.c: New file.
67251         * lib/unistdio/ulc-vasprintf.c: New file.
67252         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
67253         * lib/unistdio/ulc-vsnprintf.c: New file.
67254         * lib/unistdio/ulc-vsprintf.c: New file.
67255         * lib/unistdio/u8-asnprintf.c: New file.
67256         * lib/unistdio/u8-asprintf.c: New file.
67257         * lib/unistdio/u8-printf-parse.c: New file.
67258         * lib/unistdio/u8-snprintf.c: New file.
67259         * lib/unistdio/u8-sprintf.c: New file.
67260         * lib/unistdio/u8-vasnprintf.c: New file.
67261         * lib/unistdio/u8-vasprintf.c: New file.
67262         * lib/unistdio/u8-vsnprintf.c: New file.
67263         * lib/unistdio/u8-vsprintf.c: New file.
67264         * lib/unistdio/u8-u8-asnprintf.c: New file.
67265         * lib/unistdio/u8-u8-asprintf.c: New file.
67266         * lib/unistdio/u8-u8-snprintf.c: New file.
67267         * lib/unistdio/u8-u8-sprintf.c: New file.
67268         * lib/unistdio/u8-u8-vasnprintf.c: New file.
67269         * lib/unistdio/u8-u8-vasprintf.c: New file.
67270         * lib/unistdio/u8-u8-vsnprintf.c: New file.
67271         * lib/unistdio/u8-u8-vsprintf.c: New file.
67272         * lib/unistdio/u16-asnprintf.c: New file.
67273         * lib/unistdio/u16-asprintf.c: New file.
67274         * lib/unistdio/u16-printf-parse.c: New file.
67275         * lib/unistdio/u16-snprintf.c: New file.
67276         * lib/unistdio/u16-sprintf.c: New file.
67277         * lib/unistdio/u16-vasnprintf.c: New file.
67278         * lib/unistdio/u16-vasprintf.c: New file.
67279         * lib/unistdio/u16-vsnprintf.c: New file.
67280         * lib/unistdio/u16-vsprintf.c: New file.
67281         * lib/unistdio/u16-u16-asnprintf.c: New file.
67282         * lib/unistdio/u16-u16-asprintf.c: New file.
67283         * lib/unistdio/u16-u16-snprintf.c: New file.
67284         * lib/unistdio/u16-u16-sprintf.c: New file.
67285         * lib/unistdio/u16-u16-vasnprintf.c: New file.
67286         * lib/unistdio/u16-u16-vasprintf.c: New file.
67287         * lib/unistdio/u16-u16-vsnprintf.c: New file.
67288         * lib/unistdio/u16-u16-vsprintf.c: New file.
67289         * lib/unistdio/u32-asnprintf.c: New file.
67290         * lib/unistdio/u32-asprintf.c: New file.
67291         * lib/unistdio/u32-printf-parse.c: New file.
67292         * lib/unistdio/u32-snprintf.c: New file.
67293         * lib/unistdio/u32-sprintf.c: New file.
67294         * lib/unistdio/u32-vasnprintf.c: New file.
67295         * lib/unistdio/u32-vasprintf.c: New file.
67296         * lib/unistdio/u32-vsnprintf.c: New file.
67297         * lib/unistdio/u32-vsprintf.c: New file.
67298         * lib/unistdio/u32-u32-asnprintf.c: New file.
67299         * lib/unistdio/u32-u32-asprintf.c: New file.
67300         * lib/unistdio/u32-u32-snprintf.c: New file.
67301         * lib/unistdio/u32-u32-sprintf.c: New file.
67302         * lib/unistdio/u32-u32-vasnprintf.c: New file.
67303         * lib/unistdio/u32-u32-vasprintf.c: New file.
67304         * lib/unistdio/u32-u32-vsnprintf.c: New file.
67305         * lib/unistdio/u32-u32-vsprintf.c: New file.
67306         * tests/unistdio/test-ulc-asnprintf1.c: New file.
67307         * tests/unistdio/test-ulc-asnprintf1.h: New file.
67308         * tests/unistdio/test-ulc-printf1.h: New file.
67309         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
67310         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
67311         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
67312         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
67313         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
67314         * tests/unistdio/test-ulc-vasprintf1.c: New file.
67315         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
67316         * tests/unistdio/test-ulc-vsprintf1.c: New file.
67317         * tests/unistdio/test-u8-asnprintf1.c: New file.
67318         * tests/unistdio/test-u8-asnprintf1.h: New file.
67319         * tests/unistdio/test-u8-printf1.h: New file.
67320         * tests/unistdio/test-u8-vasnprintf1.c: New file.
67321         * tests/unistdio/test-u8-vasnprintf2.c: New file.
67322         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
67323         * tests/unistdio/test-u8-vasnprintf3.c: New file.
67324         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
67325         * tests/unistdio/test-u8-vasprintf1.c: New file.
67326         * tests/unistdio/test-u8-vsnprintf1.c: New file.
67327         * tests/unistdio/test-u8-vsprintf1.c: New file.
67328         * tests/unistdio/test-u16-asnprintf1.c: New file.
67329         * tests/unistdio/test-u16-asnprintf1.h: New file.
67330         * tests/unistdio/test-u16-printf1.h: New file.
67331         * tests/unistdio/test-u16-vasnprintf1.c: New file.
67332         * tests/unistdio/test-u16-vasnprintf2.c: New file.
67333         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
67334         * tests/unistdio/test-u16-vasnprintf3.c: New file.
67335         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
67336         * tests/unistdio/test-u16-vasprintf1.c: New file.
67337         * tests/unistdio/test-u16-vsnprintf1.c: New file.
67338         * tests/unistdio/test-u16-vsprintf1.c: New file.
67339         * tests/unistdio/test-u32-asnprintf1.c: New file.
67340         * tests/unistdio/test-u32-asnprintf1.h: New file.
67341         * tests/unistdio/test-u32-printf1.h: New file.
67342         * tests/unistdio/test-u32-vasnprintf1.c: New file.
67343         * tests/unistdio/test-u32-vasnprintf2.c: New file.
67344         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
67345         * tests/unistdio/test-u32-vasnprintf3.c: New file.
67346         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
67347         * tests/unistdio/test-u32-vasprintf1.c: New file.
67348         * tests/unistdio/test-u32-vsnprintf1.c: New file.
67349         * tests/unistdio/test-u32-vsprintf1.c: New file.
67350         * modules/unistdio/base: New file.
67351         * modules/unistdio/u-printf-args: New file.
67352         * modules/unistdio/ulc-asnprintf: New file.
67353         * modules/unistdio/ulc-asprintf: New file.
67354         * modules/unistdio/ulc-fprintf: New file.
67355         * modules/unistdio/ulc-printf-parse: New file.
67356         * modules/unistdio/ulc-snprintf: New file.
67357         * modules/unistdio/ulc-sprintf: New file.
67358         * modules/unistdio/ulc-vasnprintf: New file.
67359         * modules/unistdio/ulc-vasprintf: New file.
67360         * modules/unistdio/ulc-vfprintf: New file.
67361         * modules/unistdio/ulc-vsnprintf: New file.
67362         * modules/unistdio/ulc-vsprintf: New file.
67363         * modules/unistdio/u8-asnprintf: New file.
67364         * modules/unistdio/u8-asprintf: New file.
67365         * modules/unistdio/u8-printf-parse: New file.
67366         * modules/unistdio/u8-snprintf: New file.
67367         * modules/unistdio/u8-sprintf: New file.
67368         * modules/unistdio/u8-vasnprintf: New file.
67369         * modules/unistdio/u8-vasprintf: New file.
67370         * modules/unistdio/u8-vsnprintf: New file.
67371         * modules/unistdio/u8-vsprintf: New file.
67372         * modules/unistdio/u8-u8-asnprintf: New file.
67373         * modules/unistdio/u8-u8-asprintf: New file.
67374         * modules/unistdio/u8-u8-snprintf: New file.
67375         * modules/unistdio/u8-u8-sprintf: New file.
67376         * modules/unistdio/u8-u8-vasnprintf: New file.
67377         * modules/unistdio/u8-u8-vasprintf: New file.
67378         * modules/unistdio/u8-u8-vsnprintf: New file.
67379         * modules/unistdio/u8-u8-vsprintf: New file.
67380         * modules/unistdio/u16-asnprintf: New file.
67381         * modules/unistdio/u16-asprintf: New file.
67382         * modules/unistdio/u16-printf-parse: New file.
67383         * modules/unistdio/u16-snprintf: New file.
67384         * modules/unistdio/u16-sprintf: New file.
67385         * modules/unistdio/u16-vasnprintf: New file.
67386         * modules/unistdio/u16-vasprintf: New file.
67387         * modules/unistdio/u16-vsnprintf: New file.
67388         * modules/unistdio/u16-vsprintf: New file.
67389         * modules/unistdio/u16-u16-asnprintf: New file.
67390         * modules/unistdio/u16-u16-asprintf: New file.
67391         * modules/unistdio/u16-u16-snprintf: New file.
67392         * modules/unistdio/u16-u16-sprintf: New file.
67393         * modules/unistdio/u16-u16-vasnprintf: New file.
67394         * modules/unistdio/u16-u16-vasprintf: New file.
67395         * modules/unistdio/u16-u16-vsnprintf: New file.
67396         * modules/unistdio/u16-u16-vsprintf: New file.
67397         * modules/unistdio/u32-asnprintf: New file.
67398         * modules/unistdio/u32-asprintf: New file.
67399         * modules/unistdio/u32-printf-parse: New file.
67400         * modules/unistdio/u32-snprintf: New file.
67401         * modules/unistdio/u32-sprintf: New file.
67402         * modules/unistdio/u32-vasnprintf: New file.
67403         * modules/unistdio/u32-vasprintf: New file.
67404         * modules/unistdio/u32-vsnprintf: New file.
67405         * modules/unistdio/u32-vsprintf: New file.
67406         * modules/unistdio/u32-u32-asnprintf: New file.
67407         * modules/unistdio/u32-u32-asprintf: New file.
67408         * modules/unistdio/u32-u32-snprintf: New file.
67409         * modules/unistdio/u32-u32-sprintf: New file.
67410         * modules/unistdio/u32-u32-vasnprintf: New file.
67411         * modules/unistdio/u32-u32-vasprintf: New file.
67412         * modules/unistdio/u32-u32-vsnprintf: New file.
67413         * modules/unistdio/u32-u32-vsprintf: New file.
67414         * modules/unistdio/ulc-asnprintf-tests: New file.
67415         * modules/unistdio/ulc-vasnprintf-tests: New file.
67416         * modules/unistdio/ulc-vasprintf-tests: New file.
67417         * modules/unistdio/ulc-vsnprintf-tests: New file.
67418         * modules/unistdio/ulc-vsprintf-tests: New file.
67419         * modules/unistdio/u8-asnprintf-tests: New file.
67420         * modules/unistdio/u8-vasnprintf-tests: New file.
67421         * modules/unistdio/u8-vasprintf-tests: New file.
67422         * modules/unistdio/u8-vsnprintf-tests: New file.
67423         * modules/unistdio/u8-vsprintf-tests: New file.
67424         * modules/unistdio/u16-asnprintf-tests: New file.
67425         * modules/unistdio/u16-vasnprintf-tests: New file.
67426         * modules/unistdio/u16-vasprintf-tests: New file.
67427         * modules/unistdio/u16-vsnprintf-tests: New file.
67428         * modules/unistdio/u16-vsprintf-tests: New file.
67429         * modules/unistdio/u32-asnprintf-tests: New file.
67430         * modules/unistdio/u32-vasnprintf-tests: New file.
67431         * modules/unistdio/u32-vasprintf-tests: New file.
67432         * modules/unistdio/u32-vsnprintf-tests: New file.
67433         * modules/unistdio/u32-vsprintf-tests: New file.
67434         * MODULES.html.sh (Unicode string functions): Add the new modules.
67435
67436 2007-07-01  Bruno Haible  <bruno@clisp.org>
67437
67438         * lib/sprintf.c (sprintf): Limit the available length estimation,
67439         to avoid address wraparound.
67440         * lib/vsprintf.c (vsprintf): Likewise.
67441         * modules/sprintf-posix (Dependencies): Add stdint.
67442         * modules/vsprintf-posix (Dependencies): Likewise.
67443
67444 2007-07-01  Bruno Haible  <bruno@clisp.org>
67445
67446         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
67447         Windows PATH as well. Conservative double-quoting. Comments.
67448
67449 2007-07-01  Bruno Haible  <bruno@clisp.org>
67450             Eric Blake  <ebb9@byu.net>
67451             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67452
67453         * gnulib-tool (self_abspathname): Fix algorithm to cope with
67454         empty components in $PATH, denoting '.'.
67455
67456 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67457
67458         * gnulib-tool: Fix indentation.
67459         (func_create_megatestdir): Likewise.
67460         Report by Bruno Haible.
67461
67462 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67463
67464         Sync from Automake.
67465         * build-aux/gnupload: Fix shell portability issues with for loops.
67466         Report by Karl Berry.
67467
67468 2007-06-29  Simon Josefsson  <simon@josefsson.org>
67469
67470         * build-aux/maint.mk (POURL): Use translationproject.org.
67471
67472 2007-06-27  Simon Josefsson  <simon@josefsson.org>
67473             Bruno Haible  <bruno@clisp.org>
67474
67475         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
67476         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
67477         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
67478         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
67479         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
67480
67481 2007-06-27  Bruno Haible  <bruno@clisp.org>
67482
67483         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
67484         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
67485
67486 2007-06-26  Karl Berry  <karl@gnu.org>
67487
67488         * MODULES.html.sh: remove xreadlink-with-size.
67489
67490 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67491
67492         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
67493         method that I hope also handles the double-include problem noted
67494         by Bruno Haible in
67495         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
67496
67497 2007-06-23  Bruno Haible  <bruno@clisp.org>
67498
67499         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67500         Don't let the 'mostlyclean' target fail if the last subdirectory could
67501         not be removed.
67502         Reported by Karl Berry.
67503
67504 2007-06-23  Bruno Haible  <bruno@clisp.org>
67505
67506         * gnulib-tool (echo): Add a speedier workaround for ksh.
67507         * tests/test-echo.sh: Likewise.
67508
67509 2007-06-23  Bruno Haible  <bruno@clisp.org>
67510
67511         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
67512         * tests/test-echo.sh: Likewise.
67513
67514 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67515
67516         * gnulib-tool (IFS): Initialize early, so we don't set it to
67517         empty later.
67518         (self_abspathname): Rewrite algorithm to set it, reindent.
67519         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
67520         (func_create_megatestdir): Merge some sed scripts.
67521
67522 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67523
67524         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
67525         exposed by Sun Studio 11 cc on Solaris 8.
67526
67527 2007-06-22  Bruno Haible  <bruno@clisp.org>
67528
67529         * gnulib-tool (echo): Ensure the echo primitive does not interpret
67530         backslashes.
67531         * tests/test-echo.sh: New file.
67532
67533 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67534
67535         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
67536         simplify `sed_replace_build_aux' scripts, they are portable but
67537         echoing them with `echo' is not.
67538         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
67539
67540 2007-06-21  Karl Berry  <karl@gnu.org>
67541
67542         * config/srclist.txt: guess we can't handle the licenses via
67543         srclist at the moment.
67544
67545 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67546
67547         * MODULES.html.sh: Add include_next.
67548         * modules/include_next: New file.
67549
67550 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67551
67552         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
67553         INCLUDE_NEXT.
67554         (gl_CHECK_NEXT_HEADERS): New macro.
67555         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
67556         the obsolescent gl_ABSOLUTE_HEADER.
67557         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
67558         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
67559         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
67560         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
67561         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
67562         * m4/math_h.m4 (gl_MATH_H): Likewise.
67563         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
67564         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
67565         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
67566         * m4/stdint.m4 (gl_STDINT_H): Likewise.
67567         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
67568         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
67569         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
67570         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
67571         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
67572         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
67573         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
67574         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
67575         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
67576         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
67577         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
67578         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67579         * m4/inttypes.m4 (gl_INTTYPES_H): Define
67580         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
67581         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
67582         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
67583         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
67584         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
67585         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
67586         * lib/float_.h: Likewise.
67587         * lib/inttypes_.h: Likewise.
67588         * lib/math_.h: Likewise.
67589         * lib/search_.h: Likewise.
67590         * lib/signal_.h: Likewise.
67591         * lib/stdint_.h: Likewise.
67592         * lib/stdio_.h: Likewise.
67593         * lib/stdlib_.h: Likewise.
67594         * lib/string_.h: Likewise.
67595         * lib/sys_stat_.h: Likewise.
67596         * lib/sys_time_.h: Likewise.
67597         * lib/time_.h: Likewise.
67598         * lib/unistd_.h: Likewise.
67599         * lib/wchar_.h: Likewise.
67600         * lib/wctype_.h: Likewise.
67601         * lib/dirent_.h: Likewise.
67602         * lib/iconv_.h: Likewise.
67603         * lib/locale_.h: Likewise.
67604         * lib/netinet_in_.h: Likewise.
67605         * lib/sys_select_.h: Likewise.
67606         * lib/sys_socket_.h: Likewise.
67607         * lib/sysexits_.h: Likewise.
67608         * modules/fcntl (Depends-on): Depend on include_next, not
67609         absolute_header.
67610         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
67611         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
67612         * modules/fchdir: Likewise.
67613         * modules/float: Likewise.
67614         * modules/iconv_open: Likewise.
67615         * modules/inttypes: Likewise.
67616         * modules/locale: Likewise.
67617         * modules/math: Likewise.
67618         * modules/netinet_in: Likewise.
67619         * modules/search: Likewise.
67620         * modules/signal: Likewise.
67621         * modules/stdint: Likewise.
67622         * modules/stdio: Likewise.
67623         * modules/stdlib: Likewise.
67624         * modules/string: Likewise.
67625         * modules/sys_select: Likewise.
67626         * modules/sys_socket: Likewise.
67627         * modules/sys_stat: Likewise.
67628         * modules/sys_time: Likewise.
67629         * modules/sysexits: Likewise.
67630         * modules/time: Likewise.
67631         * modules/unistd: Likewise.
67632         * modules/wchar: Likewise.
67633         * modules/wctype: Likewise.
67634         * modules/sys_stat: Change maintainer to "all".
67635         * modules/unistd: Likewise.
67636
67637 2007-06-20  Karl Berry  <karl@gnu.org>
67638
67639         * config/srclist.txt: track www changes in license files.
67640
67641 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
67642
67643         * build-aux/bootstrap: Remove stray dot.
67644         Make sure build_aux settings are honored when linking
67645         gnulib_extra_files.
67646
67647 2007-06-19  Eric Blake  <ebb9@byu.net>
67648
67649         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67650         Allow compilation on cygwin.
67651
67652 2007-06-19  Jim Meyering  <jim@meyering.net>
67653
67654         xreadlink-with-size: Remove module.  No longer used.
67655         Ex-callers now use xreadlink or mreadlink-with-size.
67656         * modules/xreadlink-with-size: Remove module.
67657         * lib/xreadlink-with-size.c: Remove file.
67658         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
67659         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
67660         just before the function definition *is* accurate.
67661
67662         Eliminate one way canonicalize_filename_mode could exit.
67663         * lib/canonicalize.c (canonicalize_filename_mode):
67664         Use mreadlink_with_size, not xreadlink_with_size.
67665
67666 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
67667
67668         Detect porting problems to FreeBSD/arm, which has time_t wider than
67669         long int.  Original problem reported for GNU diff by Xin Li in
67670         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
67671         * modules/getdate (Depends-on): Add intprops, verify.
67672         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
67673         is an integer type no wider than long int.
67674
67675 2007-06-18  Jim Meyering  <jim@meyering.net>
67676
67677         New module: mreadlink-with-size.
67678         * MODULES.html.sh: Add mreadlink-with-size.
67679         * modules/mreadlink-with-size: New module
67680         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
67681         not xreadlink-with-size.
67682         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
67683
67684 2007-06-16  Bruno Haible  <bruno@clisp.org>
67685
67686         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
67687         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
67688         Reported by Gary V. Vaughan <gary@gnu.org>.
67689
67690 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
67691
67692         Revamp lchown so that it lives in unistd.h where it belongs.
67693         * lib/lchown.h: Remove.
67694         * lib/dirchownmod.c: Don't include lib/lchown.h.
67695         * lib/fchownat.c: Likewise.
67696         * lib/openat.c: Likewise.
67697         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
67698         does not follow symlinks.
67699         (EOPNOTSUPP): Define if not defined.
67700         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
67701         is defined to 0.
67702         (lchown): New decl.
67703         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
67704         Do not check for lchown decl.
67705         Set REPLACE_LCHOWN.
67706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
67707         REPLACE_LCHOWN.
67708         * modules/chown: Make it clear it follows symlinks.
67709         * modules/lchown: Make it clear it doesn't follow symlinks.
67710         (Files): Remove lib/lchown.h
67711         (Depends-on): Add unistd.
67712         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
67713         (Include): Include <unistd.h>, not "lchown.h".
67714         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
67715         REPLACE_LCHOWN.
67716
67717 2007-06-15  Jim Meyering  <jim@meyering.net>
67718
67719         Change license (GPL to LGPL) of fsusage and dependents.
67720         * modules/fsusage (License): Change to LGPL.
67721         * modules/full-read (License): Likewise.
67722         * modules/full-write (License): Likewise.
67723         * modules/safe-read (License): Likewise.
67724         * modules/safe-write (License): Likewise.
67725
67726 2007-06-14  Ben Pfaff  <blp@gnu.org>
67727
67728         Missing part of allocsa -> malloca transition.
67729         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
67730         gl_MALLOCA.
67731
67732 2007-06-12  Bruno Haible  <bruno@clisp.org>
67733
67734         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
67735         to ia64, x86_64, i386.
67736         Reported by Eric Blake.
67737
67738 2007-06-12  Bruno Haible  <bruno@clisp.org>
67739
67740         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
67741         cross-compiling to x86_64.
67742
67743 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
67744
67745         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
67746         glitch reported by Ralf Wildenhues in
67747         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
67748
67749         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
67750         Vin Shelton.
67751
67752 2007-06-11  Bruno Haible  <bruno@clisp.org>
67753
67754         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
67755         replacement string.
67756         Reported by Eric Blake.
67757
67758 2007-06-10  Bruno Haible  <bruno@clisp.org>
67759
67760         Prepare vasnprintf code for use with Unicode strings.
67761         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
67762         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
67763         TYPE_U32_STRING.
67764         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
67765         a_u32_string variants.
67766         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67767         * lib/printf-args.c: Don't include config.h and the specification
67768         header if PRINTF_FETCHARGS is already defined.
67769         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67770         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
67771         TYPE_U16_STRING, TYPE_U32_STRING.
67772         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
67773         u16_directive, u16_directives, u32_directive, u32_directives): New
67774         types.
67775         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
67776         New declarations.
67777         * lib/printf-parse.c: Don't include config.h and the specification
67778         header if PRINTF_PARSE is already defined. Eliminate the set of
67779         parameters for WIDE_CHAR_VERSION; the user of this file must provide
67780         them now. Include c-ctype.h.
67781         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
67782         directive and CHAR_T_ONLY_ASCII.
67783         * lib/vasnprintf.c: Don't include config.h and the specification header
67784         if VASNPRINTF is already defined.
67785         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
67786         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
67787         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
67788         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
67789         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
67790         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
67791         code accordingly.
67792         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
67793         pad_ourselves also in this case, with the 'c' and 's' directives, and
67794         with a different notion of "width".
67795         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
67796
67797 2007-06-10  Bruno Haible  <bruno@clisp.org>
67798
67799         * modules/unistr/u32-mbsnlen: New file.
67800         * lib/unistr/u32-mbsnlen.c: New file.
67801
67802         * modules/unistr/u16-mbsnlen: New file.
67803         * lib/unistr/u16-mbsnlen.c: New file.
67804
67805         * modules/unistr/u8-mbsnlen: New file.
67806         * lib/unistr/u8-mbsnlen.c: New file.
67807
67808         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
67809         declarations.
67810
67811 2007-06-10  Bruno Haible  <bruno@clisp.org>
67812
67813         * lib/string_.h (mbsnlen): New declaration.
67814         * lib/mbsnlen.c: New file.
67815         * m4/mbsnlen.m4: New file.
67816         * modules/mbsnlen: New file.
67817         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
67818         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
67819         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
67820
67821 2007-06-10  Bruno Haible  <bruno@clisp.org>
67822
67823         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
67824
67825 2007-06-10  Bruno Haible  <bruno@clisp.org>
67826
67827         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
67828         * lib/mbuiter.h: Likewise.
67829
67830 2007-06-10  Bruno Haible  <bruno@clisp.org>
67831
67832         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
67833         declaration.
67834
67835 2007-06-10  Karl Berry  <karl@gnu.org>
67836
67837         * config/srclist.txt: remove gettext entries, Bruno prefers
67838         to update individually.
67839
67840 2007-06-10  Bruno Haible  <bruno@clisp.org>
67841
67842         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
67843         'maxlen'. Ensure only length + width bytes are allocated, not
67844         length + 1 + width.
67845
67846 2007-06-09  Bruno Haible  <bruno@clisp.org>
67847
67848         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
67849         (CHAR_T): Remove macro.
67850         (VASNPRINTF): Update.
67851
67852 2007-06-09  Bruno Haible  <bruno@clisp.org>
67853
67854         * MODULES.html.sh (Unicode string functions): Add the new modules.
67855
67856         * modules/uniconv/u32-conv-to-enc: New file.
67857         * lib/uniconv/u32-conv-to-enc.c: New file.
67858         * modules/uniconv/u32-conv-to-enc-tests: New file.
67859         * tests/uniconv/test-u32-conv-to-enc.c: New file.
67860
67861         * modules/uniconv/u16-conv-to-enc: New file.
67862         * lib/uniconv/u16-conv-to-enc.c: New file.
67863         * lib/uniconv/u-conv-to-enc.h: New file.
67864         * modules/uniconv/u16-conv-to-enc-tests: New file.
67865         * tests/uniconv/test-u16-conv-to-enc.c: New file.
67866
67867         * modules/uniconv/u8-conv-to-enc: New file.
67868         * lib/uniconv/u8-conv-to-enc.c: New file.
67869         * modules/uniconv/u8-conv-to-enc-tests: New file.
67870         * tests/uniconv/test-u8-conv-to-enc.c: New file.
67871
67872         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
67873         u32_conv_to_encoding): New declarations.
67874
67875 2007-06-09  Bruno Haible  <bruno@clisp.org>
67876
67877         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
67878
67879 2007-06-09  Bruno Haible  <bruno@clisp.org>
67880
67881         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
67882         * modules/malloca: Renamed from modules/allocsa, updated.
67883         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
67884         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
67885         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
67886         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
67887         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
67888         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
67889         * modules/xmalloca: Renamed from modules/xallocsa, updated.
67890         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
67891         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
67892         * modules/c-strcasestr (Depends-on): Update.
67893         * lib/c-strcasestr.c: Update.
67894         * modules/c-strstr (Depends-on): Update.
67895         * lib/c-strstr.c: Update.
67896         * modules/canonicalize-lgpl (Depends-on): Update.
67897         * lib/canonicalize-lgpl.c: Update.
67898         * modules/clean-temp (Depends-on): Update.
67899         * lib/clean-temp.c: Update.
67900         * modules/csharpcomp (Depends-on): Update.
67901         * lib/csharpcomp.c: Update.
67902         * modules/csharpexec (Depends-on): Update.
67903         * lib/csharpexec.c: Update.
67904         * modules/javacomp (Depends-on): Update.
67905         * lib/javacomp.c: Update.
67906         * modules/javaexec (Depends-on): Update.
67907         * lib/javaexec.c: Update.
67908         * modules/mbscasestr (Depends-on): Update.
67909         * lib/mbscasestr.c: Update.
67910         * modules/mbsstr (Depends-on): Update.
67911         * lib/mbsstr.c: Update.
67912         * modules/setenv (Depends-on): Update.
67913         * lib/setenv.c: Update.
67914         * modules/strcasestr (Depends-on): Update.
67915         * lib/strcasestr.c: Update.
67916         * modules/striconveha (Depends-on): Update.
67917         * lib/striconveha.c: Update.
67918         * modules/relocatable-prog-wrapper (Files): Update.
67919         * lib/relocwrapper.c: Update.
67920         * build-aux/install-reloc: Update.
67921         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
67922
67923 2007-06-08  Bruno Haible  <bruno@clisp.org>
67924
67925         Port to uClibc.
67926         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
67927         * lib/fpurge.c (fpurge): Likewise.
67928         * lib/freading.c (freading): Likewise.
67929         * lib/fseeko.c (rpl_fseeko): Likewise.
67930         * lib/fseterr.c (fseterr): Likewise.
67931         * lib/fwriting.c (fwriting): Likewise.
67932         * tests/test-fflush.c (main): Avoid a failure on uClibc.
67933
67934 2007-06-08  Bruno Haible  <bruno@clisp.org>
67935
67936         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
67937         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
67938         * modules/gettext (Files): Add m4/intlmacosx.m4.
67939
67940 2007-06-07  Bruno Haible  <bruno@clisp.org>
67941
67942         * modules/localename-tests: New file.
67943         * tests/test-localename.c: New file.
67944
67945         New module 'localename'.
67946         * lib/localename.h: New file.
67947         * lib/localename.c: New file, from GNU gettext.
67948         * m4/localename.m4: New file.
67949         * modules/localename: New file.
67950
67951 2007-06-07  Bruno Haible  <bruno@clisp.org>
67952
67953         Work around the lack of <wchar.h> on some builds of uClibc.
67954         * doc/headers/wchar.texi: Update.
67955         * lib/wchar_.h: Include <wchar.h> only if it exists.
67956         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
67957         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
67958         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
67959         doesn't exist.
67960         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
67961         * modules/mbfile (Depends-on): Add wchar.
67962         * modules/mbiter (Depends-on): Likewise.
67963         * modules/mbuiter (Depends-on): Likewise.
67964         Reported by Simon Josefsson.
67965
67966 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67967
67968         Work around problem reported by Steven M. Schweda in
67969         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
67970         Tru64 5.1B with the Compaq compiler environment installed declares
67971         an 'isblank' function but does not define it in the C library.
67972         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
67973         * lib/regex_internal.h (isblank): Likewise.
67974         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
67975         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67976
67977 2007-06-05  Bruno Haible  <bruno@clisp.org>
67978
67979         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
67980         ia64.
67981         * modules/printf-safe: New file.
67982         * modules/fprintf-posix (Depends-on): Add printf-safe.
67983         * modules/printf-posix (Depends-on): Likewise.
67984         * modules/snprintf-posix (Depends-on): Likewise.
67985         * modules/sprintf-posix (Depends-on): Likewise.
67986         * modules/vasnprintf-posix (Depends-on): Likewise.
67987         * modules/vasprintf-posix (Depends-on): Likewise.
67988         * modules/vfprintf-posix (Depends-on): Likewise.
67989         * modules/vprintf-posix (Depends-on): Likewise.
67990         * modules/vsnprintf-posix (Depends-on): Likewise.
67991         * modules/vsprintf-posix (Depends-on): Likewise.
67992         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
67993         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
67994         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
67995         "no" on i386, x86_64, ia64.
67996         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
67997         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67998         on i386, x86_64, ia64.
67999         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
68000         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68001         on i386, x86_64, ia64.
68002         * tests/test-vasnprintf-posix.c: Include float.h.
68003         (LDBL80_WORDS): New macro.
68004         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68005         on i386, x86_64, ia64.
68006         * tests/test-vasprintf-posix.c: Include float.h.
68007         (LDBL80_WORDS): New macro.
68008         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68009         on i386, x86_64, ia64.
68010         * tests/test-snprintf-posix.c: Include float.h.
68011         * tests/test-sprintf-posix.c: Likewise.
68012         * tests/test-vsnprintf-posix.c: Likewise.
68013         * tests/test-vsprintf-posix.c: Likewise.
68014
68015 2007-06-05  Bruno Haible  <bruno@clisp.org>
68016
68017         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
68018         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
68019         non-IEEE numbers on i386, x86_64, ia64.
68020         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
68021         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
68022         * tests/test-isnanl.h: Include float.h.
68023         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
68024
68025 2007-06-05  Bruno Haible  <bruno@clisp.org>
68026
68027         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
68028         also the %a / %A. Handle the %a / %A code before this extra handling.
68029
68030 2007-06-05  Bruno Haible  <bruno@clisp.org>
68031
68032         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
68033         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
68034
68035 2007-06-05  Bruno Haible  <bruno@clisp.org>
68036
68037         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
68038         typo in variable name.
68039
68040 2007-06-05  Eric Blake  <ebb9@byu.net>
68041
68042         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
68043         Reported by Simon Josefsson.
68044
68045 2007-06-04  Bruno Haible  <bruno@clisp.org>
68046
68047         Avoid test failures on some PowerPC platforms.
68048         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
68049         Define differently for PowerPC.
68050         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
68051         Reported by Gary V. Vaughan <gary@gnu.org>.
68052
68053 2007-06-02  Bruno Haible  <bruno@clisp.org>
68054
68055         Fix test-stdint failure on FreeBSD/ia64.
68056         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
68057         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
68058         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
68059         * doc/headers/stdint.texi: Update.
68060
68061 2007-06-01  Bruno Haible  <bruno@clisp.org>
68062
68063         * tests/test-binary-io.c (main): Pass a third argument to open().
68064         Reported by Gary V. Vaughan <gary@gnu.org>.
68065
68066 2007-06-01  Bruno Haible  <bruno@clisp.org>
68067
68068         * doc/functions/frexpl.texi: Update for mingw.
68069
68070 2007-06-01  Bruno Haible  <bruno@clisp.org>
68071
68072         * tests/test-lseek.c (main): Disable test of errno for invalid third
68073         argument.
68074         * doc/functions/lseek.texi: Update.
68075         Reported by Gary V. Vaughan <gary@gnu.org>.
68076
68077 2007-05-28  Bruno Haible  <bruno@clisp.org>
68078
68079         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
68080
68081 2007-05-31  Eric Blake  <ebb9@byu.net>
68082
68083         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
68084         cross compiling.
68085
68086 2007-05-30  Eric Blake  <ebb9@byu.net>
68087         and Bruno Haible  <bruno@clisp.org>
68088
68089         Work around mingw test failures exposed by m4-1.4.9b.
68090         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
68091         * tests/test-unistd.c: Disable uid_t and git_t tests for the
68092         moment.
68093
68094 2007-05-30  Bruno Haible  <bruno@clisp.org>
68095
68096         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
68097         assuming that they are closed. Needed on HP-UX 11.
68098
68099 2007-05-29  Bruno Haible  <bruno@clisp.org>
68100
68101         Fix a problem with #include_next.
68102         * lib/dirent_.h: Split the double-inclusion guard.
68103         * lib/fcntl_.h: Likewise.
68104         * lib/float_.h: Likewise.
68105         * lib/iconv_.h: Likewise.
68106         * lib/inttypes_.h: Likewise.
68107         * lib/locale_.h: Likewise.
68108         * lib/math_.h: Likewise.
68109         * lib/netinet_in_.h: Likewise.
68110         * lib/search_.h: Likewise.
68111         * lib/signal_.h: Likewise.
68112         * lib/stdint_.h: Likewise.
68113         * lib/stdio_.h: Likewise.
68114         * lib/stdlib_.h: Likewise.
68115         * lib/string_.h: Likewise.
68116         * lib/sys_select_.h: Likewise.
68117         * lib/sys_socket_.h: Likewise.
68118         * lib/sys_stat_.h: Likewise.
68119         * lib/sys_time_.h: Likewise.
68120         * lib/sysexits_.h: Likewise.
68121         * lib/time_.h: Likewise.
68122         * lib/unistd_.h: Likewise.
68123         * lib/wchar_.h: Likewise.
68124         * lib/wctype_.h: Likewise.
68125
68126 2007-05-29  Bruno Haible  <bruno@clisp.org>
68127
68128         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
68129         for the moment.
68130
68131 2007-05-29  Bruno Haible  <bruno@clisp.org>
68132
68133         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
68134         invocation.
68135         Reported by Eric Blake.
68136
68137 2007-05-29  Bruno Haible  <bruno@clisp.org>
68138
68139         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
68140         compiling case.
68141
68142 2007-05-29  Eric Blake  <ebb9@byu.net>
68143             Bruno Haible  <bruno@clisp.org>
68144
68145         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
68146         cross compiles.
68147
68148 2007-05-28  Eric Blake  <ebb9@byu.net>
68149
68150         * modules/closein-tests (test_closein_LDADD): Support test on
68151         cygwin with libtool.
68152
68153 2007-05-28  Bruno Haible  <bruno@clisp.org>
68154
68155         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
68156         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
68157         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
68158         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
68159         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
68160         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
68161         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
68162         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
68163         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
68164
68165 2007-05-28  Eric Blake  <ebb9@byu.net>
68166
68167         Unconditionally include <config.h> in unit tests.
68168         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
68169         * tests/test-allocsa.c, tests/test-arcfour.c,
68170         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
68171         tests/test-array_list.c, tests/test-array_oset.c,
68172         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
68173         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
68174         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
68175         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
68176         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
68177         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
68178         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
68179         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
68180         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
68181         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
68182         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
68183         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
68184         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
68185         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
68186         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
68187         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
68188         test-md5.c, test-memmem.c, test-printf-posix.c,
68189         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
68190         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
68191         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
68192         test-strcasestr.c, test-striconv.c, test-striconveh.c,
68193         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
68194         test-vasnprintf-posix2.c, test-vasnprintf.c,
68195         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
68196         test-vfprintf-posix.c, test-vprintf-posix.c,
68197         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
68198         test-xvasprintf.c: Likewise.
68199
68200 2007-05-28  Bruno Haible  <bruno@clisp.org>
68201
68202         * gnulib-tool (func_import): Remember the --with-tests command-line
68203         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
68204         Reported by Eric Blake.
68205
68206 2007-05-28  Bruno Haible  <bruno@clisp.org>
68207
68208         * modules/ftell-tests: New file.
68209         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
68210         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
68211
68212         * lib/ftell.c: New file.
68213         * modules/ftell: New file.
68214         * m4/ftell.m4: New file.
68215         * doc/functions/ftell.texi: Update.
68216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
68217         REPLACE_FTELL.
68218         * lib/stdio_.h (rpl_ftell): New declaration.
68219         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
68220         REPLACE_FTELL.
68221
68222 2007-05-28  Eric Blake  <ebb9@byu.net>
68223
68224         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
68225
68226 2007-05-28  Bruno Haible  <bruno@clisp.org>
68227
68228         * modules/fseek-tests: New file.
68229         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
68230         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
68231
68232         * lib/fseek.c: New file.
68233         * modules/fseek: New file.
68234         * m4/fseek.m4: New file.
68235         * doc/functions/fseek.texi: Update.
68236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
68237         REPLACE_FSEEK.
68238         * lib/stdio_.h (rpl_fseek): New declaration.
68239         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
68240         REPLACE_FSEEK.
68241
68242 2007-05-28  Bruno Haible  <bruno@clisp.org>
68243
68244         * lib/stdio_.h (fflush): More comments.
68245
68246 2007-05-28  Bruno Haible  <bruno@clisp.org>
68247
68248         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
68249         runtime test.
68250
68251 2007-05-28  Eric Blake  <ebb9@byu.net>
68252
68253         Improve lseek module.
68254         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
68255         * lib/unistd_.h (lseek): Scale back link warning message.
68256         * tests/test-lseek.c: Beef up test.
68257         * tests/test-lseek.sh: Exercise more facets of lseek.
68258         Reported by Bruno Haible.
68259
68260 2007-05-28  Bruno Haible  <bruno@clisp.org>
68261
68262         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
68263         to define.
68264
68265 2007-05-27  Bruno Haible  <bruno@clisp.org>
68266
68267         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
68268
68269 2007-05-27  Bruno Haible  <bruno@clisp.org>
68270
68271         * modules/openmp: New file.
68272         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
68273         Noah Misch.
68274
68275 2007-05-26  Bruno Haible  <bruno@clisp.org>
68276
68277         * modules/chdir-long (Depends-on): Add fchdir.
68278         * modules/chdir-safer (Depends-on): Likewise.
68279         * modules/fts (Depends-on): Likewise.
68280         * modules/fts-lgpl (Depends-on): Likewise.
68281         * modules/openat (Depends-on): Likewise.
68282         * modules/savewd (Depends-on): Likewise.
68283
68284 2007-05-24  Eric Blake  <ebb9@byu.net>
68285
68286         Fix lseek on mingw.
68287         * modules/lseek: New module.
68288         * m4/lseek.m4: New file.
68289         * lib/lseek.c: New file.
68290         * modules/lseek-tests: New file.
68291         * tests/test-lseek.c: New file.
68292         * tests/test-lseek.sh: New file.
68293         * MODULES.html.sh: Document lseek module.
68294         * modules/fflush (Depends-on): Add lseek, fseeko.
68295         * modules/fseeko (Depends-on): Likewise.
68296         * modules/ftello (Depends-on): Likewise.
68297         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
68298         broken.
68299         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
68300         broken.
68301         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
68302         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
68303         * lib/ftello.c (rpl_ftello): Likewise.
68304         * tests/test-fseeko.c (main): Test this.
68305         * tests/test-fseeko.sh: Likewise.
68306         * tests/test-ftello.c (main): Likewise.
68307         * tests/test-ftello.sh: Likewise.
68308         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
68309         implies replacing fseek.
68310         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
68311         HAVE_FTELLO.
68312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
68313         * modules/unistd (Makefile.am): Likewise.
68314         * lib/unistd_.h (lseek): Declare a replacement.
68315         * doc/functions/lseek.texi (lseek): Document this fix.
68316         * doc/functions/fseek.texi (fseek): Likewise.
68317         * doc/functions/ftell.texi (ftell): Likewise.
68318
68319 2007-05-24  Bruno Haible  <bruno@clisp.org>
68320
68321         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
68322         in the printed representation of a NaN.
68323         * tests/test-vasprintf-posix.c (test_function): Likewise.
68324         * tests/test-snprintf-posix.h (test_function): Likewise.
68325         * tests/test-sprintf-posix.h (test_function): Likewise.
68326         Reported by Eric Blake.
68327
68328 2007-05-23  Eric Blake  <ebb9@byu.net>
68329
68330         Fix fseeko/ftello on cygwin 1.5.24.
68331         * doc/functions/fseeko.texi (fseeko): Document the fix.
68332         * doc/functions/ftello.texi (ftello): Document the fix.
68333         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
68334         * doc/functions/stdout.text (stdout): New file.
68335         * doc/functions/stderr.text (stderr): New file.
68336         * doc/gnulib.texi (Function Substitutes): Use new files.
68337         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
68338         prior to 1.7.0.
68339         * tests/test-ftello.c (main): Likewise for ftello.
68340         * tests/test-fseeko.sh: New file.
68341         * tests/test-ftello.sh: New file.
68342         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
68343         with seekable stdin.
68344         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
68345         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
68346         (gl_REPLACE_FSEEKO): New macro.
68347         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
68348         * modules/fseeko (Files): Distribute fseeko.c.
68349         * modules/ftello (Files): Distribute ftello.c.
68350         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
68351         mode.
68352         * lib/ftello.c (rpl_ftello): New file.
68353         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
68354         fseeko, ftello.
68355         (gl_STDIN_LARGE_OFFSET): New macro.
68356         * modules/stdio (Makefile.am): Perform the replacement.
68357         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
68358
68359 2007-05-23  Bruno Haible  <bruno@clisp.org>
68360
68361         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
68362         GNULIB_POSIXCHECK is defined.
68363
68364 2007-05-21  Bruno Haible  <bruno@clisp.org>
68365
68366         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
68367         Check also the output for NaN arguments. When cross-compiling, guess
68368         no on IRIX.
68369         * lib/vasnprintf.c: Update comments.
68370         * tests/test-vasnprintf-posix.c (strisnan): New function.
68371         (test_function): Use it.
68372         * tests/test-vasprintf-posix.c (strisnan): New function.
68373         (test_function): Use it.
68374         * tests/test-snprintf-posix.h (strisnan): New function.
68375         (test_function): Use it.
68376         * tests/test-sprintf-posix.h (strisnan): New function.
68377         (test_function): Use it.
68378         Reported by Eric Blake.
68379
68380 2007-05-20  Bruno Haible  <bruno@clisp.org>
68381
68382         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
68383         numbers that fails on BeOS.
68384         * doc/functions/frexpl.texi: Update.
68385
68386 2007-05-20  Jim Meyering  <jim@meyering.net>
68387
68388         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
68389         forced upon us by glibc-2.6.
68390
68391 2007-05-20  Bruno Haible  <bruno@clisp.org>
68392
68393         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
68394         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
68395         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
68396         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
68397         NEED_PRINTF_INFINITE.
68398         (is_infinitel): New function.
68399         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
68400         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
68401         gl_PREREQ_VASNPRINTF_INFINITE.
68402         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
68403         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68404         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
68405         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
68406         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
68407         gl_PREREQ_VASNPRINTF_INFINITE.
68408         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68409         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68410         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68411         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68412         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68413         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68414         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68415         * doc/functions/fprintf.texi: Update.
68416         * doc/functions/printf.texi: Update.
68417         * doc/functions/snprintf.texi: Update.
68418         * doc/functions/sprintf.texi: Update.
68419         * doc/functions/vfprintf.texi: Update.
68420         * doc/functions/vprintf.texi: Update.
68421         * doc/functions/vsnprintf.texi: Update.
68422         * doc/functions/vsprintf.texi: Update.
68423
68424 2007-05-20  Bruno Haible  <bruno@clisp.org>
68425
68426         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
68427         was not found in libc.
68428         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
68429
68430 2007-05-20  Bruno Haible  <bruno@clisp.org>
68431
68432         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68433         printed as "-nan" instead of "nan".
68434         * tests/test-vasprintf-posix.c (test_function): Likewise.
68435         * tests/test-snprintf-posix.h (test_function): Likewise.
68436         * tests/test-sprintf-posix.h (test_function): Likewise.
68437         Needed for HP-UX 11.
68438
68439 2007-05-20  Jim Meyering  <jim@meyering.net>
68440
68441         Fix buggy test for the fchownat-deref bug.
68442         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
68443         symlink required for the run-test.  Without it, this test would
68444         always declare that fchownat doesn't work, and client code would
68445         unnecessarily use the replacement function with fixed libc.
68446         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
68447         Reported by Greg Schafer.
68448
68449 2007-05-19  Bruno Haible  <bruno@clisp.org>
68450
68451         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
68452         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
68453         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
68454         Needed for IRIX 6.5 and Solaris 2.5.1.
68455
68456 2007-05-19  Bruno Haible  <bruno@clisp.org>
68457
68458         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
68459         (test_function): Skip tests involving -0.0 on platforms where
68460         -0.0 = 0.0.
68461         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
68462         (test_function): Skip tests involving -0.0 on platforms where
68463         -0.0 = 0.0.
68464         * tests/test-snprintf-posix.h (have_minus_zero): New function.
68465         (test_function): Skip tests involving -0.0 on platforms where
68466         -0.0 = 0.0.
68467         * tests/test-sprintf-posix.h (have_minus_zero): New function.
68468         (test_function): Skip tests involving -0.0 on platforms where
68469         -0.0 = 0.0.
68470         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
68471         tests.
68472         * tests/test-printf-posix.h (test_function): Likewise.
68473         * tests/test-printf-posix.output: Remove all -0.0 related results.
68474         Needed for IRIX 6.5.
68475
68476 2007-05-19  Bruno Haible  <bruno@clisp.org>
68477
68478         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68479         printed as "nan0x7fffffff" instead of "nan".
68480         * tests/test-vasprintf-posix.c (test_function): Likewise.
68481         * tests/test-snprintf-posix.h (test_function): Likewise.
68482         * tests/test-sprintf-posix.h (test_function): Likewise.
68483         * tests/test-fprintf-posix.h (NaN): Remove macro.
68484         (test_function): Remove all NaN related tests.
68485         * tests/test-printf-posix.h (NaN): Remove macro.
68486         (test_function): Remove all NaN related tests.
68487         * tests/test-printf-posix.output: Remove all NaN related results.
68488         Needed for IRIX 6.5.
68489
68490 2007-05-19  Bruno Haible  <bruno@clisp.org>
68491
68492         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
68493         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
68494
68495 2007-05-19  Bruno Haible  <bruno@clisp.org>
68496
68497         * lib/float_.h: New file.
68498         * m4/float_h.m4: New file.
68499         * modules/float: New file.
68500         * modules/isnanl (Dependencies): Add float.
68501         * modules/isnanl-nolibm (Dependencies): Likewise.
68502         * modules/mathl (Dependencies): Likewise.
68503         * modules/printf-frexpl (Dependencies): Likewise.
68504         * modules/signbit (Dependencies): Likewise.
68505         * modules/vasnprintf (Dependencies): Likewise.
68506         * doc/headers/float.texi: Update.
68507
68508 2007-05-19  Jim Meyering  <jim@meyering.net>
68509
68510         * lib/utimens.c (gl_futimens): Rename from futimens,
68511         now that glibc-2.6 declares futimens.
68512         * lib/utimens.h: Likewise.
68513
68514 2007-05-19  Bruno Haible  <bruno@clisp.org>
68515
68516         Avoid test failures on mingw.
68517         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
68518         * tests/test-printf-posix.sh: Likewise.
68519         * tests/test-vfprintf-posix.sh: Likewise.
68520         * tests/test-vprintf-posix.sh: Likewise.
68521
68522 2007-05-19  Bruno Haible  <bruno@clisp.org>
68523
68524         Fix *printf result for NaN, Inf, -0.0 on mingw.
68525         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
68526         * lib/vasnprintf.c: Include math.h and isnan.h.
68527         (is_infinite_or_zero): New function.
68528         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
68529         values in the %f, %F, %e, %E, %g, %G directives.
68530         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
68531         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68532         gl_PRINTF_INFINITE and test its result. Invoke
68533         gl_PREREQ_VASNPRINTF_INFINITE.
68534         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68535         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68536         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68537         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68538         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68539         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68540         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68541         * doc/functions/fprintf.texi: Update.
68542         * doc/functions/printf.texi: Update.
68543         * doc/functions/snprintf.texi: Update.
68544         * doc/functions/sprintf.texi: Update.
68545         * doc/functions/vfprintf.texi: Update.
68546         * doc/functions/vprintf.texi: Update.
68547         * doc/functions/vsnprintf.texi: Update.
68548         * doc/functions/vsprintf.texi: Update.
68549
68550 2007-05-19  Bruno Haible  <bruno@clisp.org>
68551
68552         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
68553         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
68554         Instead of multiplying with 10^k, set extra_zeroes to k.
68555         (scale10_round_long_double): Remove function.
68556
68557 2007-05-18  Bruno Haible  <bruno@clisp.org>
68558
68559         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
68560         introduced on 2007-05-06.
68561
68562 2007-05-18  Bruno Haible  <bruno@clisp.org>
68563
68564         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
68565         %g directives.
68566         * tests/test-vasprintf-posix.c (test_function): Likewise.
68567         * tests/test-snprintf-posix.h (test_function): Likewise.
68568         * tests/test-sprintf-posix.h (test_function): Likewise.
68569
68570 2007-05-18  Bruno Haible  <bruno@clisp.org>
68571
68572         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
68573         (strmatch): New function.
68574         (test_function): Test the %f directive on numbers of various exponents.
68575         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
68576         (strmatch): New function.
68577         (test_function): Test the %f directive on numbers of various exponents.
68578         * tests/test-snprintf-posix.h (strmatch): New function.
68579         (test_function): Test the %f directive on numbers of various exponents.
68580         * tests/test-sprintf-posix.h (strmatch): New function.
68581         (test_function): Test the %f directive on numbers of various exponents.
68582         * tests/test-snprintf-posix.c (SIZEOF): New macro.
68583         * tests/test-sprintf-posix.c (SIZEOF): New macro.
68584         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
68585         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
68586
68587 2007-05-18  Bruno Haible  <bruno@clisp.org>
68588
68589         Add support for 'long double' number output.
68590         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
68591         * lib/vasnprintf.c: Include math.h and float+.h.
68592         (mp_limb_t): New type.
68593         (GMP_LIMB_BITS): New macro.
68594         (mp_twolimb_t): New type.
68595         (GMP_TWOLIMB_BITS): New macro.
68596         (mpn_t): New type.
68597         (multiply, divide, convert_to_decimal, decode_long_double,
68598         scale10_round_long_double, scale10_round_decimal_long_double,
68599         floorlog10l): New functions.
68600         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
68601         for the %f, %F, %e, %E, %g, %G directives.
68602         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
68603         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68604         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
68605         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
68606         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68607         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68608         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68609         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68610         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68611         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68612         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68613         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
68614         * modules/snprintf-posix (Depends-on): Likewise.
68615         * modules/sprintf-posix (Depends-on): Likewise.
68616         * modules/vasnprintf-posix (Depends-on): Likewise.
68617         * modules/vasprintf-posix (Depends-on): Likewise.
68618         * modules/vfprintf-posix (Depends-on): Likewise.
68619         * modules/vsnprintf-posix (Depends-on): Likewise.
68620         * modules/vsprintf-posix (Depends-on): Likewise.
68621         * modules/vasnprintf (Files): Add lib/float+.h.
68622         * doc/functions/fprintf.texi: Update.
68623         * doc/functions/printf.texi: Update.
68624         * doc/functions/snprintf.texi: Update.
68625         * doc/functions/sprintf.texi: Update.
68626         * doc/functions/vfprintf.texi: Update.
68627         * doc/functions/vprintf.texi: Update.
68628         * doc/functions/vsnprintf.texi: Update.
68629         * doc/functions/vsprintf.texi: Update.
68630
68631 2007-05-18  Bruno Haible  <bruno@clisp.org>
68632
68633         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
68634
68635 2007-05-18  Bruno Haible  <bruno@clisp.org>
68636
68637         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
68638         for printing 64-bit integers. Needed for mingw.
68639
68640 2007-05-18  Bruno Haible  <bruno@clisp.org>
68641
68642         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68643         gl_FUNC_FREXPL_WORKS.
68644         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
68645
68646 2007-05-18  Bruno Haible  <bruno@clisp.org>
68647
68648         * modules/frexpl-nolibm-tests: New file.
68649
68650         * modules/frexpl-nolibm: New file.
68651         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
68652
68653 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68654
68655         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
68656         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68657         GCC 4.2, which otherwise issues a lot of warnings.
68658         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
68659         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
68660         Likewise.
68661         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
68662         * modules/iconv_open (iconv.h): Likewise.
68663         * modules/locale (locale.h): Likewise.
68664         * modules/netinet_in (netinet/in.h): Likewise.
68665         * modules/sys_select (sys_select.h): Likewise.
68666         * modules/sys_socket (sys/socket.h): Likewise.
68667         * modules/sys_stat (sys/stat.h): Likewise.
68668         * modules/sysexits (sysexits.h): Likewise.
68669         * modules/unistd (unistd.h): Likewise.
68670
68671 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68672
68673         * modules/closein-tests (Makefile.am): Distribute
68674         `test-closein.sh'.
68675
68676 2007-05-17  Bruno Haible  <bruno@clisp.org>
68677
68678         * tests/test-printf-posix.output: Renamed from
68679         tests/test-fprintf-posix.out.
68680         * modules/fprintf-posix-tests: Update.
68681         * modules/printf-posix-tests: Update.
68682         * modules/vfprintf-posix-tests: Update.
68683         * modules/vprintf-posix-tests: Update.
68684         * tests/test-fprintf-posix.sh: Update.
68685         * tests/test-printf-posix.sh: Update.
68686         * tests/test-vfprintf-posix.sh: Update.
68687         * tests/test-vprintf-posix.sh: Update.
68688         Reported by Ralf Wildenhues.
68689
68690 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68691
68692         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
68693         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68694         GCC 4.2, which otherwise issues a lot of warnings.
68695         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
68696         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
68697         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
68698         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
68699         it should no longer be needed.
68700         * lib/string_.h: Likewise.
68701         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
68702         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
68703         * modules/inttypes (inttypes.h): Likewise.
68704         * modules/math (math.h): Likewise.
68705         * modules/search (search.h): Likewise.
68706         * modules/signal (signal.h): Likewise.
68707         * modules/stdint (stdint.h): Likewise.
68708         * modules/stdio (stdio.h): Likewise.
68709         * modules/stdlib (stdlib.h): Likewise.
68710         * modules/string (string.h): Likewise.
68711         * modules/sys_time (sys/time.h): Likewise.
68712         * modules/time (time.h): Likewise.
68713         * modules/wchar (wchar.h): Likewise.
68714         * modules/wctype (wtype.h): Likewise.
68715
68716 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
68717
68718         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
68719
68720 2007-05-13  Bruno Haible  <bruno@clisp.org>
68721
68722         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
68723         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68724         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
68725         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68726         (gl_PREREQ_STRTOK_R): Don't require it here.
68727
68728 2007-05-13  Bruno Haible  <bruno@clisp.org>
68729
68730         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
68731         when used in C++ mode.
68732
68733 2007-05-12  Bruno Haible  <bruno@clisp.org>
68734
68735         * lib/linebuffer.h: Tweak doc.
68736         * lib/linebuffer.c: Likewise.
68737
68738 2007-05-12  James Youngman  <jay@gnu.org>
68739
68740         * lib/linebuffer.c (readlinebuffer_delim): New function,
68741         like readlinebuffer, but use a caller-specified delimiter.
68742         (readlinebuffer): Just call readlinebuffer_delim with '\n'
68743         as the delimiter.
68744         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
68745
68746 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68747
68748         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
68749         * modules/openat (Files): Remove openat-die.c.
68750         (Depends-on): Add openat-die.
68751         * modules/openat-die: New module.
68752
68753 2007-05-06  Bruno Haible  <bruno@clisp.org>
68754
68755         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
68756         Update with info about Cygwin.
68757         * doc/functions/fprintf.texi: Update.
68758         * doc/functions/printf.texi: Update.
68759         * doc/functions/snprintf.texi: Update.
68760         * doc/functions/sprintf.texi: Update.
68761         * doc/functions/vfprintf.texi: Update.
68762         * doc/functions/vprintf.texi: Update.
68763         * doc/functions/vsnprintf.texi: Update.
68764         * doc/functions/vsprintf.texi: Update.
68765         Reported by Eric Blake.
68766
68767 2007-05-06  Bruno Haible  <bruno@clisp.org>
68768
68769         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
68770         padding ourselves for the floating-point directives.
68771         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
68772         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
68773         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68774         gl_PRINTF_FLAG_ZERO and test its result. Invoke
68775         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
68776         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68777         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68778         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68779         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68780         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68781         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68782         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68783         * tests/test-snprintf-posix.h (test_function): Also check the width
68784         and some flags in the %f directive.
68785         * tests/test-sprintf-posix.h (test_function): Likewise.
68786         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68787         * tests/test-vasprintf-posix.c (test_function): Likewise.
68788         * doc/functions/fprintf.texi: Update.
68789         * doc/functions/printf.texi: Update.
68790         * doc/functions/snprintf.texi: Update.
68791         * doc/functions/sprintf.texi: Update.
68792         * doc/functions/vfprintf.texi: Update.
68793         * doc/functions/vprintf.texi: Update.
68794         * doc/functions/vsnprintf.texi: Update.
68795         * doc/functions/vsprintf.texi: Update.
68796
68797 2007-05-06  Bruno Haible  <bruno@clisp.org>
68798
68799         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
68800         pass the ' flag character to sprintf or snprintf.
68801         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
68802         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
68803         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68804         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
68805         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
68806         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68807         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68808         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68809         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68810         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68811         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68812         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68813         * tests/test-snprintf-posix.h (test_function): Also check the grouping
68814         flag.
68815         * tests/test-sprintf-posix.h (test_function): Likewise.
68816         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68817         * tests/test-vasprintf-posix.c (test_function): Likewise.
68818         * doc/functions/fprintf.texi: Update.
68819         * doc/functions/printf.texi: Update.
68820         * doc/functions/snprintf.texi: Update.
68821         * doc/functions/sprintf.texi: Update.
68822         * doc/functions/vfprintf.texi: Update.
68823         * doc/functions/vprintf.texi: Update.
68824         * doc/functions/vsnprintf.texi: Update.
68825         * doc/functions/vsprintf.texi: Update.
68826
68827 2007-05-01  Bruno Haible  <bruno@clisp.org>
68828
68829         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
68830
68831 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
68832
68833         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
68834         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
68835
68836 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68837
68838         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
68839         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
68840         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
68841
68842 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
68843
68844         * lib/argp-help.c (struct hol_entry): New member `ord'.
68845         (HOL_ENTRY_PTRCMP): Use ord for comparison
68846         (hol_sort): Initialize ord.
68847
68848 2007-05-01  Bruno Haible  <bruno@clisp.org>
68849
68850         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
68851         Reported by Eric Blake.
68852         * doc/gnulib.texi (Function Substitutes): Update.
68853
68854 2007-05-01  Bruno Haible  <bruno@clisp.org>
68855
68856         * doc/functions.texi: Remove file, now redundant through
68857         doc/functions/*.texi.
68858
68859 2007-05-01  Bruno Haible  <bruno@clisp.org>
68860
68861         * modules/argp (Depends-on): Add sleep.
68862
68863 2007-05-01  Bruno Haible  <bruno@clisp.org>
68864
68865         * modules/sleep-tests: New file.
68866         * tests/test-sleep.c: New file.
68867
68868         * modules/sleep: New file.
68869         * lib/sleep.c: New file.
68870         * m4/sleep.m4: New file.
68871         * lib/unistd_.h (sleep): New declaration.
68872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
68873         HAVE_SLEEP.
68874         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
68875         * doc/functions/sleep.texi: Document the sleep module.
68876
68877 2007-05-01  Bruno Haible  <bruno@clisp.org>
68878
68879         * lib/sigprocmask.h: Remove file.
68880         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
68881         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
68882         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
68883         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
68884         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
68885         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
68886         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
68887         HAVE_SIGSET_T as a shell variable.
68888         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
68889         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
68890         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
68891         (Depends-on): Add signal. Remove verify.
68892         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
68893         (Include): Mention <signal.h> instead of sigprocmask.h.
68894         * NEWS: Mention the change.
68895         * lib/fatal-signal.c: Don't include sigprocmask.h.
68896
68897 2007-05-01  Bruno Haible  <bruno@clisp.org>
68898
68899         * modules/signal: New file.
68900         * lib/signal_.h: New file.
68901         * m4/signal_h.m4: New file.
68902
68903 2007-05-01  Bruno Haible  <bruno@clisp.org>
68904
68905         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
68906         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
68907         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
68908         HAVE_WCTYPE_CTMP_BUG into wctype.h.
68909
68910 2007-05-01  Bruno Haible  <bruno@clisp.org>
68911
68912         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
68913         configure time.
68914         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
68915         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
68916         * modules/sys_stat (Makefile.am): Substitute their values into
68917         sys/stat.h.
68918
68919 2007-05-01  Bruno Haible  <bruno@clisp.org>
68920
68921         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
68922         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
68923         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
68924
68925 2007-05-01  Bruno Haible  <bruno@clisp.org>
68926
68927         * doc/header/assert.texi: Undo last change: don't mention the gnulib
68928         'assert' module here.
68929
68930 2007-05-01  Bruno Haible  <bruno@clisp.org>
68931
68932         * doc/functions/*.texi: New files.
68933         * doc/functions/google-ranking.txt: New file.
68934         * doc/gnulib.texi (Function Substitutes): New chapter.
68935         (ctime, inet_ntoa): Remove sections.
68936         * doc/ctime.texi: Remove file.
68937         * doc/inet_ntoa.texi: Remove file.
68938         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
68939         dependencies.
68940         (%.info): New rule, specifying a --reference-limit.
68941
68942 2007-05-01  Bruno Haible  <bruno@clisp.org>
68943
68944         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
68945
68946 2007-05-01  Bruno Haible  <bruno@clisp.org>
68947
68948         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
68949         the portability of 'mkdir' to mingw systems.
68950
68951 2007-05-01  Bruno Haible  <bruno@clisp.org>
68952
68953         * doc/headers/google-ranking.txt: New file.
68954
68955 2007-04-30  Eric Blake  <ebb9@byu.net>
68956
68957         Prefer fseeko to fseek.
68958         * modules/getpass (Depends-on): Add fseeko.
68959         * lib/getpass.c (getpass): Use fseeko, not fseek.
68960
68961 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
68962
68963         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
68964         assumes the sorting is stable, while most qsort implementations
68965         are not.  Use argument addresses to ensure they never compare as
68966         equal.
68967
68968         * tests/test-argp-2.sh (usage-indent test): Fix output
68969         (func_compare): Restore diff options
68970         * tests/test-argp.c: Restore #include "progname.h"
68971
68972 2007-04-29  Bruno Haible  <bruno@clisp.org>
68973
68974         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
68975         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68976         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
68977         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68978         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
68979         (configure.ac): Define CHECK_SNPRINTF_POSIX.
68980         (TESTS, check_PROGRAMS): Add test-snprintf.
68981         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
68982         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
68983         (TESTS, check_PROGRAMS): Add test-vsnprintf.
68984         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
68985         assertions that fail on HP-UX, OSF/1, or IRIX.
68986         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
68987
68988 2007-04-29  Bruno Haible  <bruno@clisp.org>
68989
68990         * MODULES.html.sh (posix_functions): Remove 'contents'.
68991
68992 2007-04-29  Karl Berry  <karl@gnu.org>
68993
68994         * config/srclist.txt (gendocs_template_min): new entry.
68995
68996 2007-04-29  Bruno Haible  <bruno@clisp.org>
68997
68998         Work around fpurge bug on BSD systems.
68999         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
69000         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
69001         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
69002         fpurge to rpl_fpurge if the system already has this function.
69003         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
69004         the case where the system already has this function. Correct invariants
69005         on BSD systems.
69006         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
69007         BSD systems.
69008
69009 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
69010
69011         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
69012         proposed by Sven Verdoolaege.
69013
69014         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
69015         options.
69016         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
69017         (usage and help tests): Update
69018
69019 2007-04-29  Bruno Haible  <bruno@clisp.org>
69020
69021         * tests/test-fflush.c (main): Use a file of size 17, not 10.
69022         Print more information in case of failure. Disable a test on BeOS.
69023
69024 2007-04-29  Bruno Haible  <bruno@clisp.org>
69025
69026         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
69027         This helps debugging on systems on which no gdb is available.
69028
69029 2007-04-29  Bruno Haible  <bruno@clisp.org>
69030
69031         * lib/freading.h: Improve comments.
69032         * lib/fwriting.h: Likewise.
69033         * tests/test-freading.c (main): Don't check freading immediately after
69034         repositioning. Needed for glibc.
69035
69036 2007-04-29  Bruno Haible  <bruno@clisp.org>
69037
69038         * lib/freading.c (freading): Trivial simplification.
69039
69040 2007-04-28  Bruno Haible  <bruno@clisp.org>
69041
69042         * tests/test-fwriting.c (main): Also test the interaction between
69043         fflush and fwriting.
69044         * modules/fwriting-tests (Depends-on): Add fflush.
69045
69046         * tests/test-freading.c (main): Also test the interaction between
69047         fflush and freading.
69048         * modules/freading-tests (Depends-on): Add fflush.
69049
69050 2007-04-28  Bruno Haible  <bruno@clisp.org>
69051
69052         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
69053         fseeko and ftello.
69054         Suggested by Eric Blake.
69055
69056 2007-04-28  Jim Meyering  <jim@meyering.net>
69057
69058         Avoid false-negative in gl_STDINT_H's C99 conformance test.
69059         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
69060         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
69061
69062 2007-04-27  Eric Blake  <ebb9@byu.net>
69063
69064         * doc/headers/assert.texi (assert.h): Document assert module use.
69065
69066 2007-04-27  Bruno Haible  <bruno@clisp.org>
69067
69068         * doc/headers/*.texi: New files.
69069         * doc/gnulib.texi (Header File Substitutes): New chapter.
69070         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
69071         dependencies.
69072         (standards.info ,standards.html, standards.dvi): Update dependencies.
69073         (mostlyclean, clean): New targets.
69074
69075 2007-04-27  Bruno Haible  <bruno@clisp.org>
69076
69077         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
69078         * modules/sysexits (Files, Makefile.am): Update.
69079
69080         * lib/sys_socket_.h: Renamed from lib/socket_.h.
69081         * modules/sys_socket (Files, Makefile.am): Update.
69082
69083         * lib/sys_stat_.h: Renamed from lib/stat_.h.
69084         * modules/sys_stat (Files, Makefile.am): Update.
69085
69086 2007-04-27  Eric Blake  <ebb9@byu.net>
69087
69088         * lib/freading.h: Improve comments.
69089         * lib/fwriting.h: Likewise.
69090         * lib/fflush.c: Likewise.
69091
69092         Fix closein for mingw.
69093         * modules/closein-tests: Add tests for closein.
69094         * tests/test-closein.c: New file.
69095         * tests/test-closein.sh: Likewise.
69096         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
69097         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
69098
69099 2007-04-27  Bruno Haible  <bruno@clisp.org>
69100
69101         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
69102         version is < 6.
69103         * lib/math_.h [__DECC]: Likewise.
69104         * lib/stdio_.h [__DECC]: Likewise.
69105         * lib/stdlib_.h [__DECC]: Likewise.
69106         * lib/string_.h [__DECC]: Likewise.
69107         * lib/time_.h [__DECC]: Likewise.
69108         * lib/wchar_.h [__DECC]: Likewise.
69109         * lib/wctype_.h [__DECC]: Likewise.
69110
69111 2007-04-27  Bruno Haible  <bruno@clisp.org>
69112
69113         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
69114
69115 2007-04-27  Bruno Haible  <bruno@clisp.org>
69116
69117         * lib/fflush.c: Add comments.
69118         * modules/fpurge-tests (Depends-on): Add fflush.
69119         * modules/freadable-tests (Depends-on): Likewise.
69120         * modules/fwritable-tests (Depends-on): Likewise.
69121
69122 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
69123
69124         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
69125         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
69126         Report by Bruno Haible <bruno@clisp.org>.
69127
69128 2007-04-26  Eric Blake  <ebb9@byu.net>
69129
69130         Fix fflush on mingw.
69131         * modules/fflush (Depends-on): Add freading.
69132         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
69133         but unread data.
69134
69135 2007-04-26  Eric Blake  <ebb9@byu.net>
69136         and Bruno Haible  <bruno@clisp.org>
69137
69138         Implement freading and fwriting.
69139         * lib/freading.c: New file.
69140         * lib/freading.h: Likewise.
69141         * m4/freading.m4: Likewise.
69142         * modules/freading: Likewise.
69143         * modules/freading-tests: Likewise.
69144         * tests/test-freading.c: Likewise.
69145         * lib/fwriting.c: New file.
69146         * lib/fwriting.h: Likewise.
69147         * m4/fwriting.m4: Likewise.
69148         * modules/fwriting: Likewise.
69149         * modules/fwriting-tests: Likewise.
69150         * tests/test-fwriting.c: Likewise.
69151         * MODULES.html.sh (File stream based Input/Output): Mention them.
69152
69153 2007-04-26  Bruno Haible  <bruno@clisp.org>
69154
69155         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
69156         'long' when we assume it.
69157         Suggested by Eric Blake.
69158
69159 2007-04-26  Bruno Haible  <bruno@clisp.org>
69160
69161         Ensure fseeko, ftello are declared on glibc systems.
69162         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
69163         * modules/fseeko (configure.ac-early): Likewise.
69164         * modules/ftello (configure.ac-early): Likewise.
69165         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
69166         AC_FUNC_FSEEKO for this.
69167         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
69168         (gl_CHECK_FSEEKO): Remove macro.
69169
69170 2007-04-26  Bruno Haible  <bruno@clisp.org>
69171
69172         * tests/test-fflush.c (main): Also check the ftell result after
69173         fflush and fseek/fseeko.
69174         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
69175         file descriptor position cache in the stream.
69176         * lib/fseeko.c (rpl_fseeko): Likewise.
69177
69178 2007-04-26  Bruno Haible  <bruno@clisp.org>
69179
69180         * modules/fflush-tests (Depends-on): Add fseeko.
69181
69182 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
69183             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69184
69185         * lib/argz_.h: ensure error_t definition is obtained in same
69186         mechanism system argz.h would have.
69187         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
69188         argz facilities are known bad.  Err on the side of caution if
69189         cross-compiling.
69190
69191 2007-04-25  Eric Blake  <ebb9@byu.net>
69192
69193         * lib/fpurge.c (includes): Use stdlib.h for free.
69194         * tests/test-fflush.c (main): Also test fflush-fseeko.
69195
69196 2007-04-25  Bruno Haible  <bruno@clisp.org>
69197
69198         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
69199         * lib/fseeko.c: New file.
69200         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
69201         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
69202         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
69203         gl_FUNC_FSEEKO.
69204         (gl_FUNC_FSEEKO): Invoke it.
69205         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
69206         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
69207         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
69208
69209 2007-04-25  Bruno Haible  <bruno@clisp.org>
69210
69211         * modules/fflush (Depends-on): Add ftello.
69212
69213 2007-04-25  Bruno Haible  <bruno@clisp.org>
69214
69215         * modules/ftello-tests: New file.
69216         * tests/test-ftello.c: New file.
69217
69218         * modules/ftello: New file.
69219         * m4/ftello.m4: New file.
69220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
69221         HAVE_FTELLO.
69222         * lib/stdio_.h (ftello): New declaration.
69223         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
69224         HAVE_FTELLO.
69225
69226 2007-04-25  Bruno Haible  <bruno@clisp.org>
69227
69228         * modules/fseeko-tests: New file.
69229         * tests/test-fseeko.c: New file.
69230
69231         * modules/fseeko: New file.
69232         * m4/fseeko.m4: New file.
69233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
69234         HAVE_FSEEKO.
69235         * lib/stdio_.h (fseeko): New declaration.
69236         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
69237         HAVE_FSEEKO.
69238
69239 2007-04-25  Bruno Haible  <bruno@clisp.org>
69240
69241         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
69242
69243 2007-04-25  Bruno Haible  <bruno@clisp.org>
69244
69245         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
69246         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
69247         * tests/test-unistd.c: Likewise.
69248         * tests/test-fcntl.c: Likewise.
69249
69250 2007-04-23  Eric Blake  <ebb9@byu.net>
69251
69252         * lib/fflush.c: Fix missing include.
69253         Reported by Bruno Haible.
69254
69255 2007-04-23  Bruno Haible  <bruno@clisp.org>
69256
69257         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
69258         Reported by Eric Blake.
69259
69260 2007-04-23  Bruno Haible  <bruno@clisp.org>
69261
69262         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
69263
69264 2007-04-23  Bruno Haible  <bruno@clisp.org>
69265
69266         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
69267
69268 2007-04-23  Bruno Haible  <bruno@clisp.org>
69269
69270         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
69271         Needed on HP-UX 11.
69272
69273 2007-04-16  Eric Blake  <ebb9@byu.net>
69274
69275         Make fflush rely on fpurge.
69276         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
69277         open coding all variants.
69278         * modules/fflush (Depends-on): Add fpurge and unistd.
69279         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
69280         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
69281
69282         Fix --with-tests compilation on cygwin.
69283         * modules/argmatch-tests (Makefile.am): List gnulib library first
69284         in LDADD.
69285         * modules/argp-tests (Makefile.am): Likewise.
69286         * modules/array-list-tests (Makefile.am): Likewise.
69287         * modules/array-oset-tests (Makefile.am): Likewise.
69288         * modules/avltree-list-tests (Makefile.am): Likewise.
69289         * modules/avltree-oset-tests (Makefile.am): Likewise.
69290         * modules/avltreehash-list-tests (Makefile.am): Likewise.
69291         * modules/carray-list-tests (Makefile.am): Likewise.
69292         * modules/dirname-tests (Makefile.am): Likewise.
69293         * modules/frexp-tests (Makefile.am): Likewise.
69294         * modules/isnanl-tests (Makefile.am): Likewise.
69295         * modules/linked-list-tests (Makefile.am): Likewise.
69296         * modules/linkedhash-list-tests (Makefile.am): Likewise.
69297         * modules/lock-tests (Makefile.am): Likewise.
69298         * modules/rbtree-list-tests (Makefile.am): Likewise.
69299         * modules/rbtree-oset-tests (Makefile.am): Likewise.
69300         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
69301         * modules/tls-tests (Makefile.am): Likewise.
69302         * modules/tsearch-tests (Makefile.am): Likewise.
69303         * modules/xvasprintf-tests (Makefile.am): Likewise.
69304
69305         Fix fpurge for cygwin.
69306         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
69307         value.
69308         * modules/fpurge-tests (Depends-on): Clean up trash.
69309
69310 2007-04-16  Simon Josefsson  <simon@josefsson.org>
69311
69312         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
69313
69314         * m4/autobuild.m4: Re-indent.
69315
69316 2007-04-13  Bruno Haible  <bruno@clisp.org>
69317
69318         * modules/fpurge-tests: New file.
69319         * tests/test-fpurge.c: New file.
69320
69321         * modules/fpurge: New file.
69322         * lib/fpurge.h: New file.
69323         * lib/fpurge.c: New file.
69324         * m4/fpurge.m4: New file.
69325
69326 2007-04-13  Bruno Haible  <bruno@clisp.org>
69327
69328         * modules/fbufmode-tests: New file.
69329         * tests/test-fbufmode.c: New file.
69330
69331         * modules/fbufmode: New file.
69332         * lib/fbufmode.h: New file.
69333         * lib/fbufmode.c: New file.
69334         * m4/fbufmode.m4: New file.
69335
69336 2007-04-13  Bruno Haible  <bruno@clisp.org>
69337
69338         * modules/fwritable-tests: New file.
69339         * tests/test-fwritable.c: New file.
69340
69341         * modules/fwritable: New file.
69342         * lib/fwritable.h: New file.
69343         * lib/fwritable.c: New file.
69344         * m4/fwritable.m4: New file.
69345
69346 2007-04-13  Bruno Haible  <bruno@clisp.org>
69347
69348         * modules/freadable-tests: New file.
69349         * tests/test-freadable.c: New file.
69350
69351         * modules/freadable: New file.
69352         * lib/freadable.h: New file.
69353         * lib/freadable.c: New file.
69354         * m4/freadable.m4: New file.
69355
69356 2007-04-13  Bruno Haible  <bruno@clisp.org>
69357
69358         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
69359         MOSTLYCLEANFILES.
69360
69361 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69362
69363         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
69364         gzip bootstrap.conf to avoid dragging in i18n machinery.
69365         (gnulib_tool_option): Use it.
69366
69367 2007-04-13  Bruno Haible  <bruno@clisp.org>
69368
69369         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
69370         %F directives.
69371         * tests/test-vasprintf-posix.c (test_function): Likewise.
69372         * tests/test-snprintf-posix.h (test_function): Likewise.
69373         * tests/test-sprintf-posix.h (test_function): Likewise.
69374         * tests/test-fprintf-posix.h (test_function): Likewise.
69375         * tests/test-printf-posix.h (test_function): Likewise.
69376         * tests/test-fprintf-posix.out: Likewise.
69377
69378 2007-04-13  Bruno Haible  <bruno@clisp.org>
69379
69380         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
69381         * modules/tls-tests (configure.ac): Likewise.
69382         Reported by Arto C. Nirkko <anirkko@insel.ch>.
69383
69384 2007-04-13  Bruno Haible  <bruno@clisp.org>
69385
69386         * lib/tls.c (glthread_tls_get): Fix return type.
69387         Patch by Arto C. Nirkko <anirkko@insel.ch>.
69388
69389 2007-04-12  Eric Blake  <ebb9@byu.net>
69390
69391         * modules/gettime (Depends-on): Remove gettime.
69392         Reported by Dmitry V. Levin.
69393
69394 2007-04-12  Bruno Haible  <bruno@clisp.org>
69395
69396         * modules/fflush (Include): Mention <stdio.h>.
69397         * modules/strtoimax (Include): Mention <inttypes.h>.
69398         * modules/strtoumax (Include): Likewise.
69399
69400 2007-04-12  Eric Blake  <ebb9@byu.net>
69401
69402         * .cvsignore: New file.
69403         * .gitignore: Likewise.
69404
69405 2007-04-12  Bruno Haible  <bruno@clisp.org>
69406
69407         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
69408         not before, since $(LDADD) often contains libgnu.a.
69409         * modules/striconv-tests (test_striconv_LDADD): Likewise.
69410         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
69411         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
69412         Needed on Cygwin.
69413
69414 2007-04-12  Eric Blake  <ebb9@byu.net>
69415
69416         Work around glibc's failure to flush stdin on fclose.
69417         * lib/closein.c (close_stdin): Flush stdin before closing.
69418
69419         Work around glibc's failure to reset seekable stdin on exit.
69420         * modules/closein: New module.
69421         * lib/closein.c: New file.
69422         * lib/closein.h: Likewise.
69423         * m4/closein.m4: Likewise.
69424         * MODULES.html.sh (File stream based Input/Output): Document it.
69425
69426 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69427
69428         * gnulib-tool: Rename generated 'autobuild' script to
69429         'do-autobuild' in --create-megatestdir output.
69430
69431         * doc/gnulib.texi (Build robot for gnulib): Fix.
69432
69433 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69434
69435         * modules/sysexits (Depends-on): Add absolute-header.
69436
69437 2007-04-12  Eric Blake  <ebb9@byu.net>
69438
69439         No need to preserve errno on success.
69440         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
69441         Reported by Bruno Haible.
69442
69443 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69444
69445         * MODULES.html.sh (Support for maintaining and releasing
69446         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
69447
69448 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69449
69450         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
69451
69452 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69453
69454         * modules/autobuild: New module.
69455
69456         * m4/autobuild.m4: New file.
69457
69458 2007-04-11  Bruno Haible  <bruno@clisp.org>
69459
69460         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
69461         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
69462         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
69463         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
69464         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69465         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69466         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69467         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69468         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69469         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69470         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
69471         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69472         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69473         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
69474         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69475         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69476         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
69477         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69478         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69479         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
69480         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69481         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69482         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
69483         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69484         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69485         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
69486         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69487         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69488         Reported by Eric Blake.
69489
69490 2007-04-11  Bruno Haible  <bruno@clisp.org>
69491
69492         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
69493
69494 2007-04-10  Bruno Haible  <bruno@clisp.org>
69495
69496         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
69497         for NaN and Infinity. Needed on FreeBSD 6.1.
69498         * tests/test-vasnprintf-posix.c (test_function): Undo last change
69499         regarding results for "%010a" of Infinity and NaN.
69500         * tests/test-vasprintf-posix.c (test_function): Likewise.
69501         * tests/test-snprintf-posix.h (test_function): Likewise.
69502         * tests/test-sprintf-posix.h (test_function): Likewise.
69503         * tests/test-fprintf-posix.h (test_function): Likewise.
69504         * tests/test-printf-posix.h (test_function): Likewise.
69505         * tests/test-fprintf-posix.out: Likewise.
69506
69507 2007-04-10  Bruno Haible  <bruno@clisp.org>
69508
69509         * modules/locale-tests: New file.
69510         * tests/test-locale.c: New file.
69511
69512         * modules/locale: New file.
69513         * lib/locale_.h: New file.
69514         * m4/locale_h.m4: New file.
69515
69516 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
69517             Bruno Haible  <bruno@clisp.org>
69518
69519         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
69520         be determined, test for availability of the copysignf, copysign,
69521         copysignl functions.
69522         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
69523         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
69524         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
69525
69526 2007-04-09  Eric Blake  <ebb9@byu.net>
69527
69528         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
69529         * modules/stdio (Makefile.am): Support fflush.
69530         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69531         * modules/fflush: New file.
69532         * lib/fflush.c: Likewise.
69533         * m4/fflush.m4: Likewise.
69534         * modules/fflush-tests: New test.
69535         * tests/test-fflush.c: Likewise.
69536         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
69537
69538 2007-04-06  Bruno Haible  <bruno@clisp.org>
69539
69540         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
69541         (VASNPRINTF): Use signbit for faster determination whether to print a
69542         minus sign.
69543         * modules/vasnprintf (Files): Remove lib/float+.h.
69544         * modules/fprintf-posix (Depends-on): Add signbit.
69545         * modules/snprintf-posix (Depends-on): Likewise.
69546         * modules/sprintf-posix (Depends-on): Likewise.
69547         * modules/vasnprintf-posix (Depends-on): Likewise.
69548         * modules/vasprintf-posix (Depends-on): Likewise.
69549         * modules/vfprintf-posix (Depends-on): Likewise.
69550         * modules/vsnprintf-posix (Depends-on): Likewise.
69551         * modules/vsprintf-posix (Depends-on): Likewise.
69552
69553 2007-04-06  Bruno Haible  <bruno@clisp.org>
69554
69555         * tests/test-frexp.c (main): Test also the sign bit of zero results.
69556         * tests/test-frexpl.c (main): Likewise.
69557         * tests/test-ldexpl.c (main): Likewise.
69558         * modules/frexp-tests (Depends-on): Add signbit.
69559         * modules/frexpl-tests (Depdends-on): Likewise.
69560         * modules/ldexpl-tests (Depdends-on): Likewise.
69561
69562 2007-04-06  Bruno Haible  <bruno@clisp.org>
69563
69564         * modules/signbit-tests: New file.
69565         * tests/test-signbit.c: New file.
69566
69567         * modules/signbit: New file.
69568         * lib/signbitf.c: New file.
69569         * lib/signbitd.c: New file.
69570         * lib/signbitl.c: New file.
69571         * m4/signbit.m4: New file.
69572         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
69573         (signbit): New macro.
69574         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
69575         REPLACE_SIGNBIT.
69576         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
69577         REPLACE_FREXPL into math.h.
69578
69579 2007-04-06  Bruno Haible  <bruno@clisp.org>
69580
69581         * modules/isnanf-nolibm-tests: New file.
69582         * tests/test-isnanf.c: New file.
69583
69584         * modules/isnanf-nolibm: New file.
69585         * lib/isnanf.h: New file.
69586         * lib/isnanf.c: New file.
69587         * lib/isnan.c: Consider the USE_FLOAT macro.
69588         * m4/isnanf.m4: New file.
69589
69590 2007-04-06  Bruno Haible  <bruno@clisp.org>
69591
69592         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
69593         (Link): New section.
69594
69595         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
69596
69597 2007-04-06  Bruno Haible  <bruno@clisp.org>
69598
69599         Assume the 'long double' type.
69600         * m4/longdouble.m4: Remove file.
69601         * config/srclist.txt: Don't mention longdouble.m4.
69602         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
69603         * lib/float+.h: Likewise.
69604         * lib/frexp.c: Likewise.
69605         * lib/printf-args.h: Likewise.
69606         * lib/printf-args.c: Likewise.
69607         * lib/printf-frexp.c: Likewise.
69608         * lib/printf-parse.c: Likewise.
69609         * lib/vasnprintf.c: Likewise.
69610         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
69611         * m4/intl.m4: Likewise.
69612         * m4/isnanl.m4: Likewise.
69613         * m4/printf.m4: Likewise.
69614         * m4/printf-frexpl.m4: Likewise.
69615         * m4/vasnprintf.m4: Likewise.
69616         * modules/allocsa (Files): Remove m4/longdouble.m4.
69617         * modules/gettext (Files): Likewise.
69618         * modules/relocatable-prog-wrapper (Files): Likewise.
69619         * modules/vasnprintf (Files): Likewise.
69620         * modules/isnanl (Files): Likewise.
69621         (Include): Simplify.
69622         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
69623         (Include): Simplify.
69624         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
69625         (Include): Simplify.
69626         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
69627         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69628         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
69629         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69630         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69631         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69632         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
69633         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69634         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69635         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69636         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
69637         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69638         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
69639         * tests/test-isnanl.c: Likewise.
69640         * tests/test-snprintf-posix.h: Likewise.
69641         * tests/test-sprintf-posix.h: Likewise.
69642         * tests/test-vasnprintf-posix.c: Likewise.
69643         * tests/test-vasnprintf-posix2.c: Likewise.
69644         * tests/test-vasprintf-posix.c: Likewise.
69645
69646 2007-04-06  Bruno Haible  <bruno@clisp.org>
69647
69648         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
69649         * lib/math_.h [__DECC]: Include the overridden include file through
69650         #include_next, outside the double-inclusion guard.
69651         * lib/stdio_.h [__DECC]: Likewise.
69652         * lib/stdlib_.h [__DECC]: Likewise.
69653         * lib/string_.h [__DECC]: Likewise.
69654         * lib/time_.h [__DECC]: Likewise.
69655         * lib/wchar_.h [__DECC]: Likewise.
69656         * lib/wctype_.h [__DECC]: Likewise.
69657         * lib/inttypes_.h [__DECC]: Likewise.
69658         Reported by Albert Chin <china@thewrittenword.com> in
69659         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
69660
69661 2007-04-04  Eric Blake  <ebb9@byu.net>
69662
69663         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
69664         1.5.x.
69665
69666 2007-04-04  Bruno Haible  <bruno@clisp.org>
69667
69668         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
69669         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
69670
69671 2007-04-04  Bruno Haible  <bruno@clisp.org>
69672
69673         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
69674         results for "%010a" of Infinity and NaN.
69675         * tests/test-vasprintf-posix.c (test_function): Likewise.
69676         * tests/test-snprintf-posix.h (test_function): Likewise.
69677         * tests/test-sprintf-posix.h (test_function): Likewise.
69678         * tests/test-fprintf-posix.h (test_function): Remove these tests.
69679         * tests/test-printf-posix.h (test_function): Likewise.
69680         * tests/test-fprintf-posix.out: Update.
69681         Needed for FreeBSD 6.1.
69682
69683 2007-04-04  Bruno Haible  <bruno@clisp.org>
69684
69685         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
69686         directly used by the gnulib modules nor by gnulib-tool.
69687
69688 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69689
69690         * DEPENDENCIES: Give overall description of version dependency
69691         desirability.  Use more-typical names for apps.
69692         Add shell, coreutils, diffutils, grep, tar, gzip.
69693
69694 2007-04-04  Simon Josefsson  <simon@josefsson.org>
69695
69696         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
69697
69698 2007-04-04  Karl Berry  <karl@gnu.org>
69699
69700         * MODULES.html.sh (func_module): missing '.
69701
69702 2007-04-03  Bruno Haible  <bruno@clisp.org>
69703
69704         * modules/argmatch-tests (Makefile.am): New variable
69705         test_argmatch_LDADD.
69706         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
69707         * modules/array-list-tests (Makefile.am): New variable
69708         test_array_list_LDADD.
69709         * modules/array-oset-tests (Makefile.am): New variable
69710         test_array_oset_LDADD.
69711         * modules/avltree-list-tests (Makefile.am): New variable
69712         test_avltree_list_LDADD.
69713         * modules/avltree-oset-tests (Makefile.am): New variable
69714         test_avltree_oset_LDADD.
69715         * modules/avltreehash-list-tests (Makefile.am): New variable
69716         test_avltreehash_list_LDADD.
69717         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
69718         test_canonicalize_lgpl_LDADD.
69719         * modules/carray-list-tests (Makefile.am): New variable
69720         test_carray_list_LDADD.
69721         * modules/dirname-tests (Makefile.am): New variable
69722         test_dirname_LDADD.
69723         * modules/linked-list-tests (Makefile.am): New variable
69724         test_linked_list_LDADD.
69725         * modules/linkedhash-list-tests (Makefile.am): New variable
69726         test_linkedhash_list_LDADD.
69727         * modules/rbtree-list-tests (Makefile.am): New variable
69728         test_rbtree_list_LDADD.
69729         * modules/rbtree-oset-tests (Makefile.am): New variable
69730         test_rbtree_oset_LDADD.
69731         * modules/rbtreehash-list-tests (Makefile.am): New variable
69732         test_rbtreehash_list_LDADD.
69733         * modules/xvasprintf-tests (Makefile.am): New variable
69734         test_xvasprintf_LDADD.
69735         Reported by Eric Blake.
69736
69737 2007-04-03  Eric Blake  <ebb9@byu.net>
69738
69739         * DEPENDENCIES: Weaken m4 requirements.
69740
69741 2007-04-03  Bruno Haible  <bruno@clisp.org>
69742
69743         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
69744         * modules/isnanl-tests (configure.ac): Likewise.
69745
69746 2007-04-03  Ben Pfaff  <blp@gnu.org>
69747
69748         * modules/iconv_open: Add $(srcdir)/ to source directory
69749         references in Makefile fragments that call gperf, to fix VPATH
69750         builds.
69751
69752 2007-04-03  Bruno Haible  <bruno@clisp.org>
69753
69754         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
69755         * lib/ldexpl.c: Undo last change.
69756
69757 2007-04-03  Bruno Haible  <bruno@clisp.org>
69758
69759         * modules/printf-frexpl (Depends-on): Undo last change.
69760         (Files): Add m4/ldexpl.m4.
69761
69762 2007-04-03  Bruno Haible  <bruno@clisp.org>
69763
69764         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
69765         * modules/isnanl (Link): New section.
69766
69767         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
69768         * modules/frexp (Link): New section.
69769
69770         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
69771         * modules/frexpl (Link): New section.
69772
69773         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
69774         * modules/ldexpl (Link): New section.
69775
69776 2007-04-03  Bruno Haible  <bruno@clisp.org>
69777
69778         * modules/TEMPLATE-EXTENDED: New file.
69779         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
69780
69781 2007-04-03  Bruno Haible  <bruno@clisp.org>
69782
69783         * DEPENDENCIES: New file.
69784         Suggested by Simon Josefsson.
69785
69786 2007-04-03  Bruno Haible  <bruno@clisp.org>
69787
69788         * doc/gnulib.texi: Escape @.
69789
69790 2007-04-03  James Youngman  <jay@gnu.org>
69791         and Paul Eggert  <eggert@cs.ucla.edu>
69792
69793         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
69794         birthtime on all systems that have birthtime, not just those which
69795         use st_birthtimensec rather than st_birthtim.  Putting zero in
69796         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
69797         that the birth time is not available for files on an NFS mount.
69798
69799 2007-04-03  Simon Josefsson  <simon@josefsson.org>
69800
69801         * modules/memxor: Move back from crypto/, suggested by Bruno.
69802         * modules/crypto/hmac-sha1: Fix memxor dependency.
69803
69804         * modules/crypto/gc: Moved from ../.
69805
69806 2007-04-02  Eric Blake  <ebb9@byu.net>
69807
69808         * lib/ldexpl.c (includes): Avoid libm.
69809
69810         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
69811
69812 2007-04-02  Bruno Haible  <bruno@clisp.org>
69813
69814         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
69815         on IRIX.
69816
69817 2007-04-02  Bruno Haible  <bruno@clisp.org>
69818
69819         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
69820         x86 or x86_64 platforms running MacOS X.
69821         Reported by Ryan Schmidt <@ryandesign.com>.
69822
69823 2007-04-02  Bruno Haible  <bruno@clisp.org>
69824
69825         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
69826         i386.
69827
69828 2007-04-01  Simon Josefsson  <simon@josefsson.org>
69829
69830         * modules/crypto/arcfour: Moved from ../.
69831         * modules/crypto/arcfour-tests: Moved from ../.
69832         * modules/crypto/arctwo: Moved from ../.
69833         * modules/crypto/arctwo-tests: Moved from ../.
69834         * modules/crypto/des: Moved from ../.
69835         * modules/crypto/des-tests: Moved from ../.
69836         * modules/crypto/gc-arcfour: Moved from ../.
69837         * modules/crypto/gc-arcfour-tests: Moved from ../.
69838         * modules/crypto/gc-arctwo: Moved from ../.
69839         * modules/crypto/gc-arctwo-tests: Moved from ../.
69840         * modules/crypto/gc-des: Moved from ../.
69841         * modules/crypto/gc-des-tests: Moved from ../.
69842         * modules/crypto/gc-hmac-md5: Moved from ../.
69843         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
69844         * modules/crypto/gc-hmac-sha1: Moved from ../.
69845         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
69846         * modules/crypto/gc-md2: Moved from ../.
69847         * modules/crypto/gc-md2-tests: Moved from ../.
69848         * modules/crypto/gc-md4: Moved from ../.
69849         * modules/crypto/gc-md4-tests: Moved from ../.
69850         * modules/crypto/gc-md5: Moved from ../.
69851         * modules/crypto/gc-md5-tests: Moved from ../.
69852         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
69853         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
69854         * modules/crypto/gc-random: Moved from ../.
69855         * modules/crypto/gc-rijndael: Moved from ../.
69856         * modules/crypto/gc-rijndael-tests: Moved from ../.
69857         * modules/crypto/gc-sha1: Moved from ../.
69858         * modules/crypto/gc-sha1-tests: Moved from ../.
69859         * modules/crypto/gc-tests: Moved from ../.
69860         * modules/crypto/hmac-md5: Moved from ../.
69861         * modules/crypto/hmac-md5-tests: Moved from ../.
69862         * modules/crypto/hmac-sha1: Moved from ../.
69863         * modules/crypto/hmac-sha1-tests: Moved from ../.
69864         * modules/crypto/md2: Moved from ../.
69865         * modules/crypto/md2-tests: Moved from ../.
69866         * modules/crypto/md4: Moved from ../.
69867         * modules/crypto/md4-tests: Moved from ../.
69868         * modules/crypto/md5: Moved from ../.
69869         * modules/crypto/md5-tests: Moved from ../.
69870         * modules/crypto/memxor: Moved from ../.
69871         * modules/crypto/rijndael: Moved from ../.
69872         * modules/crypto/rijndael-tests: Moved from ../.
69873         * modules/crypto/sha1: Moved from ../.
69874
69875 2007-03-30  James Youngman  <jay@gnu.org>
69876
69877         * tests/test-stat-time.c (prepare_test): use chmod() rather than
69878         rename() to change the ctime of a file (because ctime is unaffected
69879         by rename on jfs2 on AIX 5.1).
69880         (main): Start by doing cleanup, in case a previous run failed leaving
69881         test files behind.
69882
69883 2007-03-31  Bruno Haible  <bruno@clisp.org>
69884
69885         Support old proprietary implementations of iconv.
69886         * modules/iconv_open: New file.
69887         * lib/iconv_.h: New file.
69888         * m4/iconv_h.m4: New file.
69889         * lib/iconv_open.c: New file.
69890         * lib/iconv_open-aix.gperf: New file.
69891         * lib/iconv_open-hpux.gperf: New file.
69892         * lib/iconv_open-irix.gperf: New file.
69893         * lib/iconv_open-osf.gperf: New file.
69894         * m4/iconv_open.m4: New file.
69895         * modules/linebreak (Depends-on): Add iconv_open.
69896         * modules/striconv (Depends-on): Likewise.
69897         * modules/striconveh (Depends-on): Likewise.
69898         * modules/unicodeio (Depends-on): Likewise.
69899         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
69900         (iconv_t)(-1).
69901         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
69902         conversion if cd is (iconv_t)(-1).
69903         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
69904         is not possible.
69905
69906 2007-03-31  Bruno Haible  <bruno@clisp.org>
69907
69908         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69909         work on Solaris either. Protect also second use of "autodetect_jp".
69910
69911 2007-03-31  Bruno Haible  <bruno@clisp.org>
69912
69913         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
69914         the function is not present.
69915
69916 2007-03-31  Bruno Haible  <bruno@clisp.org>
69917
69918         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
69919         the function is not present.
69920
69921 2007-03-31  Bruno Haible  <bruno@clisp.org>
69922
69923         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
69924         a bug in HP-UX iconv_open().
69925
69926 2007-03-31  Bruno Haible  <bruno@clisp.org>
69927
69928         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
69929         (Mathematics <math.h>): New section, add fpieee.
69930         (Input/output <stdio.h>): Add fseterr.
69931         (Mathematics <math.h>): New section, add printf-frexp.
69932         (Container data structures): Add sublist.
69933         (Core language properties): Add fpucw, inline.
69934         (Functions for greatest-width integer types <inttypes.h>): Add
69935         imaxabs, imaxdiv, inttypes.
69936         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
69937         isnanl-nolibm, ldexp.
69938         (Mathematics <math.h>): New section, add printf-frexpl.
69939         (Support for systems lacking POSIX:2001): Add fprintf-posix,
69940         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
69941         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
69942         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
69943         (Unicode string functions): Add unistr/u*-mbtoucr.
69944         (Java): Add javacomp-script, javaexec-script.
69945         (C#): Add csharpcomp-script, csharpexec-script.
69946         (Support for building libraries and executables): Add havelib,
69947         relocatable-*.
69948         (Support for maintaining and releasing projects): Renamed from
69949         'Support for maintaining and release projects'. Add announce-gen.
69950
69951 2007-03-31  Bruno Haible  <bruno@clisp.org>
69952
69953         * README: Talk primarily about git.
69954         (git and CVS): Renamed from CVS.
69955         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
69956         gnulib is available through git.
69957         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
69958
69959 2007-03-30  Bruno Haible  <bruno@clisp.org>
69960
69961         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
69962         * lib/poll_.h: Likewise.
69963         * lib/stat_.h: Likewise.
69964         * lib/sys_time_.h: Likewise.
69965         * lib/sysexit_.h: Likewise.
69966         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
69967         * lib/stdbool_.h: Likewise.
69968         * lib/byteswap_.h: Add double-inclusion guard.
69969
69970 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
69971
69972         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
69973
69974 2007-03-30  Karl Berry  <karl@gnu.org>
69975
69976         * config/srclist-update: double space after USA in the license
69977         substitution, since that's how it's usually (?) written.
69978
69979 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
69980
69981         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
69982         reported by Bruno Haible.
69983
69984 2007-03-29  Bruno Haible  <bruno@clisp.org>
69985
69986         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
69987         a bug in AIX iconv().
69988
69989 2007-03-29  Bruno Haible  <bruno@clisp.org>
69990
69991         * modules/ldexpl-tests: New file.
69992         * tests/test-ldexpl.c: New file.
69993
69994 2007-03-29  Bruno Haible  <bruno@clisp.org>
69995
69996         * lib/ldexpl.c: Include fpucw.h.
69997         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
69998         multiplication.
69999         * modules/ldexpl (Depends-on): Add fpucw.
70000
70001 2007-03-29  Bruno Haible  <bruno@clisp.org>
70002
70003         * modules/ldexpl: New file.
70004         * m4/ldexpl.m4: New file.
70005         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
70006         set.
70007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
70008         REPLACE_LDEXPL.
70009         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
70010         REPLACE_LDEXPL.
70011         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70012         gl_FUNC_LDEXPL_WORKS.
70013         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
70014         * modules/mathl (Files): Remove lib/ldexpl.c.
70015         (Depends-on): Add ldexpl.
70016
70017 2007-03-29  Bruno Haible  <bruno@clisp.org>
70018
70019         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
70020
70021 2007-03-29  Bruno Haible  <bruno@clisp.org>
70022
70023         * tests/test-striconveh.c (main): Don't assume that a direct conversion
70024         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
70025         and possibly also HP-UX.
70026         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70027         work on AIX, IRIX, HP-UX, OSF/1.
70028         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
70029         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
70030         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
70031         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
70032         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
70033         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
70034
70035 2007-03-29  Bruno Haible  <bruno@clisp.org>
70036
70037         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
70038
70039 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70040
70041         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
70042         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
70043
70044 2007-03-29  Eric Blake  <ebb9@byu.net>
70045
70046         * lib/acl-internal.h: Remove redundant include.
70047         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
70048         Cygwin when a file is locked.
70049
70050 2007-03-29  Bruno Haible  <bruno@clisp.org>
70051
70052         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
70053         file.
70054         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
70055
70056 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70057
70058         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
70059         try to remove a parent directory if the child couldn't be removed
70060         (except for the first rmdir, which could fail because the child
70061         doesn't exist).  Problem reported by Jeff Blaine in
70062         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
70063
70064 2007-03-28  Bruno Haible  <bruno@clisp.org>
70065
70066         * lib/striconveh.c (utf8conv_carefully): New function.
70067         (mem_cd_iconveh_internal): Invoke it.
70068
70069 2007-03-28  Bruno Haible  <bruno@clisp.org>
70070
70071         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
70072         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
70073         input.
70074         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
70075         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
70076         unistr/u8-uctomb.
70077
70078 2007-03-28  Bruno Haible  <bruno@clisp.org>
70079
70080         * modules/unistr/u8-mbtoucr: New file.
70081         * lib/unistr/u8-mbtoucr.c: New file.
70082         * modules/unistr/u16-mbtoucr: New file.
70083         * lib/unistr/u16-mbtoucr.c: New file.
70084         * modules/unistr/u16-mbtoucr: New file.
70085         * lib/unistr/u16-mbtoucr.c: New file.
70086         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
70087
70088 2007-03-27  Simon Josefsson  <simon@josefsson.org>
70089             Bruno Haible  <bruno@clisp.org>
70090
70091         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
70092         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
70093         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
70094
70095         * m4/stdio_h.m4: Add stubs for vasprintf too.
70096
70097         * modules/stdio: Support vasprintf in sed command.
70098
70099         * modules/vasprintf: Depend on stdio for prototypes.  Remove
70100         vasprintf.h.  Add stdio module indicator.
70101
70102         * lib/stdio_.h: Declare asprintf and vasprintf, based on
70103         vasprintf.h.
70104
70105         * lib/vasprintf.h: File removed.
70106
70107         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
70108         * lib/vasprintf.c: Ditto.
70109         * lib/xvasprintf.c: Ditto.
70110         * tests/test-vasprintf-posix.c: Ditto.
70111         * tests/test-vasprintf.c: Ditto.
70112
70113 2007-03-27  Bruno Haible  <bruno@clisp.org>
70114
70115         Make vasnprintf multithread-safe.
70116         * lib/vasnprintf.c (decimal_point_char): New function.
70117         (VASNPRINTF): Use it.
70118         Suggested by Simon Josefsson.
70119
70120 2007-03-27  Eric Blake  <ebb9@byu.net>
70121
70122         Support sub-second birthtime on cygwin.
70123         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
70124         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
70125         (get_stat_birthtime): Also work with st_birthtim.
70126
70127 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
70128
70129         * lib/stat-time.h (USE_BIRTHTIME): Remove.
70130         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
70131         (get_stat_birthtime_ns): Do not try to use "spare" fields.
70132         (get_stat_birthtime_ns): Simplify compile-time tests.
70133         (get_stat_birthtime): Change the API to look like
70134         get_stat_mtime etc., except return a negative tv_nsec on error.
70135         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
70136         Don't check for "spare" fields.
70137         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
70138         or for struct stat.st_birthtime, as these tests aren't used.
70139         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
70140
70141 2007-03-27  Bruno Haible  <bruno@clisp.org>
70142
70143         * lib/stat-time.h: Include <sys/stat.h>.
70144
70145 2007-03-27  James Youngman  <jay@gnu.org>
70146
70147         * lib/stat-time.h (get_stat_birthtime): New function for
70148           retrieving st_birthtime as provided by UFS2 (hence *BSD).
70149         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
70150           and its variants.
70151         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
70152         * modules/stat-time-test: New file.
70153         * tests/test-stat-time.c: New test, devised by Bruno Haible.
70154
70155 2007-03-26  Bruno Haible  <bruno@clisp.org>
70156
70157         Better support of signalling NaNs.
70158         * lib/atanl.c: Include isnanl.h.
70159         (atanl): Perform test for NaN at the beginning of the function and
70160         through a call to isnanl.
70161         * lib/cosl.c: Include isnanl.h.
70162         (cosl): Perform test for NaN at the beginning of the function and
70163         through a call to isnanl.
70164         * lib/ldexpl.c: Include isnanl.h.
70165         (ldexpl): Perform test for NaN through a call to isnanl.
70166         * lib/logl.c: Include isnanl.h.
70167         (logl): Perform test for NaN at the beginning of the function and
70168         through a call to isnanl.
70169         * lib/sinl.c: Include isnanl.h.
70170         (sinl): Perform test for NaN at the beginning of the function and
70171         through a call to isnanl.
70172         * lib/sqrtl.c: Include isnanl.h.
70173         (sqrtl): Perform test for NaN at the beginning of the function and
70174         through a call to isnanl.
70175         * lib/tanl.c: Include isnanl.h.
70176         (tanl): Perform test for NaN at the beginning of the function and
70177         through a call to isnanl.
70178         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
70179         * modules/mathl (Depends-on): Add isnanl.
70180
70181 2007-03-26  Eric Blake  <ebb9@byu.net>
70182
70183         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
70184         regression in logic sense of previous patch.
70185
70186 2007-03-26  Bruno Haible  <bruno@clisp.org>
70187
70188         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
70189         unportable shell command "if ! ...".
70190         Reported by Ralf Wildenhues.
70191
70192 2007-03-25  Bruno Haible  <bruno@clisp.org>
70193
70194         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
70195         <sysexits.h> file, and only add EX_CONFIG.
70196         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
70197         absolute file name and whether it is sufficient. Substitute also
70198         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
70199         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
70200         ABSOLUTE_SYSEXITS_H into sysexits.h.
70201
70202 2007-03-25  Bruno Haible  <bruno@clisp.org>
70203
70204         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
70205         hints is NULL.
70206
70207 2007-03-25  Bruno Haible  <bruno@clisp.org>
70208
70209         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
70210         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
70211
70212 2007-03-25  Bruno Haible  <bruno@clisp.org>
70213
70214         * lib/vasnprintf.c: Include langinfo.h.
70215         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
70216         multithread-safe.
70217         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
70218         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
70219         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70220         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70221         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70222         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70223         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70224         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
70225         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70226         Reported by Simon Josefsson.
70227
70228 2007-03-25  Bruno Haible  <bruno@clisp.org>
70229
70230         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
70231         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
70232         * modules/vasnprintf (Depends-on): Add stdint.
70233
70234 2007-03-25  Bruno Haible  <bruno@clisp.org>
70235
70236         * modules/fpieee: New file.
70237         * m4/fpieee.m4: New file.
70238         * modules/isnan-nolibm (Depends-on): Add fpieee.
70239         * modules/isnanl-nolibm (Depends-on): Add fpieee.
70240         * modules/isnanl (Depends-on): Add fpieee.
70241
70242 2007-03-25  Bruno Haible  <bruno@clisp.org>
70243
70244         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
70245
70246 2007-03-25  Bruno Haible  <bruno@clisp.org>
70247
70248         Avoid test failures on IRIX 6.5.
70249         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
70250         (main): Use it.
70251         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
70252         macros.
70253         (main): Use them.
70254
70255 2007-03-25  Bruno Haible  <bruno@clisp.org>
70256
70257         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
70258         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
70259         exists but doesn't work.
70260         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
70261         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
70262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
70263         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
70264         math.h.
70265
70266 2007-03-25  Bruno Haible  <bruno@clisp.org>
70267
70268         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
70269         returns inf. Needed on IRIX 6.5.
70270
70271 2007-03-25  Bruno Haible  <bruno@clisp.org>
70272
70273         * tests/test-frexpl.c: Include isnanl-nolibm.h.
70274         (main): Use isnanl instead of x != x idiom.
70275         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
70276
70277         * tests/test-frexp.c: Include isnan.h.
70278         (main): Use isnan instead of x != x idiom.
70279         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
70280
70281 2007-03-25  Bruno Haible  <bruno@clisp.org>
70282
70283         * tests/test-frexp.c (NaN): New function/macro.
70284         (main): Use it instead of 0.0 / 0.0.
70285         * tests/test-isnan.c (NaN): New function/macro.
70286         (main): Use it instead of 0.0 / 0.0.
70287         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
70288         (test_function): Use it instead of 0.0 / 0.0.
70289         * tests/test-vasprintf-posix.c (NaN): New function/macro.
70290         (test_function): Use it instead of 0.0 / 0.0.
70291         * tests/test-snprintf-posix.h (NaN): New function/macro.
70292         (test_function): Use it instead of 0.0 / 0.0.
70293         * tests/test-sprintf-posix.h (NaN): New function/macro.
70294         (test_function): Use it instead of 0.0 / 0.0.
70295         * tests/test-fprintf-posix.h (NaN): New function/macro.
70296         (test_function): Use it instead of 0.0 / 0.0.
70297         * tests/test-printf-posix.h (NaN): New function/macro.
70298         (test_function): Use it instead of 0.0 / 0.0.
70299
70300         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
70301
70302 2007-03-25  Bruno Haible  <bruno@clisp.org>
70303
70304         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
70305
70306 2007-03-25  Bruno Haible  <bruno@clisp.org>
70307
70308         * lib/regexec.c (merge_state_with_log): Make static.
70309
70310 2007-03-25  Bruno Haible  <bruno@clisp.org>
70311
70312         * lib/trigl.c (kernel_rem_pio2): Make static.
70313
70314 2007-03-25  Bruno Haible  <bruno@clisp.org>
70315
70316         * lib/sincosl.c (sincosl_table): Make static.
70317
70318 2007-03-25  Bruno Haible  <bruno@clisp.org>
70319
70320         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
70321         if the compiler does not support C99.
70322
70323 2007-03-25  Bruno Haible  <bruno@clisp.org>
70324
70325         * modules/time (Makefile.am): Ensure all rule action lines start with a
70326         tab.
70327
70328 2007-03-24  Bruno Haible  <bruno@clisp.org>
70329
70330         * modules/tsearch-tests: New file.
70331         * tests/test-tsearch.sh: New file.
70332         * tests/test-tsearch.c: New file, mostly copied from glibc.
70333
70334         * modules/search-tests: New file.
70335         * tests/test-search.c: New file.
70336
70337         * modules/search: New file.
70338         * lib/search_.h: New file, incorporating lib/tsearch.h.
70339         * m4/search_h.m4: New file.
70340         * lib/tsearch.h: Remove file.
70341         * lib/tsearch.c: Include search.h instead of tsearch.h.
70342         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
70343         HAVE_TSEARCH.
70344         * modules/tsearch (Files): Remove lib/tsearch.h.
70345         (Depends-on): Add search.
70346         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
70347         (Include): Change tsearch.h into search.h.
70348
70349 2007-03-24  Bruno Haible  <bruno@clisp.org>
70350
70351         * modules/fpucw: New file.
70352         * lib/fpucw.h: New file.
70353         * lib/frexp.c: Include fpucw.h.
70354         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70355         (FUNC): Use them.
70356         * lib/printf-frexp.c: Include fpucw.h.
70357         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70358         (FUNC): Use them.
70359         * lib/vasnprintf.c: Include fpucw.h.
70360         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
70361         'long double' calculations.
70362         * tests/test-frexpl.c: Include fpucw.h.
70363         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70364         * tests/test-printf-frexpl.c: Include fpucw.h.
70365         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70366         * modules/frexpl (Depends-on): Add fpucw.
70367         * modules/printf-frexpl (Depends-on): Likewise.
70368         * modules/fprintf-posix (Depends-on): Likewise.
70369         * modules/snprintf-posix (Depends-on): Likewise.
70370         * modules/sprintf-posix (Depends-on): Likewise.
70371         * modules/vasnprintf-posix (Depends-on): Likewise.
70372         * modules/vasprintf-posix (Depends-on): Likewise.
70373         * modules/vfprintf-posix (Depends-on): Likewise.
70374         * modules/vsnprintf-posix (Depends-on): Likewise.
70375         * modules/vsprintf-posix (Depends-on): Likewise.
70376         * modules/frexpl-tests (Depends-on): Likewise.
70377         * modules/printf-frexpl-tests (Depends-on): Likewise.
70378
70379 2007-03-24  Bruno Haible  <bruno@clisp.org>
70380
70381         * lib/float+.h: New file.
70382         * lib/isnan.c: Include float+.h.
70383         (SIZE): New macro.
70384         (FUNC): Compare only SIZE bytes of the value.
70385         * lib/vasnprintf.c: Include float+.h.
70386         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
70387         SIZEOF_LDBL or SIZEOF_DBL bytes.
70388         * modules/isnan-nolibm (Files): Add lib/float+.h.
70389         * modules/isnanl-nolibm (Files): Add lib/float+.h.
70390         * modules/isnanl (Files): Add lib/float+.h.
70391         * modules/vasnprintf (Files): Add lib/float+.h.
70392
70393 2007-03-24  Bruno Haible  <bruno@clisp.org>
70394
70395         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
70396         include isnanl-nolibm.h.
70397
70398 2007-03-24  Bruno Haible  <bruno@clisp.org>
70399
70400         * tests/test-read-file.c (main): Don't produce spurious output for
70401         expected situations. Make the test fail if it encountered unexpected
70402         results.
70403
70404 2007-03-24  Bruno Haible  <bruno@clisp.org>
70405
70406         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
70407         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
70408
70409 2007-03-24  Bruno Haible  <bruno@clisp.org>
70410
70411         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
70412
70413 2007-03-24  Bruno Haible  <bruno@clisp.org>
70414
70415         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
70416         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
70417
70418         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
70419         * modules/utf8-ucs4: Turn into a symbolic link to module
70420         unistr/u8-mbtouc.
70421
70422         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
70423         utf8-ucs4-unsafe.
70424         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
70425         unistr/u8-mbtouc-unsafe.
70426
70427         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
70428         * modules/utf16-ucs4: Turn into a symbolic link to module
70429         unistr/u16-mbtouc.
70430
70431         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
70432         utf16-ucs4-unsafe.
70433         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
70434         unistr/u16-mbtouc-unsafe.
70435
70436         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
70437         * modules/ucs4-utf8: Turn into a symbolic link to module
70438         unistr/u8-ubtomb.
70439
70440         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
70441         * modules/ucs4-utf16: Turn into a symbolic link to module
70442         unistr/u16-ubtomb.
70443
70444 2007-03-24  Bruno Haible  <bruno@clisp.org>
70445
70446         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
70447         Enable the function only if HAVE_INLINE.
70448         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
70449         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70450         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
70451         Enable the function only if HAVE_INLINE.
70452         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
70453         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70454         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
70455         Enable the function only if HAVE_INLINE.
70456         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
70457         Enable the function only if HAVE_INLINE.
70458         * modules/utf8-ucs4: Update.
70459         * modules/utf8-ucs4-unsafe: Update.
70460         * modules/utf16-ucs4: Update.
70461         * modules/utf16-ucs4-unsafe: Update.
70462         * modules/ucs4-utf8: Update.
70463         * modules/ucs4-utf16: Update.
70464
70465 2007-03-24  Bruno Haible  <bruno@clisp.org>
70466
70467         * lib/utf8-ucs4.h: Remove file.
70468         * lib/utf8-ucs4-unsafe.h: Remove file.
70469         * lib/utf16-ucs4.h: Remove file.
70470         * lib/utf16-ucs4-unsafe.h: Remove file.
70471         * lib/ucs4-utf8.h: Remove file.
70472         * lib/ucs4-utf16.h: Remove file.
70473         * lib/unistr.h: Include their previous contents.
70474         * m4/utf-ucs4.m4: Remove file.
70475         * m4/ucs4-utf.m4: Remove file.
70476         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
70477         (Depends-on): Add unistr/base.
70478         (configure.ac): Remove gl_UTF_UCS4.
70479         (Makefile.am): Update.
70480         (Include): Change to unistr.h.
70481         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
70482         (Depends-on): Add unistr/base.
70483         (configure.ac): Remove gl_UTF_UCS4.
70484         (Makefile.am): Update.
70485         (Include): Change to unistr.h.
70486         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
70487         (Depends-on): Add unistr/base.
70488         (configure.ac): Remove gl_UTF_UCS4.
70489         (Makefile.am): Update.
70490         (Include): Change to unistr.h.
70491         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
70492         (Depends-on): Add unistr/base.
70493         (configure.ac): Remove gl_UTF_UCS4.
70494         (Makefile.am): Update.
70495         (Include): Change to unistr.h.
70496         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
70497         (Depends-on): Add unistr/base.
70498         (configure.ac): Remove gl_UCS4_UTF.
70499         (Makefile.am): Update.
70500         (Include): Change to unistr.h.
70501         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
70502         (Depends-on): Add unistr/base.
70503         (configure.ac): Remove gl_UCS4_UTF.
70504         (Makefile.am): Update.
70505         (Include): Change to unistr.h.
70506         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
70507         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
70508         utf8-ucs4-unsafe.h.
70509         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
70510         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
70511         utf16-ucs4-unsafe.h.
70512         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
70513         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
70514         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
70515         * lib/unistr/u8-strchr.c: Likewise.
70516         * lib/unistr/u8-strrchr.c: Likewise.
70517         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
70518         * lib/unistr/u16-strchr.c: Likewise.
70519         * lib/unistr/u16-strrchr.c: Likewise.
70520         * lib/striconveh.c: Update.
70521         * lib/linebreak.c: Update.
70522
70523 2007-03-24  Bruno Haible  <bruno@clisp.org>
70524
70525         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
70526         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
70527
70528 2007-03-22  Bruno Haible  <bruno@clisp.org>
70529
70530         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
70531
70532 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70533
70534         * MODULES.html.sh (File system functions): New module write-any-file.
70535         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
70536         * m4/write-any-file.m4: New files.
70537
70538 2007-03-23  Eric Blake  <ebb9@byu.net>
70539
70540         * gnulib-tool: Rearrange space-tab sequences, since some editors
70541         like to eat them.
70542
70543 2007-03-23  Eric Blake  <ebb9@byu.net>
70544
70545         * lib/version-etc.c (version_etc_va): Update license wording to
70546         be more concise.  Recommended by Richard Stallman.
70547
70548 2007-03-22  Bruno Haible  <bruno@clisp.org>
70549
70550         * lib/poll.c (MSG_PEEK): New fallback definition.
70551
70552 2007-03-22  Bruno Haible  <bruno@clisp.org>
70553
70554         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
70555         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
70556         (main): Update.
70557         Fixes a compilation error on BeOS.
70558
70559 2007-03-22  Bruno Haible  <bruno@clisp.org>
70560
70561         * modules/frexpl-tests: New file.
70562         * tests/test-frexpl.c: New file.
70563
70564         * modules/frexpl: New file.
70565         * m4/frexpl.m4: New file.
70566         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
70567         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
70568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
70569         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
70570         (Depends-on): Add frexpl. Remove isnanl-nolibm.
70571         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
70572
70573 2007-03-22  Bruno Haible  <bruno@clisp.org>
70574
70575         * lib/frexpl.c: Share code with lib/frexp.c.
70576         * modules/mathl (Files): Add lib/frexp.c.
70577         (Depends-on): Add isnanl-nolibm.
70578
70579 2007-03-22  Bruno Haible  <bruno@clisp.org>
70580
70581         * modules/printf-frexp (Files): Add m4/frexp.m4.
70582         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
70583         only if the found frexp function actually works.
70584
70585 2007-03-22  Bruno Haible  <bruno@clisp.org>
70586
70587         * lib/frexp.c: Remove older implementation that uses divisions.
70588
70589 2007-03-21  Bruno Haible  <bruno@clisp.org>
70590
70591         * modules/frexp-tests: New file.
70592         * tests/test-frexp.c: New file.
70593
70594         * modules/frexp: New file.
70595         * lib/frexp.c: New file.
70596         * m4/frexp.m4: New file.
70597         * lib/math_.h (frexp): New declaration.
70598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
70599         REPLACE_FREXP.
70600         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
70601
70602 2007-03-21  Bruno Haible  <bruno@clisp.org>
70603
70604         * modules/isnanl-tests: New file.
70605         * tests/test-isnanl.c: New file.
70606
70607         * modules/isnanl: New file.
70608         * lib/isnanl.h: New file.
70609         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
70610         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
70611         gl_FUNC_ISNANL_WORKS.
70612         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
70613         New macros.
70614
70615 2007-03-21  Bruno Haible  <bruno@clisp.org>
70616
70617         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
70618         lib/isnanl.h.
70619         (Include): Update.
70620         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
70621         * lib/vasnprintf.c: Update.
70622         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
70623         tests/test-isnanl.h, remove tests/test-isnanl.c.
70624         (Makefile.am): Update.
70625         * tests/test-isnanl-nolibm.c: New file.
70626         * tests/test-isnanl.h: New file.
70627         * tests/test-isnanl.c: Remove file.
70628
70629 2007-03-21  Jim Meyering  <jim@meyering.net>
70630
70631         When trying to open ".", treat ESTALE like EACCES.
70632         * lib/savewd.c (savewd_save): Resort to forking not just upon
70633         failure with EACCES, but also when errno is ESTALE.
70634
70635 2007-03-20  Bruno Haible  <bruno@clisp.org>
70636
70637         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
70638         Needed on AIX 5.1. Reported by Matthew Woehlke.
70639
70640 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70641
70642         Suggestions by Bruno Haible:
70643         * lib/acl-internal.h: Include "gettext.h" rather than rolling
70644         our own.
70645         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
70646         * modules/acl (Depends-on): Add gettext.
70647
70648 2007-03-19  Bruno Haible  <bruno@clisp.org>
70649
70650         * modules/iconvme: Remove file.
70651         * lib/iconvme.h: Remove file.
70652         * lib/iconvme.c: Remove file.
70653         * m4/iconvme.m4: Remove file.
70654
70655 2007-03-19  Bruno Haible  <bruno@clisp.org>
70656
70657         * doc/relocatable-maint.texi: Break long shell script line.
70658         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70659
70660 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70661
70662         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
70663         handle file_has_acl.
70664         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
70665         * lib/acl.c: Move header inclusions and related macro defns into
70666         lib/acl-internal.h.
70667         (S_ISLNK): Remove defn, since that's now done for us.
70668         (file_has_acl): Move to lib/file-has-acl.c.
70669         Call acl_trivial if available.  This is the crucial part of the fix.
70670         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
70671         shared within the library.  Rewrite a bit, partly to make it compatible
70672         with the GNU coding style.
70673         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
70674         Remove unnecessary double-quotes.
70675         Don't test for acl_to_text; the build will catch that.
70676         Replace acl_entries if it doesn't exist and it is needed.
70677         Check for -lsec and acl_trivial (as used on Solaris 10).
70678         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
70679         lib/file-has-acl.c.
70680         (Depends-on): Add sys_stat, for S_ISLNK.
70681
70682 2007-03-19  Ben Pfaff  <blp@gnu.org>
70683
70684         * doc/gnulib.texi: Fix typos.
70685         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70686
70687 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70688
70689         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
70690         If size is zero here, buf must be zero.
70691
70692 2007-03-19  Simon Josefsson  <simon@josefsson.org>
70693
70694         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
70695         <bruno@clisp.org>.
70696
70697 2007-03-18  Bruno Haible  <bruno@clisp.org>
70698
70699         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
70700         Suggested by Eric Blake.
70701
70702 2007-03-18  Ben Pfaff  <blp@gnu.org>
70703
70704         * doc/relocatable.texi: Recommend using as prefix a directory
70705         that does not exist and will never be created.  Based on
70706         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
70707         and others.
70708
70709 2007-03-17  Bruno Haible  <bruno@clisp.org>
70710
70711         * lib/fchownat.c: Include lchown.h.
70712
70713 2007-03-17  Bruno Haible  <bruno@clisp.org>
70714
70715         Fix endless loop when the given allocated size was > INT_MAX.
70716         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
70717         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
70718         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
70719         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
70720         * lib/sprintf.c (sprintf): Likewise.
70721
70722 2007-03-17  Bruno Haible  <bruno@clisp.org>
70723
70724         * tests/test-argp-2.sh (func_compare): Output a context diff.
70725
70726 2007-03-17  Bruno Haible  <bruno@clisp.org>
70727
70728         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
70729         locale's decimal-point character.
70730
70731 2007-03-17  Bruno Haible  <bruno@clisp.org>
70732
70733         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
70734         before comparing it. Needed because on some platforms (e.g. x86) a
70735         'long double' occupies less bytes than sizeof (long double).
70736
70737 2007-03-17  Bruno Haible  <bruno@clisp.org>
70738
70739         * tests/test-crc.c (main): Make printf statements 64-bit clean.
70740         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
70741         * tests/test-getaddrinfo.c (simple): Likewise.
70742         * tests/test-read-file.c (main): Likewise.
70743
70744 2007-03-17  Bruno Haible  <bruno@clisp.org>
70745
70746         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
70747
70748 2007-03-17  Bruno Haible  <bruno@clisp.org>
70749
70750         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
70751         unused variable.
70752
70753 2007-03-17  Bruno Haible  <bruno@clisp.org>
70754
70755         * tests/test-c-strcasecmp.c: Include c-strcase.h.
70756         * tests/test-c-strncasecmp.c: Likewise.
70757
70758 2007-03-17  Bruno Haible  <bruno@clisp.org>
70759
70760         * modules/stdlib (Depends-on): Add unistd.
70761         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
70762         Needed for MacOS X 10.3.
70763
70764 2007-03-17  Bruno Haible  <bruno@clisp.org>
70765
70766         * lib/unistr/u-strdup.h: Include <stdlib.h>.
70767
70768 2007-03-17  Bruno Haible  <bruno@clisp.org>
70769
70770         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
70771
70772 2007-03-17  Bruno Haible  <bruno@clisp.org>
70773
70774         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
70775         to reflect files copied from gnulib (with or without modifications).
70776         Suggested by Jim Meyering.
70777
70778 2007-03-17  Eric Blake  <ebb9@byu.net>
70779
70780         * NEWS: Document stdlib change from 2007-02-18.
70781
70782 2007-03-17  Jim Meyering  <jim@meyering.net>
70783
70784         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
70785         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
70786         someone uses a name containing shell meta-characters.
70787         Reported by Alfred M. Szmidt.
70788
70789         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
70790
70791 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70792
70793         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
70794         and copy gettext configuration files only if configure.ac contains
70795         a use of AM_GNU_GETTEXT_VERSION.
70796
70797 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70798
70799         * build-aux/bootstrap (gnulib_name): New variable.
70800         (gnulib_tool_options): Use it.
70801
70802 2007-03-13  Simon Josefsson  <simon@josefsson.org>
70803
70804         * tests/test-des.c: Use new namespace.
70805
70806 2007-03-15  Bruno Haible  <bruno@clisp.org>
70807
70808         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
70809         Reported by James Youngman <jay@gnu.org>.
70810
70811 2007-03-15  Bruno Haible  <bruno@clisp.org>
70812
70813         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
70814         declared prototype. Needed with cc on OSF/1 5.1.
70815
70816 2007-03-15  Bruno Haible  <bruno@clisp.org>
70817
70818         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
70819         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
70820         (struct gl_list_implementation): Add dispose_fn argument to the
70821         'create_empty', 'create' methods.
70822         (struct gl_list_impl_base): Add field 'dispose_fn'.
70823         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
70824         argument.
70825         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
70826         dispose_fn argument.
70827         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
70828         dispose_fn on the dropped values.
70829         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
70830         dispose_fn argument.
70831         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
70832         dropped values.
70833         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
70834         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70835         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
70836         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70837         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
70838         argument.
70839         (gl_tree_list_free): Call dispose_fn on the dropped values.
70840         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
70841         the dropped values.
70842         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70843         Add dispose_fn argument.
70844         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
70845         Call dispose_fn on the dropped values.
70846         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
70847         Add dispose_fn argument.
70848         (gl_sublist_create): Initialize the 'dispose_fn' field.
70849         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
70850         * tests/test-array_list.c (main): Update.
70851         * tests/test-carray_list.c (main): Update.
70852         * tests/test-avltree_list.c (main): Update.
70853         * tests/test-rbtree_list.c (main): Update.
70854         * tests/test-avltreehash_list.c (main): Update.
70855         * tests/test-rbtreehash_list.c (main): Update.
70856         * tests/test-linked_list.c (main): Update.
70857         * tests/test-linkedhash_list.c (main): Update.
70858         * tests/test-array_oset.c (main): Update.
70859
70860 2007-03-15  Bruno Haible  <bruno@clisp.org>
70861
70862         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
70863         (gl_oset_create_empty): Add dispose_fn argument.
70864         (struct gl_oset_implementation): Add dispose_fn argument to
70865         'create_empty' method.
70866         (struct gl_oset_impl_base): Add dispose_fn field.
70867         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
70868         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
70869         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
70870         values.
70871         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
70872         (gl_tree_oset_free): Call dispose_fn on the dropped values.
70873         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70874         dropped value.
70875         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70876         dropped value.
70877         * tests/test-array_oset.c (main): Update.
70878         * tests/test-avltree_oset.c (main): Update.
70879         * tests/test-rbtree_oset.c (main): Update.
70880         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
70881
70882 2007-03-13  Bruno Haible  <bruno@clisp.org>
70883
70884         * tests/test-stdbool.c (i): Update after last patch.
70885
70886 2007-03-12  Bruno Haible  <bruno@clisp.org>
70887
70888         * lib/quotearg.c: Include <wctype.h> early, before the definition of
70889         the iswprint macro. Needed on Solaris 2.5.1.
70890
70891 2007-03-12  Bruno Haible  <bruno@clisp.org>
70892
70893         * tests/test-printf-frexp.c (main): Declare x as volatile.
70894
70895 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70896
70897         * doc/gnulib.texi (Build robot for gnulib): New section.
70898
70899 2007-03-12  Jim Meyering  <jim@meyering.net>
70900
70901         * build-aux/bootstrap: New file.
70902         * build-aux/bootstrap.conf: New file, from coreutils.
70903
70904 2007-03-11  Bruno Haible  <bruno@clisp.org>
70905
70906         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
70907
70908 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70909
70910         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
70911         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
70912         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
70913
70914 2007-03-11  Bruno Haible  <bruno@clisp.org>
70915
70916         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
70917         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
70918
70919 2007-03-11  Bruno Haible  <bruno@clisp.org>
70920
70921         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
70922         formula. Needed for SunPRO C 5.0.
70923
70924 2007-03-11  Bruno Haible  <bruno@clisp.org>
70925
70926         * modules/long-options (Depends-on): Add getopt.
70927
70928 2007-03-11  Bruno Haible  <bruno@clisp.org>
70929
70930         * modules/modechange (Depends-on): Add stdbool.
70931
70932 2007-03-11  Bruno Haible  <bruno@clisp.org>
70933
70934         * modules/i-ring (Depends-on): Add stdbool.
70935
70936 2007-03-11  Bruno Haible  <bruno@clisp.org>
70937
70938         * modules/gc-des (Depends-on): Add stdbool.
70939
70940 2007-03-11  Bruno Haible  <bruno@clisp.org>
70941
70942         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
70943
70944 2007-03-11  Bruno Haible  <bruno@clisp.org>
70945
70946         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
70947
70948 2007-03-11  Bruno Haible  <bruno@clisp.org>
70949
70950         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
70951
70952 2007-03-11  Bruno Haible  <bruno@clisp.org>
70953
70954         * lib/vasnprintf.c (sprintf): Undefine.
70955
70956 2007-03-11  Bruno Haible  <bruno@clisp.org>
70957
70958         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
70959         initializers in SunPRO C and Compaq C compilers.
70960
70961 2007-03-11  Bruno Haible  <bruno@clisp.org>
70962
70963         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
70964         decrementing code ANSI C compliant.
70965
70966 2007-03-11  Bruno Haible  <bruno@clisp.org>
70967
70968         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
70969         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
70970
70971 2007-03-11  Bruno Haible  <bruno@clisp.org>
70972
70973         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
70974         <stdbool.h> substitute doesn't pass.
70975
70976 2007-03-11  Bruno Haible  <bruno@clisp.org>
70977
70978         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
70979
70980 2007-03-11  Bruno Haible  <bruno@clisp.org>
70981
70982         * gnulib-tool (func_create_megatestdir): Create also an autobuild
70983         script, for submission to autobuild.josefsson.org.
70984
70985 2007-03-10  Bruno Haible  <bruno@clisp.org>
70986
70987         * modules/canonicalize-lgpl-tests: New file.
70988         * tests/test-canonicalize-lgpl.sh: New file.
70989         * tests/test-canonicalize-lgpl.c: New file.
70990
70991         * modules/c-strcase-tests: New file.
70992         * tests/test-c-strcase.sh: New file.
70993         * tests/test-c-strcasecmp.c: New file.
70994         * tests/test-c-strncasecmp.c: New file.
70995
70996         * modules/atexit-tests: New file.
70997         * tests/test-atexit.sh: New file.
70998         * tests/test-atexit.c: New file.
70999
71000 2007-03-10  Bruno Haible  <bruno@clisp.org>
71001
71002         * tests/test-binary-io.sh: Use temporary filenames that are not so
71003         likely to clash with those of other tests (in a parallel make).
71004         * tests/test-binary-io.c: Likewise.
71005
71006 2007-03-10  Bruno Haible  <bruno@clisp.org>
71007
71008         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
71009         fallback; use #error instead.
71010         Suggested by Simon Josefsson.
71011
71012 2007-03-10  Bruno Haible  <bruno@clisp.org>
71013
71014         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
71015         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
71016         first and the last.
71017
71018 2007-03-10  Bruno Haible  <bruno@clisp.org>
71019
71020         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
71021
71022 2007-03-10  Bruno Haible  <bruno@clisp.org>
71023
71024         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
71025         "make distcheck".
71026         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
71027         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
71028         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
71029
71030 2007-03-10  Bruno Haible  <bruno@clisp.org>
71031
71032         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
71033         variable.
71034         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
71035         variable.
71036
71037 2007-03-09  Eric Blake  <ebb9@byu.net>
71038         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
71039
71040         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
71041         types are not being provided by gnulib.
71042         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
71043         types are supported.
71044
71045 2007-03-10  Bruno Haible  <bruno@clisp.org>
71046
71047         * lib/stdio_.h (__attribute__): New macro.
71048         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
71049         vsprintf): Specify __attribute__ __format__ for GCC.
71050         Suggested by Eric Blake.
71051
71052 2007-03-09  Bruno Haible  <bruno@clisp.org>
71053
71054         * modules/printf-posix-tests: New file.
71055         * tests/test-printf-posix.sh: New file.
71056         * tests/test-printf-posix.c: New file.
71057
71058         * modules/printf-posix: New file.
71059         * lib/printf.c: New file.
71060         * m4/printf-posix-rpl.m4: New file.
71061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
71062         REPLACE_PRINTF.
71063         * lib/stdio_.h (printf): New declaration.
71064         (format, __format__, ____printf____, ____scanf____, ____strftime____,
71065         ____strfmon____): New macros.
71066         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
71067         REPLACE_PRINTF.
71068
71069 2007-03-09  Bruno Haible  <bruno@clisp.org>
71070
71071         * tests/test-vasnprintf-posix2.sh: New file.
71072         * tests/test-vasnprintf-posix2.c: New file.
71073         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
71074         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
71075         (Makefile.am): Activate test-vasnprintf-posix2.sh.
71076
71077         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
71078         a locale dependent decimal point, rather than always '.'.
71079
71080 2007-03-09  Eric Blake  <ebb9@byu.net>
71081
71082         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
71083         spite of platforms like Tandem/NSK that define it to -1.
71084
71085 2007-03-08  Bruno Haible  <bruno@clisp.org>
71086
71087         * modules/vprintf-posix-tests: New file.
71088         * tests/test-vprintf-posix.sh: New file.
71089         * tests/test-vprintf-posix.c: New file.
71090         * tests/test-printf-posix.h: New file.
71091
71092         * modules/vprintf-posix: New file.
71093         * lib/vprintf.c: New file.
71094         * m4/vprintf-posix.m4: New file.
71095         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
71096         REPLACE_VPRINTF.
71097         * lib/stdio_.h (vprintf): New declaration.
71098         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
71099         REPLACE_VPRINTF.
71100
71101 2007-03-08  Bruno Haible  <bruno@clisp.org>
71102
71103         * modules/fprintf-posix-tests: New file.
71104         * tests/test-fprintf-posix.sh: New file.
71105         * tests/test-fprintf-posix.c: New file.
71106
71107         * modules/fprintf-posix: New file.
71108         * lib/fprintf.c: New file.
71109         * m4/fprintf-posix.m4: New file.
71110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
71111         REPLACE_FPRINTF.
71112         * lib/stdio_.h (fprintf): New declaration.
71113         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
71114         REPLACE_FPRINTF.
71115
71116 2007-03-08  Bruno Haible  <bruno@clisp.org>
71117
71118         * modules/vfprintf-posix-tests: New file.
71119         * tests/test-vfprintf-posix.sh: New file.
71120         * tests/test-vfprintf-posix.c: New file.
71121         * tests/test-fprintf-posix.h: New file.
71122         * tests/test-fprintf-posix.out: New file.
71123
71124         * modules/vfprintf-posix: New file.
71125         * lib/vfprintf.c: New file.
71126         * m4/vfprintf-posix.m4: New file.
71127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
71128         REPLACE_VFPRINTF.
71129         * lib/stdio_.h (vfprintf): New declaration.
71130         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
71131         REPLACE_VFPRINTF.
71132
71133 2007-03-08  Bruno Haible  <bruno@clisp.org>
71134
71135         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
71136
71137 2007-03-08  Bruno Haible  <bruno@clisp.org>
71138
71139         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
71140         instead of 'expr' invocations.
71141         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71142         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71143         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71144         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
71145         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71146         Suggested by Paul Eggert.
71147
71148 2007-03-08  Bruno Haible  <bruno@clisp.org>
71149
71150         * modules/fseterr-tests: New file.
71151         * tests/test-fseterr.c: New file.
71152
71153         * modules/fseterr: New file.
71154         * lib/fseterr.h: New file.
71155         * lib/fseterr.c: New file.
71156
71157 2007-03-08  Bruno Haible  <bruno@clisp.org>
71158
71159         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
71160         * lib/getopt_.h: Likewise.
71161         * lib/mbswidth.h: Likewise.
71162         * lib/setenv.h: Likewise.
71163         * lib/vasnprintf.h: Likewise.
71164         * lib/vasprintf.h: Likewise.
71165         * lib/verror.h: Likewise.
71166         * lib/xsetenv.h: Likewise.
71167         * lib/xvasprintf.h: Likewise.
71168
71169 2007-03-08  Jim Meyering  <jim@meyering.net>
71170
71171         * users.txt: Add parted.
71172
71173         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
71174
71175 2007-03-07  Bruno Haible  <bruno@clisp.org>
71176
71177         * m4/printf.m4: Make the shell script snippets copy&pastable.
71178
71179 2007-03-02  Bruno Haible  <bruno@clisp.org>
71180
71181         * lib/netinet_in_.h: New file.
71182         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
71183         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
71184         * modules/netinet_in (Files): Add lib/netinet_in_.h.
71185         (Depends-on): Add absolute-header.
71186         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
71187         into netinet/in.h.
71188
71189 2007-03-03  Bruno Haible  <bruno@clisp.org>
71190
71191         * lib/sys_select_.h: New file.
71192         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
71193         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
71194         * modules/sys_select (Files): Add lib/sys_select_.h.
71195         (Depends-on): Add absolute-header.
71196         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
71197         into sys/select.h.
71198
71199 2007-03-02  Bruno Haible  <bruno@clisp.org>
71200
71201         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
71202         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
71203         values.
71204         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
71205         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
71206         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
71207         * modules/sys_socket (Depends-on): Add absolute-header.
71208         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
71209         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
71210         (Include): Remove requirement of inclusion of <sys/types.h>.
71211
71212 2007-03-02  Bruno Haible  <bruno@clisp.org>
71213
71214         * lib/byteswap_.h (bswap_32): Fix formula.
71215
71216 2007-03-06  Bruno Haible  <bruno@clisp.org>
71217
71218         * modules/sprintf-posix-tests: New file.
71219         * tests/test-sprintf-posix.c: New file.
71220
71221         * modules/sprintf-posix: New file.
71222         * lib/sprintf.c: New file.
71223         * m4/sprintf-posix.m4: New file.
71224         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
71225         REPLACE_SPRINTF.
71226         * lib/stdio_.h (sprintf): New declaration.
71227         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
71228         REPLACE_SPRINTF.
71229
71230 2007-03-06  Bruno Haible  <bruno@clisp.org>
71231
71232         * modules/vsprintf-posix-tests: New file.
71233         * tests/test-vsprintf-posix.c: New file.
71234         * tests/test-sprintf-posix.h: New file.
71235
71236         * modules/vsprintf-posix: New file.
71237         * lib/vsprintf.c: New file.
71238         * m4/vsprintf-posix.m4: New file.
71239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
71240         REPLACE_VSPRINTF.
71241         * lib/stdio_.h (vsprintf): New declaration.
71242         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
71243         REPLACE_VSPRINTF.
71244
71245 2007-03-06  Bruno Haible  <bruno@clisp.org>
71246
71247         * modules/vsnprintf (Depend-on): Remove minmax.
71248
71249 2007-03-06  Bruno Haible  <bruno@clisp.org>
71250
71251         * modules/snprintf-posix-tests: New file.
71252         * tests/test-snprintf-posix.c: New file.
71253
71254         * modules/snprintf-posix: New file.
71255         * m4/snprintf-posix.m4: New file.
71256         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
71257         gl_FUNC_SNPRINTF.
71258         (gl_FUNC_SNPRINTF): Invoke it.
71259         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
71260         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
71261         is set.
71262         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
71263
71264 2007-03-06  Bruno Haible  <bruno@clisp.org>
71265
71266         * modules/vsnprintf-posix-tests: New file.
71267         * tests/test-vsnprintf-posix.c: New file.
71268         * tests/test-snprintf-posix.h: New file.
71269
71270         * modules/vsnprintf-posix: New file.
71271         * m4/vsnprintf-posix.m4: New file.
71272         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
71273         gl_FUNC_VSNPRINTF.
71274         (gl_FUNC_VSNPRINTF): Invoke it.
71275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
71276         * lib/stdio_.h (vsnprintf): Define as a replacement if
71277         REPLACE_VSNPRINTF is set.
71278         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
71279
71280 2007-03-06  Bruno Haible  <bruno@clisp.org>
71281
71282         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
71283         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
71284
71285 2007-03-06  Bruno Haible  <bruno@clisp.org>
71286
71287         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
71288         (asinl): Declare also if HAVE_DECL_ASINL is set.
71289         (atanl): Declare also if HAVE_DECL_ATANL is set.
71290         (ceill): Declare also if HAVE_DECL_CEILL is set.
71291         (cosl): Declare also if HAVE_DECL_COSL is set.
71292         (expl): Declare also if HAVE_DECL_EXPL is set.
71293         (floorl): Declare also if HAVE_DECL_FLOORL is set.
71294         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
71295         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
71296         (logl): Declare also if HAVE_DECL_LOGL is set.
71297         (sinl): Declare also if HAVE_DECL_SINL is set.
71298         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
71299         (tanl): Declare also if HAVE_DECL_TANL is set.
71300         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
71301         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
71302         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
71303         declaration of frexpl, ldexpl.
71304         * modules/printf-frexpl (Depends-on): Add math.
71305         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
71306
71307 2007-03-05  Bruno Haible  <bruno@clisp.org>
71308
71309         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
71310         frexpl and ldexpl are declared.
71311         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
71312
71313 2007-03-05  Bruno Haible  <bruno@clisp.org>
71314
71315         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
71316         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
71317
71318 2007-03-05  Bruno Haible  <bruno@clisp.org>
71319
71320         * lib/stdio_.h: Include <stddef.h>.
71321
71322 2007-03-05  Bruno Haible  <bruno@clisp.org>
71323
71324         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
71325
71326 2007-03-05  Bruno Haible  <bruno@clisp.org>
71327
71328         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
71329         NetBSD 4, from Ralf Wildenhues.
71330
71331 2007-03-04  Bruno Haible  <bruno@clisp.org>
71332
71333         * lib/vasprintf.h: Update #if logic for the case when the functions
71334         exist but are overridden.
71335
71336 2007-03-04  Bruno Haible  <bruno@clisp.org>
71337
71338         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
71339         implementations: glibc-2.4 and MacOS X 10.3.
71340         * tests/test-vasnprintf-posix.c (test_function): Test also the case
71341         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
71342         * tests/test-vasprintf-posix.c (test_function): Likewise.
71343
71344 2007-03-04  Bruno Haible  <bruno@clisp.org>
71345
71346         * modules/vasprintf-posix-tests: New file.
71347         * tests/test-vasprintf-posix.c: New file.
71348
71349         * modules/vasprintf-posix: New file.
71350         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
71351         defined.
71352         * m4/vasprintf-posix.m4: New file.
71353         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
71354         gl_FUNC_VASPRINTF.
71355         (gl_FUNC_VASPRINTF): Invoke it.
71356         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
71357         here.
71358         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
71359
71360 2007-03-04  Bruno Haible  <bruno@clisp.org>
71361
71362         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
71363         REPLACE_GETTIMEOFDAY.
71364         * modules/sys_time (Makefile.am): Likewise.
71365         * m4/sys_time_h.m4: Likewise.
71366         * m4/gettimeofday.m4: Likewise.
71367
71368 2007-03-04  Bruno Haible  <bruno@clisp.org>
71369
71370         * modules/vasnprintf-posix-tests: New file.
71371         * tests/test-vasnprintf-posix.c: New file.
71372
71373         * modules/vasnprintf-posix: New file.
71374         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
71375         printf-frexpl.h.
71376         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
71377         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
71378         REPLACE_VASNPRINTF is defined.
71379         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
71380         gl_FUNC_VASNPRINTF.
71381         (gl_FUNC_VASNPRINTF): Invoke it.
71382         * m4/vasnprintf-posix.m4: New file.
71383         * m4/printf.m4: New file.
71384
71385 2007-03-04  Bruno Haible  <bruno@clisp.org>
71386
71387         Compile progreloc.c only if --enable-relocatable is specified.
71388         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
71389         if --enable-relocatable was specified.
71390         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
71391         lib_SOURCES.
71392
71393 2007-03-04  Jim Meyering  <jim@meyering.net>
71394
71395         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
71396         Use it consistently, rather than enumerating errno constants.
71397
71398 2007-03-04  Bruno Haible  <bruno@clisp.org>
71399
71400         * modules/xvasprintf-tests: New file.
71401         * tests/test-xvasprintf.c: New file.
71402
71403         * modules/vasprintf-tests: New file.
71404         * tests/test-vasprintf.c: New file.
71405
71406         * modules/vasnprintf-tests: New file.
71407         * tests/test-vasnprintf.c: New file.
71408
71409         * modules/vsnprintf-tests: New file.
71410         * tests/test-vsnprintf.c: New file.
71411
71412         * modules/snprintf-tests: New file.
71413         * tests/test-snprintf.c: New file.
71414
71415 2007-03-04  Bruno Haible  <bruno@clisp.org>
71416
71417         Compile relocatable.c only if --enable-relocatable is specified.
71418         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
71419         gl_RELOCATABLE_LIBRARY.
71420         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
71421         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
71422         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
71423         gl_RELOCATABLE_LIBRARY.
71424         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
71425         (Makefile.am): Remove lib_SOURCES.
71426         * modules/relocatable-lib-lgpl (configure.ac): Invoke
71427         gl_RELOCATABLE_LIBRARY.
71428         (Makefile.am): Remove lib_SOURCES.
71429         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
71430         always.
71431         * modules/relocatable-prog-wrapper (configure.ac): Invoke
71432         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
71433
71434 2007-03-04  Bruno Haible  <bruno@clisp.org>
71435
71436         * modules/argmatch-tests: New file.
71437         * tests/test-argmatch.c: New file.
71438
71439         * tests/test-allocsa.c (main): Halve the number of loop runs.
71440
71441         * modules/alloca-opt-tests: New file.
71442         * tests/test-alloca-opt.c: New file.
71443
71444 2007-03-04  Jim Meyering  <jim@meyering.net>
71445
71446         Work around difference between Linux ACLs and Solaris 10 ZFS.
71447         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
71448         for EINVAL.
71449
71450 2007-03-03  Bruno Haible  <bruno@clisp.org>
71451
71452         * modules/relocatable-prog (Depends-on): Add back progreloc's
71453         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
71454
71455 2007-03-03  Bruno Haible  <bruno@clisp.org>
71456
71457         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
71458         * modules/relocatable-lib: New file.
71459
71460 2007-03-03  Bruno Haible  <bruno@clisp.org>
71461
71462         * modules/relocatable-prog: Renamed from modules/relocatable.
71463         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
71464
71465 2007-03-03  Bruno Haible  <bruno@clisp.org>
71466
71467         * modules/relocatable-script (Files): Add doc/relocatable.texi,
71468         m4/relocatable-lib.m4.
71469         (Depends-on): Remove 'relocatable'.
71470         (configure.ac): Add gl_RELOCATABLE_NOP.
71471
71472 2007-03-03  Bruno Haible  <bruno@clisp.org>
71473
71474         * modules/relocatable-prog-wrapper: New file.
71475         * modules/relocatable (Depends-on): Add it. Remove all other
71476         dependencies except progname.
71477         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
71478
71479         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
71480         (gl_FUNC_STRERROR): Nop.
71481         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
71482
71483         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
71484         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
71485
71486         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
71487         (gl_FUNC_READLINK): Update.
71488
71489         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
71490
71491 2007-03-03  Bruno Haible  <bruno@clisp.org>
71492
71493         * lib/xreadlink.c: Include <unistd.h> unconditionally.
71494         * modules/xreadlink (Depends-on): Add unistd.
71495         * modules/xreadlink-with-size (Depends-on): Likewise.
71496
71497 2007-03-03  Bruno Haible  <bruno@clisp.org>
71498
71499         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
71500         extracted from gt_FUNC_SETENV.
71501         (gt_FUNC_SETENV): Remove macro.
71502         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
71503         remove gt_FUNC_SETENV.
71504
71505 2007-03-03  Bruno Haible  <bruno@clisp.org>
71506
71507         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
71508         ENABLE_RELOCATABLE here.
71509         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
71510
71511 2007-03-03  Bruno Haible  <bruno@clisp.org>
71512
71513         * modules/rbtreehash-list-tests (Depends-on): Add progname.
71514         * tests/test-rbtreehash_list.c: Include progname.h.
71515         (main): Call set_program_name.
71516
71517         * modules/rbtree-oset-tests (Depends-on): Add progname.
71518         * tests/test-rbtree_oset.c: Include progname.h.
71519         (main): Call set_program_name.
71520
71521         * modules/rbtree-list-tests (Depends-on): Add progname.
71522         * tests/test-rbtree_list.c: Include progname.h.
71523         (main): Call set_program_name.
71524
71525         * modules/linked-list-tests (Depends-on): Add progname.
71526         * tests/test-linked_list.c: Include progname.h.
71527         (main): Call set_program_name.
71528
71529 2007-03-03  Bruno Haible  <bruno@clisp.org>
71530
71531         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
71532         All uses of __restrict changed to _Restrict_.
71533         * lib/glob_.h (__restrict): Remove macro.
71534
71535 2007-03-02  Bruno Haible  <bruno@clisp.org>
71536
71537         * modules/gettext (configure.ac): Require gettext infrastructure
71538         from version 0.16.1.
71539
71540 2007-03-02  Bruno Haible  <bruno@clisp.org>
71541
71542         * modules/linkedhash-list-tests (Depends-on): Add progname.
71543         * tests/test-linkedhash_list.c: Include progname.h.
71544         (main): Call set_program_name.
71545
71546         * modules/carray-list-tests (Depends-on): Add progname.
71547         * tests/test-carray_list.c: Include progname.h.
71548         (main): Call set_program_name.
71549
71550         * modules/avltreehash-list-tests (Depends-on): Add progname.
71551         * tests/test-avltreehash_list.c: Include progname.h.
71552         (main): Call set_program_name.
71553
71554         * modules/avltree-oset-tests (Depends-on): Add progname.
71555         * tests/test-avltree_oset.c: Include progname.h.
71556         (main): Call set_program_name.
71557
71558         * modules/avltree-list-tests (Depends-on): Add progname.
71559         * tests/test-avltree_list.c: Include progname.h.
71560         (main): Call set_program_name.
71561
71562         * modules/array-oset-tests (Depends-on): Add progname.
71563         * tests/test-array_oset.c: Include progname.h.
71564         (main): Call set_program_name.
71565
71566         * modules/array-list-tests (Depends-on): Add progname.
71567         * tests/test-array_list.c: Include progname.h.
71568         (main): Call set_program_name.
71569
71570         * modules/argp-tests (Depends-on): Add progname.
71571         * tests/test-argp.c: Include argp.h first. Include progname.h.
71572         (main): Call set_program_name.
71573
71574 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
71575
71576         * doc/gnulib-tool.texi (Initial import): Reword description of
71577         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
71578         limited effect even if defined after the first system include.
71579
71580 2007-03-01  Bruno Haible  <bruno@clisp.org>
71581
71582         * build-aux/config.libpath: Update to libtool-1.5.22.
71583         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71584
71585 2007-03-01  Bruno Haible  <bruno@clisp.org>
71586
71587         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
71588         foo_CFLAGS.
71589         Reported by Ralf Wildenhues.
71590
71591 2007-03-01  Bruno Haible  <bruno@clisp.org>
71592
71593         * build-aux/install-reloc: Remove object files left over by some
71594         compilers.
71595         Reported by Ralf Wildenhues.
71596
71597 2007-03-01  Bruno Haible  <bruno@clisp.org>
71598
71599         * build-aux/install-reloc: Break long lines.
71600
71601 2007-03-01  Bruno Haible  <bruno@clisp.org>
71602
71603         * doc/relocatable.texi: Document that it may not work on OpenBSD.
71604         Reported by Ralf Wildenhues.
71605
71606 2007-03-01  Bruno Haible  <bruno@clisp.org>
71607
71608         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
71609         include ordering constraints.
71610
71611 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71612
71613         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
71614         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
71615         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
71616         as another example.
71617         * lib/time_.h: Fix misspelling.
71618         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71619         Require gl_HEADER_TIME_H_DEFAULTS.
71620         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
71621         * m4/time_r.m4 (gl_TIME_R): Likewise.
71622         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
71623
71624 2007-03-01  Bruno Haible  <bruno@clisp.org>
71625
71626         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
71627         * m4/utimens.m4 (gl_UTIMENS): Likewise.
71628
71629 2007-03-01  Jim Meyering  <jim@meyering.net>
71630
71631         * modules/xreadlink (Maintainer): Add my name.
71632         * modules/xreadlink-with-size (Depends-on): Alphabetize.
71633
71634 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
71635             Bruno Haible  <bruno@clisp.org>
71636
71637         * build-aux/install-reloc: Compile also c-ctype.c.
71638         * build-aux/relocatable.sh.in: New file.
71639         * doc/relocatable.texi: New file.
71640         * doc/relocatable-maint.texi: New file.
71641         * doc/gnulib.texi: Include relocatable-maint.texi.
71642         * lib/progreloc.c: Include unistd.h unconditionally.
71643         * lib/relocwrapper.c: Include unistd.h unconditionally.
71644         Include c-ctype.h.
71645         (add_dotbin): Use c_tolower.
71646         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
71647         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
71648         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
71649         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
71650         to m4/relocatable-lib.m4.
71651         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
71652         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
71653         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
71654         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
71655         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
71656         * modules/relocatable: New file.
71657         * modules/relocatable-lib: New file.
71658         * modules/relocatable-script: New file.
71659
71660 2007-02-28  Bruno Haible  <bruno@clisp.org>
71661
71662         Import --enable-relocatable infrastructure.
71663         * build-aux/config.libpath: New file, from GNU gettext.
71664         * build-aux/install-reloc: New file, from GNU gettext.
71665         * build-aux/reloc-ldflags: New file, from GNU gettext.
71666         * lib/relocatable.h: New file, from GNU gettext.
71667         * lib/relocatable.c: New file, from GNU gettext.
71668         * lib/relocwrapper.c: New file, from GNU gettext.
71669         * m4/relocatable.m4: New file, from GNU gettext.
71670
71671 2007-02-28  Bruno Haible  <bruno@clisp.org>
71672
71673         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
71674
71675         * modules/xreadlink: New file, from GNU gettext with modifications.
71676         * lib/xreadlink.c: New file, from GNU gettext.
71677         * lib/xreadlink.h: Add comments.
71678         (xreadlink): New declaration.
71679
71680         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
71681         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
71682         lib/xreadlink-with-size.c.
71683         (configure.ac): Remove gl_XREADLINK invocation.
71684         (Makefile.am): Augment lib_SOURCES.
71685         * m4/xreadlink.m4: Remove file.
71686         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
71687         (xreadlink_with_size): Renamed from xreadink.
71688         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
71689         * modules/canonicalize (Depends-on): Replace xreadlink with
71690         xreadlink-with-size.
71691         * lib/canonicalize.c (canonicalize_filename_mode): Update.
71692
71693 2007-02-25  Jim Meyering  <jim@meyering.net>
71694
71695         * build-aux/announce-gen: When complaining about excess arguments,
71696         list them.
71697
71698 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71699
71700         * README: Document signed integer overflow situation more
71701         accurately.
71702
71703 2007-02-25  Bruno Haible  <bruno@clisp.org>
71704
71705         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
71706         'a' or 'A' conversion.
71707
71708 2007-02-25  Bruno Haible  <bruno@clisp.org>
71709
71710         * modules/filename: Renamed from modules/pathname.
71711         (Files): Replace lib/pathname.h with lib/filename.h. Replace
71712         lib/concatpath.c with lib/concat-filename.c.
71713         (Makefile.am): Update.
71714         (Include): Replace pathname.h with filename.h.
71715         * lib/filename.h: Renamed from lib/pathname.h.
71716         (concatenated_filename): Renamed from concatenated_pathname.
71717         * lib/concat-filename.c: Renamed from lib/concatpath.c.
71718         (concatenated_filename): Renamed from concatenated_pathname.
71719         * lib/findprog.c: Include filename.h instead of pathname.h.
71720         (find_in_path): Update.
71721         * lib/javacomp.c: Include filename.h instead of pathname.h.
71722         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
71723         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
71724         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
71725         is_oldgcj_14_13_usable, is_javac_usable): Update.
71726         * lib/javaexec.c: Include filename.h instead of pathname.h.
71727         (execute_java_class): Update.
71728         * modules/findprog: Update.
71729         * modules/javacomp: Update.
71730         * modules/javaexec: Update.
71731         * MODULES.html.sh (File system functions): Add 'filename', remove
71732         'pathname'.
71733
71734 2007-02-25  Bruno Haible  <bruno@clisp.org>
71735
71736         * modules/printf-frexpl-tests: New file.
71737         * tests/test-printf-frexpl.c: New file.
71738
71739         * modules/printf-frexpl: New file.
71740         * lib/printf-frexpl.h: New file.
71741         * lib/printf-frexpl.c: New file.
71742         * m4/printf-frexpl.m4: New file.
71743
71744 2007-02-25  Bruno Haible  <bruno@clisp.org>
71745
71746         * modules/printf-frexp-tests: New file.
71747         * tests/test-printf-frexp.c: New file.
71748
71749         * modules/printf-frexp: New file.
71750         * lib/printf-frexp.h: New file.
71751         * lib/printf-frexp.c: New file.
71752         * m4/printf-frexp.m4: New file.
71753
71754 2007-02-25  Bruno Haible  <bruno@clisp.org>
71755
71756         Assume automake >= 1.10 for the tests.
71757         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
71758         * modules/arctwo-tests: Likewise.
71759         * modules/argp-tests: Likewise.
71760         * modules/avltree-list-tests: Likewise.
71761         * modules/avltree-oset-tests: Likewise.
71762         * modules/avltreehash-list-tests: Likewise.
71763         * modules/carray-list-tests: Likewise.
71764         * modules/crc-tests: Likewise.
71765         * modules/des-tests: Likewise.
71766         * modules/gc-arcfour-tests: Likewise.
71767         * modules/gc-arctwo-tests: Likewise.
71768         * modules/gc-des-tests: Likewise.
71769         * modules/gc-hmac-md5-tests: Likewise.
71770         * modules/gc-hmac-sha1-tests: Likewise.
71771         * modules/gc-md2-tests: Likewise.
71772         * modules/gc-md4-tests: Likewise.
71773         * modules/gc-md5-tests: Likewise.
71774         * modules/gc-pbkdf2-sha1-tests: Likewise.
71775         * modules/gc-rijndael-tests: Likewise.
71776         * modules/gc-sha1-tests: Likewise.
71777         * modules/gc-tests: Likewise.
71778         * modules/getaddrinfo-tests: Likewise.
71779         * modules/hmac-md5-tests: Likewise.
71780         * modules/hmac-sha1-tests: Likewise.
71781         * modules/linked-list-tests: Likewise.
71782         * modules/linkedhash-list-tests: Likewise.
71783         * modules/lock-tests: Likewise.
71784         * modules/md2-tests: Likewise.
71785         * modules/md4-tests: Likewise.
71786         * modules/md5-tests: Likewise.
71787         * modules/rbtree-list-tests: Likewise.
71788         * modules/rbtree-oset-tests: Likewise.
71789         * modules/rbtreehash-list-tests: Likewise.
71790         * modules/read-file-tests: Likewise.
71791         * modules/rijndael-tests: Likewise.
71792         * modules/stdint-tests: Likewise.
71793         * modules/tls-tests: Likewise.
71794
71795 2007-02-24  Bruno Haible  <bruno@clisp.org>
71796
71797         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
71798         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
71799         function; instead check whether isnan with a double argument links.
71800         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
71801         function; instead check whether isnan with a 'long double' argument
71802         links.
71803         Reported by Eric Blake <ebb9@byu.net>.
71804
71805 2007-02-24  Bruno Haible  <bruno@clisp.org>
71806
71807         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
71808         defined.
71809         * lib/isnanl.c: Remove all code. Just include isnan.c.
71810         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
71811
71812 2007-02-25  Jim Meyering  <jim@meyering.net>
71813
71814         Avoid conflicting types for 'unsetenv' on FreeBSD.
71815         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
71816         conflicting with FreeBSD's (5.0 and 6.1) function declaration
71817         in stdlib.h.
71818
71819 2007-02-24  Bruno Haible  <bruno@clisp.org>
71820
71821         * modules/isnanl-nolibm-tests: New file.
71822         * tests/test-isnanl.c: New file.
71823
71824         * modules/isnanl-nolibm: New file.
71825         * lib/isnanl.h: New file.
71826         * lib/isnanl.c: New file.
71827         * m4/isnanl.m4: New file.
71828
71829 2007-02-24  Bruno Haible  <bruno@clisp.org>
71830
71831         * modules/isnan-nolibm-tests: New file.
71832         * tests/test-isnan.c: New file.
71833
71834         * modules/isnan-nolibm: New file.
71835         * lib/isnan.h: New file.
71836         * lib/isnan.c: New file.
71837         * m4/isnan.m4: New file.
71838
71839 2007-02-24  Bruno Haible  <bruno@clisp.org>
71840
71841         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
71842         assume that an exponent fits in 20 bits.
71843
71844 2007-02-24  Jim Meyering  <jim@meyering.net>
71845
71846         * m4/regex.m4: Update the description of the configure-time option,
71847         --without-included-regex, to state accurately what the defaults are,
71848         and perhaps to give people an idea why using this option is risky.
71849
71850 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71851
71852         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
71853         loops on small arguments.  This attempts to avoid the problem
71854         Bruno Haible reported for AIX 4.3.2 in
71855         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
71856
71857 2007-02-23  Bruno Haible  <bruno@clisp.org>
71858
71859         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
71860         Needed for help2man.
71861
71862 2007-02-23  Karl Berry  <karl@gnu.org>
71863
71864         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
71865         exists, foo.h should be cvs-ignored, not committed.
71866
71867 2007-02-23  Eric Blake  <ebb9@byu.net>
71868
71869         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
71870         * lib/stat-time.h (includes): Likewise.
71871         * lib/utimecmp.c (includes): Likewise.
71872         * lib/utimens.h (includes): Likewise.
71873         * lib/getdate.y (includes): Also include "timespec.h" for use
71874         internal to the module.
71875         * modules/utimens (Depends-on): Revert yesterday's patch.
71876         * modules/nanosleep (Depends-on): Add missing dependency.
71877
71878 2007-02-22  Bruno Haible  <bruno@clisp.org>
71879
71880         * lib/glob.c: Don't include getlogin_r.h.
71881
71882 2007-02-22  Jim Meyering  <jim@meyering.net>
71883
71884         * modules/utimens (Depends-on): Add timespec, required for
71885         utimens.h's inclusion of timespec.h.
71886
71887 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
71888
71889         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
71890         long unreadable paths in GNU/Linux.  Problem reported by Andreas
71891         Schwab in
71892         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
71893         I'll try to think of a better way to fix the Solaris problem.
71894
71895         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
71896         like glibc; on Solaris 10, it fails with errno == EINVAL.
71897         POSIX says the behavior is unspecified if the first argument is NULL,
71898         so play it safe and never pass NULL to the system getcwd.
71899
71900 2007-02-21  Jim Meyering  <jim@meyering.net>
71901
71902         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
71903         of gettimeofday.  It would conflict with the one now always
71904         provided via sys_time_.h.  Reported by Matthew Woehlke, as
71905         an IRIX 6.5 build failure.
71906
71907 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71908
71909         Minor fixups to port to Solaris 10 with Sun C 5.8.
71910         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
71911         * modules/getcwd (Depends-on): Add dirfd.
71912         * lib/putenv.c (putenv): #undef it.
71913         (rpl_putenv): New decl.
71914         (malloc, free): Include <stdlib.h> rather than prototyping separately.
71915
71916 2007-02-20  Bruno Haible  <bruno@clisp.org>
71917
71918         * modules/stdio-tests: New file.
71919         * tests/test-stdio.c: New file.
71920
71921         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
71922         (Depends-on): Add stdio.
71923         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71924         (Include): Use <stdio.h> instead of vsnprintf.h.
71925         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71926         HAVE_DECL_VSNPRINTF.
71927         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
71928
71929         * modules/snprintf (Files): Remove lib/snprintf.h.
71930         (Depends-on): Add stdio.
71931         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71932         (Include): Use <stdio.h> instead of snprintf.h.
71933         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71934         HAVE_DECL_SNPRINTF.
71935         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
71936         * lib/getaddrinfo.c: Likewise.
71937
71938         * modules/stdio: New file.
71939         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
71940         * lib/snprintf.h: Remove file.
71941         * lib/vsnprintf.h: Remove file.
71942         * lib/.cppi-disable: Remove snprintf.h.
71943         * m4/stdio_h.m4: New file.
71944         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
71945
71946 2007-02-20  Jim Meyering  <jim@meyering.net>
71947
71948         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
71949         used by e.g., mingw.  From Bruno Haible.
71950
71951 2007-02-19  Bruno Haible  <bruno@clisp.org>
71952
71953         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
71954         warnings.
71955         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71956
71957 2007-02-19  Bruno Haible  <bruno@clisp.org>
71958
71959         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
71960         from mingw users.
71961
71962 2007-02-19  Bruno Haible  <bruno@clisp.org>
71963
71964         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
71965         warnings.
71966         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
71967
71968 2007-02-19  Jim Meyering  <jim@meyering.net>
71969
71970         Don't use FD after a successful "fdopendir (fd)".
71971         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
71972         Reset it by calling dirfd on the just-obtained DIR*.
71973
71974         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
71975         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
71976
71977 2007-02-18  Bruno Haible  <bruno@clisp.org>
71978
71979         * lib/readlink.c: Include <unistd.h>.
71980         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
71981         HAVE_READLINK.
71982         * modules/readlink (Depends-on): Add unistd.
71983         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71984         (Include): Add <unistd.h>.
71985
71986         * lib/getlogin_r.h: Remove file.
71987         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
71988         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
71989         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
71990         HAVE_DECL_GETLOGIN_R.
71991         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
71992         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71993         (Include): Use <unistd.h> instead of getlogin_r.h.
71994
71995         * lib/getcwd.h: Remove file.
71996         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
71997         * lib/xgetcwd.c: Likewise.
71998         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
71999         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
72000         * modules/getcwd (Files): Remove lib/getcwd.h.
72001         (Depends-on): Add unistd.
72002         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72003         (Include): Use <unistd.h> instad of getcwd.h.
72004
72005         * lib/ftruncate.c: Include <unistd.h> first.
72006         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
72007         Set HAVE_FTRUNCATE.
72008         * modules/ftruncate (Depends-on): Add unistd.
72009         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72010
72011         * lib/fchdir.c: Include <unistd.h> first.
72012         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
72013         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
72014         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
72015         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72016         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
72017
72018         * lib/dup2.c: Include <unistd.h> first.
72019         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
72020         HAVE_DUP2.
72021         * modules/dup2 (Depends-on): Add unistd.
72022         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72023
72024         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
72025         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
72026         REPLACE_CHOWN. Don't define chown as a macro here.
72027         * modules/chown (Depends-on): Add unistd.
72028         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72029
72030         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
72031         Add definition for GL_LINK_WARNING.
72032         (chown, dup2): New declarations.
72033         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
72034         link warning.
72035         (ftruncate): New declaration.
72036         (getcwd): New declaration, taken from old getcwd.h.
72037         (getlogin_r): New declaration, taken from old getlogin_r.h.
72038         (readlink): New declaration.
72039         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
72040         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
72041         (gl_PREREQ_UNISTD): Remove macro.
72042         (gl_UNISTD_MODULE_INDICATOR): New macro.
72043         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
72044         many new variables. Don't set UNISTD_H.
72045         * modules/unistd (Description): Change.
72046         (Depends-on): Add link-warning.
72047         (configure.ac): Update.
72048         (Makefile.am): Create unistd.h always. Substitute many new variables
72049         into it.
72050
72051 2007-02-18  Bruno Haible  <bruno@clisp.org>
72052
72053         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
72054         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
72055         HAVE_GETSUBOPT.
72056         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
72057         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
72058         * lib/getsubopt.h: Remove file.
72059         * modules/getsubopt (Files): Remove lib/getsubopt.h.
72060         (Depends-on): Add stdlib.
72061         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72062         (Includes): Use <stdlib.h> instead of getsubopt.h.
72063         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
72064         Set HAVE_GETSUBOPT.
72065         * lib/getsubopt.c: Don't include getsubopt.h.
72066
72067 2007-02-18  Bruno Haible  <bruno@clisp.org>
72068
72069         * modules/fchdir (Depends-on): Add dup2.
72070
72071 2007-02-18  Bruno Haible  <bruno@clisp.org>
72072
72073         * lib/stdlib_.h: Handle glibc's special invocation convention
72074         specially.
72075
72076 2007-02-18  Bruno Haible  <bruno@clisp.org>
72077
72078         * modules/stdlib-tests: New file.
72079         * tests/test-stdlib.c: New file.
72080
72081         * modules/mkstemp (Files): Remove lib/mkstemp.h.
72082         (Depends-on): Add stdlib.
72083         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72084         (Includes): Use <stdlib.h> instead of mkstemp.h.
72085         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72086         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
72087         * lib/mkstemp.c: Don't include mkstemp.h.
72088         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
72089         * lib/stdlib--.h: Don't include mkstemp.h.
72090
72091         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
72092         (Depends-on): Add stdlib.
72093         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72094         (Includes): Use <stdlib.h> instead of mkdtemp.h.
72095         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72096         HAVE_MKDTEMP.
72097         * lib/mkdtemp.c: Don't include mkdtemp.h.
72098         * lib/clean-temp.c: Don't include mkdtemp.h.
72099
72100         * modules/exit (Files): Remove lib/exit.h.
72101         (Depends-on): Add stdlib.
72102         (Makefile.am): Remove lib_SOURCES.
72103         (Include): Use <stdlib.h> instead of exit.h.
72104         * lib/argmatch.c: Don't include exit.h.
72105         * lib/execute.c: Likewise.
72106         * lib/pagealign_alloc.c: Likewise.
72107         * lib/pipe.c: Likewise.
72108         * lib/wait-process.c: Likewise.
72109         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
72110         * lib/exitfail.c: Likewise.
72111         * lib/savewd.c: Likewise.
72112         * lib/xsetenv.c: Likewise.
72113
72114         * modules/stdlib: New file.
72115         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
72116         and extra comments about mkstemp().
72117         * lib/exit.h: Remove file.
72118         * lib/mkdtemp.h: Remove file.
72119         * lib/mkstemp.h: Remove file.
72120         * m4/stdlib_h.m4: New file.
72121         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
72122
72123 2007-02-18  Bruno Haible  <bruno@clisp.org>
72124
72125         * modules/math-tests: New file.
72126         * tests/test-math.c: New file.
72127
72128         * modules/math: New file.
72129         * modules/mathl (Files): Remove lib/mathl.h.
72130         (Depends-on): Add math.
72131         (Makefile.am): Don't mention mathl.h.
72132         (Include): Use <math.h> instead of mathl.h.
72133         * lib/math_.h: New file.
72134         * lib/mathl.h: Remove file.
72135         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
72136         mathl.h.
72137         * lib/asinl.c: Likewise.
72138         * lib/atanl.c: Likewise.
72139         * lib/ceill.c: Likewise.
72140         * lib/cosl.c: Likewise.
72141         * lib/expl.c: Likewise.
72142         * lib/floorl.c: Likewise.
72143         * lib/frexpl.c: Likewise.
72144         * lib/ldexpl.c: Likewise.
72145         * lib/logl.c: Likewise.
72146         * lib/sincosl.c: Likewise.
72147         * lib/sinl.c: Likewise.
72148         * lib/sqrtl.c: Likewise.
72149         * lib/tanl.c: Likewise.
72150         * lib/trigl.c: Likewise.
72151         * m4/math_h.m4: New file.
72152         * MODULES.html.sh (Mathematics): Add math.
72153
72154 2007-02-17  Bruno Haible  <bruno@clisp.org>
72155
72156         * modules/wctype-tests: New file.
72157         * tests/test-wctype.c: New file.
72158
72159         * modules/wchar-tests: New file.
72160         * tests/test-wchar.c: New file.
72161
72162         * modules/unistd-tests: New file.
72163         * tests/test-unistd.c: New file.
72164
72165         * modules/time-tests: New file.
72166         * tests/test-time.c: New file.
72167
72168         * modules/sysexits-tests: New file.
72169         * tests/test-sysexits.c: New file.
72170
72171         * modules/sys_time-tests: New file.
72172         * tests/test-sys_time.c: New file.
72173
72174         * modules/sys_stat-tests: New file.
72175         * tests/test-sys_stat.c: New file.
72176
72177         * modules/sys_socket-tests: New file.
72178         * tests/test-sys_socket.c: New file.
72179
72180         * modules/sys_select-tests: New file.
72181         * tests/test-sys_select.c: New file.
72182
72183         * modules/string-tests: New file.
72184         * tests/test-string.c: New file.
72185
72186         * modules/stdbool-tests: New file.
72187         * tests/test-stdbool.c: New file.
72188
72189         * modules/netinet_in-tests: New file.
72190         * tests/test-netinet_in.c: New file.
72191
72192         * modules/inttypes-tests: New file.
72193         * tests/test-inttypes.c: New file.
72194
72195         * modules/fcntl-tests: New file.
72196         * tests/test-fcntl.c: New file.
72197
72198         * modules/byteswap-tests: New file.
72199         * tests/test-byteswap.c: New file.
72200
72201         * modules/arpa_inet-tests: New file.
72202         * tests/test-arpa_inet.c: New file.
72203
72204 2007-02-17  Bruno Haible  <bruno@clisp.org>
72205
72206         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
72207         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
72208         if the corresponding module is not enabled. Emit link warnings if
72209         the function is used nevertheless.
72210         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
72211         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
72212         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
72213         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
72214         * modules/inttypes (Depends-on): Add link-warning.
72215         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72216         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
72217         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
72218         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
72219         * modules/imaxdiv (configure.ac): Likewise.
72220         * modules/strtoimax (configure.ac): Likewise.
72221         * modules/strtoumax (configure.ac): Likewise.
72222
72223 2007-02-17  Bruno Haible  <bruno@clisp.org>
72224
72225         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
72226         gl_STRING_MODULE_INDICATOR_DEFAULTS.
72227         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
72228         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
72229
72230 2007-02-17  Bruno Haible  <bruno@clisp.org>
72231
72232         * modules/link-warning: New file.
72233         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
72234         * lib/string_.h (GL_LINK_WARNING): Remove definition.
72235         * modules/string (Depends-on): Add link-warning.
72236         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72237         string.h.
72238         * MODULES.html.sh (Support for building libraries and executables): Add
72239         link-warning.
72240
72241 2007-02-17  Bruno Haible  <bruno@clisp.org>
72242
72243         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
72244         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
72245         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
72246         long lines.
72247
72248 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
72249             Bruno Haible  <bruno@clisp.org>
72250
72251         * modules/tmpfile: New file.
72252         * lib/tmpfile.c: New file.
72253         * m4/tmpfile.m4: New file.
72254         * MODULES.html.sh (func_all_modules): New section "Input/output".
72255
72256 2007-02-15  Bruno Haible  <bruno@clisp.org>
72257
72258         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
72259         (supports_delete_on_close): New function.
72260         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
72261
72262 2007-02-14  Bruno Haible  <bruno@clisp.org>
72263
72264         * modules/mbspcasecmp-tests: New file.
72265         * tests/test-mbspcasecmp.sh: New file.
72266         * tests/test-mbspcasecmp.c: New file.
72267
72268         New module mbspcasecmp.
72269         * modules/mbspcasecmp: New file.
72270         * lib/mbspcasecmp.c: New file.
72271         * lib/string_.h (strncasecmp): Change warning message.
72272         (mbspcasecmp): New declaration.
72273         * m4/mbspcasecmp.m4: New file.
72274         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72275         GNULIB_MBSPCASECMP.
72276         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
72277         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
72278
72279 2007-02-14  Bruno Haible  <bruno@clisp.org>
72280
72281         * modules/mbsncasecmp-tests: New file.
72282         * tests/test-mbsncasecmp.sh: New file.
72283         * tests/test-mbsncasecmp.c: New file.
72284
72285         New module mbsncasecmp.
72286         * modules/mbsncasecmp: New file.
72287         * lib/mbsncasecmp.c: New file.
72288         * lib/string_.h (mbsncasecmp): New declaration.
72289         * m4/mbsncasecmp.m4: New file.
72290         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72291         GNULIB_MBSNCASECMP.
72292         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
72293         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
72294
72295 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72296
72297         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
72298         Verify that it doesn't overlap with our flags.
72299         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
72300         do not have the desired effect in multibyte locales; instead, use
72301         mbscasecmp.
72302         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
72303         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
72304         we don't require GNU fnmatch ourselves (if our users require it, they
72305         should do so explicitly).
72306
72307         Fix regex code so it doesn't rely on strcasecmp.
72308         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
72309         Otherwise, include gnulib's langinfo.h.
72310         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
72311         undesirable behavior in non-C locales.  Instead, rely on localecharset.
72312         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
72313         * modules/regex (FILES): Remove m4/codeset.m4.
72314         (Depends-on): Add localcharset.  Remove strcase.
72315
72316 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72317
72318         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
72319         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
72320
72321 2007-02-13  Bruno Haible  <bruno@clisp.org>
72322
72323         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
72324         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72325
72326 2007-02-12  Bruno Haible  <bruno@clisp.org>
72327
72328         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72329         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
72330         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
72331         time warning rather than a link error.
72332
72333 2007-02-12  Bruno Haible  <bruno@clisp.org>
72334
72335         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
72336         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
72337         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72338
72339 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72340
72341         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
72342         args, not 2.
72343
72344 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72345
72346         New module 'time', so that apps can include <time.h> as per
72347         POSIX and GNU instead of separate include files like time_r.h
72348         and timegm.h.  This implementation tries out a simpler approach
72349         for replacing decls in standard include files (as compared to
72350         the string module), somewhat as an experiment.
72351
72352         * config/srclist.txt: Comment out mktime.c for now.
72353         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
72354         since it doesn't apply any more.  Use generic wording instead.
72355         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
72356         'time'.
72357         * lib/time_.h, m4/time_h.m4, modules/time: New files.
72358         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
72359         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
72360         Don't include <sys/types.h>; no longer needed since we assume C89.
72361         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
72362         * lib/strftime.c: Likewise.
72363         * lib/time_r.c: Likewise.
72364         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
72365         * lib/nanosleep.c: Include <time.h> first, to check interface.
72366         * lib/strptime.c: Likewise.
72367         * lib/time_r.c: Likewise.
72368         * lib/timegm.c: Likewise.
72369         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
72370         needed.
72371         * lib/timegm.c: Don't include timegm.h; no longer needed.
72372         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
72373         time.h now handles any problems in that area.
72374         (struct timespec, nanosleep): Remove; time.h now arranges for these.
72375         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
72376         that time.h defines struct timespec.
72377         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
72378         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
72379         handles that.
72380         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
72381         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
72382         needed.  Set REPLACE_LOCALTIME.
72383         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
72384         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
72385         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
72386         nanosleep; time_h.m4 now does that.  Don't require
72387         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
72388         module handles this now.
72389         * modules/getdate (Depends-on): Remove timespec.  Add time.
72390         * modules/nanosleep (Depends-on): Likewise.
72391         * modules/stat-time (Depends-on): Likewise.
72392         * modules/nanosleep (Include): Include time.h, not timespec.h.
72393         * modules/strptime (Files): Remove lib/strptime.h.
72394         (Depends-on): Add extensions, time.
72395         (Include): Include time.h, not strptime.h.
72396         * modules/time_r (Files): Remove lib/time_r.h.
72397         (Depends-on): Add time.
72398         (Include): Include time.h, not time_r.h.
72399         * modules/timegm: Likewise.
72400         * modules/timespec (Description): Now does timespec-related decls
72401         of our own, instead of struct timespec itself.
72402         (Depends-on): Add time; remove extensions.
72403         (Maintainer): Add self.
72404         * modules/utimecmp (Depends-on): Add time; remove timespec.
72405         * modules/utimens (Depends-on): Likewise.
72406         * modules/xnanosleep (Depends-on): Likewise.
72407
72408 2007-02-11  Bruno Haible  <bruno@clisp.org>
72409
72410         * lib/c-strstr.c: Include allocsa.h.
72411         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72412         * lib/c-strcasestr.c: Include allocsa.h.
72413         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72414         * lib/strcasestr.c: Include allocsa.h.
72415         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72416         * lib/mbsstr.c: Include allocsa.h.
72417         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72418         allocsa/freesa instead of malloc/free.
72419         * lib/mbscasestr.c: Include allocsa.h.
72420         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72421         allocsa/freesa instead of malloc/free.
72422         * modules/c-strstr (Depends-on): Add allocsa.
72423         * modules/c-strcasestr (Depends-on): Likewise.
72424         * modules/strcasestr (Depends-on): Likewise.
72425         * modules/mbsstr (Depends-on): Likewise.
72426         * modules/mbscasestr (Depends-on): Likewise.
72427
72428 2007-02-11  Bruno Haible  <bruno@clisp.org>
72429
72430         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
72431
72432         * modules/mbsspn-tests: New file.
72433         * tests/test-mbsspn.sh: New file.
72434         * tests/test-mbsspn.c: New file.
72435
72436 2007-02-11  Bruno Haible  <bruno@clisp.org>
72437
72438         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
72439
72440         * modules/mbspbrk-tests: New file.
72441         * tests/test-mbspbrk.sh: New file.
72442         * tests/test-mbspbrk.c: New file.
72443
72444 2007-02-11  Bruno Haible  <bruno@clisp.org>
72445
72446         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
72447         unneeded cast.
72448
72449         * modules/mbscspn-tests: New file.
72450         * tests/test-mbscspn.sh: New file.
72451         * tests/test-mbscspn.c: New file.
72452
72453 2007-02-11  Bruno Haible  <bruno@clisp.org>
72454
72455         * modules/mbscasecmp-tests: New file.
72456         * tests/test-mbscasecmp.sh: New file.
72457         * tests/test-mbscasecmp.c: New file.
72458
72459 2007-02-11  Bruno Haible  <bruno@clisp.org>
72460
72461         Ensure O(n) worst-case complexity of mbscasestr.
72462         * lib/mbscasestr.c: Include stdbool.h.
72463         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72464         functions.
72465         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
72466         the bookkeeping indicates that it's worth it.
72467         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
72468
72469         * modules/mbscasestr-tests: New file.
72470         * tests/test-mbscasestr1.c: New file.
72471         * tests/test-mbscasestr2.sh: New file.
72472         * tests/test-mbscasestr2.c: New file.
72473         * tests/test-mbscasestr3.sh: New file.
72474         * tests/test-mbscasestr3.c: New file.
72475         * tests/test-mbscasestr4.sh: New file.
72476         * tests/test-mbscasestr4.c: New file.
72477         * m4/locale-tr.m4: New file.
72478
72479 2007-02-11  Bruno Haible  <bruno@clisp.org>
72480
72481         Ensure O(n) worst-case complexity of mbsstr.
72482         * lib/mbsstr.c: Include stdbool.h.
72483         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72484         functions.
72485         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
72486         bookkeeping indicates that it's worth it.
72487         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
72488
72489         * modules/mbsstr-tests: New file.
72490         * tests/test-mbsstr1.c: New file.
72491         * tests/test-mbsstr2.sh: New file.
72492         * tests/test-mbsstr2.c: New file.
72493         * tests/test-mbsstr3.sh: New file.
72494         * tests/test-mbsstr3.c: New file.
72495         * m4/locale-fr.m4: New file.
72496
72497 2007-02-11  Bruno Haible  <bruno@clisp.org>
72498
72499         * lib/mbsrchr.c (mbsrchr): Fix bug.
72500
72501         * modules/mbsrchr-tests: New file.
72502         * tests/test-mbsrchr.sh: New file.
72503         * tests/test-mbsrchr.c: New file.
72504
72505 2007-02-11  Bruno Haible  <bruno@clisp.org>
72506
72507         * lib/mbschr.c (mbschr): Fix bug.
72508
72509         * modules/mbschr-tests: New file.
72510         * tests/test-mbschr.sh: New file.
72511         * tests/test-mbschr.c: New file.
72512         * m4/locale-zh.m4: New file.
72513
72514 2007-02-11  Bruno Haible  <bruno@clisp.org>
72515
72516         Support for copying multibyte string iterators.
72517         * lib/mbiter.h: Include <string.h>.
72518         (mbiter_multi_copy): New function.
72519         (mbi_copy): New macro.
72520         * lib/mbuiter.h: Include <string.h>.
72521         (mbuiter_multi_copy): New function.
72522         (mbui_copy): New macro.
72523
72524 2007-02-11  Bruno Haible  <bruno@clisp.org>
72525
72526         New module mbslen.
72527         * modules/mbslen: New file.
72528         * lib/mbslen.c: New file.
72529         * lib/string_.h (mbslen): New declaration.
72530         * m4/mbslen.m4: New file.
72531         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72532         GNULIB_MBSLEN.
72533         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
72534         * MODULES.html.sh (Internationalization functions): Add mbslen.
72535
72536 2007-02-11  Bruno Haible  <bruno@clisp.org>
72537
72538         Ensure O(n) worst-case complexity of strcasestr substitute.
72539         * lib/strcasestr.c: Include stdbool.h.
72540         (knuth_morris_pratt): New function.
72541         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72542         bookkeeping indicates that it's worth it.
72543         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
72544
72545         * modules/strcasestr-tests: New file.
72546         * tests/test-strcasestr.c: New file.
72547
72548 2007-02-11  Bruno Haible  <bruno@clisp.org>
72549
72550         Ensure O(n) worst-case complexity of c_strcasestr.
72551         * lib/c-strcasestr.c: Include stdbool.h, string.h.
72552         (knuth_morris_pratt): New function.
72553         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
72554         the bookkeeping indicates that it's worth it.
72555         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
72556
72557         * modules/c-strcasestr-tests: New file.
72558         * tests/test-c-strcasestr.c: New file.
72559
72560 2007-02-11  Bruno Haible  <bruno@clisp.org>
72561
72562         Ensure O(n) worst-case complexity of c_strstr.
72563         * lib/c-strstr.c: Include stdbool.h, string.h.
72564         (knuth_morris_pratt): New function.
72565         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72566         bookkeeping indicates that it's worth it.
72567         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
72568
72569         * lib/c-strstr.c: Complete rewrite for maintainability.
72570
72571         * modules/c-strstr-tests: New file.
72572         * tests/test-c-strstr.c: New file.
72573
72574 2007-02-11  Bruno Haible  <bruno@clisp.org>
72575
72576         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
72577         5.2.1 and earlier, whereby \055 was treated just like the range
72578         delimiter '-'.
72579         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
72580
72581 2007-02-08  Bruno Haible  <bruno@clisp.org>
72582
72583         * modules/regex (Depends-on): Add stdbool.
72584         Reported by Dalibor Topic <robilad@kaffe.org>.
72585
72586 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72587
72588         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
72589         Prefer returning from main to exiting from it.
72590         Remove unnecessary parens after sizeof.
72591
72592 2007-02-05  Bruno Haible  <bruno@clisp.org>
72593
72594         New module mbssep.
72595         * modules/mbssep: New file.
72596         * lib/mbssep.c: New file.
72597         * lib/string_.h (strsep): Add a conditional link warning.
72598         (mbssep): New declaration.
72599         * m4/mbssep.m4: New file.
72600         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72601         GNULIB_MBSSEP.
72602         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
72603         * MODULES.html.sh (Internationalization functions): Add mbssep.
72604
72605 2007-02-05  Bruno Haible  <bruno@clisp.org>
72606
72607         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
72608         Optimize search in case of 1 delimiter.
72609
72610 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72611
72612         * lib/acl.h: Include sys/types.h before sys/acl.h.
72613
72614 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72615
72616         Merge upstream fix for glibc bugzilla #3957:
72617
72618         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
72619
72620         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
72621         bit for RE_HAT_LISTS_NOT_NEWLINE.
72622         (build_charclass_op): Remove bogus comment.
72623
72624 2007-02-05  Simon Josefsson  <simon@josefsson.org>
72625
72626         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
72627
72628 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72629
72630         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
72631         * lib/memmem.c [!defined _LIBC]: Include config.h.
72632
72633 2007-02-04  Bruno Haible  <bruno@clisp.org>
72634
72635         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
72636         warning message.
72637
72638 2007-02-04  Bruno Haible  <bruno@clisp.org>
72639
72640         New module mbstok_r.
72641         * modules/mbstok_r: New file.
72642         * lib/mbstok_r.c: New file.
72643         * lib/string_.h (strtok_r): Change argument names to match the
72644         comments. Add a conditional link warning.
72645         (mbstok_r): New declaration.
72646         * m4/mbstok_r.m4: New file.
72647         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72648         GNULIB_MBSTOK_R.
72649         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
72650         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
72651
72652 2007-02-04  Bruno Haible  <bruno@clisp.org>
72653
72654         New module mbsspn.
72655         * modules/mbsspn: New file.
72656         * lib/mbsspn.c: New file.
72657         * lib/string_.h (strspn): Add a conditional link warning.
72658         (mbsspn): New declaration.
72659         * m4/mbsspn.m4: New file.
72660         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72661         GNULIB_MBSSPN.
72662         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
72663         * MODULES.html.sh (Internationalization functions): Add mbsspn.
72664
72665 2007-02-04  Bruno Haible  <bruno@clisp.org>
72666
72667         New module mbspbrk.
72668         * modules/mbspbrk: New file.
72669         * lib/mbspbrk.c: New file.
72670         * lib/string_.h (strpbrk): Add a conditional link warning.
72671         (mbspbrk): New declaration.
72672         * m4/mbspbrk.m4: New file.
72673         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72674         GNULIB_MBSPBRK.
72675         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
72676         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
72677
72678 2007-02-04  Bruno Haible  <bruno@clisp.org>
72679
72680         New module mbscspn.
72681         * modules/mbscspn: New file.
72682         * lib/mbscspn.c: New file.
72683         * lib/string_.h (strcspn): Add a conditional link warning.
72684         (mbscspn): New declaration.
72685         * m4/mbscspn.m4: New file.
72686         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72687         GNULIB_MBSCSPN.
72688         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
72689         * MODULES.html.sh (Internationalization functions): Add mbscspn.
72690
72691 2007-02-04  Bruno Haible  <bruno@clisp.org>
72692
72693         New module mbscasestr, reduced goal of strcasestr.
72694         * modules/mbscasestr: New file.
72695         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
72696         (mbscasestr): Renamed from strcasestr.
72697         * lib/strcasestr.c: Don't include mbuiter.h.
72698         (strcasestr): Remove support for multibyte locales.
72699         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
72700         Change the conditional link warning.
72701         (mbscasestr): New declaration.
72702         * m4/mbscasestr.m4: New file.
72703         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
72704         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
72705         REPLACE_STRCASESTR.
72706         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
72707         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72708         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72709         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
72710         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
72711         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72712         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
72713         (Depends-on): Remove mbuiter.
72714         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
72715
72716 2007-02-04  Bruno Haible  <bruno@clisp.org>
72717
72718         Simplify handling of strncasecmp.
72719         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
72720         the conditional link warning.
72721         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72722         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
72723         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
72724         * modules/strcase (configure.ac): Don't invoke
72725         gl_STRING_MODULE_INDICATOR.
72726         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
72727
72728 2007-02-04  Bruno Haible  <bruno@clisp.org>
72729
72730         New module mbscasecmp, reduced goal of strcasecmp.
72731         * modules/mbscasecmp: New file.
72732         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
72733         (mbscasecmp): Renamed from strcasecmp.
72734         * lib/strcasecmp.c: Don't include mbuiter.h.
72735         (strcasecmp): Remove support for multibyte locales.
72736         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
72737         Change the conditional link warning.
72738         (mbscasecmp): New declaration.
72739         * m4/mbscasecmp.m4: New file.
72740         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
72741         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
72742         REPLACE_STRCASECMP.
72743         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
72744         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72745         GNULIB_MBSCASECMP.
72746         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
72747         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
72748         * modules/strcase (Files): Remove m4/mbrtowc.m4.
72749         (Depends-on): Remove mbuiter.
72750         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
72751
72752 2007-02-04  Bruno Haible  <bruno@clisp.org>
72753
72754         New module mbsstr. Remove module strstr.
72755         * modules/mbsstr: New file.
72756         * modules/strstr: Remove file.
72757         * lib/mbsstr.c: Renamed from lib/strstr.c.
72758         (mbsstr): Renamed from strstr.
72759         * lib/string_.h (strstr): Remove declaration. Change the conditional
72760         link warning.
72761         (mbsstr): New declaration.
72762         * m4/mbsstr.m4: New file.
72763         * m4/strstr.m4: Remove file.
72764         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
72765         REPLACE_STRSTR.
72766         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
72767         Don't initialize GNULIB_STRSTR.
72768         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
72769         substitute GNULIB_STRSTR and REPLACE_STRSTR.
72770         * MODULES.html.sh (Internationalization functions): Add mbsstr.
72771         (Support for systems lacking ANSI C 89): Remove strstr.
72772
72773 2007-02-04  Bruno Haible  <bruno@clisp.org>
72774
72775         New module mbsrchr.
72776         * modules/mbsrchr: New file.
72777         * lib/mbsrchr.c: New file.
72778         * lib/string_.h (strrchr): Add a conditional link warning.
72779         (mbsrchr): New declaration.
72780         * m4/mbsrchr.m4: New file.
72781         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72782         GNULIB_MBSRCHR.
72783         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
72784         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
72785
72786 2007-02-04  Bruno Haible  <bruno@clisp.org>
72787
72788         New module mbschr.
72789         * modules/mbschr: New file.
72790         * lib/mbschr.c: New file.
72791         * lib/string_.h (strchr): Add a conditional link warning.
72792         (mbschr): New declaration.
72793         * m4/mbschr.m4: New file.
72794         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72795         GNULIB_MBSCHR.
72796         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
72797         * MODULES.html.sh (Internationalization functions): Add mbschr.
72798
72799 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72800
72801         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
72802
72803         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
72804
72805 2007-02-04  Bruno Haible  <bruno@clisp.org>
72806
72807         New module description section 'configure.ac-early'.
72808         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
72809         (func_get_autoconf_early_snippet): New function.
72810         (func_import, func_create_testdir): Use it. Remove special cases for
72811         modules 'extensions' and 'lock'.
72812         * modules/extensions (configure.ac-early): Require
72813         gl_USE_SYSTEM_EXTENSIONS.
72814         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
72815
72816 2007-02-04  Bruno Haible  <bruno@clisp.org>
72817
72818         Make use of gcj-4.3's -fsource and -ftarget option.
72819         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
72820         and if so try the options -fsource and -ftarget.
72821         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
72822         source_version, ftarget_option, target_version arguments.
72823         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
72824         (is_envjavac_oldgcj_14_14_usable): Renamed from
72825         is_envjavac_gcj_14_14_usable.
72826         (is_envjavac_oldgcj_14_13_usable): Renamed from
72827         is_envjavac_gcj_14_13_usable.
72828         (is_gcj_present): Update.
72829         (is_gcj_43, is_gcj43_usable): New functions.
72830         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
72831         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
72832         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
72833         try the options -fsource and -ftarget.
72834
72835 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72836
72837         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
72838         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
72839         larger value.
72840
72841 2007-02-03  Jim Meyering  <jim@meyering.net>
72842
72843         Give tools a better chance to allocate space for very large buffers.
72844         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
72845
72846         Make pwd and readlink work also when run with an unreadable parent dir
72847         on systems with openat support.
72848         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
72849         provided getcwd function, even when we have openat support.
72850         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
72851
72852 2007-02-02  Bruno Haible  <bruno@clisp.org>
72853
72854         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72855         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
72856         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
72857         portability problems if one of these functions is only used on specific
72858         platforms.
72859         Reported by Paul Eggert.
72860
72861 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
72862
72863         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
72864         is causing more trouble than it's curing.
72865         * lib/regex_internal.h (__mempcpy): Remove.
72866         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
72867         (and make the code a tad smaller to boot).
72868         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
72869
72870 2007-02-02  Jim Meyering  <jim@meyering.net>
72871
72872         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
72873         section, not in the Makefile.am: one.
72874
72875 2007-02-02  Eric Blake  <ebb9@byu.net>
72876
72877         * lib/strchrnul.c: Always include config.h first.
72878
72879         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
72880         gnulib strstr is not necessary here.
72881
72882 2007-02-02  Simon Josefsson  <simon@josefsson.org>
72883
72884         * m4/socklen.m4: Fix typo.
72885
72886 2007-02-02  Eric Blake  <ebb9@byu.net>
72887
72888         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
72889         * modules/netinet_in (Makefile.am): Likewise.
72890
72891 2007-02-01  Bruno Haible  <bruno@clisp.org>
72892
72893         * lib/string_.h (GL_LINK_WARNING): New macro.
72894         (strcasecmp, strstr, strcasestr): If provided by the system,
72895         conditionally define as a macro that leads to a warning instead of to
72896         an error.
72897         (strncasecmp): Conditionally define as a macro that leads to a warning.
72898
72899 2007-02-01  Karl Berry  <karl@gnu.org>
72900
72901         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
72902
72903 2007-02-01  Bruno Haible  <bruno@clisp.org>
72904
72905         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
72906         renamings.
72907
72908 2007-02-01  Eric Blake  <ebb9@byu.net>
72909
72910         * modules/regex (Depends-on): Revert dependence on mempcpy.
72911         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
72912         module's definition of mempcpy.
72913         Reported by Paul Eggert.
72914
72915 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72916
72917         * lib/string_.h: If the gnulib module XYZ is not present, undefine
72918         the symbol XYZ before redefining it.  This fixes a problem with
72919         programs that don't use XYZ, when compiled on systems that define
72920         XYZ to something else.
72921
72922 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
72923
72924         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
72925         occurs when "mkdir -m foo" creates a setgid directory that is (1)
72926         writeable to group or other and (2) is intended to have a special
72927         mode bit that is set or cleared.  In such a case, the directory
72928         should be neither group- nor other-writeable until the special
72929         mode bits are right.
72930
72931 2007-01-31  Eric Blake  <ebb9@byu.net>
72932
72933         * modules/mountlist (Depends-on): Add strstr.
72934
72935         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
72936         bug.
72937         * modules/string (Makefile.am): Remove redundant replacement.
72938         * modules/regex (Depends-on): Add mempcpy.
72939
72940 2007-01-31  Bruno Haible  <bruno@clisp.org>
72941
72942         New module description field 'Link'.
72943         * gnulib-tool (func_usage): Document --extract-link-directive.
72944         (sed_extract_prog): Recognize 'Link' directive.
72945         (func_get_link_directive): New function.
72946         (func_import): Show summary of link directives.
72947         Handle --extract-link-directive option.
72948         * modules/acl (Link): New section.
72949         * modules/clock-time (Link): New section.
72950         * modules/euidaccess (Link): New section.
72951         * modules/gettext (Link): New section.
72952         * modules/iconv (Link): New section.
72953         * modules/lock (Link): New section.
72954         * modules/nanosleep (Link): New section.
72955         * modules/readline (Link): New section.
72956
72957 2007-01-27  Bruno Haible  <bruno@clisp.org>
72958
72959         Enforce the use of gnulib modules for unportable <string.h> functions.
72960         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
72961         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
72962         (gl_HEADER_STRING_H_BODY): Require it.
72963         * lib/string_.h: If the gnulib module XYZ is not present, redefine
72964         the symbol XYZ to one that gives a link error.
72965         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
72966         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
72967         * modules/mempcpy (configure.ac): Likewise.
72968         * modules/memrchr (configure.ac): Likewise.
72969         * modules/stpcpy (configure.ac): Likewise.
72970         * modules/stpncpy (configure.ac): Likewise.
72971         * modules/strcase (configure.ac): Likewise.
72972         * modules/strcasestr (configure.ac): Likewise.
72973         * modules/strchrnul (configure.ac): Likewise.
72974         * modules/strdup (configure.ac): Likewise.
72975         * modules/strndup (configure.ac): Likewise.
72976         * modules/strnlen (configure.ac): Likewise.
72977         * modules/strpbrk (configure.ac): Likewise.
72978         * modules/strsep (configure.ac): Likewise.
72979         * modules/strstr (configure.ac): Likewise.
72980         * modules/strtok_r (configure.ac): Likewise.
72981
72982 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
72983
72984         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
72985
72986 2007-01-30  Jim Meyering  <jim@meyering.net>
72987
72988         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
72989
72990 2007-01-29  Bruno Haible  <bruno@clisp.org>
72991
72992         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
72993         * lib/execute.c: Likewise.
72994         * lib/pipe.c: Likewise.
72995         * lib/printf-args.h: Likewise.
72996         * lib/printf-args.c: Likewise.
72997         * lib/printf-parse.c: Likewise.
72998         * lib/vasnprintf.c: Likewise.
72999
73000 2007-01-29  Eric Blake  <ebb9@byu.net>
73001
73002         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
73003         declaration.
73004
73005 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
73006
73007         * lib/strptime.h (strptime): Use 'restrict' for args where
73008         POSIX requires this.
73009         * lib/strptime.c (strptime): Likewise.
73010         Change license notice from LGPL to GPL, since gnulib-tool will
73011         change this as needed.
73012         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
73013         defined.
73014         Include "strptime.h" first, to check interface.
73015         Do not #undef _LIBC and _NL_CURRENT.
73016         Do not include <stdlib.h>; no longer needed.
73017         Include "time_r.h" and declare ptime_locale_status
73018         only if _LIBC is not defined.
73019         (__P): Remove unused macro.
73020         (match_string): Bring back glibc version, but use it only if _LIBC
73021         is defined.
73022         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
73023         Remove unnecessary assertion and abort() call.
73024         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
73025         * m4/strptime.m4: Fix serial number comment.
73026         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
73027         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
73028         (Depends-on): Add time_r.
73029
73030 2007-01-29  Bruno Haible  <bruno@clisp.org>
73031
73032         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73033         strptime.
73034         * modules/strptime (Depends-on): Add stdbool.
73035         * lib/strptime.h: Include <time.h> always. Add comments.
73036
73037 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73038
73039         * modules/strptime: New file.
73040         * lib/strptime.h: New file.
73041         * lib/strptime.c: New file.
73042         * m4/strptime.m4: New file.
73043
73044 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73045
73046         * MODULES.html.sh: New module mpsort.
73047         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
73048
73049         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
73050         a circularity problem with HP-UX ia64 reported by Bob Proulx in
73051         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
73052         All uses changed.
73053         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
73054         All uses changed.
73055         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
73056         to _Restrict_.
73057         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
73058         the parameter matches the prototype.
73059
73060 2007-01-28  Jim Meyering  <jim@meyering.net>
73061
73062         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
73063         sys/time.h here, reverting that part of the previous patch:
73064         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
73065
73066 2007-01-28  Bruno Haible  <bruno@clisp.org>
73067
73068         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
73069         value of $(SYS_TIME_H).
73070         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
73071         remove it conditionally, too. [added by Jim Meyering]
73072         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
73073         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73074         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
73075         GETTIMEOFDAY_REPLACEMENT to 1.
73076
73077 2007-01-28  Bruno Haible  <bruno@clisp.org>
73078
73079         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
73080         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
73081         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
73082         Set UNISTD_H instead of UNISTD_H2.
73083         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
73084
73085 2007-01-28  Bruno Haible  <bruno@clisp.org>
73086
73087         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
73088         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
73089
73090 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73091
73092         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
73093         (func_create_testdir): Ensure C locale for `grep' and `tr'
73094         character ranges.
73095         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
73096         ACLOCAL_AMFLAGS parsing state machine.
73097
73098 2007-01-27  Bruno Haible  <bruno@clisp.org>
73099
73100         * modules/unistr/base: Update.
73101
73102 2007-01-27  Bruno Haible  <bruno@clisp.org>
73103
73104         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
73105         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
73106         * modules/unistr/u32-mbtouc-unsafe: Renamed from
73107         modules/unistr/u32-mbtouc.
73108         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
73109         * lib/unistr.h: Update.
73110         * lib/linebreak.c: Update.
73111         * modules/unistr/u32-mbtouc: Renamed from
73112         modules/unistr/u32-mbtouc-safe.
73113         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
73114         * lib/unistr.h: Update.
73115         * lib/unistr/u32-to-u8.c: Update.
73116         * lib/unistr/u32-to-u16.c: Update.
73117
73118 2007-01-27  Bruno Haible  <bruno@clisp.org>
73119
73120         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
73121         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
73122         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
73123         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
73124         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
73125         * modules/unistr/u16-mbtouc-unsafe: Renamed from
73126         modules/unistr/u16-mbtouc.
73127         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
73128         * lib/unistr.h: Update.
73129         * lib/linebreak.c: Update.
73130         * modules/linebreak: Update.
73131         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
73132         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
73133         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
73134         * modules/unistr/u16-mbtouc: Renamed from
73135         modules/unistr/u16-mbtouc-safe.
73136         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
73137         * lib/unistr.h: Update.
73138         * lib/unistr/u16-to-u8.c: Update.
73139         * modules/unistr/u16-to-u8: Update.
73140         * lib/unistr/u16-to-u32.c: Update.
73141         * modules/unistr/u16-to-u32: Update.
73142
73143 2007-01-27  Bruno Haible  <bruno@clisp.org>
73144
73145         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
73146         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
73147         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
73148         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
73149         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
73150         * modules/unistr/u8-mbtouc-unsafe: Renamed from
73151         modules/unistr/u8-mbtouc.
73152         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
73153         * lib/unistr.h: Update.
73154         * lib/striconveh.c: Update.
73155         * modules/striconveh: Update.
73156         * lib/linebreak.c: Update.
73157         * modules/linebreak: Update.
73158         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
73159         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
73160         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
73161         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
73162         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
73163         * lib/unistr.h: Update.
73164         * lib/striconveh.c: Update.
73165         * modules/striconveh: Update.
73166         * lib/unistr/u8-to-u16.c: Update.
73167         * modules/unistr/u8-to-u16: Update.
73168         * lib/unistr/u8-to-u32.c: Update.
73169         * modules/unistr/u8-to-u32: Update.
73170
73171 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73172
73173         Sync from Libtool.
73174         * lib/argz.c: Do not include strings.h nor memory.h, include
73175         string.h unconditionally.  Patch by Simon Josefsson.
73176
73177 2007-01-27  Bruno Haible  <bruno@clisp.org>
73178
73179         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
73180         from gl_HEADER_STRING_H_BODY.
73181         (gl_HEADER_STRING_H_BODY): Require it.
73182         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
73183         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
73184         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
73185         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
73186         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
73187         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
73188         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73189         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
73190         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
73191         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
73192         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
73193         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
73194         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
73195         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73196         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
73197
73198 2007-01-27  Bruno Haible  <bruno@clisp.org>
73199
73200         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
73201         check_PROGRAMS into noinst_PROGRAMS.
73202         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
73203         check_PROGRAMS in this case.
73204         (func_import): Set for_test to false.
73205         (func_create_testdir): Set for_test to true.
73206
73207 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73208             Bruno Haible  <bruno@clisp.org>
73209
73210         * modules/strcasestr (Files): Remove lib/strcasestr.h.
73211         (Depends-on): Add string.
73212         (Includes): Use <string.h> instead of strcasestr.h.
73213         * modules/string (Makefile.am): Also substitute the value of
73214         REPLACE_STRCASESTR.
73215         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
73216         assume strcasestr is declared in <string.h> not <strings.h>. Also
73217         set REPLACE_STRCASESTR.
73218         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
73219         REPLACE_STRCASESTR.
73220         * lib/strcasestr.h: Remove file.
73221         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
73222         * lib/string_.h (strcasestr): New declaration.
73223
73224 2007-01-27  Bruno Haible  <bruno@clisp.org>
73225
73226         * lib/string_.h: Use 'extern'.
73227
73228 2007-01-27  Jim Meyering  <jim@meyering.net>
73229
73230         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
73231         of set-but-not-used local, "q".
73232
73233         * lib/mempcpy.c: Include <config.h> before <string.h>.
73234         This fixes a compilation error on HP-UX, due to the system's
73235         "restrict"-using mempcpy prototype.
73236
73237 2007-01-26  Bruno Haible  <bruno@clisp.org>
73238
73239         Small optimization.
73240         * lib/javacomp.c: Include c-strstr.h.
73241          (is_envjavac_gcj): Use c_strstr instead of strstr.
73242         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
73243
73244 2007-01-26  Bruno Haible  <bruno@clisp.org>
73245
73246         * MODULES.html.sh (Unicode string functions): Add the new modules.
73247
73248         * modules/uniconv/u32-strconv-to-locale: New file.
73249         * lib/uniconv/u32-strconv-to-locale.c: New file.
73250
73251         * modules/uniconv/u16-strconv-to-locale: New file.
73252         * lib/uniconv/u16-strconv-to-locale.c: New file.
73253
73254         * modules/uniconv/u8-strconv-to-locale: New file.
73255         * lib/uniconv/u8-strconv-to-locale.c: New file.
73256
73257         * modules/uniconv/u32-strconv-from-locale: New file.
73258         * lib/uniconv/u32-strconv-from-locale.c: New file.
73259
73260         * modules/uniconv/u16-strconv-from-locale: New file.
73261         * lib/uniconv/u16-strconv-from-locale.c: New file.
73262
73263         * modules/uniconv/u8-strconv-from-locale: New file.
73264         * lib/uniconv/u8-strconv-from-locale.c: New file.
73265
73266         * modules/uniconv/u32-strconv-to-enc: New file.
73267         * lib/uniconv/u32-strconv-to-enc.c: New file.
73268         * modules/uniconv/u32-strconv-to-enc-tests: New file.
73269         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
73270
73271         * modules/uniconv/u16-strconv-to-enc: New file.
73272         * lib/uniconv/u16-strconv-to-enc.c: New file.
73273         * lib/uniconv/u-strconv-to-enc.h: New file.
73274         * modules/uniconv/u16-strconv-to-enc-tests: New file.
73275         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
73276
73277         * modules/uniconv/u8-strconv-to-enc: New file.
73278         * lib/uniconv/u8-strconv-to-enc.c: New file.
73279         * modules/uniconv/u8-strconv-to-enc-tests: New file.
73280         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
73281
73282         * modules/uniconv/u32-strconv-from-enc: New file.
73283         * lib/uniconv/u32-strconv-from-enc.c: New file.
73284         * modules/uniconv/u32-strconv-from-enc-tests: New file.
73285         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
73286
73287         * modules/uniconv/u16-strconv-from-enc: New file.
73288         * lib/uniconv/u16-strconv-from-enc.c: New file.
73289         * modules/uniconv/u16-strconv-from-enc-tests: New file.
73290         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
73291
73292         * modules/uniconv/u8-strconv-from-enc: New file.
73293         * lib/uniconv/u8-strconv-from-enc.c: New file.
73294         * lib/uniconv/u-strconv-from-enc.h: New file.
73295         * modules/uniconv/u8-strconv-from-enc-tests: New file.
73296         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
73297
73298         * modules/uniconv/u32-conv-from-enc: New file.
73299         * lib/uniconv/u32-conv-from-enc.c: New file.
73300         * modules/uniconv/u32-conv-from-enc-tests: New file.
73301         * tests/uniconv/test-u32-conv-from-enc.c: New file.
73302
73303         * modules/uniconv/u16-conv-from-enc: New file.
73304         * lib/uniconv/u16-conv-from-enc.c: New file.
73305         * lib/uniconv/u-conv-from-enc.h: New file.
73306         * modules/uniconv/u16-conv-from-enc-tests: New file.
73307         * tests/uniconv/test-u16-conv-from-enc.c: New file.
73308
73309         * modules/uniconv/u8-conv-from-enc: New file.
73310         * lib/uniconv/u8-conv-from-enc.c: New file.
73311         * modules/uniconv/u8-conv-from-enc-tests: New file.
73312         * tests/uniconv/test-u8-conv-from-enc.c: New file.
73313
73314         * modules/uniconv/base: New file.
73315         * lib/uniconv.h: New file.
73316
73317 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73318
73319         * doc/gnulib-tool.texi (Initial import): Update to match current
73320         behavior with strdup module.
73321         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
73322         * lib/memmem.h: Remove; all uses removed.  This is now done
73323         by <string.h>.
73324         * lib/mempcpy.h: Likewise.
73325         * lib/memrchr.h: Likewise.
73326         * lib/stpcpy.h: Likewise.
73327         * lib/stpncpy.h: Likewise.
73328         * lib/strcase.h: Likewise.
73329         * lib/strchrnul.h: Likewise.
73330         * lib/strdup.h: Likewise.
73331         * lib/strndup.h: Likewise.
73332         * lib/strnlen.h: Likewise.
73333         * lib/strpbrk.h: Likewise.
73334         * lib/strsep.h: Likewise.
73335         * lib/strstr.h: Likewise.
73336         * lib/strtok_r.h: Likewise.
73337         * lib/string_.h: New file.
73338         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
73339         Rely on <string.h> instead.
73340         * lib/canon-host.c: Likewise.
73341         * lib/chdir-long.c: Likewise.
73342         * lib/concatpath.c: Likewise.
73343         * lib/exclude.c: Likewise.
73344         * lib/fchdir.c: Likewise.
73345         * lib/getaddrinfo.c: Likewise.
73346         * lib/getcwd.c: Likewise.
73347         * lib/getsubopt.c: Likewise.
73348         * lib/glob.c: Likewise.
73349         * lib/hard-locale.c: Likewise.
73350         * lib/iconvme.c: Likewise.
73351         * lib/javacomp.c: Likewise.
73352         * lib/mempcpy.c: Likewise.
73353         * lib/memrchr.c: Likewise.
73354         * lib/regex_internal.h: Likewise.
73355         * lib/stpncpy.c: Likewise.
73356         * lib/strcasecmp.c: Likewise.
73357         * lib/strchrnul.c: Likewise.
73358         * lib/strdup.c: Likewise.
73359         * lib/striconv.c: Likewise.
73360         * lib/striconveh.c: Likewise.
73361         * lib/striconveha.c: Likewise.
73362         * lib/strncasecmp.c: Likewise.
73363         * lib/strndup.c: Likewise.
73364         * lib/strnlen.c: Likewise.
73365         * lib/strsep.c: Likewise.
73366         * lib/strstr.c: Likewise.
73367         * lib/strtok_r.c: Likewise.
73368         * lib/userspec.c: Likewise.
73369         * lib/w32spawn.h: Likewise.
73370         * lib/xstrndup.c: Likewise.
73371         * lib/mountlist.c (strstr): Remove decl.
73372         * m4/string_h.m4: New file.
73373         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
73374         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
73375         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
73376         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
73377         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
73378         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
73379         Set REPLACE_STRCASECMP if necessary.
73380         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
73381         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
73382         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
73383         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
73384         HAVE_DECL_STRDUP if necessary.
73385         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
73386         since gl_FUNC_STRNDUP does that now.
73387         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
73388         Check for decl here...
73389         (gl_PREREQ_STRNLEN): ... not here.
73390         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
73391         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
73392         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
73393         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
73394         necessary.
73395         * modules/string: New file.
73396         * modules/memmem (Files): Remove special-purpose include file.
73397         (Depends-on): Add string.
73398         (Include): Include <string.h>, not the removed file.
73399         * modules/mempcpy: Likewise.
73400         * modules/memrchr: Likewise.
73401         * modules/stpcpy: Likewise.
73402         * modules/stpncpy: Likewise.
73403         * modules/strcase: Likewise.
73404         * modules/strchrnul: Likewise.
73405         * modules/strdup: Likewise.
73406         * modules/strndup: Likewise.
73407         * modules/strnlen: Likewise.
73408         * modules/strpbrk: Likewise.
73409         * modules/strsep: Likewise.
73410         * modules/strstr: Likewise.
73411         * modules/strtok_r: Likewise.
73412         * tests/test-dirname.c: Don't include "strdup.h", since
73413         <string.h> now suffices.
73414         * tests/test-memmem.c: Don't include "memmem.h", since
73415         <string.h> now suffices.
73416
73417 2007-01-25  Bruno Haible  <bruno@clisp.org>
73418
73419         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
73420         *resultp is 0.
73421
73422         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
73423         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
73424         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
73425         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
73426
73427         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
73428         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
73429         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
73430         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
73431         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
73432         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
73433
73434 2007-01-24  Bruno Haible  <bruno@clisp.org>
73435
73436         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
73437         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
73438         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
73439         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
73440         gl_FUNC_FTS_CORE.
73441         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
73442         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
73443         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73444         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
73445         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
73446         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
73447         gl_FUNC_FCHOWNAT.
73448         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
73449         gl_FUNC_STRFTIME.
73450         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
73451         Reported by Ralf Wildenhues.
73452
73453 2007-01-24  Bruno Haible  <bruno@clisp.org>
73454
73455         Drop AC_REQUIRE calls that are redundant with the module dependencies.
73456         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
73457         gl_GETADDRINFO.
73458         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
73459         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
73460         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
73461
73462 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
73463
73464         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
73465         Don't use 'exit'; just return from 'main'.
73466         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
73467
73468         * lib/fnmatch_.h: Readjust white space and comments to match
73469         glibc, to avoid spurious diffs.
73470
73471 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73472
73473         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
73474         2004-12-01 change by Jakub Jelinek, since this code won't compile
73475         if !LIBC.  Problem reported by Bob Proulx.
73476
73477 2007-01-23  Bruno Haible  <bruno@clisp.org>
73478
73479         * lib/striconveh.c: Include c-strcaseeq.h.
73480         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
73481         * modules/striconveh (Depends-on): Add c-strcaseeq.
73482
73483 2007-01-23  Bruno Haible  <bruno@clisp.org>
73484
73485         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
73486
73487         * modules/c-strcaseeq: New file.
73488         * lib/c-strcaseeq.h: New file.
73489
73490         * modules/streq: New file.
73491         * lib/streq.h: New file.
73492
73493 2007-01-23  Bruno Haible  <bruno@clisp.org>
73494
73495         * modules/striconveha-tests: New file.
73496         * tests/test-striconveha.c: New file.
73497
73498         * lib/striconveha.h: Include <stdbool.h>.
73499         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
73500         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
73501         (mem_iconveha_notranslit): Renamed from mem_iconveha.
73502         (mem_iconveha): New function.
73503         (str_iconveha_notranslit): Renamed from str_iconveha.
73504         (str_iconveha): New function.
73505         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
73506         c-strcase.
73507
73508 2007-01-23  Bruno Haible  <bruno@clisp.org>
73509
73510         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
73511         encodings without forgiving before trying any encoding with handler.
73512         (str_iconveha): Try all encodings without forgiving before trying any
73513         encoding with handler.
73514
73515 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73516
73517         Import the following changes from libc.
73518
73519         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73520
73521         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
73522
73523         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73524
73525         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
73526         normal_bracket label.
73527
73528         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
73529
73530         [BZ #361]
73531         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
73532         to normal_bracket after fetching the next character.
73533
73534 2007-01-22  Bruno Haible  <bruno@clisp.org>
73535
73536         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
73537         argument.
73538         * lib/striconveh.c (iconv_carefully_1): New function.
73539         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
73540         argument.
73541         (str_cd_iconveh): Update.
73542         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
73543         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
73544         * tests/test-striconveh.c (MAGIC): New macro.
73545         (new_offsets): New function.
73546         (main): Test call with and without offsets.
73547
73548 2007-01-22  Bruno Haible  <bruno@clisp.org>
73549
73550         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
73551         * modules/sys_select (Makefile.am): Likewise.
73552         * modules/sys_socket (Makefile.am): Likewise.
73553         * modules/sys_time (Makefile.am): Likewise.
73554
73555 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73556
73557         * modules/gettimeofday (License): Change from GPL to LGPL, since
73558         gettimeofday is a library function.
73559
73560 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73561
73562         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
73563
73564 2007-01-21  Bruno Haible  <bruno@clisp.org>
73565
73566         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
73567
73568 2007-01-21  Bruno Haible  <bruno@clisp.org>
73569
73570         * modules/striconveha: New file.
73571         * lib/striconveha.h: New file.
73572         * lib/striconveha.c: New file.
73573         * MODULES.html.sh (Internationalization functions): Add striconveha.
73574         * lib/striconv.c (str_iconv): Optimize the case of an empty input
73575         string.
73576         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
73577
73578 2007-01-21  Bruno Haible  <bruno@clisp.org>
73579
73580         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
73581         * lib/striconveh.c (str_iconveh): Likewise.
73582
73583 2007-01-21  Bruno Haible  <bruno@clisp.org>
73584
73585         * lib/striconveh.h (mem_iconveh): New declaration.
73586         * lib/striconveh.c (mem_iconveh): New function.
73587         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
73588
73589 2007-01-21  Bruno Haible  <bruno@clisp.org>
73590
73591         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
73592
73593         * lib/striconveh.h (mem_cd_iconveh): Change specification.
73594         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
73595         original result buffer.
73596         (str_cd_iconveh): Update.
73597         * tests/test-striconveh.c (main): Update.
73598
73599         * lib/striconv.h (mem_cd_iconv): Change specification.
73600         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
73601         result buffer.
73602         (str_cd_iconv): Update.
73603         * tests/test-striconv.c (main): Update.
73604
73605 2007-01-21  Bruno Haible  <bruno@clisp.org>
73606
73607         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
73608
73609 2007-01-20  Jim Meyering  <jim@meyering.net>
73610
73611         * lib/userspec.c (parse_with_separator): If a user or group string
73612         starts with "+", skip the corresponding name-to-ID look-up, since
73613         such a look-up must fail: user and group names may not include "+".
73614
73615 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73616
73617         * lib/poll.c: Include sys/time.h and time.h unconditionally,
73618         since we now assume the sys_time module.
73619         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
73620         check for sys/time.h; no longer needed.
73621         * modules/poll (Depends-on): Depend on sys_time.
73622
73623 2007-01-18  Bruno Haible  <bruno@clisp.org>
73624
73625         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
73626         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73627
73628         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
73629         gettimeofday.
73630
73631         * tests/test-gettimeofday.c: Include <time.h>.
73632         (dummy): Remove variable.
73633
73634         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
73635         gl_HEADER_SYS_TIME_H.
73636         (gl_HEADER_SYS_TIME_H): New macro.
73637
73638         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
73639         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73640         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
73641         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
73642         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73643         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
73644         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
73645         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73646         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
73647         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
73648         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73649
73650         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
73651         last change; it caused a compilation error when cross-compiling to
73652         Cygwin.
73653
73654 2007-01-18  Jim Meyering  <jim@meyering.net>
73655
73656         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
73657         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
73658         than the race-prone "test -d sys || mkdir sys".
73659         (configure.ac): Use AC_PROG_MKDIR_P.
73660         * modules/sys_select: Likewise.
73661         * modules/sys_socket: Likewise.
73662         * modules/sys_time: Likewise.
73663
73664 2007-01-18  Eric Blake  <ebb9@byu.net>
73665
73666         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
73667         replace gettimeofday.
73668         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
73669         name, to avoid infinite recursion.
73670
73671 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
73672
73673         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
73674         module sys_time.
73675         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
73676         assume timespec.h defines struct timeval.
73677         * lib/settime.c: Likewise.
73678         * lib/utimens.c: Likewise.
73679         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
73680         since we now assume the gettimeofday module.
73681         * lib/tempname.c (__gen_tempname): Likewise.
73682         * lib/gettimeofday.h: Remove.
73683         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
73684         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
73685         Include <time.h>, for 'time()'.
73686         (localtime_buffer_addr): Also use this workaround if
73687         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
73688         to simplify the uses.  All uses changed.
73689         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
73690         that #undef is inside {}, and 'const' follows type name consistently.
73691         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
73692         (gettimeofday): Do not use the maximum possible value for
73693         tv->tv_usec, since that might break usages other than ls.c.
73694         Instead, we'll leave ls.c alone.  This undoes today's patch
73695         by Bruno.  Add a compile-time warning for 1s-clock resolution;
73696         we've never observed the problem but might as well keep the
73697         canary.
73698         * lib/nanosleep.c: Include timespec.h first, for interface check.
73699         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
73700         now assume the sys_time module.
73701         * lib/tempname.c: Likewise.
73702         * lib/timespec.h: Likewise.
73703         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
73704         needed.
73705         * lib/strftime.c: Likewise.
73706         * lib/timespec.h: Likewise.
73707         * lib/posixtm.c: Include posixtm.h first, for interface check.
73708         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
73709         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
73710         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
73711         * lib/sys_time_.h: New file.
73712         * lib/timespec.h (struct timespec): Use long int, not long.
73713         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73714         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
73715         Remove obsolescent call to AC_HEADER_TIME.
73716         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
73717         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73718         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73719         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
73720         Likewise.
73721         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
73722         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
73723         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
73724         into the sys_time module.  Check for gettimeofday just once.
73725         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
73726         for gettimeofday signature to just check the signature.  Merely
73727         compile it, since linking doesn't test signature.  Improve test for
73728         whether gettimeofday.o is actually needed.
73729         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
73730         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
73731         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
73732         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73733         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
73734         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
73735         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
73736         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
73737         than worrying about sys/time.h.
73738         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73739         Don't bother worrying about TIME_WITH_SYS_TIME.
73740         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
73741         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
73742         * m4/sys_time_h.m4: New file.
73743         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
73744         Don't include sys/time.h.  Return from main rather than exiting.
73745         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
73746         all uses changed.
73747         * modules/gethrxtime (Depends-on): Add sys_time.
73748         * modules/gettime (Depends-on): Likewise.
73749         * modules/gettimeofday (Depends-on): Likewise.
73750         * modules/nanosleep (Depends-on): Likewise.
73751         * modules/settime (Depends-on): Likewise.
73752         * modules/tempname (Depends-on): Likewise.
73753         * modules/utimens (Depends-on): Likewise.
73754         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
73755         (Include): Change back to <sys/time.h>.
73756         (Maintainer): Add self.
73757         * modules/sys_time: New file.
73758         * modules/tempname (Depends-on): Add gettimeofday.
73759         * tests/test-gettimeofday.c: Include <sys/time.h>
73760         rather than gettimeofday.h.
73761
73762 2007-01-17  Bruno Haible  <bruno@clisp.org>
73763
73764         * gnulib-tool (func_get_license): Revert last patch. Instead, let
73765         the license default to GPL.
73766         (func_create_testdir): Don't complain if a module is LGPL and its
73767         tests module depends on GPLed modules.
73768
73769 2007-01-17  Bruno Haible  <bruno@clisp.org>
73770
73771         * lib/gettimeofday.c (gettimeofday): Add code for the case
73772         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
73773         maximum possible value for tv->tv_usec, rather than the minimum one.
73774
73775 2005-10-08  Martin Lambers  <marlam@marlam.de>
73776 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73777 2007-01-16  Bruno Haible  <bruno@clisp.org>
73778
73779         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
73780         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
73781         gl_FUNC_GETTIMEOFDAY.
73782         (Include): Add gettimeofday.h.
73783         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
73784         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
73785         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
73786         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
73787         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
73788         * lib/gettimeofday.h: New file.
73789         * lib/gettimeofday.c: Include <sys/timeb.h>.
73790         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
73791         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73792         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
73793         fall back on time().
73794
73795         * tests/test-gettimeofday.c: New file.
73796         * modules/gettimeofday-tests: New file.
73797
73798 2007-01-16  Eric Blake  <ebb9@byu.net>
73799
73800         * modules/fnmatch (Depends-on): Depend on wchar.
73801         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
73802         * m4/fnmatch.m4: Likewise.
73803         * modules/mbchar (Makefile.am): Assume <wchar.h>.
73804         * m4/mbchar.m4: Likewise.
73805         * modules/mbswidth (Depends-on): Depend on wchar.
73806         * lib/mbswidth.c: Assume <wchar.h>.
73807         * m4/mbswidth.m4: Likewise.
73808         * modules/quotearg (Depends-on): Depend on wchar.
73809         * lib/quotearg.c: Assume <wchar.h>.
73810         * m4/quotearg.m4: Likewise.
73811         * modules/regex (Depends-on): Depend on wchar.
73812         * lib/regex_internal.h: Assume <wchar.h>.
73813         * m4/regex.m4: Likewise.
73814         * modules/stdint (Depends-on): Depend on wchar.
73815         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
73816         * m4/stdint.m4: Likewise.
73817         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
73818         * modules/strftime (Depends-on): Depend on wchar.
73819         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
73820         * modules/strtol (Depends-on): Depend on wchar.
73821         * lib/strtol.c: Assume <wchar.h>.
73822         * modules/wcwidth (Depends-on): Depend on wchar.
73823         * lib/wcwidth.h: Assume <wchar.h>.
73824         * m4/wcwidth.m4: Likewise.
73825
73826 2007-01-16  Bruno Haible  <bruno@clisp.org>
73827
73828         * modules/csharpexec-script: New, created from...
73829         * modules/csharpexec: ... this.
73830
73831 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
73832
73833         * modules/javaexec-script: New, created from...
73834         * modules/javaexec: ... this.
73835
73836 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73837
73838         * modules/poll (Dependencies): Add sys_select.
73839
73840 2007-01-15  Jim Meyering  <jim@meyering.net>
73841
73842         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
73843         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
73844         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
73845         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
73846
73847 2007-01-15  Bruno Haible  <bruno@clisp.org>
73848
73849         * modules/striconveh: New file.
73850         * lib/striconveh.h: New file.
73851         * lib/striconveh.c: New file.
73852         * MODULES.html.sh (Internationalization functions): Add striconveh.
73853
73854         * modules/striconveh-tests: New file.
73855         * tests/test-striconveh.c: New file.
73856
73857 2007-01-15  Bruno Haible  <bruno@clisp.org>
73858
73859         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
73860         not from GNU libiconv or GNU libc.
73861
73862 2007-01-15  Bruno Haible  <bruno@clisp.org>
73863
73864         * doc/gnulib-intro.texi (Copyright): Explain the different license
73865         terms for module descriptions, autoconf macros, tests, documentation.
73866
73867 2007-01-14  Bruno Haible  <bruno@clisp.org>
73868
73869         * modules/striconv-tests: New file.
73870         * tests/test-striconv.c: New file.
73871
73872 2007-01-14  Bruno Haible  <bruno@clisp.org>
73873
73874         * modules/iconv-tests: New file.
73875         * tests/test-iconv.c: New file.
73876
73877 2007-01-14  Bruno Haible  <bruno@clisp.org>
73878
73879         * gnulib-tool (func_get_license): For test modules, use the license of
73880         the main module.
73881
73882 2007-01-14  Bruno Haible  <bruno@clisp.org>
73883
73884         * modules/iconv (Include): Clarify that <iconv.h> can only be included
73885         if iconv is found to exist.
73886
73887 2007-01-14  Bruno Haible  <bruno@clisp.org>
73888
73889         * modules/c-ctype-tests: New file.
73890         * tests/test-c-ctype.c: New file.
73891
73892 2007-01-14  Bruno Haible  <bruno@clisp.org>
73893
73894         * modules/binary-io-tests: New file.
73895         * tests/test-binary-io.sh: New file.
73896         * tests/test-binary-io.c: New file.
73897
73898 2007-01-14  Bruno Haible  <bruno@clisp.org>
73899
73900         * modules/array-oset-tests: New file.
73901         * tests/test-array_oset.c: New file.
73902
73903 2007-01-14  Bruno Haible  <bruno@clisp.org>
73904
73905         * modules/array-list-tests: New file.
73906         * tests/test-array_list.c: New file.
73907
73908 2007-01-14  Bruno Haible  <bruno@clisp.org>
73909
73910         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
73911         and make.
73912         Reported by Simon Josefsson in
73913         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
73914
73915 2007-01-14  Bruno Haible  <bruno@clisp.org>
73916
73917         * modules/allocsa-tests: New file.
73918         * tests/test-allocsa.c: New file.
73919
73920 2007-01-14  Bruno Haible  <bruno@clisp.org>
73921
73922         * modules/fchdir (Depends-on): Add absolute-header.
73923         * modules/unistd (Depends-on): Likewise.
73924
73925 2006-12-30  Bruno Haible  <bruno@clisp.org>
73926
73927         * modules/fchdir: New file.
73928         * modules/unistd (Files): Add lib/unistd_.h.
73929         (Makefile.am): Generate unistd.h from unistd_.h.
73930         * lib/fchdir.c: New file.
73931         * lib/dirent_.h: New file.
73932         * lib/unistd_.h: New file.
73933         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
73934         * m4/fchdir.m4: New file.
73935         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
73936         (gl_HEADER_UNISTD): Invoke it.
73937         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
73938         function.
73939         * lib/backupfile.c (opendir, closedir): Undefine.
73940         * lib/chown.c (open, close): Undefine.
73941         * lib/clean-temp.c (open, close): Undefine.
73942         * lib/copy-file.c (open, close): Undefine.
73943         * lib/execute.c (open, close): Undefine.
73944         * lib/fsusage.c (open, close): Undefine.
73945         * lib/gc-gnulib.c (open, close): Undefine.
73946         * lib/getcwd.c (opendir, closedir): Undefine.
73947         * lib/glob.c (opendir, closedir): Undefine.
73948         * lib/javacomp.c (open, close): Undefine.
73949         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
73950         * lib/openat-proc.c (open, close): Undefine.
73951         * lib/pagealign_alloc.c (open, close): Undefine.
73952         * lib/pipe.c (open, close): Undefine.
73953         * lib/progreloc.c (open, close): Undefine.
73954         * lib/savedir.c (opendir, closedir): Undefine.
73955         * lib/utime.c (open, close): Undefine.
73956         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
73957
73958 2007-01-10  Bruno Haible  <bruno@clisp.org>
73959
73960         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
73961
73962 2007-01-12  Eric Blake  <ebb9@byu.net>
73963
73964         Provide a robust <wchar.h>.  Further simplifications are now
73965         possible in other modules, but not included here.
73966         * modules/wchar: New module.
73967         * m4/wchar.m4: New file.
73968         * lib/wchar_.h: Likewise.
73969         * modules/mbchar (Depends-on): Depend on wchar, as the first use
73970         of the new module.
73971         * MODULES.html.sh (Extended multibyte and wide character utilities):
73972         New section.
73973
73974 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
73975
73976         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
73977         to a reasonable default for memory allocation.
73978         (xreadlink): Don't allocate a huge buffer, to work around a buggy
73979         file system that reports garbage st_size values for symlinks.
73980         Problem reported by Liyang Hu.
73981
73982 2007-01-11  Simon Josefsson  <simon@josefsson.org>
73983
73984         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
73985         Emacs .#* auto-save files).
73986
73987 2007-01-11  Bruno Haible  <bruno@clisp.org>
73988
73989         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
73990         directory.
73991
73992 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73993
73994         Use @...@ consistently in lib/wctype_.h.
73995         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
73996         on it being set to 1 or 0.
73997         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
73998         go back to AC_SUBSTing it.
73999         * modules/wctype (Makefile.am): Undo previous change.
74000
74001 2007-01-10  Eric Blake  <ebb9@byu.net>
74002
74003         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
74004         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
74005         * modules/wctype (Makefile.am): Likewise.
74006         Reported by Chris McGuire.
74007
74008 2007-01-10  Jim Meyering  <jim@meyering.net>
74009
74010         fts.c: a small readability/maintainability improvement
74011         * lib/fts.c (fts_read): Make this code slightly more readable and
74012         maintainable by hoisting the "sp->fts_cur = p" assignments to
74013         immediately follow the statements that set P.  Derived from
74014         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
74015
74016 2007-01-10  Eric Blake  <ebb9@byu.net>
74017
74018         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
74019         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
74020         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74021         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
74022         Reported by Chris McGuire.
74023
74024 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74025
74026         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
74027         in sed script.
74028
74029 2007-01-09  Bruno Haible  <bruno@clisp.org>
74030
74031         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
74032         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
74033         variables.
74034         (func_module): Use them.
74035
74036 2007-01-09  Bruno Haible  <bruno@clisp.org>
74037
74038         * modules/unistr/base: New file.
74039         * lib/unistr.h: New file.
74040
74041         * modules/unistr/u8-to-u16: New file.
74042         * lib/unistr/u8-to-u16.c: New file.
74043
74044         * modules/unistr/u8-to-u32: New file.
74045         * lib/unistr/u8-to-u32.c: New file.
74046
74047         * modules/unistr/u16-to-u8: New file.
74048         * lib/unistr/u16-to-u8.c: New file.
74049
74050         * modules/unistr/u16-to-u32: New file.
74051         * lib/unistr/u16-to-u32.c: New file.
74052
74053         * modules/unistr/u32-to-u8: New file.
74054         * lib/unistr/u32-to-u8.c: New file.
74055
74056         * modules/unistr/u32-to-u16: New file.
74057         * lib/unistr/u32-to-u16.c: New file.
74058
74059         * modules/unistr/u8-check: New file.
74060         * modules/unistr/u16-check: New file.
74061         * modules/unistr/u32-check: New file.
74062         * lib/unistr/u8-check.c: New file.
74063         * lib/unistr/u16-check.c: New file.
74064         * lib/unistr/u32-check.c: New file.
74065
74066         * modules/unistr/u8-chr: New file.
74067         * modules/unistr/u16-chr: New file.
74068         * modules/unistr/u32-chr: New file.
74069         * lib/unistr/u8-chr.c: New file.
74070         * lib/unistr/u16-chr.c: New file.
74071         * lib/unistr/u32-chr.c: New file.
74072
74073         * modules/unistr/u8-cmp: New file.
74074         * modules/unistr/u16-cmp: New file.
74075         * modules/unistr/u32-cmp: New file.
74076         * lib/unistr/u8-cmp.c: New file.
74077         * lib/unistr/u16-cmp.c: New file.
74078         * lib/unistr/u32-cmp.c: New file.
74079
74080         * modules/unistr/u8-cpy: New file.
74081         * modules/unistr/u16-cpy: New file.
74082         * modules/unistr/u32-cpy: New file.
74083         * lib/unistr/u8-cpy.c: New file.
74084         * lib/unistr/u16-cpy.c: New file.
74085         * lib/unistr/u32-cpy.c: New file.
74086         * lib/unistr/u-cpy.h: New file.
74087
74088         * modules/unistr/u8-cpy-alloc: New file.
74089         * modules/unistr/u16-cpy-alloc: New file.
74090         * modules/unistr/u32-cpy-alloc: New file.
74091         * lib/unistr/u8-cpy-alloc.c: New file.
74092         * lib/unistr/u16-cpy-alloc.c: New file.
74093         * lib/unistr/u32-cpy-alloc.c: New file.
74094         * lib/unistr/u-cpy-alloc.h: New file.
74095
74096         * modules/unistr/u8-endswith: New file.
74097         * modules/unistr/u16-endswith: New file.
74098         * modules/unistr/u32-endswith: New file.
74099         * lib/unistr/u8-endswith.c: New file.
74100         * lib/unistr/u16-endswith.c: New file.
74101         * lib/unistr/u32-endswith.c: New file.
74102         * lib/unistr/u-endswith.h: New file.
74103
74104         * modules/unistr/u8-mblen: New file.
74105         * modules/unistr/u16-mblen: New file.
74106         * modules/unistr/u32-mblen: New file.
74107         * lib/unistr/u8-mblen.c: New file.
74108         * lib/unistr/u16-mblen.c: New file.
74109         * lib/unistr/u32-mblen.c: New file.
74110
74111         * modules/unistr/u8-mbtouc: New file.
74112         * modules/unistr/u16-mbtouc: New file.
74113         * modules/unistr/u32-mbtouc: New file.
74114         * lib/unistr/u8-mbtouc.c: New file.
74115         * lib/unistr/u16-mbtouc.c: New file.
74116         * lib/unistr/u32-mbtouc.c: New file.
74117
74118         * modules/unistr/u8-mbtouc-safe: New file.
74119         * modules/unistr/u16-mbtouc-safe: New file.
74120         * modules/unistr/u32-mbtouc-safe: New file.
74121         * lib/unistr/u8-mbtouc-safe.c: New file.
74122         * lib/unistr/u16-mbtouc-safe.c: New file.
74123         * lib/unistr/u32-mbtouc-safe.c: New file.
74124
74125         * modules/unistr/u8-move: New file.
74126         * modules/unistr/u16-move: New file.
74127         * modules/unistr/u32-move: New file.
74128         * lib/unistr/u8-move.c: New file.
74129         * lib/unistr/u16-move.c: New file.
74130         * lib/unistr/u32-move.c: New file.
74131         * lib/unistr/u-move.h: New file.
74132
74133         * modules/unistr/u8-next: New file.
74134         * modules/unistr/u16-next: New file.
74135         * modules/unistr/u32-next: New file.
74136         * lib/unistr/u8-next.c: New file.
74137         * lib/unistr/u16-next.c: New file.
74138         * lib/unistr/u32-next.c: New file.
74139
74140         * modules/unistr/u8-prev: New file.
74141         * modules/unistr/u16-prev: New file.
74142         * modules/unistr/u32-prev: New file.
74143         * lib/unistr/u8-prev.c: New file.
74144         * lib/unistr/u16-prev.c: New file.
74145         * lib/unistr/u32-prev.c: New file.
74146
74147         * modules/unistr/u8-set: New file.
74148         * modules/unistr/u16-set: New file.
74149         * modules/unistr/u32-set: New file.
74150         * lib/unistr/u8-set.c: New file.
74151         * lib/unistr/u16-set.c: New file.
74152         * lib/unistr/u32-set.c: New file.
74153         * lib/unistr/u-set.h: New file.
74154
74155         * modules/unistr/u8-startswith: New file.
74156         * modules/unistr/u16-startswith: New file.
74157         * modules/unistr/u32-startswith: New file.
74158         * lib/unistr/u8-startswith.c: New file.
74159         * lib/unistr/u16-startswith.c: New file.
74160         * lib/unistr/u32-startswith.c: New file.
74161         * lib/unistr/u-startswith.h: New file.
74162
74163         * modules/unistr/u8-stpcpy: New file.
74164         * modules/unistr/u16-stpcpy: New file.
74165         * modules/unistr/u32-stpcpy: New file.
74166         * lib/unistr/u8-stpcpy.c: New file.
74167         * lib/unistr/u16-stpcpy.c: New file.
74168         * lib/unistr/u32-stpcpy.c: New file.
74169         * lib/unistr/u-stpcpy.h: New file.
74170
74171         * modules/unistr/u8-stpncpy: New file.
74172         * modules/unistr/u16-stpncpy: New file.
74173         * modules/unistr/u32-stpncpy: New file.
74174         * lib/unistr/u8-stpncpy.c: New file.
74175         * lib/unistr/u16-stpncpy.c: New file.
74176         * lib/unistr/u32-stpncpy.c: New file.
74177         * lib/unistr/u-stpncpy.h: New file.
74178
74179         * modules/unistr/u8-strcat: New file.
74180         * modules/unistr/u16-strcat: New file.
74181         * modules/unistr/u32-strcat: New file.
74182         * lib/unistr/u8-strcat.c: New file.
74183         * lib/unistr/u16-strcat.c: New file.
74184         * lib/unistr/u32-strcat.c: New file.
74185         * lib/unistr/u-strcat.h: New file.
74186
74187         * modules/unistr/u8-strchr: New file.
74188         * modules/unistr/u16-strchr: New file.
74189         * modules/unistr/u32-strchr: New file.
74190         * lib/unistr/u8-strchr.c: New file.
74191         * lib/unistr/u16-strchr.c: New file.
74192         * lib/unistr/u32-strchr.c: New file.
74193
74194         * modules/unistr/u8-strcmp: New file.
74195         * modules/unistr/u16-strcmp: New file.
74196         * modules/unistr/u32-strcmp: New file.
74197         * lib/unistr/u8-strcmp.c: New file.
74198         * lib/unistr/u16-strcmp.c: New file.
74199         * lib/unistr/u32-strcmp.c: New file.
74200
74201         * modules/unistr/u8-strcpy: New file.
74202         * modules/unistr/u16-strcpy: New file.
74203         * modules/unistr/u32-strcpy: New file.
74204         * lib/unistr/u8-strcpy.c: New file.
74205         * lib/unistr/u16-strcpy.c: New file.
74206         * lib/unistr/u32-strcpy.c: New file.
74207         * lib/unistr/u-strcpy.h: New file.
74208
74209         * modules/unistr/u8-strcspn: New file.
74210         * modules/unistr/u16-strcspn: New file.
74211         * modules/unistr/u32-strcspn: New file.
74212         * lib/unistr/u8-strcspn.c: New file.
74213         * lib/unistr/u16-strcspn.c: New file.
74214         * lib/unistr/u32-strcspn.c: New file.
74215         * lib/unistr/u-strcspn.h: New file.
74216
74217         * modules/unistr/u8-strdup: New file.
74218         * modules/unistr/u16-strdup: New file.
74219         * modules/unistr/u32-strdup: New file.
74220         * lib/unistr/u8-strdup.c: New file.
74221         * lib/unistr/u16-strdup.c: New file.
74222         * lib/unistr/u32-strdup.c: New file.
74223         * lib/unistr/u-strdup.h: New file.
74224
74225         * modules/unistr/u8-strlen: New file.
74226         * modules/unistr/u16-strlen: New file.
74227         * modules/unistr/u32-strlen: New file.
74228         * lib/unistr/u8-strlen.c: New file.
74229         * lib/unistr/u16-strlen.c: New file.
74230         * lib/unistr/u32-strlen.c: New file.
74231         * lib/unistr/u-strlen.h: New file.
74232
74233         * modules/unistr/u8-strmblen: New file.
74234         * modules/unistr/u16-strmblen: New file.
74235         * modules/unistr/u32-strmblen: New file.
74236         * lib/unistr/u8-strmblen.c: New file.
74237         * lib/unistr/u16-strmblen.c: New file.
74238         * lib/unistr/u32-strmblen.c: New file.
74239
74240         * modules/unistr/u8-strmbtouc: New file.
74241         * modules/unistr/u16-strmbtouc: New file.
74242         * modules/unistr/u32-strmbtouc: New file.
74243         * lib/unistr/u8-strmbtouc.c: New file.
74244         * lib/unistr/u16-strmbtouc.c: New file.
74245         * lib/unistr/u32-strmbtouc.c: New file.
74246
74247         * modules/unistr/u8-strncat: New file.
74248         * modules/unistr/u16-strncat: New file.
74249         * modules/unistr/u32-strncat: New file.
74250         * lib/unistr/u8-strncat.c: New file.
74251         * lib/unistr/u16-strncat.c: New file.
74252         * lib/unistr/u32-strncat.c: New file.
74253         * lib/unistr/u-strncat.h: New file.
74254
74255         * modules/unistr/u8-strncmp: New file.
74256         * modules/unistr/u16-strncmp: New file.
74257         * modules/unistr/u32-strncmp: New file.
74258         * lib/unistr/u8-strncmp.c: New file.
74259         * lib/unistr/u16-strncmp.c: New file.
74260         * lib/unistr/u32-strncmp.c: New file.
74261
74262         * modules/unistr/u8-strncpy: New file.
74263         * modules/unistr/u16-strncpy: New file.
74264         * modules/unistr/u32-strncpy: New file.
74265         * lib/unistr/u8-strncpy.c: New file.
74266         * lib/unistr/u16-strncpy.c: New file.
74267         * lib/unistr/u32-strncpy.c: New file.
74268         * lib/unistr/u-strncpy.h: New file.
74269
74270         * modules/unistr/u8-strnlen: New file.
74271         * modules/unistr/u16-strnlen: New file.
74272         * modules/unistr/u32-strnlen: New file.
74273         * lib/unistr/u8-strnlen.c: New file.
74274         * lib/unistr/u16-strnlen.c: New file.
74275         * lib/unistr/u32-strnlen.c: New file.
74276         * lib/unistr/u-strnlen.h: New file.
74277
74278         * modules/unistr/u8-strpbrk: New file.
74279         * modules/unistr/u16-strpbrk: New file.
74280         * modules/unistr/u32-strpbrk: New file.
74281         * lib/unistr/u8-strpbrk.c: New file.
74282         * lib/unistr/u16-strpbrk.c: New file.
74283         * lib/unistr/u32-strpbrk.c: New file.
74284         * lib/unistr/u-strpbrk.h: New file.
74285
74286         * modules/unistr/u8-strrchr: New file.
74287         * modules/unistr/u16-strrchr: New file.
74288         * modules/unistr/u32-strrchr: New file.
74289         * lib/unistr/u8-strrchr.c: New file.
74290         * lib/unistr/u16-strrchr.c: New file.
74291         * lib/unistr/u32-strrchr.c: New file.
74292
74293         * modules/unistr/u8-strspn: New file.
74294         * modules/unistr/u16-strspn: New file.
74295         * modules/unistr/u32-strspn: New file.
74296         * lib/unistr/u8-strspn.c: New file.
74297         * lib/unistr/u16-strspn.c: New file.
74298         * lib/unistr/u32-strspn.c: New file.
74299         * lib/unistr/u-strspn.h: New file.
74300
74301         * modules/unistr/u8-strstr: New file.
74302         * modules/unistr/u16-strstr: New file.
74303         * modules/unistr/u32-strstr: New file.
74304         * lib/unistr/u8-strstr.c: New file.
74305         * lib/unistr/u16-strstr.c: New file.
74306         * lib/unistr/u32-strstr.c: New file.
74307         * lib/unistr/u-strstr.h: New file.
74308
74309         * modules/unistr/u8-strtok: New file.
74310         * modules/unistr/u16-strtok: New file.
74311         * modules/unistr/u32-strtok: New file.
74312         * lib/unistr/u8-strtok.c: New file.
74313         * lib/unistr/u16-strtok.c: New file.
74314         * lib/unistr/u32-strtok.c: New file.
74315         * lib/unistr/u-strtok.h: New file.
74316
74317         * modules/unistr/u8-uctomb: New file.
74318         * modules/unistr/u16-uctomb: New file.
74319         * modules/unistr/u32-uctomb: New file.
74320         * lib/unistr/u8-uctomb.c: New file.
74321         * lib/unistr/u16-uctomb.c: New file.
74322         * lib/unistr/u32-uctomb.c: New file.
74323
74324         * MODULES.html.sh (Unicode string functions): Add the new modules.
74325
74326 2007-01-08  Bruno Haible  <bruno@clisp.org>
74327
74328         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
74329         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
74330         subdirectories.
74331
74332 2007-01-08  Karl Berry  <karl@gnu.org>
74333
74334         * doc/error.texi: mention that main() fns must set program_name
74335         when progname is used.
74336
74337 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
74338
74339         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
74340         WCTYPE_H is empty, for the benefit of builds from non-distclean
74341         directories.  Problem reported by Eric Blake in
74342         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
74343
74344 2007-01-08  Bruno Haible  <bruno@clisp.org>
74345
74346         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
74347         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
74348         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
74349         PROVIDE_CANONICALIZE_FILENAME_MODE.
74350         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
74351
74352 2007-01-08  Bruno Haible  <bruno@clisp.org>
74353
74354         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
74355         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
74356         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
74357         * lib/fts.c: Likewise.
74358         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
74359
74360 2006-12-25  Bruno Haible  <bruno@clisp.org>
74361
74362         * modules/utf8-ucs4-safe: New file.
74363         * lib/utf8-ucs4-safe.h: New file.
74364         * lib/unistr/utf8-ucs4-safe.c: New file.
74365
74366         * modules/utf16-ucs4-safe: New file.
74367         * lib/utf16-ucs4-safe.h: New file.
74368         * lib/unistr/utf16-ucs4-safe.c: New file.
74369
74370         * MODULES.html.sh (Unicode string functions): Add the new modules.
74371
74372 2007-01-08  Bruno Haible  <bruno@clisp.org>
74373
74374         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
74375         (Depends-on): Add unitypes.
74376         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74377         (u8_mbtouc_aux): Move out to separate file.
74378         (u8_mbtouc): Use ucs4_t, uint8_t types.
74379         * lib/unistr/utf8-ucs4.c: New file.
74380
74381         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
74382         (Depends-on): Add unitypes.
74383         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74384         (u16_mbtouc_aux): Move out to separate file.
74385         (u16_mbtouc): Use ucs4_t, uint16_t types.
74386         * lib/unistr/utf16-ucs4.c: New file.
74387
74388         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
74389         (Depends-on): Add unitypes.
74390         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
74391         (u8_uctomb_aux): Move out to separate file.
74392         (u8_uctomb): Use ucs4_t, uint8_t types.
74393         * lib/unistr/ucs4-utf8.c: New file.
74394
74395         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
74396         (Depends-on): Add unitypes.
74397         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
74398         (u16_uctomb_aux): Move out to separate file.
74399         (u16_uctomb): Use ucs4_t, uint16_t types.
74400         * lib/unistr/ucs4-utf16.c: New file.
74401
74402 2006-12-25  Bruno Haible  <bruno@clisp.org>
74403
74404         * modules/unitypes: New file.
74405         * lib/unitypes.h: New file.
74406         * MODULES.html.sh (func_all_modules): New section "Unicode string
74407         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
74408         this section. Add unitypes.
74409
74410 2007-01-08  Bruno Haible  <bruno@clisp.org>
74411
74412         Avoid variable names that conflict with those from libtool.
74413         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
74414         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
74415         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
74416         library_names_spec to acl_library_names_spec, hardcode_* to
74417         acl_hardcode_*.
74418         Reported by Ralf Wildenhues.
74419
74420 2007-01-08  Bruno Haible  <bruno@clisp.org>
74421
74422         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
74423         definition.
74424         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
74425         definition.
74426         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
74427         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
74428         definition.
74429         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
74430         definition.
74431         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
74432         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
74433         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
74434         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
74435         definition.
74436         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
74437         definition.
74438         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
74439         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
74440         GC_USE_<algorithm>.
74441         * lib/gc-libgcrypt.c: Likewise.
74442         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
74443         * modules/gc-arctwo (configure.ac): Likewise.
74444         * modules/gc-des (configure.ac): Likewise.
74445         * modules/gc-hmac-md5 (configure.ac): Likewise.
74446         * modules/gc-hmac-sha1 (configure.ac): Likewise.
74447         * modules/gc-md2 (configure.ac): Likewise.
74448         * modules/gc-md4 (configure.ac): Likewise.
74449         * modules/gc-md5 (configure.ac): Likewise.
74450         * modules/gc-random (configure.ac): Likewise.
74451         * modules/gc-rijndael (configure.ac): Likewise.
74452         * modules/gc-sha1 (configure.ac): Likewise.
74453
74454 2007-01-08  Bruno Haible  <bruno@clisp.org>
74455
74456         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
74457         macro definition.
74458         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
74459         definition.
74460         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
74461         definition.
74462         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
74463         * modules/fcntl-safer (configure.ac): Likewise.
74464         * modules/fopen-safer (configure.ac): Likewise.
74465         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
74466         GNULIB_FWRITEERROR macro definition.
74467
74468 2007-01-08  Bruno Haible  <bruno@clisp.org>
74469
74470         * m4/gnulib-common.m4: New file.
74471         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
74472         (func_get_filelist): Add m4/gnulib-common.m4.
74473
74474 2007-01-08  Bruno Haible  <bruno@clisp.org>
74475
74476         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
74477         command.
74478
74479 2007-01-08  Jim Meyering  <jim@meyering.net>
74480
74481         Use a more robust test for a "can't happen" condition.
74482         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
74483         narrowed the st_size value.  Presuming the "can't happen" condition
74484         is true, that narrowing could conceivably convert an invalid st_size
74485         value into a valid one.  Instead, use a change based on Matthew
74486         Woehlke's original patch.
74487
74488         Slight readability improvement: use an assert-like macro
74489         in place of literal "abort ()" uses.
74490         * lib/fts.c (fts_assert): Define.
74491         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
74492         Use this macro instead of a bare 'abort'.
74493
74494 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
74495
74496         Don't worry about using IRIX 5.3's wctype.h broken definitions;
74497         simply work around them.
74498         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
74499         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
74500         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
74501         declaring.
74502         Don't bother to define as macros, since the standard doesn't require it.
74503         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
74504         longer worry about IRIX 5.3.
74505         (HAVE_WCTYPE_CTMP_BUG): Remove.
74506
74507 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74508
74509         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
74510         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
74511         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
74512         Problems reported by Georg Schwarz for IRIX 5.3.
74513
74514         * gnulib-tool (autoconf_minversion): Take the maximum version number
74515         found, not the minimum.  Problem reported by James Youngman.
74516
74517 2007-01-03  Karl Berry  <karl@gnu.org>
74518
74519         * doc/error.texi: new file, explaining interaction with progname.
74520         * doc/gnulib.texi: include it.  Update copyright.
74521
74522 2007-01-03  Simon Josefsson  <simon@josefsson.org>
74523
74524         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
74525         AC_CANONICAL_HOST, to improve autobuild outputs.
74526
74527 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
74528             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74529
74530         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
74531         sockets, server sockets, and other file descriptors.  Count errors
74532         to compute the return value.  Reorder the code a bit to be easier
74533         to follow.  Don't set event bits that were not requested (except
74534         POLLERR and POLLHUP).
74535
74536 2007-01-01  Bruno Haible  <bruno@clisp.org>
74537
74538         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
74539
74540 2007-01-03  Jim Meyering  <jim@meyering.net>
74541
74542         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
74543
74544 2007-01-02  Bruno Haible  <bruno@clisp.org>
74545
74546         * modules/settime (Include): Require timespec.h.
74547         * modules/nanosleep (Include): Likewise.
74548
74549 2007-01-01  Bruno Haible  <bruno@clisp.org>
74550
74551         * gnulib-tool (func_emit_copyright_notice): Bump year.
74552         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
74553
74554 2007-01-01  Bruno Haible  <bruno@clisp.org>
74555
74556         Improve support for OpenBSD.
74557         * build-aux/config.rpath (libname_spec): Export.
74558         (library_names_spec): New variable. Export.
74559         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
74560         library_names_spec from the config.rpath output. Locate shared library
74561         through the name pattern in library_names_spec.
74562
74563 2007-01-01  Eric Blake  <ebb9@byu.net>
74564
74565         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
74566
74567 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
74568
74569         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
74570         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
74571         assume the C locale, and avoid an "eval" that could cause trouble.
74572         Problem with SORT reported by Bob Proulx.
74573
74574         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
74575         Define.  Trivial patch from Henning Nielsen Lund, originally
74576         sent to bug-grep@gnu.org today.
74577
74578 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
74579
74580         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
74581         struct stat.  Problem reported by Henning Nielsen Lund.
74582         * lib/acl.c: Include acl.h first, to check interface.  Don't
74583         bother to include sys/types.h and sys/stat.h again.
74584
74585 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74586
74587         Import the following change from libc; problem reported by
74588         Sven Verdoolaege.
74589
74590         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
74591
74592         [BZ #1373]
74593         * lib/argp.h: Remove __NTH for __argp_usage inline function.
74594
74595 2006-12-28  Jim Meyering  <jim@meyering.net>
74596
74597         * build-aux/announce-gen: Do not assume that the package
74598         builds any of tar.gz, tar.bz2, and .xdelta files.
74599         Suggestion from Simon Josefsson.
74600
74601 2006-12-28  Simon Josefsson  <simon@josefsson.org>
74602
74603         * modules/announce-gen: New file.
74604
74605 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
74606
74607         * lib/mbchar.h: Just include <wctype.h>; the wctype module
74608         handles its gotchas now.
74609         * lib/mbswidth.c: Likewise.
74610         * lib/wcwidth.h: Likewise.
74611         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
74612         and iswcntrl; the wctype module does this stuff now.
74613         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74614         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74615         * modules/mbchar (Depends-on): Add wctype.
74616         * modules/mbswidth (Depends-on): Likewise.
74617         * modules/wcwidth (Depends-on): Likewise.
74618
74619 2006-12-27  Eric Blake  <ebb9@byu.net>
74620
74621         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
74622         module uses more than what <wctype.h> is required to provide.
74623
74624 2006-12-26  Eric Blake  <ebb9@byu.net>
74625
74626         * gnulib-tool (sed_extract_prog): Avoid space-tab.
74627
74628 2006-12-26  Eric Blake  <ebb9@byu.net>
74629
74630         * modules/absolute-header: New module.
74631         * modules/fcntl (Depends-on): Depend on it.
74632         * modules/inttypes (Depends-on): Likewise.
74633         * modules/stdint (Depends-on): Likewise.
74634         * modules/sys_stat (Depends-on): Likewise.
74635         * modules/wctype (Depends-on): Likewise.
74636         * MODULES.html.sh (Support for building libraries and
74637         executables): Document it.
74638
74639 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
74640
74641         * gnulib-tool (SED): Remove, undoing previous change.
74642         The problem was that it broke coreutils on Solaris, because
74643         "sed --posix" leaked into a makefile.
74644         (sed): New alias, if 'alias' and GNU sed.
74645
74646 2006-12-24  Jim Meyering  <jim@meyering.net>
74647
74648         Work around an fchownat bug in glibc-2.4:
74649         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
74650         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
74651         in spite of the -P option.
74652         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
74653         New macros.
74654         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
74655         * modules/openat (Files): Add lib/fchownat.c.
74656         * lib/openat.c (fchownat): Don't define here.  Move to...
74657         * lib/fchownat.c: ...this new file.
74658
74659 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74660
74661         Fix bug reported by Bruno Haible in
74662         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
74663         where quotearg.c didn't compile on Mac OS X 10.2 because it
74664         lacks <wchar.h> and wint_t.
74665         * lib/wctype_.h (__wctype_wint_t): New type.
74666         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
74667         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
74668         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
74669         Arg is now of type __wctype_wint_t, not wint_t.
74670         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
74671         substitute HAVE_WINT_T.
74672         * modules/wctype (Files): Add m4/wint_t.m4.
74673         (wctype.h): Substitute HAVE_WINT_T.
74674
74675 2006-12-23  Bruno Haible  <bruno@clisp.org>
74676
74677         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
74678
74679 2006-12-23  Bruno Haible  <bruno@clisp.org>
74680
74681         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
74682         S_ISLNK.
74683         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
74684         mingw.
74685
74686 2006-12-22  Bruno Haible  <bruno@clisp.org>
74687
74688         * lib/copy-file.c: Include acl.h.
74689         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
74690         Close the file descriptors only after being done with copy_acl.
74691         * modules/copy-file (Depends-on): Add acl.
74692
74693 2006-12-22  Bruno Haible  <bruno@clisp.org>
74694
74695         * gnulib-tool (SED): New variable.
74696         Use $SED instead of sed everywhere.
74697
74698 2006-12-22  Bruno Haible  <bruno@clisp.org>
74699
74700         * modules/no-c++: New file.
74701         * m4/no-c++.m4: New file.
74702         * MODULES.html.sh (Support for building libraries and executables):
74703         Add no-c++.
74704
74705 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
74706
74707         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74708         Include <limits.h>, and use its INT_MAX to rewrite the
74709         j loop so that it does not overflow 'int'.  Problem reported by
74710         Ralf Wildenhues in
74711         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
74712         Play it safe by shifting left by 1 rather than multiplying by 2,
74713         as GCC is less likely to optimize this away when the value
74714         is signed (when it assumes overflow leads to undefined behavior).
74715         Also, don't assume time_t uses two's complement.
74716
74717 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
74718
74719         * MODULES.html.sh: New module wctype.
74720         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
74721         * lib/fnmatch.c: Don't bother to include <wchar.h> before
74722         <wctype.h>, since the new wctype module should fix this.
74723         * lib/quotearg.c: Include <wctype.h> unconditionally, since
74724         the wctype module should arrange for it.
74725         * lib/regex_internal.h: Likewise.
74726         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
74727         since the wctype module should handle this now.
74728         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
74729         * modules/fnmatch (Depends-on): Add wctype.
74730         * modules/quotearg (Depends-on): Likewise.
74731         * modules/regex (Depends-on): Likewise.
74732
74733 2006-12-19  Bruno Haible  <bruno@clisp.org>
74734
74735         * lib/strdup.h [C++]: Wrap definitions in extern "C".
74736         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
74737
74738 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74739
74740         * modules/savewd (Depends-on): Fix dependency on fcntl.
74741
74742 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74743
74744         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
74745         conforms to C99, rather than relying on the user's environment
74746         setting of STDINT_H.
74747
74748 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74749         and Eric Blake  <ebb9@byu.net>
74750
74751         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
74752         This is more consistent with the other defines here.
74753         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
74754         Port to z/OS.  Problem reported by Paul Gilmartin.
74755         Change local vars to use gl_ prefix rather than ac_.
74756         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
74757         with other defines.
74758         * modules/double-slash-root: New module.
74759         * modules/dirname (Files): Remove m4/double-slash-root.m4.
74760         (Depends-on): Add double-slash-root.
74761         * MODULES.html.sh (File system functions): Mention new module.
74762
74763 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
74764
74765         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
74766         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
74767         This is for the benefit of gzip, which doesn't do i18n.
74768
74769 2006-12-12  Jim Meyering  <jim@meyering.net>
74770
74771         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
74772         Reported by Andreas Schwab <schwab@suse.de>.
74773
74774 2006-12-12  Bruno Haible  <bruno@clisp.org>
74775
74776         Merge these changes.
74777         2006-09-05  Bruno Haible  <bruno@clisp.org>
74778         * lib/iconvme.c (iconv_string): No need to save and restore errno when
74779         iconv_alloc succeeded.
74780         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
74781         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
74782         test for " && dest " at the end - dest is always != NULL there. Call
74783         iconv with 4xNULL arguments initially, to reset the state. Call iconv
74784         with 2xNULL arguments, also to flush the state storage. Handle the
74785         IRIX iconv behaviour. Realloc the final result, to throw away unused
74786         memory.
74787
74788 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
74789
74790         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
74791         and fchmodat unconditionally, since glibc 2.4 has them.
74792         Problem reported by Arkadiusz Miskiewicz.
74793
74794 2006-12-10  Bruno Haible  <bruno@clisp.org>
74795
74796         * gnulib-tool (func_import): Show the include files only for those
74797         modules that are copied and specified.
74798         Reported by Karl Berry.
74799
74800 2006-12-08  Jim Meyering  <jim@meyering.net>
74801
74802         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
74803         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
74804
74805         * build-aux/announce-gen: Add two new options, both optional:
74806         --bootstrap-tools=TOOL_LIST
74807               a comma-separated list of tools, e.g.,
74808               autoconf,automake,bison,gnulib
74809         --gnulib-snapshot-date=DATE
74810               if gnulib is in the bootstrap tool list,
74811               then report this as the snapshot date.
74812               If not specified, use the current date/time.
74813               If you specify a date here, be sure it's UTC.
74814
74815 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74816
74817         * tests/test-argp-2.sh: Fix test to match actual output.
74818         (func_compare): Fix sed script to be portable.
74819
74820 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
74821
74822         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
74823         workaround for this case.  It is not autoconfigured now; offhand
74824         it's hard to see how to autoconfigure it.
74825
74826 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
74827
74828         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
74829         a directory that is about to be chowned.  Such a directory's
74830         initial file permissions should permit the owner only and this
74831         should not be changed until after the chown, since the group and
74832         other bits would be incorrect if they granted permission before
74833         the chown.
74834
74835         Fix porting problem for iswctype reported by Georg Schwarz in:
74836         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
74837         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
74838         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
74839         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
74840         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74841
74842 2006-12-03  Jim Meyering  <jim@meyering.net>
74843
74844         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
74845         p->fts_statp may not yet be defined.
74846         (fts_read): Instead, set it in the caller, once p->fts_statp is
74847         sure to be defined, and corresponds to a top-level directory.
74848         This bug made du -x fail.  Here's the coreutils test case:
74849         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
74850         Reported by Mike Frysinger.
74851
74852 2006-12-01  Jim Meyering  <jim@meyering.net>
74853
74854         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
74855         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
74856         Reported by Simon Josefsson.
74857
74858 2006-11-30  Jim Meyering  <jim@meyering.net>
74859
74860         * m4/warning.m4: Use the all-permissive copyright notice
74861         recommended by RMS (rather than LGPL).
74862         * m4/vararrays.m4: Likewise.
74863         * m4/flexmember.m4: Likewise.
74864
74865 2006-11-29  Bruno Haible  <bruno@clisp.org>
74866
74867         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74868         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
74869         using +=.
74870         Reported by Simon Josefsson <simon@josefsson.org>.
74871
74872 2006-11-28  James Youngman <jay@gnu.org>
74873
74874         * README: Advise users that they might find the bug-gnulib@gnu.org
74875         and autotools-announce@gnu.org mailing lists useful.
74876
74877 2006-11-28  Bruno Haible  <bruno@clisp.org>
74878
74879         * m4/ptrdiff_max.m4: Remove file.
74880
74881 2006-11-21  Bruno Haible  <bruno@clisp.org>
74882
74883         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
74884         _AC_COMPUTE_INT.
74885         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74886         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
74887         _AC_COMPUTE_INT.
74888         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74889         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
74890         _AC_COMPUTE_INT.
74891         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74892
74893 2006-11-28  Jim Meyering  <jim@meyering.net>
74894
74895         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
74896         warning from "gcc -Wshadow" about shadowing the builtin.
74897
74898 2006-11-27  Bruno Haible  <bruno@clisp.org>
74899
74900         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
74901         _AC_COMPUTE_INT.
74902         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74903
74904 2006-11-27  Bruno Haible  <bruno@clisp.org>
74905             Paul Eggert  <eggert@cs.ucla.edu>
74906
74907         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
74908
74909 2006-11-26  Bruno Haible  <bruno@clisp.org>
74910
74911         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74912         noinst_LTLIBRARIES.
74913
74914 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74915             Bruno Haible  <bruno@clisp.org>
74916
74917         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
74918         if compiling with "gcc -ansi".
74919
74920 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74921
74922         Fix some incompatibilities with gcc -ansi -pedantic.
74923         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
74924         if compiling pedantically with GCC, unless it's C99 or later.
74925         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
74926         it mishandles gcc -ansi -pedantic as well.
74927         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
74928         if gcc -pedantic.
74929         * lib/regexec.c (check_node_accept_bytes): Don't use auto
74930         initializers for struct if -pedantic, unless it's C99 or later.
74931
74932 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
74933
74934         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
74935         Don't close an fd more than once. Identical atimes indicate
74936         success, not failure.
74937
74938 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
74939
74940         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
74941
74942 2006-11-23  Jim Meyering  <jim@meyering.net>
74943
74944         * build-aux/announce-gen: New file.  From coreutils.
74945
74946 2006-11-22  Jim Meyering  <jim@meyering.net>
74947
74948         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
74949         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
74950         (fts_read): Use a temporary to narrow the overused st_size member
74951         before using it in a switch statement.  Reported by Matthew Woehlke.
74952
74953         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
74954         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74955
74956 2006-11-20  Bruno Haible  <bruno@clisp.org>
74957
74958         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
74959         changequote instead of pairs of brackets.
74960         Reported by Andreas Schwab <schwab@suse.de>.
74961
74962 2006-11-21  Jim Meyering  <jim@meyering.net>
74963
74964         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
74965         so as to remain compatible with older compilers.
74966         Patch from Michael Deutschmann.
74967
74968 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74969
74970         * MODULES.html.sh (File system functions): Add openat.
74971
74972         * lib/openat.h (rpl_fstatat): New macro, if
74973         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
74974         (fstatat): Define to rpl_fstatat under the same conditions,
74975         unless COMPILING_FSTATAT.
74976         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
74977         seems to have the bug.
74978         * lib/fstatat.c: New file.
74979         * modules/openat (Files): Add it.
74980
74981 2006-11-20  Bruno Haible  <bruno@clisp.org>
74982
74983         * Makefile: New file.
74984
74985 2006-11-20  Jim Meyering  <jim@meyering.net>
74986
74987         The beginnings of syntax-related checks for gnulib.
74988         * lib/Makefile: New file.
74989         * lib/t-idcache: New script.  Ensure that the two halves of
74990         idcache.c stay in sync.
74991
74992         * lib/idcache.c: Adjust comments in user- and group- portions to
74993         be more accurate, and to be consistent with one another.
74994
74995 2006-11-20  Jim Meyering  <jim@meyering.net>
74996
74997         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
74998         continue using the flexible array member (thus, this module performs
74999         half as many malloc calls), with the addition that...
75000         (getgroup, getuser): Consistently record a non-match via an empty
75001         "name" string, and map an empty string match to a NULL return value.
75002         * modules/idcache (Depends-on): Re-add flexmember.
75003
75004         * lib/idcache.c (getuser): Remove all uses of the register keyword.
75005         (getuidbyname, getgroup, getgidbyname): Likewise.
75006
75007         Use cleaner syntax: NULL rather than 0.
75008         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
75009
75010 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75011
75012         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
75013         It mishandled the case where the group was missing.
75014         Problem reported by Greg Schafer.
75015         * modules/idcache: Likewise.
75016
75017 2006-11-18  Jim Meyering  <jim@meyering.net>
75018
75019         * check-module (%exempt_header): Add exception for some
75020         conditionally-included headers.
75021
75022         * modules/i-ring (Depends-on): Add verify.
75023         (License): Change to LGPL.
75024
75025 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75026
75027         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
75028         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
75029         and inttostr.h.  Use snprintf rather than uinttostr, so that
75030         LGPLed code doesn't depend on GPLed.
75031
75032 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75033
75034         * modules/inline (License): Change from GPL to LGPL.
75035
75036 2006-11-17  Jim Meyering  <jim@meyering.net>
75037
75038         * modules/d-type (License): Switch to LGPL.
75039
75040 2006-11-15  Bruno Haible  <bruno@clisp.org>
75041
75042         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
75043
75044 2006-11-15  Eric Blake  <ebb9@byu.net>
75045
75046         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
75047         the module dependency.
75048
75049 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75050             Bruno Haible  <bruno@clisp.org>
75051
75052         * gnulib-tool (func_create_testdir): Add license consistency check.
75053
75054 2006-11-15  Eric Blake  <ebb9@byu.net>
75055
75056         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
75057         random "(cached)" in configure output.
75058
75059 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75060
75061         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
75062         test for conforming inttypes.h is both announced and cached.
75063
75064         * MODULES.html.sh (seen_modules, seen_files): New variables.
75065         (func_module): Rewrite to use a few less gnulib-tool and sed
75066         invocations.  Avoid a couple of quadratic algorithms for ...
75067         (missed_modules, missed_files): ... these, with ...
75068         (func_append, func_tmpdir): ... these new functions, from
75069         gnulib-tool.  Analogously, install traps for cleanup.
75070
75071         * tests/test-gc.c (main): Remove unused variables.
75072         * tests/test-read-file.c: Include stdlib.h, for 'free'.
75073
75074 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
75075
75076         * modules/inttostr (License): Change to LGPL.
75077
75078 2006-11-14  Eric Blake  <ebb9@byu.net>
75079
75080         * modules/tempname (License): Change to LGPL.
75081
75082 2006-11-14  Eric Blake  <ebb9@byu.net>
75083
75084         * doc/functions.texi (Function Portability): *printf functions on
75085         Cygwin now understand all POSIX size specifiers.
75086
75087 2006-11-14  Bruno Haible  <bruno@clisp.org>
75088
75089         * modules/c-ctype (License): Change to LGPL.
75090
75091 2006-11-12  Bruno Haible  <bruno@clisp.org>
75092
75093         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
75094         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
75095         for GNOME libraries, for which the include files are installed in
75096         subdirectories of $prefix/include.
75097
75098 2006-11-12  Bruno Haible  <bruno@clisp.org>
75099
75100         * m4/lib-link.m4: Require at least autoconf-2.54.
75101         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
75102         name to underscores for the --with option.
75103
75104 2006-11-13  Bruno Haible  <bruno@clisp.org>
75105
75106         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
75107         the tests directory.
75108         Reported by Ralf Wildenhues.
75109
75110 2006-11-13  Bruno Haible  <bruno@clisp.org>
75111
75112         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
75113         (func_emit_initmacro_end): Undo the override here.
75114         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
75115         Works around the famous automake error in coreutils.
75116
75117 2006-11-13  Eric Blake  <ebb9@byu.net>
75118
75119         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
75120         element, not its node.
75121
75122 2006-11-12  Bruno Haible  <bruno@clisp.org>
75123
75124         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
75125         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
75126
75127 2006-11-12  Bruno Haible  <bruno@clisp.org>
75128
75129         * gnulib-tool: New option --local-symlink.
75130         (func_usage): Document it.
75131         (lsymbolic): New variable.
75132         (func_import, func_create_testdir): If --symlink was not specified,
75133         test whether --local-symlink was specified and the file comes from
75134         the local_gnulib_dir.
75135
75136 2006-11-12  Bruno Haible  <bruno@clisp.org>
75137
75138         * gnulib-tool (func_ln): New function.
75139         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
75140
75141 2006-11-12  Bruno Haible  <bruno@clisp.org>
75142
75143         Finish support for source files in subdirectories.
75144         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
75145         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
75146         AUTOMAKE_OPTIONS.
75147         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
75148
75149 2006-11-12  Bruno Haible  <bruno@clisp.org>
75150
75151         * gnulib-tool (func_get_automake_snippet): Synthesize also an
75152         EXTRA_lib_SOURCES augmentation.
75153         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
75154
75155 2006-11-12  Jim Meyering  <jim@meyering.net>
75156
75157         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
75158         file descriptors.  This also averts a failure on systems with
75159         native openat support when a traversed directory lacks "x" access.
75160         * lib/fts_.h: Include "i-ring.h"
75161         (struct FTS) [fts_fd_ring]: New member.
75162         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
75163         (FCHDIR): Add parentheses.
75164         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
75165         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
75166         When descending, rather than simply closing the previous
75167         fts_cwd_fd value, push that file descriptor onto the ring.
75168         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
75169         (fts_open): Initialize the new fd_ring member.
75170         (fts_close): Clear the ring.
75171         (fts_safe_changedir): When possible, use our new fd_ring to skip
75172         the diropen and fstat and dev/ino comparison that would normally
75173         accompany a virtual `chdir ("..")'.
75174
75175         * modules/fts (Depends-on): Add i-ring.
75176         * modules/i-ring: New module.
75177         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
75178         * m4/i-ring.m4: New file.
75179
75180 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75181
75182         * gnulib-tool (func_create_testdir): Fix replacement of
75183         `build-aux' in configure.ac.  Run autotools in gltests
75184         subdirectory.
75185         (func_create_testdir, func_create_megatestdir, test): There is
75186         no need for '--force' in most autotool invocations in a new
75187         tree.  Actually fail the whole test if any of the tools, or the
75188         configure or make stages fail.
75189
75190         Sync from Automake.
75191         * build-aux/gnupload: Revert last change.  Add pointer to upload
75192         instructions of the GNU Maintenance Instructions.
75193         Suggestion by Karl Berry.
75194
75195 2006-11-10  Jim Meyering  <jim@meyering.net>
75196
75197         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
75198
75199 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75200
75201         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
75202         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
75203         (bind_textdomain_codeset) [! ENABLE_NLS]:
75204         Evaluate all the arguments.  That way, callers get compatible behavior
75205         if the arguments have side effects.  Also, it avoids some GCC
75206         diagnostics in some cases; Joel E. Denny reported problems when Bison
75207         was configured with --enable-gcc-warnigs.
75208
75209 2006-11-10  Jim Meyering  <jim@meyering.net>
75210
75211         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
75212         relevant options in CFLAGS (like -O, -fno-inline) are taken into
75213         account.
75214
75215 2006-11-10  Jim Meyering  <jim@meyering.net>
75216
75217         * modules/inline: New file/module.
75218         * modules/xalloc (Files): Remove m4/inline.m4.
75219         (Depends-on): Add inline, instead.
75220         * modules/oset: Likewise.
75221         * modules/list: Likewise.
75222
75223 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75224
75225         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
75226         Problem reported by Matthew Woehlke.
75227
75228 2006-11-09  Bruno Haible  <bruno@clisp.org>
75229
75230         * lib/tempname.c (gen_tempname): Remove variant that invokes
75231         __gen_tempname.
75232         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
75233         __gen_tempname.
75234
75235 2006-11-08  Bruno Haible  <bruno@clisp.org>
75236
75237         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
75238         to 'yes' instead of 'cross-compiling'.
75239
75240 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
75241
75242         * lib/quotearg.h (quotearg_free): New decl.
75243         * lib/quotearg.c (quotearg_free): New function.
75244         (slot0, nslots, slotvec0, slotvec):
75245         Now file-scope so that quotearg_free can get at them.
75246
75247 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75248
75249         Sync from Automake.
75250         * build-aux/gnupload: Add missing 'gnu' to example URL.
75251         Report by Karl Berry.
75252
75253 2006-11-08  Bruno Haible  <bruno@clisp.org>
75254
75255         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
75256         Suggested by Paul Eggert.
75257
75258 2006-11-08  Jim Meyering  <jim@meyering.net>
75259
75260         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
75261         It's already included if !_LIBC.
75262         (fts_safe_changedir): Add a comment.
75263
75264 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75265
75266         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
75267         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
75268         Matthew Woehlke.
75269
75270         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
75271         definitions up, to avoid colliding with change below.
75272         (static_inline) [HAVE_INLINE]: New macro.
75273         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
75274         Provide extern decls when !HAVE_INLINE.  Do not define unless
75275         static_inline is defined, either by us or by xmalloc.c.  Use
75276         static_inline rather than static inline.
75277         (XCALLOC): Optimize sizeof(T) = 1 case.
75278         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
75279
75280 2006-11-07  Bruno Haible  <bruno@clisp.org>
75281
75282         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
75283         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
75284         AC_C_INLINE.
75285         * modules/xalloc (Files): Add m4/inline.m4.
75286
75287 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75288
75289         * README: Fix typo.
75290         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
75291         (Miscellanous Notes): ...from this.
75292
75293 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75294
75295         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
75296         Mention that offsetof should be used instead of sizeof.
75297         From Bruno Haible.
75298
75299 2006-11-07  Bruno Haible  <bruno@clisp.org>
75300
75301         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
75302
75303 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75304
75305         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75306         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
75307         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75308         (gl_tree_add_before, gl_tree_add_after):
75309         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
75310         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
75311         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
75312         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
75313         (gl_linked_add_after, gl_linked_add_at): Likewise.
75314         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
75315         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75316         (gl_tree_add_before, gl_tree_add_after): Likewise.
75317         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
75318         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
75319         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75320
75321 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75322
75323         * lib/gl_oset.h: Use C comment style, not C++ comment style.
75324
75325 2006-11-06  Bruno Haible  <bruno@clisp.org>
75326
75327         * m4/inline.m4: New file.
75328         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
75329         * modules/list (Files): Add m4/inline.m4.
75330         * modules/oset (Files): Likewise.
75331
75332 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75333
75334         * lib/idcache.c: Include <stddef.h>, for offsetof.
75335         (struct userid.name): Change from char * to a flexible array member.
75336         All uses changed.
75337         * modules/idcache (Depends-on): Add flexmember.
75338
75339         * MODULES.html.sh (Core language properties): New module flexmember.
75340         * modules/flexmember, m4/flexmember.m4: New files.
75341
75342         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
75343         inline functions that are identical with the old xnmalloc_inline,
75344         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
75345         that we can avoid some unnecessary integer multiplications and
75346         divisions in the common case where the element size is known at
75347         compile time.
75348         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
75349         needed.
75350         (xnboundedmalloc): Remove.
75351         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
75352         arguments, for consistency with rest of this header.
75353         (xcharalloc): Rewrite using XNMALLOC.
75354         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
75355         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
75356         versions have been moved to lib/xalloc.h and renamed to be the
75357         non-*_inline versions.
75358         (xmalloc, xrealloc): Implement without reference to the xnmalloc
75359         and xnrealloc functions, since those functions are now inline and
75360         now call us.
75361         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
75362         renaming described above.
75363         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
75364         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
75365         captures the dependency in AC_C_INLINE.
75366
75367         New module canonicalize-lgpl, proposed by Charles Wilson in
75368         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
75369         with a few small changes afterwards.
75370         * MODULES.html.sh (File system functions): New module
75371         canonicalize-lgpl.
75372         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
75373         and canonicalize_file_name.
75374         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
75375         * modules/canonicalize-lgpl: New files.
75376
75377 2006-11-05  Bruno Haible  <bruno@clisp.org>
75378
75379         * gnulib-tool (func_import, func_create_testdir): Create directories
75380         also for files in subdirectories of lib/.
75381
75382 2006-11-05  Bruno Haible  <bruno@clisp.org>
75383
75384         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
75385         ANSI C compliant.
75386
75387 2006-11-03  Bruno Haible  <bruno@clisp.org>
75388
75389         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75390         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
75391         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
75392         (xnboundedmalloc): New inline function.
75393         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
75394         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
75395         xmalloc.
75396         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
75397         xmalloc.
75398         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
75399         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
75400         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
75401         xmalloc.
75402         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75403         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
75404         xmalloc.
75405         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
75406         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75407         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
75408         xmalloc.
75409         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75410         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
75411         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75412         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
75413         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
75414         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
75415         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
75416
75417 2006-11-03  Bruno Haible  <bruno@clisp.org>
75418
75419         * lib/c-ctype.h [C++]: Define functions without name mangling.
75420         * lib/fwriteerror.h [C++]: Likewise.
75421         * lib/gcd.h [C++]: Likewise.
75422         * lib/linebreak.h [C++]: Likewise.
75423
75424 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75425
75426         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
75427         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
75428         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
75429         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75430         Check for functions and headers just once.
75431         Check for declaration of canonicalize_file_name.
75432         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
75433
75434 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75435
75436         * gnulib-tool (func_import): Fix typo in actioncmd.
75437
75438 2006-11-02  Bruno Haible  <bruno@clisp.org>
75439
75440         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
75441         newline sequence in the Makefile.am snippet as a space, like "make"
75442         does.
75443         Reported by Roger Persson <perrog@gmail.com>.
75444
75445 2006-11-01  Bruno Haible  <bruno@clisp.org>
75446
75447         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
75448         already declared in <string.h>.
75449         * lib/strcase.h (strncasecmp): Don't declare it if yes.
75450
75451 2006-11-01  Bruno Haible  <bruno@clisp.org>
75452
75453         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
75454         * lib/strcase.h: Include <string.h>.
75455         (strcasecmp): Define to rpl_strcasecmp here.
75456
75457 2006-11-01  Bruno Haible  <bruno@clisp.org>
75458
75459         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
75460
75461 2006-11-01  Eric Blake  <ebb9@byu.net>
75462
75463         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
75464
75465         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
75466
75467 2006-10-29  Bruno Haible  <bruno@clisp.org>
75468
75469         Make it compile in C++ mode.
75470         * lib/full-write.c (full_rw): Add a cast.
75471
75472 2006-11-01  Bruno Haible  <bruno@clisp.org>
75473
75474         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
75475         be POSIX compliant.
75476         Reported by Roger Persson <perrog@gmail.com>.
75477
75478 2006-11-01  Eric Blake  <ebb9@byu.net>
75479
75480         * lib/getopt_.h: Fix comments.
75481
75482 2006-10-31  Eric Blake  <ebb9@byu.net>
75483
75484         * modules/tmpdir (Depends-on): Add sys_stat.
75485         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
75486         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
75487         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
75488         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
75489         tempname.
75490
75491 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
75492
75493         Avoid some C++ diagnostics reported by Bruno Haible.
75494         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
75495         xmalloc.
75496         (quotearg_alloc): Use xcharalloc rather than xmalloc.
75497         (struct slotvec): Move to top level.
75498         (quotearg_n_options): Rewrite to avoid xmalloc.
75499         * lib/xalloc.h (xcharalloc): New function.
75500         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
75501         [defined __cplusplus]: Add function template that provides result
75502         type propagation.  This part of the change is from Bruno Haible.
75503
75504 2006-10-29  Bruno Haible  <bruno@clisp.org>
75505
75506         Make it compile in C++ mode.
75507         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
75508         * lib/strnlen1.c (strnlen1): Cast memchr result.
75509         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
75510         * lib/clean-temp.c (string_equals, string_hash): Add casts.
75511         (create_temp_dir): Rename local variable 'template'.
75512         (compile_csharp_using_sscli): Add cast.
75513         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
75514         * lib/findprog.c (find_in_path): Likewise.
75515         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
75516         * lib/wait-process.c (register_slave_subprocess): Likewise.
75517
75518 2006-10-22  Bruno Haible  <bruno@clisp.org>
75519
75520         * modules/tsearch: New file.
75521         * lib/tsearch.h: New file.
75522         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
75523         * m4/tsearch.m4: New file.
75524         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
75525
75526 2006-10-29  Eric Blake  <ebb9@byu.net>
75527
75528         * lib/arcfour.c: Assume config.h.
75529         * lib/arctwo.c: Likewise.
75530         * lib/base64.c: Likewise.
75531         * lib/check-version.c: Likewise.
75532         * lib/crc.c: Likewise.
75533         * lib/des.c: Likewise.
75534         * lib/gc-gnulib.c: Likewise.
75535         * lib/gc-libgcrypt.c: Likewise.
75536         * lib/gc-pbkdf2-sha1.c: Likewise.
75537         * lib/getaddrinfo.c: Likewise.
75538         * lib/getdelim.c: Likewise.
75539         * lib/getline.c: Likewise.
75540         * lib/hmac-md5.c: Likewise.
75541         * lib/hmac-sha1.c: Likewise.
75542         * lib/iconvme.c: Likewise.
75543         * lib/md2.c: Likewise.
75544         * lib/md4.c: Likewise.
75545         * lib/memxor.c: Likewise.
75546         * lib/read-file.c: Likewise.
75547         * lib/readline.c: Likewise.
75548         * lib/rijndael-alg-fst.c: Likewise.
75549         * lib/rijndael-api-fst.c: Likewise.
75550         * lib/xgetdomainname.c: Likewise.
75551
75552 2006-10-28  Eric Blake  <ebb9@byu.net>
75553
75554         * lib/xstrndup.c: Assume config.h.
75555
75556 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75557
75558         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
75559         stat-macros.h is now for our own macros, whereas stat_h is for
75560         macros in the <sys/stat.h> name space.
75561         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
75562         (STAT_MACROS_H): Remove.
75563         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
75564         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
75565         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
75566         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
75567         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
75568         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
75569         Move these macros to ...
75570         * lib/stat_.h: here.  Don't include stat-macros.h.
75571         * lib/canonicalize.c: Don't include stat-macros.h.
75572         * lib/chown.c: Likewise.
75573         * lib/euidaccess.c: Likewise.
75574         * lib/file-type.c: Likewise.
75575         * lib/filemode.c: Likewise.
75576         * lib/glob.c: Likewise.
75577         * lib/isapipe.c: Likewise.
75578         * lib/lchown.c: Likewise.
75579         * lib/lstat.c: Likewise.
75580         * lib/mkdir-p.c: Likewise.
75581         * lib/rmdir.c: Likewise.
75582         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
75583         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
75584         unless mkdir isn't declared, to speed up 'configure'.
75585         Always create sys/stat.h, since it's unlikely any real sys/stat.h
75586         would define all the S_* symbols.
75587         * modules/canonicalize (Depends-on):
75588         Depend on sys_stat, not stat-macros.
75589         * modules/chown: Likewise.
75590         * modules/euidaccess: Likewise.
75591         * modules/filemode: Likewise.
75592         * modules/file-type: Likewise.
75593         * modules/glob: Likewise.
75594         * modules/isapipe: Likewise.
75595         * modules/lchown: Likewise.
75596         * modules/lstat: Likewise.
75597         * modules/mkancesdirs: Likewise.
75598         * modules/rmdir: Likewise.
75599         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
75600         * modules/modechange: Likewise.
75601         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
75602         (configure.ac): Remove gl_STAT_MACROS.
75603         * modules/sys_stat (Depends-on): Remove stat-macros.
75604
75605 2006-10-27  Bruno Haible  <bruno@clisp.org>
75606
75607         * m4/signed.m4: Remove file.
75608         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
75609         invocation.
75610         * modules/vasnprintf (Files): Remove m4/signed.m4.
75611
75612 2006-10-27  Bruno Haible  <bruno@clisp.org>
75613
75614         Update to GNU gettext 0.16.
75615         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
75616         m4/inttypes-h.m4, m4/signed.m4.
75617         * m4/gettext.m4: Update to GNU gettext 0.16.
75618         * m4/intl.m4: New file, from GNU gettext.
75619         * m4/intldir.m4: New file, from GNU gettext.
75620         * config/srclist.txt: Update
75621
75622 2006-10-27  Eric Blake  <ebb9@byu.net>
75623
75624         * MODULES.html.sh: Document tempname.
75625         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
75626         dependencies.
75627         (Files): Move lib/tempname.c...
75628         * modules/tempname: ...to this new module.
75629         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
75630         (gl_PREREQ_TEMPNAME): Move...
75631         * m4/tempname.m4: ...to this new file.
75632         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
75633         * modules/sys_stat (Depends-on): Add stat-macros.
75634         * lib/stat_.h (includes): Pick up stat macros.
75635         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
75636         if stat macros are broken.
75637         * lib/tempname.c (includes): No need to include "stat-macros.h".
75638         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
75639         (direxists, __path_search) [!_LIBC]: Don't compile these in
75640         gnulib; the tmpdir module covers that.
75641         * lib/tempname.h: New file.
75642
75643 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
75644
75645         * COPYING: Explain how gnulib-tool converts licence headers.
75646         Almost all wording by Eric Blake.
75647
75648 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
75649
75650         * lib/mbchar.h (is_basic_table): Make read-only.
75651         * lib/mbchar.c (is_basic_table): Likewise.
75652         Reported by John Darrington.
75653
75654 2006-10-25  Bruno Haible  <bruno@clisp.org>
75655
75656         * lib/progname.h (set_program_name): Undefine before defining.
75657
75658 2006-10-25  Bruno Haible  <bruno@clisp.org>
75659
75660         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
75661         false for non-gcc C++ compilers.
75662         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75663
75664 2006-10-24  Bruno Haible  <bruno@clisp.org>
75665
75666         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
75667         iconv implementations like Irix iconv.
75668
75669 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75670
75671         * modules/vararrays: New file.
75672         * m4/vararrays.m4: New file, taken from diffutils.
75673         * MODULES.html.sh: New module vararrays.
75674
75675 2006-10-24  Karl Berry  <karl@gnu.org>
75676
75677         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
75678         Don't call GNU Unix.
75679
75680 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75681
75682         * users.txt: Add Libtool.
75683
75684         Sync from Libtool:
75685
75686         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75687
75688         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
75689         to gnulib's policy of including config.h unconditionally.
75690
75691 2006-10-24  Bruno Haible  <bruno@clisp.org>
75692
75693         * modules/wcwidth (Files): Add m4/wint_t.m4.
75694         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
75695         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
75696
75697 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75698
75699         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
75700         to pacify GCC with some -W flags enabled.  Problem reported by
75701         Bruno Haible.
75702
75703 2006-10-24  Jim Meyering  <jim@meyering.net>
75704
75705         * MODULES.html.sh: Remove uinttostr.  It's not a module.
75706         Reported by Karl Berry.
75707
75708 2006-10-23  Bruno Haible  <bruno@clisp.org>
75709
75710         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
75711
75712 2006-10-24  Bruno Haible  <bruno@clisp.org>
75713
75714         * lib/gl_list.h: Use C comment style, not C++ comment style.
75715
75716 2006-10-23  Eric Blake  <ebb9@byu.net>
75717
75718         * lib/getaddrinfo.c (includes): Add missing include.
75719
75720 2006-10-23  Bruno Haible  <bruno@clisp.org>
75721             Paul Eggert  <eggert@cs.ucla.edu>
75722
75723         Ability to rename obstack_free.
75724         * lib/obstack.h (__obstack_free): New macro. Declare instead of
75725         obstack_free.
75726         (obstack_free): Invoke the __obstack_free macro.
75727         * lib/obstack.c (obstack_free): Use __obstack_free macro.
75728
75729 2006-10-23  Bruno Haible  <bruno@clisp.org>
75730             Paul Eggert  <eggert@cs.ucla.edu>
75731
75732         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
75733         __argc, __argv from the declaration. (They are defined as macros on
75734         mingw.)
75735
75736 2006-10-22  Bruno Haible  <bruno@clisp.org>
75737
75738         * doc/gnulib-intro.texi: New file.
75739         * doc/gnulib.texi: Include it.
75740
75741 2006-10-21  Bruno Haible  <bruno@clisp.org>
75742
75743         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
75744         "Introduction", "Miscellanous Notes", "Particular Modules".
75745
75746 2006-10-21  Bruno Haible  <bruno@clisp.org>
75747
75748         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75749         Change mostlyclean-local rule to avoid sh syntax error from bash
75750         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
75751
75752 2006-10-23  Jim Meyering  <jim@meyering.net>
75753
75754         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
75755         in place of snprintf.
75756
75757         * modules/inttostr (Files): Add lib/uinttostr.c.
75758         * lib/uinttostr.c (inttostr): New file/function.
75759         * lib/inttostr.h (uinttostr): Declare.
75760         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
75761         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75762         Add uinttostr.
75763         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
75764
75765 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75766
75767         * lib/canonicalize.c (ELOOP): Define if not already defined.
75768         Problem reported by Bruno Haible in
75769         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
75770
75771 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75772
75773         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
75774         Problem reported by Perry Smith and Ville Laurikari.
75775
75776         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
75777         uses.
75778
75779 2006-10-19  Bruno Haible  <bruno@clisp.org>
75780
75781         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
75782         for mingw.
75783
75784 2006-10-19  Bruno Haible  <bruno@clisp.org>
75785
75786         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
75787         Needed for mingw.
75788
75789 2006-10-19  Bruno Haible  <bruno@clisp.org>
75790
75791         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
75792
75793 2006-10-19  Bruno Haible  <bruno@clisp.org>
75794
75795         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
75796         it.
75797
75798 2006-10-19  Bruno Haible  <bruno@clisp.org>
75799
75800         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
75801         invocation.
75802
75803 2006-10-19  Bruno Haible  <bruno@clisp.org>
75804
75805         * gnulib-tool (func_create_testdir): Don't include ftruncate and
75806         mountlist by default.
75807
75808 2006-10-16  Bruno Haible  <bruno@clisp.org>
75809
75810         * lib/c-strstr.c: Include c-strstr.h.
75811
75812 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75813
75814         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
75815         in a slash.
75816
75817 2006-10-18  Bruno Haible  <bruno@clisp.org>
75818
75819         * lib/lock.h [C++]: Wrap definitions in extern "C".
75820
75821 2006-10-18  Bruno Haible  <bruno@clisp.org>
75822
75823         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
75824         gl_LIBOBJS list.
75825
75826 2006-10-18  Bruno Haible  <bruno@clisp.org>
75827
75828         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
75829
75830 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
75831
75832         * lib/xstrtol.h: Include gettext.h.
75833         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
75834         Problem reported by Eric Blake.
75835         * modules/xstrtol (Depends-on): Add gettext-h.
75836
75837 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
75838
75839         * lib/strftime.c (advance): New macro.
75840         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
75841         incomplete type, so you can't add 0 to it.  Problem and patch
75842         reported by Eelco Dolstra for dietlibc.
75843
75844 2006-10-18  Jim Meyering  <jim@meyering.net>
75845
75846         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
75847         type for a local, and rename it: s/up/user_proc/.
75848
75849 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
75850
75851         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
75852         READ_UTMP_USER_PROCESS.
75853         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
75854
75855 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75856
75857         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
75858         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
75859
75860 2006-10-17  Eric Blake  <ebb9@byu.net>
75861
75862         * lib/sigprocmask.c (sigprocmask): Fix typo.
75863
75864         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
75865
75866         * modules/clean-temp (Makefile.am): Don't add to make output...
75867         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
75868         config.h.
75869
75870 2006-10-17  Bruno Haible  <bruno@clisp.org>
75871
75872         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
75873         differently if DEFAULT_TEXT_DOMAIN is set.
75874
75875 2006-10-16  Bruno Haible  <bruno@clisp.org>
75876
75877         * lib/clean-temp.c: Include fwriteerror.h.
75878
75879 2006-10-16  Bruno Haible  <bruno@clisp.org>
75880
75881         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
75882
75883 2006-10-16  Bruno Haible  <bruno@clisp.org>
75884
75885         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
75886         * lib/sigprocmask.h: Include <sys/types.h>.
75887         (sigset_t): Use the system's definition if present.
75888
75889 2006-10-17  Eric Blake  <ebb9@byu.net>
75890
75891         * lib/xvasprintf.c (includes): Assume config.h.
75892         * lib/xasprintf.c (includes): Likewise.
75893
75894 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
75895
75896         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
75897         at least as wide as intmax_t.
75898
75899 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
75900
75901         (Imported from Automake.)
75902         * build-aux/gnupload: Update to version 1.1 of directive file.
75903
75904 2006-10-16  Eric Blake  <ebb9@byu.net>
75905
75906         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
75907         match Automake 1.10a.
75908
75909 2006-10-14  Bruno Haible  <bruno@clisp.org>
75910
75911         * modules/sigprocmask: New file.
75912         * lib/sigprocmask.h: New file.
75913         * lib/sigprocmask.c: New file.
75914         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
75915         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
75916         request sigprocmask.o.
75917         (gl_PREREQ_SIGPROCMASK): New macro.
75918         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
75919         (Depends-on): Add sigprocmask.
75920         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
75921         gt_SIGNALBLOCKING. Test for 'raise' only once.
75922         * lib/fatal-signal.c: Include sigprocmask.h.
75923         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
75924         unblock_fatal_signals): Define always.
75925         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75926         sigprocmask.
75927
75928 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75929
75930         Sync from Automake.
75931         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
75932         which incorrectly sets the mode of an existing destination
75933         directory.  In some cases the unpatched install-sh could do the
75934         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
75935         system.  We hope this is rare in practice, but it's clearly worth
75936         fixing.  Problem reported by Alex Unleashed in
75937         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
75938         Also, don't bother to check for -m bugs unless we're using -m;
75939         suggested by Stepan Kasal.
75940
75941 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75942
75943         Sync from Automake.
75944         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
75945         `-c' flag, so they appear at the same position as in %FASTDEP%
75946         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
75947         which ignores unknown options only after the first non-option.
75948         Bug report against M4 by Nelson H. F. Beebe.
75949
75950 2006-10-13  Jim Meyering  <jim@meyering.net>
75951
75952         Fix a bug in yesterday's change.
75953         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
75954         p->fts_statp->st_dev would be used uninitialized.
75955         Ensures that we always call fts_stat on the very first entry.
75956         Miklos Szeredi reported that find -xdev stopped working.
75957
75958 2006-10-12  Bruno Haible  <bruno@clisp.org>
75959
75960         * gnulib-tool (func_get_automake_snippet): Append an automatically
75961         computed EXTRA_DIST augmentation.
75962         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
75963         * modules/alloca-opt (Makefile.am): Likewise.
75964         * modules/allocsa (Makefile.am): Likewise.
75965         * modules/arcfour (Makefile.am): Likewise.
75966         * modules/arctwo (Makefile.am): Likewise.
75967         * modules/argmatch (Makefile.am): Likewise.
75968         * modules/argz (Makefile.am): Likewise.
75969         * modules/atexit (Makefile.am): Likewise.
75970         * modules/backupfile (Makefile.am): Likewise.
75971         * modules/byteswap (Makefile.am): Likewise.
75972         * modules/c-strtod (Makefile.am): Likewise.
75973         * modules/c-strtold (Makefile.am): Likewise.
75974         * modules/calloc (Makefile.am): Likewise.
75975         * modules/canon-host (Makefile.am): Likewise.
75976         * modules/canonicalize (Makefile.am): Likewise.
75977         * modules/chdir-long (Makefile.am): Likewise.
75978         * modules/chdir-safer (Makefile.am): Likewise.
75979         * modules/check-version (Makefile.am): Likewise.
75980         * modules/chown (Makefile.am): Likewise.
75981         * modules/cloexec (Makefile.am): Likewise.
75982         * modules/close-stream (Makefile.am): Likewise.
75983         * modules/closeout (Makefile.am): Likewise.
75984         * modules/crc (Makefile.am): Likewise.
75985         * modules/csharpexec (Makefile.am): Likewise.
75986         * modules/cycle-check (Makefile.am): Likewise.
75987         * modules/des (Makefile.am): Likewise.
75988         * modules/dev-ino (Makefile.am): Likewise.
75989         * modules/dirfd (Makefile.am): Likewise.
75990         * modules/dirname (Makefile.am): Likewise.
75991         * modules/dup2 (Makefile.am): Likewise.
75992         * modules/eealloc (Makefile.am): Likewise.
75993         * modules/error (Makefile.am): Likewise.
75994         * modules/euidaccess (Makefile.am): Likewise.
75995         * modules/exclude (Makefile.am): Likewise.
75996         * modules/exitfail (Makefile.am): Likewise.
75997         * modules/fcntl-safer (Makefile.am): Likewise.
75998         * modules/fcntl (Makefile.am): Likewise.
75999         * modules/file-type (Makefile.am): Likewise.
76000         * modules/fileblocks (Makefile.am): Likewise.
76001         * modules/filemode (Makefile.am): Likewise.
76002         * modules/filenamecat (Makefile.am): Likewise.
76003         * modules/fnmatch (Makefile.am): Likewise.
76004         * modules/fopen-safer (Makefile.am): Likewise.
76005         * modules/fpending (Makefile.am): Likewise.
76006         * modules/fprintftime (Makefile.am): Likewise.
76007         * modules/free (Makefile.am): Likewise.
76008         * modules/fsusage (Makefile.am): Likewise.
76009         * modules/ftruncate (Makefile.am): Likewise.
76010         * modules/fts (Makefile.am): Likewise.
76011         * modules/gc-arcfour (Makefile.am): Likewise.
76012         * modules/gc-des (Makefile.am): Likewise.
76013         * modules/gc-hmac-md5 (Makefile.am): Likewise.
76014         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
76015         * modules/gc-md4 (Makefile.am): Likewise.
76016         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76017         * modules/gc-sha1 (Makefile.am): Likewise.
76018         * modules/gc (Makefile.am): Likewise.
76019         * modules/getaddrinfo (Makefile.am): Likewise.
76020         * modules/getcwd (Makefile.am): Likewise.
76021         * modules/getdelim (Makefile.am): Likewise.
76022         * modules/getdomainname (Makefile.am): Likewise.
76023         * modules/getgroups (Makefile.am): Likewise.
76024         * modules/gethostname (Makefile.am): Likewise.
76025         * modules/gethrxtime (Makefile.am): Likewise.
76026         * modules/getline (Makefile.am): Likewise.
76027         * modules/getloadavg (Makefile.am): Likewise.
76028         * modules/getlogin_r (Makefile.am): Likewise.
76029         * modules/getndelim2 (Makefile.am): Likewise.
76030         * modules/getopt (Makefile.am): Likewise.
76031         * modules/getpagesize (Makefile.am): Likewise.
76032         * modules/getpass-gnu (Makefile.am): Likewise.
76033         * modules/getpass (Makefile.am): Likewise.
76034         * modules/getsubopt (Makefile.am): Likewise.
76035         * modules/gettime (Makefile.am): Likewise.
76036         * modules/gettimeofday (Makefile.am): Likewise.
76037         * modules/getugroups (Makefile.am): Likewise.
76038         * modules/getusershell (Makefile.am): Likewise.
76039         * modules/glob (Makefile.am): Likewise.
76040         * modules/group-member (Makefile.am): Likewise.
76041         * modules/hard-locale (Makefile.am): Likewise.
76042         * modules/hash (Makefile.am): Likewise.
76043         * modules/hmac-md5 (Makefile.am): Likewise.
76044         * modules/hmac-sha1 (Makefile.am): Likewise.
76045         * modules/human (Makefile.am): Likewise.
76046         * modules/idcache (Makefile.am): Likewise.
76047         * modules/imaxabs (Makefile.am): Likewise.
76048         * modules/imaxdiv (Makefile.am): Likewise.
76049         * modules/inet_ntop (Makefile.am): Likewise.
76050         * modules/inet_pton (Makefile.am): Likewise.
76051         * modules/intprops (Makefile.am): Likewise.
76052         * modules/inttostr (Makefile.am): Likewise.
76053         * modules/inttypes (Makefile.am): Likewise.
76054         * modules/isapipe (Makefile.am): Likewise.
76055         * modules/javaversion (Makefile.am): Likewise.
76056         * modules/lchmod (Makefile.am): Likewise.
76057         * modules/lchown (Makefile.am): Likewise.
76058         * modules/localcharset (Makefile.am): Likewise.
76059         * modules/long-options (Makefile.am): Likewise.
76060         * modules/lstat (Makefile.am): Likewise.
76061         * modules/malloc (Makefile.am): Likewise.
76062         * modules/mathl (Makefile.am): Likewise.
76063         * modules/mbchar (Makefile.am): Likewise.
76064         * modules/md2 (Makefile.am): Likewise.
76065         * modules/md4 (Makefile.am): Likewise.
76066         * modules/md5 (Makefile.am): Likewise.
76067         * modules/memcasecmp (Makefile.am): Likewise.
76068         * modules/memchr (Makefile.am): Likewise.
76069         * modules/memcmp (Makefile.am): Likewise.
76070         * modules/memcoll (Makefile.am): Likewise.
76071         * modules/memcpy (Makefile.am): Likewise.
76072         * modules/memmem (Makefile.am): Likewise.
76073         * modules/memmove (Makefile.am): Likewise.
76074         * modules/mempcpy (Makefile.am): Likewise.
76075         * modules/memrchr (Makefile.am): Likewise.
76076         * modules/memset (Makefile.am): Likewise.
76077         * modules/memxor (Makefile.am): Likewise.
76078         * modules/mkancesdirs (Makefile.am): Likewise.
76079         * modules/mkdir-p (Makefile.am): Likewise.
76080         * modules/mkdir (Makefile.am): Likewise.
76081         * modules/mkdtemp (Makefile.am): Likewise.
76082         * modules/mkstemp (Makefile.am): Likewise.
76083         * modules/mktime (Makefile.am): Likewise.
76084         * modules/modechange (Makefile.am): Likewise.
76085         * modules/mountlist (Makefile.am): Likewise.
76086         * modules/nanosleep (Makefile.am): Likewise.
76087         * modules/obstack (Makefile.am): Likewise.
76088         * modules/openat (Makefile.am): Likewise.
76089         * modules/pagealign_alloc (Makefile.am): Likewise.
76090         * modules/pathmax (Makefile.am): Likewise.
76091         * modules/physmem (Makefile.am): Likewise.
76092         * modules/poll (Makefile.am): Likewise.
76093         * modules/posixtm (Makefile.am): Likewise.
76094         * modules/posixver (Makefile.am): Likewise.
76095         * modules/putenv (Makefile.am): Likewise.
76096         * modules/quote (Makefile.am): Likewise.
76097         * modules/quotearg (Makefile.am): Likewise.
76098         * modules/raise (Makefile.am): Likewise.
76099         * modules/read-file (Makefile.am): Likewise.
76100         * modules/readline (Makefile.am): Likewise.
76101         * modules/readlink (Makefile.am): Likewise.
76102         * modules/readtokens (Makefile.am): Likewise.
76103         * modules/readutmp (Makefile.am): Likewise.
76104         * modules/realloc (Makefile.am): Likewise.
76105         * modules/regex (Makefile.am): Likewise.
76106         * modules/rename-dest-slash (Makefile.am): Likewise.
76107         * modules/rename (Makefile.am): Likewise.
76108         * modules/rijndael (Makefile.am): Likewise.
76109         * modules/rmdir (Makefile.am): Likewise.
76110         * modules/rpmatch (Makefile.am): Likewise.
76111         * modules/safe-read (Makefile.am): Likewise.
76112         * modules/safe-write (Makefile.am): Likewise.
76113         * modules/same-inode (Makefile.am): Likewise.
76114         * modules/same (Makefile.am): Likewise.
76115         * modules/save-cwd (Makefile.am): Likewise.
76116         * modules/savedir (Makefile.am): Likewise.
76117         * modules/setenv (Makefile.am): Likewise.
76118         * modules/settime (Makefile.am): Likewise.
76119         * modules/sha1 (Makefile.am): Likewise.
76120         * modules/sig2str (Makefile.am): Likewise.
76121         * modules/snprintf (Makefile.am): Likewise.
76122         * modules/stat-macros (Makefile.am): Likewise.
76123         * modules/stat-time (Makefile.am): Likewise.
76124         * modules/stdbool (Makefile.am): Likewise.
76125         * modules/stdint (Makefile.am): Likewise.
76126         * modules/stdlib-safer (Makefile.am): Likewise.
76127         * modules/stpcpy (Makefile.am): Likewise.
76128         * modules/stpncpy (Makefile.am): Likewise.
76129         * modules/strcase (Makefile.am): Likewise.
76130         * modules/strcasestr (Makefile.am): Likewise.
76131         * modules/strchrnul (Makefile.am): Likewise.
76132         * modules/strcspn (Makefile.am): Likewise.
76133         * modules/strdup (Makefile.am): Likewise.
76134         * modules/strerror (Makefile.am): Likewise.
76135         * modules/strftime (Makefile.am): Likewise.
76136         * modules/strndup (Makefile.am): Likewise.
76137         * modules/strnlen (Makefile.am): Likewise.
76138         * modules/strpbrk (Makefile.am): Likewise.
76139         * modules/strsep (Makefile.am): Likewise.
76140         * modules/strstr (Makefile.am): Likewise.
76141         * modules/strtod (Makefile.am): Likewise.
76142         * modules/strtoimax (Makefile.am): Likewise.
76143         * modules/strtok_r (Makefile.am): Likewise.
76144         * modules/strtol (Makefile.am): Likewise.
76145         * modules/strtoll (Makefile.am): Likewise.
76146         * modules/strtoul (Makefile.am): Likewise.
76147         * modules/strtoull (Makefile.am): Likewise.
76148         * modules/strtoumax (Makefile.am): Likewise.
76149         * modules/strverscmp (Makefile.am): Likewise.
76150         * modules/sys_socket (Makefile.am): Likewise.
76151         * modules/sys_stat (Makefile.am): Likewise.
76152         * modules/sysexits (Makefile.am): Likewise.
76153         * modules/time_r (Makefile.am): Likewise.
76154         * modules/timegm (Makefile.am): Likewise.
76155         * modules/timespec (Makefile.am): Likewise.
76156         * modules/tmpfile-safer (Makefile.am): Likewise.
76157         * modules/trim (Makefile.am): Likewise.
76158         * modules/unistd-safer (Makefile.am): Likewise.
76159         * modules/unlinkdir (Makefile.am): Likewise.
76160         * modules/unlocked-io (Makefile.am): Likewise.
76161         * modules/userspec (Makefile.am): Likewise.
76162         * modules/utime (Makefile.am): Likewise.
76163         * modules/utimecmp (Makefile.am): Likewise.
76164         * modules/utimens (Makefile.am): Likewise.
76165         * modules/vasnprintf (Makefile.am): Likewise.
76166         * modules/vasprintf (Makefile.am): Likewise.
76167         * modules/vsnprintf (Makefile.am): Likewise.
76168         * modules/xalloc (Makefile.am): Likewise.
76169         * modules/xgetcwd (Makefile.am): Likewise.
76170         * modules/xnanosleep (Makefile.am): Likewise.
76171         * modules/xreadlink (Makefile.am): Likewise.
76172         * modules/xstrtod (Makefile.am): Likewise.
76173         * modules/xstrtol (Makefile.am): Likewise.
76174         * modules/xstrtold (Makefile.am): Likewise.
76175         * modules/yesno (Makefile.am): Likewise.
76176         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
76177
76178 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76179
76180         * modules/error (Makefile.am): Distribute files through
76181         EXTRA_DIST, not lib_SOURCES.
76182
76183 2006-10-12  Eric Blake  <ebb9@byu.net>
76184
76185         * modules/error (Makefile.am): Distribute files in /lib.
76186         * modules/obstack (Makefile.am): Likewise.
76187
76188 2006-10-12  Bruno Haible  <bruno@clisp.org>
76189
76190         * modules/acl (Makefile.am): Distribute all files in lib/ through
76191         EXTRA_DIST.
76192         * modules/arcfour (Makefile.am): Likewise.
76193         * modules/arctwo (Makefile.am): Likewise.
76194         * modules/argmatch (Makefile.am): Likewise.
76195         * modules/argz (Makefile.am): Likewise.
76196         * modules/atexit (Makefile.am): Likewise.
76197         * modules/backupfile (Makefile.am): Likewise.
76198         * modules/c-strtod (Makefile.am): Likewise.
76199         * modules/c-strtold (Makefile.am): Likewise.
76200         * modules/calloc (Makefile.am): Likewise.
76201         * modules/canon-host (Makefile.am): Likewise.
76202         * modules/canonicalize (Makefile.am): Likewise.
76203         * modules/chdir-long (Makefile.am): Likewise.
76204         * modules/chdir-safer (Makefile.am): Likewise.
76205         * modules/check-version (Makefile.am): Likewise.
76206         * modules/chown (Makefile.am): Likewise.
76207         * modules/cloexec (Makefile.am): Likewise.
76208         * modules/close-stream (Makefile.am): Likewise.
76209         * modules/closeout (Makefile.am): Likewise.
76210         * modules/crc (Makefile.am): Likewise.
76211         * modules/cycle-check (Makefile.am): Likewise.
76212         * modules/des (Makefile.am): Likewise.
76213         * modules/dirfd (Makefile.am): Likewise.
76214         * modules/dirname (Makefile.am): Likewise.
76215         * modules/dup2 (Makefile.am): Likewise.
76216         * modules/euidaccess (Makefile.am): Likewise.
76217         * modules/exclude (Makefile.am): Likewise.
76218         * modules/exitfail (Makefile.am): Likewise.
76219         * modules/fcntl-safer (Makefile.am): Likewise.
76220         * modules/file-type (Makefile.am): Likewise.
76221         * modules/fileblocks (Makefile.am): Likewise.
76222         * modules/filemode (Makefile.am): Likewise.
76223         * modules/filenamecat (Makefile.am): Likewise.
76224         * modules/fnmatch (Makefile.am): Likewise.
76225         * modules/fopen-safer (Makefile.am): Likewise.
76226         * modules/fpending (Makefile.am): Likewise.
76227         * modules/fprintftime (Makefile.am): Likewise.
76228         * modules/free (Makefile.am): Likewise.
76229         * modules/fsusage (Makefile.am): Likewise.
76230         * modules/ftruncate (Makefile.am): Likewise.
76231         * modules/fts (Makefile.am): Likewise.
76232         * modules/gc (Makefile.am): Likewise.
76233         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76234         * modules/getaddrinfo (Makefile.am): Likewise.
76235         * modules/getcwd (Makefile.am): Likewise.
76236         * modules/getdelim (Makefile.am): Likewise.
76237         * modules/getdomainname (Makefile.am): Likewise.
76238         * modules/getgroups (Makefile.am): Likewise.
76239         * modules/gethostname (Makefile.am): Likewise.
76240         * modules/gethrxtime (Makefile.am): Likewise.
76241         * modules/getline (Makefile.am): Likewise.
76242         * modules/getloadavg (Makefile.am): Likewise.
76243         * modules/getlogin_r (Makefile.am): Likewise.
76244         * modules/getopt (Makefile.am): Likewise.
76245         * modules/getpass (Makefile.am): Likewise.
76246         * modules/getpass-gnu (Makefile.am): Likewise.
76247         * modules/getsubopt (Makefile.am): Likewise.
76248         * modules/gettime (Makefile.am): Likewise.
76249         * modules/gettimeofday (Makefile.am): Likewise.
76250         * modules/getugroups (Makefile.am): Likewise.
76251         * modules/getusershell (Makefile.am): Likewise.
76252         * modules/glob (Makefile.am): Likewise.
76253         * modules/group-member (Makefile.am): Likewise.
76254         * modules/hard-locale (Makefile.am): Likewise.
76255         * modules/hash (Makefile.am): Likewise.
76256         * modules/hmac-md5 (Makefile.am): Likewise.
76257         * modules/hmac-sha1 (Makefile.am): Likewise.
76258         * modules/human (Makefile.am): Likewise.
76259         * modules/idcache (Makefile.am): Likewise.
76260         * modules/imaxabs (Makefile.am): Likewise.
76261         * modules/imaxdiv (Makefile.am): Likewise.
76262         * modules/inet_ntop (Makefile.am): Likewise.
76263         * modules/inet_pton (Makefile.am): Likewise.
76264         * modules/inttostr (Makefile.am): Likewise.
76265         * modules/isapipe (Makefile.am): Likewise.
76266         * modules/lchown (Makefile.am): Likewise.
76267         * modules/long-options (Makefile.am): Likewise.
76268         * modules/lstat (Makefile.am): Likewise.
76269         * modules/malloc (Makefile.am): Likewise.
76270         * modules/mathl (Makefile.am): Likewise.
76271         * modules/mbchar (Makefile.am): Likewise.
76272         * modules/md2 (Makefile.am): Likewise.
76273         * modules/md4 (Makefile.am): Likewise.
76274         * modules/md5 (Makefile.am): Likewise.
76275         * modules/memcasecmp (Makefile.am): Likewise.
76276         * modules/memchr (Makefile.am): Likewise.
76277         * modules/memcmp (Makefile.am): Likewise.
76278         * modules/memcoll (Makefile.am): Likewise.
76279         * modules/memcpy (Makefile.am): Likewise.
76280         * modules/memmem (Makefile.am): Likewise.
76281         * modules/memmove (Makefile.am): Likewise.
76282         * modules/mempcpy (Makefile.am): Likewise.
76283         * modules/memrchr (Makefile.am): Likewise.
76284         * modules/memset (Makefile.am): Likewise.
76285         * modules/memxor (Makefile.am): Likewise.
76286         * modules/mkancesdirs (Makefile.am): Likewise.
76287         * modules/mkdir (Makefile.am): Likewise.
76288         * modules/mkdir-p (Makefile.am): Likewise.
76289         * modules/mkdtemp (Makefile.am): Likewise.
76290         * modules/mkstemp (Makefile.am): Likewise.
76291         * modules/mktime (Makefile.am): Likewise.
76292         * modules/modechange (Makefile.am): Likewise.
76293         * modules/mountlist (Makefile.am): Likewise.
76294         * modules/nanosleep (Makefile.am): Likewise.
76295         * modules/openat (Makefile.am): Likewise.
76296         * modules/pagealign_alloc (Makefile.am): Likewise.
76297         * modules/physmem (Makefile.am): Likewise.
76298         * modules/poll (Makefile.am): Likewise.
76299         * modules/posixtm (Makefile.am): Likewise.
76300         * modules/posixver (Makefile.am): Likewise.
76301         * modules/putenv (Makefile.am): Likewise.
76302         * modules/quote (Makefile.am): Likewise.
76303         * modules/quotearg (Makefile.am): Likewise.
76304         * modules/raise (Makefile.am): Likewise.
76305         * modules/read-file (Makefile.am): Likewise.
76306         * modules/readline (Makefile.am): Likewise.
76307         * modules/readlink (Makefile.am): Likewise.
76308         * modules/readtokens (Makefile.am): Likewise.
76309         * modules/readutmp (Makefile.am): Likewise.
76310         * modules/realloc (Makefile.am): Likewise.
76311         * modules/regex (Makefile.am): Likewise.
76312         * modules/rename (Makefile.am): Likewise.
76313         * modules/rename-dest-slash (Makefile.am): Likewise.
76314         * modules/rijndael (Makefile.am): Likewise.
76315         * modules/rmdir (Makefile.am): Likewise.
76316         * modules/rpmatch (Makefile.am): Likewise.
76317         * modules/safe-read (Makefile.am): Likewise.
76318         * modules/safe-write (Makefile.am): Likewise.
76319         * modules/same (Makefile.am): Likewise.
76320         * modules/save-cwd (Makefile.am): Likewise.
76321         * modules/savedir (Makefile.am): Likewise.
76322         * modules/setenv (Makefile.am): Likewise.
76323         * modules/settime (Makefile.am): Likewise.
76324         * modules/sha1 (Makefile.am): Likewise.
76325         * modules/sig2str (Makefile.am): Likewise.
76326         * modules/snprintf (Makefile.am): Likewise.
76327         * modules/stdlib-safer (Makefile.am): Likewise.
76328         * modules/stpcpy (Makefile.am): Likewise.
76329         * modules/stpncpy (Makefile.am): Likewise.
76330         * modules/strcase (Makefile.am): Likewise.
76331         * modules/strcasestr (Makefile.am): Likewise.
76332         * modules/strchrnul (Makefile.am): Likewise.
76333         * modules/strcspn (Makefile.am): Likewise.
76334         * modules/strdup (Makefile.am): Likewise.
76335         * modules/strerror (Makefile.am): Likewise.
76336         * modules/strftime (Makefile.am): Likewise.
76337         * modules/strndup (Makefile.am): Likewise.
76338         * modules/strnlen (Makefile.am): Likewise.
76339         * modules/strpbrk (Makefile.am): Likewise.
76340         * modules/strsep (Makefile.am): Likewise.
76341         * modules/strstr (Makefile.am): Likewise.
76342         * modules/strtod (Makefile.am): Likewise.
76343         * modules/strtoimax (Makefile.am): Likewise.
76344         * modules/strtok_r (Makefile.am): Likewise.
76345         * modules/strtol (Makefile.am): Likewise.
76346         * modules/strtoll (Makefile.am): Likewise.
76347         * modules/strtoul (Makefile.am): Likewise.
76348         * modules/strtoull (Makefile.am): Likewise.
76349         * modules/strtoumax (Makefile.am): Likewise.
76350         * modules/strverscmp (Makefile.am): Likewise.
76351         * modules/time_r (Makefile.am): Likewise.
76352         * modules/timegm (Makefile.am): Likewise.
76353         * modules/tmpfile-safer (Makefile.am): Likewise.
76354         * modules/unistd-safer (Makefile.am): Likewise.
76355         * modules/unlinkdir (Makefile.am): Likewise.
76356         * modules/userspec (Makefile.am): Likewise.
76357         * modules/utime (Makefile.am): Likewise.
76358         * modules/utimecmp (Makefile.am): Likewise.
76359         * modules/utimens (Makefile.am): Likewise.
76360         * modules/vasnprintf (Makefile.am): Likewise.
76361         * modules/vasprintf (Makefile.am): Likewise.
76362         * modules/vsnprintf (Makefile.am): Likewise.
76363         * modules/xalloc (Makefile.am): Likewise.
76364         * modules/xgetcwd (Makefile.am): Likewise.
76365         * modules/xnanosleep (Makefile.am): Likewise.
76366         * modules/xreadlink (Makefile.am): Likewise.
76367         * modules/xstrtod (Makefile.am): Likewise.
76368         * modules/xstrtol (Makefile.am): Likewise.
76369         * modules/xstrtold (Makefile.am): Likewise.
76370         * modules/yesno (Makefile.am): Likewise.
76371
76372 2006-10-12  Jim Meyering  <jim@meyering.net>
76373
76374         * m4/getloadavg.m4: Revert the change below.
76375
76376         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
76377         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
76378         fail with a symlink, which is what coreutils' ./bootstrap now
76379         creates by default.
76380
76381 2006-10-12  Bruno Haible  <bruno@clisp.org>
76382
76383         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
76384         mingw.
76385         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
76386         MSVC and mingw explicitly.
76387
76388 2006-10-11  Simon Josefsson  <jas@extundo.com>
76389             Bruno Haible  <bruno@clisp.org>
76390
76391         Add support for multiple gnulib-tool invocations in the scope of a
76392         single configure.ac file.
76393         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
76394         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
76395         with the same contents as the _LIBADD variable.
76396         (func_emit_initmacro_start, func_emit_initmacro_end,
76397         func_emit_initmacro_done): New functions.
76398         (func_import, func_create_testdir): Invoke them. Allow the identifiers
76399         gl_LIBOBJS and gl_LTLIBOBJS.
76400
76401 2006-10-11  Bruno Haible  <bruno@clisp.org>
76402
76403         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
76404         (func_create_testdir): Don't create po/Makefile.am, don't invoke
76405         autoreconf. Instead, invoke autopoint explicitly but move back the
76406         *.m4 files from gnulib.
76407
76408 2006-10-11  Bruno Haible  <bruno@clisp.org>
76409
76410         * gnulib-tool (func_usage): Make module names after --create-testdir
76411         optional.
76412         (func_create_testdir): If no module was specified, use nearly all
76413         modules.
76414
76415 2006-10-12  Jim Meyering  <jim@meyering.net>
76416
76417         Big performance improvement for fts-based tools that use FTS_NOSTAT.
76418         Avoid spurious inode-mismatch problems on non-POSIX file systems.
76419         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
76420         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
76421         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
76422         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
76423         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
76424         (fts_set_stat_required): New function.
76425         (fts_open): Defer the calls to fts_stat, if possible or requested.
76426         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
76427         into fts_stat itself.
76428         (fts_read): Perform any required (deferred) fts_stat call.
76429         (fts_build): Likewise, for the directory we're about to open and read.
76430         In the readdir loop, carefully decide whether each entry will require
76431         an eventual call to fts_stat, using dirent.d_type info if available.
76432         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
76433         a command line argument into this function.  Update all callers.
76434         Map a return value of FTS_DOT to FTS_D for a command line argument.
76435         * modules/fts (Depends-on): Add d-type.  Alphabetize.
76436         Thanks to Miklos Szeredi for his tenacity and for the initial
76437         bug report about "find" failing on a FUSE-based file system.
76438
76439         * lib/fts.c (fts_open): Use consistent indentation.
76440
76441 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76442
76443         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
76444         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
76445         reported by Jim Meyering.  All uses of cache variables renamed
76446         to match Autoconf's.
76447         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
76448         the other one.
76449
76450         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76451         Fix misspelling in diagnostic.
76452
76453 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76454
76455         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
76456         defined.  Problem reported by Matthew Woehlke.
76457
76458         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
76459         Add support for Tandem NonStop R series.
76460         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
76461         Use new macro.
76462
76463         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
76464         (has_trailing_slash): Omit size arg; all callers changed.
76465         Omit 'inline', since it doesn't help performance and we'd
76466         need to configure it.
76467         Don't count //, ///, etc. as having a trailing slash.
76468         As a side effect, this removes a C99ism reported by Matthew Woehlke.
76469         (rpl_rename_dest_slash): On failure, use rename's errno rather
76470         than (in some cases) an incorrect or junk errno.
76471         Simplify code by removing need to compute length; this does
76472         cause it to make two passes instead of one over the file name,
76473         but it's worth it.
76474
76475         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
76476         change, since Autoconf's version may no longer be appropriate now
76477         that we are using CVS Autoconf's version.  Add support for Tandem.
76478
76479 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76480             Bruno Haible  <bruno@clisp.org>
76481
76482         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
76483         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
76484         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
76485         gl_AC_TYPE_LONG_LONG.
76486
76487         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
76488         instead of HAVE_LONG_LONG.
76489         * lib/printf-args.c (printf_fetchargs): Likewise.
76490         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
76491         * lib/vasnprintf.c (VASNPRINTF): Likewise.
76492         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
76493         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
76494         gl_AC_TYPE_LONG_LONG.
76495
76496 2006-10-11  Bruno Haible  <bruno@clisp.org>
76497
76498         * m4/longlong.m4: Add comments.
76499         * m4/ulonglong.m4: Likewise.
76500
76501 2006-10-10  Bruno Haible  <bruno@clisp.org>
76502
76503         Make it possible to #define stpcpy, strdup to aliases.
76504         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
76505         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
76506
76507 2006-10-10  Bruno Haible  <bruno@clisp.org>
76508
76509         Make it possible to #define gcd to an alias.
76510         * lib/gcd.c: Include config.h.
76511
76512 2006-10-10  Bruno Haible  <bruno@clisp.org>
76513
76514         Make it possible to #define c_isascii to an alias.
76515         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
76516         defined. Undefine the macros before defining them, to avoid gcc
76517         warnings.
76518         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
76519         define NO_C_CTYPE_MACROS early.
76520
76521 2006-10-10  Bruno Haible  <bruno@clisp.org>
76522
76523         Make it possible to #define set_program_name to an alias.
76524         * lib/progname.c: Don't undefine set_program_name; instead, undefine
76525         ENABLE_RELOCATABLE early.
76526
76527 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76528
76529         Port to Tandem NSK OSS, which has 64-bit signed int but at most
76530         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
76531         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
76532         More generally, don't assume that 64-bit signed int is available
76533         if unsigned int is, and vice versa.
76534         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
76535         unsigned symbols, not on their signed counterparts.
76536         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
76537         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
76538         (UINT64_C, UINTMAX_C):
76539         Likewise.
76540         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
76541         unsigned counterparts.
76542         (Have_long_long, Unsigned): New macros.
76543         (Int): Renamed from INT.
76544         (strtoimax): Use the new macros.
76545         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
76546         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
76547         * modules/inttypes (inttypes.h): Substitute
76548         HAVE_UNSIGNED_LONG_LONG_INT.
76549         * modules/stdint (stdint.h): Likewise.
76550         (Files): Add m4/ulonglong.m4.
76551
76552 2006-10-10  Bruno Haible  <bruno@clisp.org>
76553
76554         Fix a gcc -Wshadow warning.
76555         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
76556         to 'bucket'.
76557         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
76558         gl_linked_indexof_from_to): Likewise.
76559         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
76560         Likewise.
76561         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
76562         Likewise.
76563         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
76564         Reported by Eric Blake.
76565
76566 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
76567
76568         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
76569         for NetBSD.  Problem reported by Bruno Haible.
76570
76571 2006-10-09  Jim Meyering  <jim@meyering.net>
76572
76573         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
76574         Patch from Bruno Haible.
76575
76576 2006-10-09  Jim Meyering  <jim@meyering.net>
76577
76578         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
76579         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
76580         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
76581
76582 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
76583
76584         Don't include <config.h> twice; this doesn't work in some cases,
76585         e.g., when config.h has "#define intmax_t long long int" and
76586         we include <config.h>, <inttypes.h>, <config.h> in that order.
76587         Problem reported by Matthew Woehlke in:
76588         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
76589         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
76590         * lib/fts-cycle.c: Don't include config.h.
76591         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
76592         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
76593         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
76594         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
76595         inttypes.h.
76596         * lib/xstrtoumax.c: Likewise.
76597         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
76598         __strtol and the like, so that this module is more like its siblings.
76599         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
76600         Remove; no longer needed now that we assume gnulib inttypes.h.
76601
76602 2006-10-08  Bruno Haible  <bruno@clisp.org>
76603
76604         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
76605         option.
76606
76607 2006-10-07  Jim Meyering  <jim@meyering.net>
76608
76609         * modules/inttypes (inttypes.h): Revert what seems to have been
76610         an inadvertent part of today's change: use "|", not "/" in the
76611         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
76612
76613 2006-10-07  Bruno Haible  <bruno@clisp.org>
76614
76615         * modules/sublist: New file.
76616
76617 2006-10-07  Bruno Haible  <bruno@clisp.org>
76618
76619         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
76620         * modules/argz (argz.h): Likewise.
76621         * modules/arpa_inet (arpa/inet.h): Likewise.
76622         * modules/byteswap (byteswap.h): Likewise.
76623         * modules/configmake (configmake.h): Likewise.
76624         * modules/fcntl (fcntl.h): Likewise.
76625         * modules/fnmatch (fnmatch.h): Likewise.
76626         * modules/getopt (getopt.h): Likewise.
76627         * modules/glob (glob.h): Likewise.
76628         * modules/inttypes (inttypes.h): Likewise.
76629         * modules/netinet_in (netinet/in.h): Likewise.
76630         * modules/poll (poll.h): Likewise.
76631         * modules/stdbool (stdbool.h): Likewise.
76632         * modules/stdint (stdint.h): Likewise.
76633         * modules/sys_select (sys/select.h): Likewise.
76634         * modules/sys_socket (sys/socket.h): Likewise.
76635         * modules/sys_stat (sys/stat.h): Likewise.
76636         * modules/sysexits (sysexits.h): Likewise.
76637         * modules/unistd (unistd.h): Likewise.
76638         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76639         Add a "DO NOT EDIT" comment to the generated file.
76640         (func_import): Likewise for gnulib-comp.m4.
76641
76642 2006-10-07  Bruno Haible  <bruno@clisp.org>
76643
76644         * lib/gl_sublist.h: New file.
76645         * lib/gl_sublist.c: New file.
76646
76647 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76648
76649         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
76650         name (relative to the original working directory) and the file
76651         name component (relative to the temporary working directory).  All
76652         callers changed.
76653         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
76654         * lib/mkdir-p.c (make_dir_parents): Likewise.
76655         * lib/mkdir-p.h (make_dir_parents): Likewise.
76656
76657 2006-10-06  Eric Blake  <ebb9@byu.net>
76658
76659         Define several macros for use by the clean-temp module.
76660         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
76661         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
76662         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
76663
76664         * lib/clean-temp.h (close_stream_temp): New declaration.
76665         * lib/clean-temp.c (includes): Pull in headers according to what
76666         other modules are in use.
76667         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
76668
76669 2006-10-06  Bruno Haible  <bruno@clisp.org>
76670
76671         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
76672         instead of fopen, fwriteerror.
76673
76674 2006-10-06  Bruno Haible  <bruno@clisp.org>
76675
76676         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
76677         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
76678         int.
76679         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
76680         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
76681         Return an error indicator.
76682         Suggested by Eric Blake.
76683
76684 2006-10-06  Bruno Haible  <bruno@clisp.org>
76685
76686         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
76687         Reported by Eric Blake.
76688
76689 2006-10-06  Bruno Haible  <bruno@clisp.org>
76690
76691         * modules/closeout (Description): Mention stderr too.
76692
76693 2006-10-06  Bruno Haible  <bruno@clisp.org>
76694         and Paul Eggert  <eggert@cs.ucla.edu>
76695
76696         * lib/closeout.c (close_stdout): Also close stderr.
76697         * lib/closeout.h: Update comment.
76698
76699 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76700
76701         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
76702         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
76703         * lib/dirchownmod.c: Include lchown.h.
76704         * lib/lchown.c: Don't include files that lchown.h now includes.
76705         Don't declare chown, since lchown.h now does that.
76706         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
76707         (lchown): Define to rpl_chown if lchown is declared but
76708         does not exist.  Declare using a prototype if lchown is not
76709         declared.  Add a copyright notice.
76710         * lib/mkstemp.h: Include <unistd.h>.
76711         * lib/openat.c: Include lchown.h.
76712
76713         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
76714         we now test for that separately.
76715         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
76716         rather than O_NOFOLLOW, when testing whether it's possible to
76717         avoid a race condition reliably.
76718         * lib/savewd.c (savewd_chdir): Likewise.
76719
76720         Remove macros that are no longer needed now that stdint.h is
76721         reliable.
76722         * lib/fsusage.c (UINTMAX_MAX): Remove.
76723         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
76724         * lib/utimecmp.c (SIZE_MAX): Remove.
76725
76726         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
76727
76728         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
76729         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
76730         O_NOATIME works.
76731
76732 2006-10-05  Bruno Haible  <bruno@clisp.org>
76733
76734         * lib/gl_list.h (gl_sortedlist_search_from_to,
76735         gl_sortedlist_indexof_from_to): New declarations.
76736         (gl_list_implementation): New fields sortedlist_search_from_to,
76737         sortedlist_indexof_from_to.
76738         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
76739         inline functions.
76740         * lib/gl_list.c (gl_sortedlist_search_from_to,
76741         gl_sortedlist_indexof_from_to): New functions.
76742         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
76743         function.
76744         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
76745         (gl_array_sortedlist_search_from_to): New function.
76746         (gl_array_list_implementation): Update.
76747         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
76748         function.
76749         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
76750         (gl_carray_sortedlist_search_from_to): New function.
76751         (gl_carray_list_implementation): Update.
76752         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
76753         gl_linked_sortedlist_indexof_from_to): New functions.
76754         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76755         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76756         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
76757         gl_tree_sortedlist_indexof_from_to): New functions.
76758         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76759         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76760         Update.
76761         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76762         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
76763         Update.
76764
76765 2006-10-05  Bruno Haible  <bruno@clisp.org>
76766
76767         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
76768         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
76769         (struct gl_list_implementation): Add fields search_from_to,
76770         indexof_from_to. Remove fields search, indexof.
76771         (gl_list_search): Use the search_from_to method.
76772         (gl_list_search_from, gl_list_search_from_to): New functions.
76773         (gl_list_indexof): Use the indexof_from_to method.
76774         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76775         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
76776         (gl_list_search_from, gl_list_search_from_to): New functions.
76777         (gl_list_indexof): Use the indexof_from_to method.
76778         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76779         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
76780         gl_array_indexof. Add start_index, end_index arguments.
76781         (gl_array_search_from_to): Renamed from gl_array_search. Add
76782         start_index, end_index arguments.
76783         (gl_array_remove, gl_array_list_implementation): Update.
76784         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
76785         gl_carray_indexof. Add start_index, end_index arguments.
76786         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
76787         start_index, end_index arguments.
76788         (gl_carray_remove, gl_carray_list_implementation): Update.
76789         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
76790         gl_linked_search. Add start_index, end_index arguments.
76791         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
76792         start_index, end_index arguments.
76793         (gl_linked_remove): Update.
76794         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76795         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76796         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
76797         field to 'size_t'.
76798         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
76799         gl_tree_search. Add start_index, end_index arguments.
76800         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76801         start_index, end_index arguments.
76802         (gl_tree_remove): Update.
76803         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76804         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76805         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
76806         function.
76807         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
76808         gl_tree_search. Add start_index, end_index arguments.
76809         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76810         start_index, end_index arguments.
76811         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76812         Update.
76813         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
76814
76815 2006-10-05  Bruno Haible  <bruno@clisp.org>
76816
76817         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
76818
76819         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
76820         fwriteerror_temp): New declarations.
76821         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
76822         (descriptors): New variable.
76823         (cleanup): First, close the descriptors.
76824         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
76825         fclose_temp, fwriteerror_temp): New functions.
76826
76827 2006-10-04  Jim Meyering  <jim@meyering.net>
76828
76829         * lib/fts.c (fts_open): Tiny comment change.
76830
76831 2006-10-04  Bruno Haible  <bruno@clisp.org>
76832
76833         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
76834         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
76835         gl_LOCK_BODY.
76836         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
76837         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
76838         gl_LOCK_EARLY_BODY.
76839         (gl_LOCK): Require gl_LOCK_BODY.
76840
76841 2006-10-04  Bruno Haible  <bruno@clisp.org>
76842
76843         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
76844         (gl_oset_search_atleast): New declaration.
76845         (struct gl_oset_implementation): Add field 'search_atleast'.
76846         (gl_oset_search_atleast): New inline function.
76847         * lib/gl_oset.c (gl_oset_search_atleast): New function.
76848         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
76849         (gl_array_oset_implementation): Update.
76850         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
76851         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
76852         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
76853
76854 2006-10-04  Bruno Haible  <bruno@clisp.org>
76855
76856         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
76857
76858 2006-10-03  Bruno Haible  <bruno@clisp.org>
76859
76860         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
76861         from gl_avltreehash_list_implementation.
76862
76863 2006-10-03  Bruno Haible  <bruno@clisp.org>
76864
76865         * lib/gl_oset.c (gl_oset_add): Fix return type.
76866
76867 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
76868
76869         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
76870
76871 2006-10-02  Eric Blake  <ebb9@byu.net>
76872
76873         * modules/strnlen (Depends-on): Add extensions.
76874
76875 2006-10-02  Eric Blake  <ebb9@byu.net>
76876
76877         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
76878         definition in 2.60+.
76879
76880 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
76881
76882         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
76883         checks.
76884
76885 2006-10-02  Bruno Haible  <bruno@clisp.org>
76886
76887         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
76888         to the AUTOMAKE_OPTIONS.
76889         Reported by Jim Meyering.
76890
76891 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76892
76893         Work around bug in Solaris 10 /proc file system:
76894         /proc/self/fd/NNN/.. isn't the parent directory of
76895         the directory whose file descriptor is NNN.  This needs to
76896         be worked around at run time, not compile time, since a
76897         program might be built on Solaris 8, where things work, and
76898         run on Solaris 10.
76899         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
76900         to use the following interface instead:
76901         (OPENAT_BUFFER_SIZE): New macro.
76902         (openat_proc_name): New function.
76903         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
76904         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
76905         Likewise.
76906         * lib/openat-proc.c: New file.
76907         * modules/openat (Files): Add lib/openat-proc.c.
76908         (Depends-on): Add same-inode, stdbool.
76909         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
76910
76911 2006-09-29  Bruno Haible  <bruno@clisp.org>
76912
76913         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
76914         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
76915         argument. Set stdout_closed before testing for ferror, not after.
76916         (fwriteerror, fwriteerror_no_ebadf): New functions.
76917
76918 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76919
76920         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
76921
76922 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
76923
76924         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
76925         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
76926
76927 2006-09-28  Jim Meyering  <jim@meyering.net>
76928
76929         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
76930         Include <unistd.h>.
76931
76932 2006-09-28  Bruno Haible  <bruno@clisp.org>
76933
76934         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
76935         * modules/linkedhash-list (Depends-on): Likewise.
76936         * modules/rbtreehash-list (Depends-on): Likewise.
76937
76938 2006-09-28  Bruno Haible  <bruno@clisp.org>
76939
76940         * lib/strndup.h: Simplify the redefinition of strndup.
76941         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
76942         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
76943
76944 2006-09-28  Bruno Haible  <bruno@clisp.org>
76945
76946         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
76947         * lib/gl_linkedhash_list.c: Likewise.
76948         * lib/gl_rbtreehash_list.c: Likewise.
76949
76950 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76951
76952         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
76953         getaddrinfo.
76954
76955         * lib/__fpending.h: Don't include <stdio_ext.h> unless
76956         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
76957         it causes <stdio_ext.h> to cause a compile-time error.
76958         Problem reported by Nelson H. F. Beebe.
76959         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
76960         of HAVE_DECL___PENDING.
76961
76962         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
76963         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
76964         declaration.
76965
76966 2006-09-27  Jim Meyering  <jim@meyering.net>
76967
76968         This file could end up with a definition for a function
76969         named __strndup, rather than rpl_strndup on a system with
76970         incomplete weak_alias support.
76971         * lib/strndup.c (strndup): Rename from __strndup.
76972         Remove #defines that used to map __strndup to strndup.
76973         Don't use K&R prototypes.
76974         Remove LIBC-related code, since this file is not sync'd with glibc.
76975         * lib/strndup.h: Revamp, accordingly.
76976         * m4/strndup.m4: Modernize.
76977
76978 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76979
76980         * modules/savewd (Depends-on): Add 'raise'.
76981         * lib/savewd.c: Include <signal.h>, for 'raise'.
76982
76983 2006-09-26  Jim Meyering  <jim@meyering.net>
76984
76985         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
76986         when we detect Darwin 8.7.0's acl_get_file bug.
76987         Rearrange to perform the new (below) run-test while $LIBS
76988         contains any acl-related library.  Set USE_ACL at the end.
76989         (gl_ACL_GET_FILE): New function.
76990
76991 2006-09-26  Eric Blake  <ebb9@byu.net>
76992
76993         * lib/verror.c: Include <config.h> unconditionally.
76994
76995 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
76996
76997         * modules/clock-time (Maintainer): Add self.
76998         * modules/getlogin_r (Depends-on): Add extensions.
76999
77000 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77001
77002         * modules/clock-time: New module.
77003         * modules/nanosleep (Depends-on): Add clock-time.
77004         * modules/gethrxtime (Depends-on): Likewise.
77005         * modules/gettime (Depends-on): Likewise.
77006         * modules/settime (Depends-on): Likewise.
77007
77008         * modules/fts-lgpl: Depend on openat.
77009         * modules/mkancesdirs: Depend on savewd.
77010         * modules/mkdir-p: Likewise.
77011
77012 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77013
77014         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
77015
77016         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
77017         `gl_have_arbitrary_file_name_length_limit' to
77018         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
77019         actually works between configure runs.
77020
77021 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77022             Bruno Haible  <bruno@clisp.org>
77023
77024         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
77025
77026 2006-09-25  Jim Meyering  <jim@meyering.net>
77027
77028         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
77029         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
77030
77031 2006-09-25  Eric Blake  <ebb9@byu.net>
77032
77033         * gnulib-tool (func_import, func_create_testdir): Fix typos in
77034         exec's in 2006-09-18 patch when shuffling fds.
77035
77036 2006-09-25  Bruno Haible  <bruno@clisp.org>
77037
77038         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
77039         Reported by Jim Meyering.
77040
77041 2006-09-24  Jim Meyering  <jim@meyering.net>
77042
77043         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
77044         compare a pointer against a literal "0".  That caused failures with
77045         at least HP-UX's hpcc.
77046
77047 2006-09-22  Simon Josefsson  <jas@extundo.com>
77048
77049         * modules/gc-sha1:
77050         * modules/gc-md4:
77051         * modules/gc-hmac-sha1:
77052         * modules/gc-hmac-md5:
77053         * modules/gc-des:
77054         * modules/gc-arcfour: Distribute more files.
77055
77056 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77057
77058         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
77059         (gl_linked_iterator_from_to): Initialize struct completely.
77060         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
77061         (gl_tree_iterator_from_to): Likewise
77062         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
77063         * lib/gl_array_list.c [lint] (gl_array_iterator)
77064         (gl_array_iterator_from_to): Likewise.
77065         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
77066         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
77067         (gl_carray_iterator_from_to): Likewise.
77068
77069         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
77070         * lib/md4.c (md4_process_block): Remove unused variable.
77071         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
77072         parentheses for clarity.
77073
77074 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77075
77076         * modules/bison-i18n (Depends-on): Add gettext.
77077
77078 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77079
77080         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
77081         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
77082         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
77083         also add missing comma that caused broken test.
77084         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
77085         stdlib.h, for `abort'.
77086         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
77087         variables.
77088         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
77089         include unistd.h if present, for `rmdir'.
77090         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
77091         variables.
77092         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
77093         in the process include standard headers for prototypes.
77094         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
77095         gets declared on GNU/Linux.
77096         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
77097         unistd.h, for `rmdir'.
77098         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
77099
77100         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
77101         always true.
77102         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
77103
77104         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
77105
77106 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77107
77108         * gnulib-tool (func_version): Create output all at once.  This
77109         may help avoid triggering unnecessary SIGPIPEs, and at any
77110         rate it doesn't hurt.
77111
77112 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77113             Bruno Haible  <bruno@clisp.org>
77114
77115         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
77116         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
77117         * m4/signed.m4 (bh_C_SIGNED): Likewise.
77118
77119         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
77120         (gl_FUNC_VASPRINTF): Invoke it.
77121
77122 2006-09-22  Bruno Haible  <bruno@clisp.org>
77123
77124         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
77125         getloadavg.c as first argument.
77126
77127 2006-09-22  Bruno Haible  <bruno@clisp.org>
77128
77129         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
77130         at the beginning of the gl_INIT macro.
77131         * modules/getloadavg (configure.ac): Pass $gl_source_base to
77132         gl_GETLOADAVG.
77133
77134 2006-09-22  Bruno Haible  <bruno@clisp.org>
77135
77136         * gnulib-tool (func_create_megatestdir): Don't include the config-h
77137         module.
77138         Suggested by Ralf Wildenhues.
77139
77140 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77141
77142         Import this patch from libc:
77143
77144         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
77145
77146         * lib/regex_internal.c (re_string_reconstruct): Handle
77147         offset < pstr->valid_raw_len && pstr->offsets_needed case.
77148         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
77149         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
77150         re_string_context_at.
77151
77152         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
77153         now requires it.
77154         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
77155         gl_REGEX now does it for us.
77156         (gl_REGEX): Add test taken from
77157         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
77158
77159         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
77160         Check that large offsets work.  Modernize Autoconf usages.
77161         Prefer "yes" to mean a good thing rather than a bad.
77162         Don't put "#define mkstemp" in config.h, as this might interfere
77163         with standard system headers that "#define mkstemp mkstemp64".
77164
77165         * modules/mkstemp (Depends-on): Add extensions, so that
77166         mkstemp is visible on some platforms.
77167         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
77168         (Include): Change to "mkstemp.h" from <stdlib.h>.
77169         (Files): Add mkstemp.h.
77170
77171         * lib/mkstemp.h: New file, since some standard headers
77172         #define mkstemp.
77173         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
77174         Include "mkstemp.h".
77175         Make the _LIBC code resemble glibc original more,
77176         e.g., use K&R style.
77177         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
77178         (mkstemp): Remove, since mkstemp.h does this for us.
77179         * lib/stdlib--.h: Include mkstemp.h.
77180
77181         Import this patch from libc:
77182
77183         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77184
77185         * lib/tempname.c (__gen_tempname): Change attempts_min
77186         into a macro.  Use preprocessor to decide how to initialize
77187         attempts [Coverity CID 67].
77188
77189 2006-09-20  Bruno Haible  <bruno@clisp.org>
77190
77191         * lib/mkdtemp.c: Import from libc.
77192         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77193                 * sysdeps/posix/tempname.c (__gen_tempname): Change
77194                 attempts_min into a macro.  Use preprocessor to decide how to
77195                 initialize attempts [Coverity CID 67].
77196         2001-11-27  Paul Eggert  <eggert@twinsun.com>
77197                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
77198                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
77199
77200 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77201
77202         * gnulib-tool (func_exit): New function, to allow to pass the
77203         exit status portably through the trap.  Use everywhere.
77204         (--help, --version): Signal a write error.
77205         (trap): catch SIGPIPE, for write errors.
77206         Exit at the end of the trap, with the correct exit status.
77207
77208 2006-09-19  Karl Berry  <karl@gnu.org>
77209
77210         * doc/gnulib.texi: note about the license texinfo files.
77211
77212 2006-09-19  Eric Blake  <ebb9@byu.net>
77213
77214         * gnulib-tool: Avoid space-tab.
77215
77216 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77217
77218         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
77219         that prevented coreutils 6.1 from building.  Problem reported
77220         by Petter Reinholdtsen.
77221
77222 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77223
77224         * gnulib-tool (avoidlist): Fix typo that broke options like
77225         --avoid=lock that are used by coreutils bootstrap.
77226
77227 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
77228
77229         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
77230         more systematically.
77231
77232 2006-09-18  Jim Meyering  <jim@meyering.net>
77233
77234         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
77235
77236 2006-09-18  Bruno Haible  <bruno@clisp.org>
77237
77238         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
77239
77240 2006-09-18  Bruno Haible  <bruno@clisp.org>
77241
77242         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
77243         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
77244         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
77245         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
77246         * m4/gettext.m4: Require autoconf >= 2.52.
77247         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
77248         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
77249         of gl_cv_header_inttypes_h.
77250
77251 2006-09-18  Bruno Haible  <bruno@clisp.org>
77252
77253         * lib/javaversion.c: Include configmake.h.
77254
77255 2006-09-18  Bruno Haible  <bruno@clisp.org>
77256
77257         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
77258         avoid that the while loops be executed in a subshell.
77259
77260 2006-09-18  Bruno Haible  <bruno@clisp.org>
77261
77262         * MODULES.html.sh (func_module): Break long lines.
77263         Suggested by Bruce Korb <bkorb@gnu.org>.
77264
77265 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77266
77267         Speed up by a factor of 1.12.
77268         * gnulib-tool (nl): New variable.
77269         (func_import): Rewrite include directive extraction to only read each
77270         directive once.
77271
77272 2006-09-17  Bruno Haible  <bruno@clisp.org>
77273
77274         * modules/javaversion (Makefile.am): Remove DEFS setting.
77275         (Depends-on): Add configmake, for PKGDATADIR definition.
77276
77277 2006-09-17  Bruno Haible  <bruno@clisp.org>
77278
77279         * gnulib-tool (func_create_testdir): Rewrite all files at once.
77280
77281 2006-09-17  Bruno Haible  <bruno@clisp.org>
77282
77283         * gnulib-tool (func_append): New function, stolen from libtool.m4.
77284         (func_modules_transitive_closure, func_modules_add_dummy,
77285         func_modules_to_filelist, func_import, func_create_testdir,
77286         func_create_megatestdir, ...): Use it wherever possible.
77287         Suggested by Ralf Wildenhues.
77288
77289 2006-09-16  Karl Berry  <karl@gnu.org>
77290
77291         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
77292         to avoid sectioning errors.
77293         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
77294         [ifinfo]: blank line after @center-ed titles.
77295         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
77296         Spell FSF address consistently with others.
77297         (These changes approved by rms.)
77298
77299 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77300
77301         Speed up by a factor of 1.61.
77302         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
77303         already checked module names again.
77304
77305 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77306
77307         Speed up by a factor of 1.13.
77308         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
77309         for new_files, and the input to func_add_or_update.
77310
77311 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77312
77313         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
77314         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
77315
77316 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77317
77318         * modules/mkancesdirs (Depends-on): Add fcntl.
77319         * modules/savewd: New file.
77320         * MODULES.html.sh (File system functions): Add savewd.
77321
77322         * modules/configmake (Makefile.am): Add support for the
77323         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
77324
77325 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77326
77327         * m4/savewd.m4: New file.
77328
77329 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77330
77331         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
77332         (dirchownmod): New arg FD.  All callers changed.
77333         Use FD rather than opening the directory ourself, as opening is
77334         now the caller's responsibility.
77335         * lib/dirchownmod.h: Likewise.
77336         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
77337         hosts that require <sys/types.h> before <sys/stat.h>.  Include
77338         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
77339         (test_dir): Remove.
77340         (mkancesdirs): Return length of prefix of FILE that has already
77341         been made, or -2 if there is a child doing the work.  Redo
77342         algorithm so that it is O(N) rather than O(N**2).  Optimize away
77343         ".", and treat ".." specially since it might stray back into
77344         already-created areas.  Use a subprocess if necessary.  New arg
77345         WD; all users changed.  MAKE_DIR function should now return 1
77346         if it creates a directory that is not readable.  Return -2 if
77347         a child process is spun off.
77348         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
77349         Adjust signature to match code.
77350         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
77351         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
77352         all users changed.
77353         * lib/savewd.c, lib/savewd.h: New files.
77354
77355 2006-09-15  Jim Meyering  <jim@meyering.net>
77356
77357         * modules/rename-dest-slash: New module.
77358         * MODULES.html.sh (posix_compat): Add it here.
77359
77360         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
77361
77362 2006-09-15  Jim Meyering  <jim@meyering.net>
77363
77364         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
77365         file.
77366
77367         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
77368
77369 2006-09-15  Jim Meyering  <jim@meyering.net>
77370
77371         * lib/rename-dest-slash.c (has_trailing_slash): Use
77372         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
77373         (rpl_rename_dest_slash): Perform the cheaper trailing slash
77374         test before testing whether SRC is a directory.
77375         Suggestions from Bruno Haible.
77376
77377         Avoid a warning about an unused variable.
77378         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
77379         into the #ifdef block where it's used.
77380
77381         * lib/rename-dest-slash.c: New file.
77382
77383 2006-09-14  Bruno Haible  <bruno@clisp.org>
77384
77385         * lib/allocsa.c: Include <config.h> unconditionally.
77386         * lib/asnprintf.c: Likewise.
77387         * lib/asprintf.c: Likewise.
77388         * lib/c-strcasecmp.c: Likewise.
77389         * lib/c-strcasestr.c: Likewise.
77390         * lib/c-strncasecmp.c: Likewise.
77391         * lib/c-strstr.c: Likewise.
77392         * lib/classpath.c: Likewise.
77393         * lib/clean-temp.c: Likewise.
77394         * lib/concatpath.c: Likewise.
77395         * lib/copy-file.c: Likewise.
77396         * lib/csharpcomp.c: Likewise.
77397         * lib/csharpexec.c: Likewise.
77398         * lib/execute.c: Likewise.
77399         * lib/fatal-signal.c: Likewise.
77400         * lib/findprog.c: Likewise.
77401         * lib/fwriteerror.c: Likewise.
77402         * lib/gl_array_list.c: Likewise.
77403         * lib/gl_array_oset.c: Likewise.
77404         * lib/gl_avltree_list.c: Likewise.
77405         * lib/gl_avltree_oset.c: Likewise.
77406         * lib/gl_avltreehash_list.c: Likewise.
77407         * lib/gl_carray_list.c: Likewise.
77408         * lib/gl_linked_list.c: Likewise.
77409         * lib/gl_linkedhash_list.c: Likewise.
77410         * lib/gl_list.c: Likewise.
77411         * lib/gl_oset.c: Likewise.
77412         * lib/gl_rbtree_list.c: Likewise.
77413         * lib/gl_rbtree_oset.c: Likewise.
77414         * lib/gl_rbtreehash_list.c: Likewise.
77415         * lib/imaxabs.c: Likewise.
77416         * lib/imaxdiv.c: Likewise.
77417         * lib/javacomp.c: Likewise.
77418         * lib/javaexec.c: Likewise.
77419         * lib/javaversion.c: Likewise.
77420         * lib/linebreak.c: Likewise.
77421         * lib/localcharset.c: Likewise.
77422         * lib/lock.c: Likewise.
77423         * lib/mbchar.c: Likewise.
77424         * lib/mbswidth.c: Likewise.
77425         * lib/mkdtemp.c: Likewise.
77426         * lib/pipe.c: Likewise.
77427         * lib/printf-args.c: Likewise.
77428         * lib/printf-parse.c: Likewise.
77429         * lib/progname.c: Likewise.
77430         * lib/progreloc.c: Likewise.
77431         * lib/readlink.c: Likewise.
77432         * lib/sh-quote.c: Likewise.
77433         * lib/stpcpy.c: Likewise.
77434         * lib/stpncpy.c: Likewise.
77435         * lib/strcasecmp.c: Likewise.
77436         * lib/strcasestr.c: Likewise.
77437         * lib/strcspn.c: Likewise.
77438         * lib/striconv.c: Likewise.
77439         * lib/strncasecmp.c: Likewise.
77440         * lib/strnlen1.c: Likewise.
77441         * lib/strstr.c: Likewise.
77442         * lib/strtok_r.c: Likewise.
77443         * lib/tls.c: Likewise.
77444         * lib/tmpdir.c: Likewise.
77445         * lib/unicodeio.c: Likewise.
77446         * lib/unsetenv.c: Likewise.
77447         * lib/vasnprintf.c: Likewise.
77448         * lib/vasprintf.c: Likewise.
77449         * lib/wait-process.c: Likewise.
77450         * lib/xallocsa.c: Likewise.
77451         * lib/xsetenv.c: Likewise.
77452         * lib/xstriconv.c: Likewise.
77453
77454 2006-09-13  Simon Josefsson  <jas@extundo.com>
77455
77456         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
77457         that internally, suggested by Ralf Wildenhues
77458         <Ralf.Wildenhues@gmx.de>.
77459
77460 2006-09-13  Simon Josefsson  <jas@extundo.com>
77461
77462         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
77463         @LIBOBJS@.
77464         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77465
77466 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77467
77468         * lib/_fpending.c: Include <config.h> unconditionally, since we no
77469         longer worry about uses that don't define HAVE_CONFIG_H.
77470         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
77471         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
77472         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
77473         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
77474         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
77475         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
77476         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
77477         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
77478         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
77479         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
77480         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
77481         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
77482         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
77483         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
77484         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
77485         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
77486         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
77487         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
77488         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
77489         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
77490         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
77491         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
77492         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
77493         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
77494         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
77495         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
77496         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
77497         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
77498         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
77499         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
77500         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
77501         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
77502         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
77503         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
77504         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
77505         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
77506         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
77507         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
77508         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
77509         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
77510         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
77511         Likewise.
77512
77513 2006-09-13  Eric Blake  <ebb9@byu.net>
77514
77515         * lib/getopt.c: Fix typo in last commit.
77516
77517 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77518
77519         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
77520         dgettext.
77521
77522 2006-09-12  Jim Meyering  <jim@meyering.net>
77523
77524         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
77525         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
77526         Reported by Nelson H. F. Beebe.
77527
77528 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77529
77530         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
77531         program_invocation_name and program_invocation_short_name are
77532         initialized.
77533         * lib/argp-namefrob.h: Move declarations of program_invocation_name
77534         and program_invocation_short_name to argp.h, so they are visible
77535         to user programs.
77536         * lib/argp.h: Likewise
77537
77538 2006-09-10  Bruno Haible  <bruno@clisp.org>
77539
77540         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77541         m4/inttypes_h.m4, m4/uintmax_t.m4.
77542
77543 2006-09-10  Bruno Haible  <bruno@clisp.org>
77544
77545         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
77546         gl_AC_TYPE_UINTMAX_T.
77547
77548 2006-09-10  Bruno Haible  <bruno@clisp.org>
77549
77550         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
77551
77552 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77553
77554         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
77555         convention.  Text proposed by Bruno Haible.
77556         (struct argp_option): Document the use of N_() wrappers.
77557
77558         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
77559         '\v', and translate the two parts separately, instead of feeding
77560         the whole string to gettext.  This allows to exclude
77561         '\v' from the strings visible to the translator by writing doc
77562         strings as N_("..") "\v" N_("..").
77563
77564 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
77565
77566         * config/srclist.txt: Undo latest change; the bug was fixed.
77567
77568 2006-09-09  Bruno Haible  <bruno@clisp.org>
77569
77570         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
77571         assignments if building a library without libtool.
77572         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
77573         in func_emit_lib_Makefile_am.
77574         (func_import): When building a static library libfoo.a, arrange to
77575         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
77576         (func_create_testdir): Likewise.
77577         * modules/gc (configure.ac, Makefile.am): If building statically,
77578         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
77579         * modules/iconvme (configure.ac, Makefile.am): Likewise.
77580         * modules/striconv (configure.ac, Makefile.am): Likewise.
77581         Based on a suggestion by Ralf Wildenhues.
77582
77583 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77584
77585         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
77586         Check for unistd.h too, since Autoconf doesn't assume POSIX.
77587         Also:
77588
77589         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77590         Add year_2050_test to catch glibc bug 2821
77591         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77592
77593         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77594         Prefer #ifdef to #if.
77595
77596         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
77597         Return from 'main' instead of calling 'exit'.
77598
77599 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77600
77601         * lib/mktime.c (guess_time_tm): Fix bug where mktime
77602         returned the maximum time_t value rather than (time_t) -1.
77603         Problem originally reported by William Bardwell
77604         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77605
77606         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77607         Moved to here ...
77608         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77609         ... from here.
77610
77611 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77612
77613         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
77614         2821 is fixed.
77615
77616 2006-09-08  Jim Meyering  <jim@meyering.net>
77617
77618         Don't make generated files read-only.  That would bother too many
77619         people.  However, do retain the ability to work when targets are
77620         read-only: remove the destination and temporary files before writing
77621         them (when generated via sed or echo), or by using the -f option for
77622         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
77623         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77624         * modules/byteswap, modules/configmake, modules/fcntl:
77625         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77626         * modules/localcharset, modules/netinet_in, modules/poll:
77627         * modules/stdbool, modules/stdint, modules/sys_select:
77628         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77629
77630 2006-09-08  Jim Meyering  <jim@meyering.net>
77631
77632         Avoid new build failure on FreeBSD 6.0.
77633         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
77634         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
77635         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
77636
77637 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77638
77639         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
77640
77641 2006-09-07  Jim Meyering  <jim@meyering.net>
77642
77643         Fix global typo in last change: use chmod u-w, not chmod u-x.
77644         Spotted by Paul Eggert and Bruce Korb.
77645         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77646         * modules/byteswap, modules/configmake, modules/fcntl:
77647         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77648         * modules/localcharset, modules/netinet_in, modules/poll:
77649         * modules/stdbool, modules/stdint, modules/sys_select:
77650         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77651
77652 2006-09-06  Jim Meyering  <jim@meyering.net>
77653
77654         Make generated files be read-only.
77655         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
77656         Ensure that each generated file is now read-only.
77657         * modules/argz: Likewise.
77658         * modules/arpa_inet: Likewise.
77659         * modules/byteswap: Likewise.
77660         * modules/configmake: Likewise.
77661         * modules/fcntl: Likewise.
77662         * modules/fnmatch: Likewise.
77663         * modules/getopt: Likewise.
77664         * modules/glob: Likewise.
77665         * modules/inttypes: Likewise.
77666         * modules/netinet_in: Likewise.
77667         * modules/poll: Likewise.
77668         * modules/stdbool: Likewise.
77669         * modules/stdint: Likewise.
77670         * modules/sys_select: Likewise.
77671         * modules/sys_socket: Likewise.
77672         * modules/sys_stat: Likewise.
77673         * modules/sysexits: Likewise.
77674         * modules/localcharset: Same as above, but continue using temporary
77675         file named "t-$@" (why different?) rather than the "$@-t" used
77676         everywhere else.
77677
77678         * modules/sysexits (Makefile.am): Replace literal occurrences
77679         of "sysexit.h" more readable, and more consistent, "$@".
77680
77681 2006-09-06  Bruno Haible  <bruno@clisp.org>
77682
77683         * modules/striconv: New file.
77684         * modules/xstriconv: New file.
77685         * MODULES.html.sh (Internationalization functions): Add striconv,
77686         xstriconv.
77687
77688 2006-09-06  Bruno Haible  <bruno@clisp.org>
77689
77690         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
77691         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
77692         not using libtool correctly.
77693
77694 2006-09-06  Bruno Haible  <bruno@clisp.org>
77695
77696         * lib/striconv.h: New file.
77697         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
77698         iconvstring.c.
77699         * lib/xstriconv.h: New file.
77700         * lib/xstriconv.c: New file.
77701
77702 2006-09-06  Bruno Haible  <bruno@clisp.org>
77703
77704         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
77705         lib_..._LDFLAGS.
77706
77707 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77708
77709         * lib/argz_.h: Sync from Libtool.
77710
77711         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
77712                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77713
77714         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
77715
77716 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77717
77718         * modules/trim: New file.
77719
77720 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77721
77722         * lib/trim.h: New file.
77723         * lib/trim.c: New file.
77724
77725 2006-09-05  Bruno Haible  <bruno@clisp.org>
77726
77727         * MODULES.html.sh (String handling): Add trim.
77728
77729 2006-09-04  Karl Berry  <karl@gnu.org>
77730
77731         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
77732         until next release.
77733
77734 2006-09-03  Bruno Haible  <bruno@clisp.org>
77735
77736         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
77737         correctly.
77738
77739 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77740
77741         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
77742         not gl_GETLOADAVG.  Omit unneeded semicolons.
77743         Problems reported by Ralf Wildenhues in
77744         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77745         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
77746         at the end, which is the usual gnulib style.
77747
77748         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
77749         of doing all the work ourselves.
77750         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
77751         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
77752
77753 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77754
77755         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
77756         Problem reported by Ralf Wildenhues in
77757         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77758
77759         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
77760         HAVE_STRUCT_STATFS_F_FSTYPENAME.
77761
77762 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77763
77764         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
77765         yesterday's patch by changing test -n to test -z.
77766
77767 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77768
77769         * modules/getloadavg (Files): Add m4/getloadavg.m4.
77770         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
77771         the former is now obsolescent.
77772
77773         * modules/chdir-long (Depends-on): Add fcntl.
77774
77775 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77776
77777         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
77778         obsolescent, and programs should use gnulib instead.
77779         * m4/getloadavg.m4: New file, with contents taken from Autoconf
77780         but with prefixes changed.
77781
77782 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77783
77784         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
77785         or stdbool.h, because they might not exist while configuring.
77786
77787         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
77788         Don't include unistd.h or limits.h; not needed, since chdir-long.h
77789         does that for us.
77790         (O_DIRECTORY): Remove.
77791
77792 2006-08-31  Eric Blake  <ebb9@byu.net>
77793
77794         * gnulib-tool: Don't let emacs change spaces to TAB.
77795
77796 2006-08-31  Bruno Haible  <bruno@clisp.org>
77797
77798         * gnulib-tool: When calling func_import more than once, do it in a
77799         subshell.
77800         Reported by Eric Blake <ebb9@byu.net>.
77801
77802 2006-08-31  Bruno Haible  <bruno@clisp.org>
77803
77804         * gnulib-tool (nl): Remove variable.
77805         (sed_transform_lib_file): Use more robust test for config-h module.
77806         (func_import): Fix typo in 2006-08-25 patch.
77807
77808 2006-08-31  Bruno Haible  <bruno@clisp.org>
77809
77810         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
77811         specified, augment Makefile.am variables instead of assigning them.
77812
77813 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77814
77815         Work around a bug in both the Linux and SunOS 64-bit kernels:
77816         nanosleep mishandles sleeps for longer than 2**31 seconds.
77817         Problem reported by Frank v Waveren in
77818         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77819         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
77820         Check for nanosleep bug.
77821         (LIB_NANOSLEEP): Append clock_gettime library if needed.
77822
77823 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77824
77825         Work around a bug in both the Linux and SunOS 64-bit kernels:
77826         nanosleep mishandles sleeps for longer than 2**31 seconds.
77827         Problem reported by Frank v Waveren in
77828         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77829         * lib/nanosleep.c (BILLION): New constant.
77830         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
77831         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
77832         implementation.
77833
77834 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77835
77836         * modules/nanosleep (Depends-on): Add gettime.
77837
77838 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77839         and Simon Josefsson  <jas@extundo.com>
77840         and Oskar Liljeblad  <oskar@osk.mine.nu>
77841
77842         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
77843         * gnulib-tool (func_import): New license type 'unmodifiable license
77844         text'.
77845         * modules/fdl: Use it.  Longer description.
77846         * module/gpl, module/lgpl: New files.
77847
77848 2006-08-30  Jim Meyering  <jim@meyering.net>
77849
77850         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
77851         shadowing the parameter.
77852
77853 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77854
77855         Sync from Libtool:
77856
77857         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77858
77859         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
77860         sharing with gnulib.  Report by Eric Blake.
77861
77862 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77863
77864         * modules/isapipe: New file.
77865         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
77866
77867 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77868
77869         * modules/configmake (Makefile.am): Add a comment, and omit
77870         the CONFIGMAKE_ prefix from generated macro names.  Suggested
77871         by Bruno Haible.
77872
77873 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77874
77875         * m4/isapipe.m4: New file.
77876
77877 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77878
77879         * lib/isapipe.c, lib/isapipe.h: New files.
77880
77881 2006-08-29  Jim Meyering  <jim@meyering.net>
77882
77883         * modules/configmake (Makefile.am): Make configmake.h depend on
77884         Makefile.  Otherwise, a stale configmake.h could hang around.
77885
77886 2006-08-29  Eric Blake  <ebb9@byu.net>
77887
77888         * lib/error.c (error_at_line, print_errno_message): Match libc, after
77889         resolution of upstream bug 3044.
77890
77891 2006-08-29  Bruno Haible  <bruno@clisp.org>
77892
77893         * modules/localcharset (Depends-on): Add configmake.
77894         (Makefile.am): Remove setting of LIBDIR through DEFS.
77895
77896 2006-08-29  Bruno Haible  <bruno@clisp.org>
77897
77898         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
77899         defined.
77900
77901 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77902
77903         * modules/fcntl: New file.
77904         * modules/chdir-safer (Depends-on): Add fcntl.
77905         * modules/fts: Likewise.
77906         * modules/mkdir-p: Likewise.
77907
77908         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
77909         This undoes the most recent change, since we're now addressing the
77910         problem in a different way.
77911
77912         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
77913         into output, since the output might be called Makefile.am even
77914         if $makefile_name is something different.
77915         (func_import): Use $makefile_am rather than
77916         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
77917         empty.
77918
77919         * modules/inttypes (Files): Add m4/inttypes-h.m4.
77920
77921 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77922
77923         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
77924         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
77925         recent change to stdint.m4, since we're now addressing the problem in a
77926         different way.
77927
77928 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77929
77930         * m4/fcntl_h.m4: New file.
77931
77932 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77933
77934         * lib/fcntl_.h: New file.
77935         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
77936         the fcntl module.
77937         * lib/dirchownmod.c: Likewise.
77938         * lib/fts.c: Likewise.
77939
77940         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
77941         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
77942         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
77943         just before including <inttypes.h>, to avoid circular inclusion.
77944
77945 2006-08-28  Jim Meyering  <jim@meyering.net>
77946
77947         * doc/visibility.texi: Actually read and correct the grammar of the
77948         sentence affected by yesterday's change.
77949
77950 2006-08-28  Eric Blake  <ebb9@byu.net>
77951
77952         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
77953         needs wrapper.
77954
77955 2006-08-28  Eric Blake  <ebb9@byu.net>
77956
77957         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
77958
77959 2006-08-28  Eric Blake  <ebb9@byu.net>
77960
77961         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
77962
77963 2006-08-28  Bruno Haible  <bruno@clisp.org>
77964
77965         * modules/c-strstr: New file, from GNU gettext.
77966         * MODULES.html.sh (String handling): Add c-strstr.
77967
77968 2006-08-28  Bruno Haible  <bruno@clisp.org>
77969
77970         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
77971         macros.
77972         Reported by Eric Blake.
77973
77974 2006-08-28  Bruno Haible  <bruno@clisp.org>
77975
77976         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
77977         (VASNPRINTF): Return a string of length > INT_MAX without failing.
77978         * lib/vasprintf.c: Include errno.h, limits.h.
77979         (EOVERFLOW): New fallback definition.
77980         (vasprintf): Test here whether the string length is > INT_MAX.
77981         * lib/vsnprintf.c: Include errno.h, limits.h.
77982         (EOVERFLOW): New fallback definition.
77983         (vsnprintf): Fix bug when generated string was too long for the buffer.
77984         Test here whether the string length is > INT_MAX.
77985
77986 2006-08-28  Bruno Haible  <bruno@clisp.org>
77987
77988         * lib/inttypes_.h (SCNX*): Remove definitions.
77989         Reported by Eric Blake.
77990
77991 2006-08-28  Bruno Haible  <bruno@clisp.org>
77992
77993         * lib/c-strstr.h: New file, from GNU gettext.
77994         * lib/c-strstr.c: New file, from GNU gettext.
77995
77996 2006-08-28  Bruno Haible  <bruno@clisp.org>
77997
77998         * gnulib-tool: Reorder some statements.
77999
78000 2006-08-28  Bruno Haible  <bruno@clisp.org>
78001
78002         * gnulib-tool: New option --makefile-name.
78003         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
78004         $makefile_name.
78005         (func_import): Write $makefile_name to the cache file, and read it from
78006         there unless explicitly specified. Use $makefile_name as file name
78007         instead of Makefile.am. Adjust the recommendations accordingly.
78008
78009 2006-08-28  Bruno Haible  <bruno@clisp.org>
78010
78011         * gnulib-tool (func_verify_module): Check against misapplying patch.
78012
78013 2006-08-28  Bruno Haible  <bruno@clisp.org>
78014
78015         * gnulib-tool (func_relativize, func_relconcat): New functions.
78016         Give an error if --local-dir is given with --update.
78017         Remove trailing slashes from $local_gnulib_dir.
78018         (func_import): Store the relativized $local_gnulib_dir in
78019         gnulib-cache.m4, and read it from there if not specified explicitly.
78020
78021 2006-08-28  Bruno Haible  <bruno@clisp.org>
78022
78023         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
78024         is the current directory. Respect also $local_gnulib_dir.
78025
78026 2006-08-28  Bruno Haible  <bruno@clisp.org>
78027             Simon Josefsson  <jas@extundo.com>
78028
78029         BeOS portability.
78030         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
78031
78032 2006-08-27  Jim Meyering  <jim@meyering.net>
78033
78034         * doc/visibility.texi: Remove duplicate word: "pointer".
78035
78036 2006-08-26  Bruno Haible  <bruno@clisp.org>
78037
78038         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
78039         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
78040         (Makefile.am): Create inttypes.h from inttypes_.h.
78041         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
78042
78043         * modules/imaxabs: New file.
78044
78045         * modules/imaxdiv: New file.
78046
78047 2006-08-26  Bruno Haible  <bruno@clisp.org>
78048
78049         * m4/inttypes.m4: New file.
78050         * m4/_inttypes_h.m4: Remove file.
78051         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
78052         PRI_MACROS_BROKEN.
78053         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
78054
78055         * m4/imaxabs.m4: New file.
78056
78057         * m4/imaxdiv.m4: New file.
78058
78059 2006-08-26  Bruno Haible  <bruno@clisp.org>
78060
78061         * lib/inttypes_.h: New file.
78062         * lib/inttypes.h: Remove file.
78063         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
78064
78065         * lib/imaxabs.c: New file.
78066
78067         * lib/imaxdiv.c: New file.
78068
78069 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78070
78071         New config-h module, so that "make" output needn't be cluttered
78072         by -DHAVE_CONFIG_H.
78073         * MODULES.html.sh (Support for building libraries and executables):
78074         Add config-h.
78075         * modules/config-h: New file.
78076         * gnulib-tool (nl, sed_transform_lib_file): New vars.
78077         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
78078         the config-h module is used.
78079
78080         New configmake module, so that "make" output needn't be cluttered
78081         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
78082         * MODULES.html.sh (Support for building libraries and executables):
78083         Add configmake.
78084         * modules/configmake: New file.
78085
78086 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78087
78088         * m4/config-h.m4: New file.
78089
78090 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78091
78092         * config/srclist.txt: Add elisp-comp.
78093
78094 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78095
78096         * MODULES.html.sh (Support for building libraries and executables):
78097         Add elisp-comp.
78098         * build-aux/elisp-comp: New file.
78099         * modules/elisp-comp: New file.
78100
78101 2006-08-24  Bruno Haible  <bruno@clisp.org>
78102
78103         * gnulib-tool (func_create_testdir): Use non-default values of
78104         sourcebase and m4base.
78105
78106 2006-08-24  Bruno Haible  <bruno@clisp.org>
78107
78108         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
78109         HTML structure.
78110
78111 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78112
78113         * modules/openat (Depends-on): Add lchown.
78114
78115 2006-08-23  Bruno Haible  <bruno@clisp.org>
78116
78117         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
78118         of gl_LOCK_EARLY instead of gl_LOCK.
78119
78120 2006-08-23  Bruno Haible  <bruno@clisp.org>
78121
78122         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
78123         on OSF/1 to no.
78124         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
78125
78126 2006-08-23  Bruno Haible  <bruno@clisp.org>
78127
78128         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
78129         as unusable.
78130
78131         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
78132         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
78133         (gl_LOCK): New macro.
78134
78135 2006-08-22  Simon Josefsson  <jas@extundo.com>
78136
78137         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
78138         to md5 module.
78139
78140 2006-08-22  Simon Josefsson  <jas@extundo.com>
78141
78142         * MODULES.html.sh: Add "Support for maintaining and release
78143         projects".
78144
78145         * build-aux/gnupload: New file, from coreutils.
78146
78147 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78148
78149         Avoid the need for AC_LIBSOURCES in m4 macros.
78150         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
78151         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
78152         * modules/check-version (EXTRA_DIST): Add check-version.h.
78153         * modules/crc (EXTRA_DIST): Add crc.h.
78154         * modules/des (EXTRA_DIST): Add des.h.
78155         * modules/gc (EXTRA_DIST): Add gc.h.
78156         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
78157         * modules/getline (EXTRA_DIST): Add getline.h.
78158         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
78159         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
78160         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
78161         * modules/md2 (EXTRA_DIST): Add md2.h.
78162         * modules/md4 (EXTRA_DIST): Add md4.h.
78163         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
78164         * modules/read-file (EXTRA_DIST): Add read-file.h.
78165         * modules/readline (EXTRA_DIST): Add readline.h.
78166         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
78167         rijndael-api-fst.h.
78168
78169 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78170
78171         * m4/rijndael.m4 (gl_ARCFOUR):
78172         * m4/arctwo.m4 (gl_ARCTWO):
78173         * m4/check-version.m4 (gl_CHECK_VERSION):
78174         * m4/crc.m4 (gl_CRC):
78175         * m4/des.m4 (gl_DES):
78176         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
78177         * m4/gc.m4 (gl_GC):
78178         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
78179         * m4/getline.m4 (gl_FUNC_GETLINE):
78180         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
78181         * m4/hmac-md5.m4 (gl_HMAC_MD5):
78182         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
78183         * m4/md2.m4 (gl_MD2):
78184         * m4/md4.m4 (gl_MD4):
78185         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
78186         * m4/read-file.m4 (gl_FUNC_READ_FILE):
78187         * m4/readline.m4 (gl_FUNC_READLINE):
78188         * m4/rijndael.m4 (gl_RIJNDAEL):
78189         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78190         to get the necessary .h files and whatnot.
78191
78192 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78193
78194         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
78195         gnulib rather than the other way around.
78196         * config/srclistvars.sh (COREUTILS): Remove.
78197
78198 2006-08-22  Jim Meyering  <jim@meyering.net>
78199
78200         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
78201
78202         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
78203
78204 2006-08-22  Eric Blake  <ebb9@byu.net>
78205
78206         * modules/regexprops-generic: New file.
78207         * MODULES.html.sh (Support for building documentation): List it.
78208
78209 2006-08-22  Eric Blake  <ebb9@byu.net>
78210
78211         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
78212         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
78213         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
78214         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
78215
78216 2006-08-22  Bruno Haible  <bruno@clisp.org>
78217
78218         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
78219         and lib_LTLIBRARIES like the other lib_* variables.
78220
78221 2006-08-22  Bruno Haible  <bruno@clisp.org>
78222
78223         * build-aux/x-to-1.in: New file, from GNU gettext.
78224
78225 2006-08-22  Bruno Haible  <bruno@clisp.org>
78226
78227         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
78228         <utmpx.h> exists.
78229
78230 2006-08-22  Bruno Haible  <bruno@clisp.org>
78231
78232         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
78233         <utmpx.h> exists.
78234
78235 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78236
78237         BeOS portability.
78238         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
78239         exist.
78240         Problem reported by Bruno Haible.
78241
78242 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78243
78244         Avoid the need for AC_LIBSOURCES in m4 macros.
78245         * modules/acl (EXTRA_DIST): Add acl.h.
78246         * modules/argmatch (Files): Add m4/argmatch.m4.
78247         (configure.ac): Add gl_ARGMATCH.
78248         (EXTRA_DIST): Renamed from lib_SOURCES, for
78249         consistency with the other modules.  Remove argmatch.c.
78250         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
78251         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
78252         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
78253         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
78254         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
78255         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
78256         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
78257         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
78258         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
78259         * modules/closeout (EXTRA_DIST): Add closeout.h.
78260         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
78261         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
78262         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
78263         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
78264         dirname.h; remove basename.c and stripslash.c.
78265         * modules/exclude (EXTRA_DIST): Add exclude.h.
78266         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
78267         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
78268         * modules/file-type (EXTRA_DIST): Add file-type.h.
78269         * modules/filemode (EXTRA_DIST): Add filemode.h.
78270         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
78271         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78272         * modules/fpending (EXTRA_DIST): Add __fpending.h.
78273         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
78274         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
78275         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
78276         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
78277         * modules/getdate (EXTRA_DIST): Add getdate.c.
78278         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
78279         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
78280         * modules/getpass (EXTRA_DIST): Add getpass.h.
78281         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
78282         * modules/group-member (EXTRA_DIST): Add group-member.h.
78283         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
78284         * modules/hash (EXTRA_DIST): Add hash.h.
78285         * modules/human (EXTRA_DIST): Add human.h.
78286         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
78287         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
78288         * modules/lchown (EXTRA_DIST): Add lchown.h.
78289         * modules/long-options (EXTRA_DIST): Add long-options.h.
78290         * modules/lstat (EXTRA_DIST): Add lstat.h.
78291         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
78292         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
78293         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
78294         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
78295         * modules/memxor (EXTRA_DIST): Add memxor.h.
78296         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
78297         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
78298         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
78299         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
78300         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
78301         * modules/physmem (EXTRA_DIST): Add physmem.h.
78302         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
78303         * modules/posixver (EXTRA_DIST): Add posixver.h.
78304         * modules/quote (EXTRA_DIST): Add quote.h.
78305         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
78306         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
78307         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
78308         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
78309         regex_internal.h regexec.c.
78310         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
78311         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
78312         * modules/same (EXTRA_DIST): Add same.h.
78313         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
78314         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
78315         * modules/savedir (EXTRA_DIST): Add savedir.h.
78316         * modules/sha1 (EXTRA_DIST): Add sha1.h.
78317         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
78318         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
78319         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
78320         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
78321         * modules/strdup (EXTRA_DIST): Add strdup.h.
78322         * modules/strftime (EXTRA_DIST): Add strftime.h.
78323         * modules/strndup (EXTRA_DIST): Add strndup.h.
78324         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
78325         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
78326         * modules/time_r (EXTRA_DIST): Add time_r.h.
78327         * modules/timespec (EXTRA_DIST): Add timespec.h.
78328         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78329         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
78330         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
78331         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
78332         * modules/userspec (EXTRA_DIST): Add userspec.h.
78333         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
78334         * modules/utimens (EXTRA_DIST): Add utimens.h.
78335         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
78336         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
78337         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
78338         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
78339         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
78340         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
78341         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
78342         * modules/yesno (EXTRA_DIST): Add yesno.h.
78343
78344 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78345
78346         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
78347
78348         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
78349         * m4/dev-ino.m4, same-inode.m4: Remove.
78350
78351         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
78352         * m4/acl.m4 (AC_FUNC_ACL):
78353         * m4/backupfile.m4 (gl_BACKUPFILE):
78354         * m4/c-strtod.m4 (gl_C99_STRTOLD):
78355         * m4/canon-host.m4 (gl_CANON_HOST):
78356         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
78357         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
78358         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
78359         * m4/cloexec.m4 (gl_CLOEXEC):
78360         * m4/close-stream.m4 (gl_CLOSE_STREAM):
78361         * m4/closeout.m4 (gl_CLOSEOUT):
78362         * m4/dirfd.m4 (gl_FUNC_DIRFD):
78363         * m4/dirname.m4 (gl_DIRNAME):
78364         * m4/exclude.m4 (gl_EXCLUDE):
78365         * m4/exitfail.m4 (gl_EXITFAIL):
78366         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
78367         * m4/file-type.m4 (gl_FILE_TYPE):
78368         * m4/filemode.m4 (gl_FILEMODE):
78369         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
78370         * m4/fpending.m4 (gl_FUNC_FPENDING):
78371         * m4/fprintftime.m4 (gl_FPRINTFTIME):
78372         * m4/fts.m4 (gl_FUNC_FTS):
78373         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
78374         * m4/getdate.m4 (gl_GETDATE):
78375         * m4/gethrxtime.m4 (gl_GETHRXTIME):
78376         * m4/getpagesize.m4 (gl_GETPAGESIZE):
78377         * m4/getpass.m4 (gl_FUNC_GETPASS):
78378         * m4/gettime.m4 (gl_GETTIME):
78379         * m4/getugroups.m4 (gl_GETUGROUPS):
78380         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
78381         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
78382         * m4/hard-locale.m4 (gl_HARD_LOCALE):
78383         * m4/hash.m4 (gl_HASH):
78384         * m4/idcache.m4 (gl_IDCACHE):
78385         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
78386         * m4/lchown.m4 (gl_FUNC_LCHOWN):
78387         * m4/long-options.m4 (gl_LONG_OPTIONS):
78388         * m4/lstat.m4 (gl_FUNC_LSTAT):
78389         * m4/md5.m4 (gl_MD5):
78390         * m4/memcasecmp.m4 (gl_MEMCASECMP):
78391         * m4/memcoll.m4 (gl_MEMCOLL):
78392         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
78393         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
78394         * m4/memxor.m4 (gl_MEMXOR):
78395         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
78396         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
78397         * m4/modechange.m4 (gl_MODECHANGE):
78398         * m4/mountlist.m4 (gl_MOUNTLIST):
78399         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
78400         * m4/openat.m4 (gl_FUNC_OPENAT):
78401         * m4/pathmax.m4 (gl_PATHMAX):
78402         * m4/physmem.m4 (gl_PHYSMEM):
78403         * m4/posixtm.m4 (gl_POSIXTM):
78404         * m4/posixver.m4 (gl_POSIXVER):
78405         * m4/quote.m4 (gl_QUOTE):
78406         * m4/quotearg.m4 (gl_QUOTEARG):
78407         * m4/readtokens.m4 (gl_READTOKENS):
78408         * m4/readutmp.m4 (gl_READUTMP):
78409         * m4/regex.m4 (gl_REGEX):
78410         * m4/safe-read.m4 (gl_SAFE_READ):
78411         * m4/safe-write.m4 (gl_SAFE_WRITE):
78412         * m4/same.m4 (gl_SAME):
78413         * m4/save-cwd.m4 (gl_SAVE_CWD):
78414         * m4/savedir.m4 (gl_SAVEDIR):
78415         * m4/settime.m4 (gl_SETTIME):
78416         * m4/sha1.m4 (gl_SHA1):
78417         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
78418         * m4/stat-macros.m4 (gl_STAT_MACROS):
78419         * m4/stat-time.m4 (gl_STAT_TIME):
78420         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
78421         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
78422         * m4/strdup.m4 (gl_FUNC_STRDUP):
78423         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
78424         * m4/strndup.m4 (gl_FUNC_STRNDUP):
78425         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
78426         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
78427         * m4/time_r.m4 (gl_TIME_R):
78428         * m4/timespec.m4 (gl_TIMESPEC):
78429         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
78430         * m4/unlinkdir.m4 (gl_UNLINKDIR):
78431         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
78432         * m4/userspec.m4 (gl_USERSPEC):
78433         * m4/utimecmp.m4 (gl_UTIMECMP):
78434         * m4/utimens.m4 (gl_UTIMENS):
78435         * m4/xalloc.m4 (gl_XALLOC):
78436         * m4/xgetcwd.m4 (gl_XGETCWD):
78437         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
78438         * m4/xreadlink.m4 (gl_XREADLINK):
78439         * m4/xstrtod.m4 (gl_XSTRTOD):
78440         * m4/yesno.m4 (gl_YESNO):
78441         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78442         to get the necessary .h files and whatnot.
78443
78444 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
78445             Bruno Haible  <bruno@clisp.org>
78446
78447         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
78448         /bin/sh understanding of '!' conditional negation.
78449
78450 2006-08-21  Jim Meyering  <jim@meyering.net>
78451
78452         * modules/openat (Depends-on): Really alphabetize.
78453
78454         * modules/acl (Depends-on): Add error and quote.
78455
78456         * check-module (find_included_lib_files): Add at-func.c to the
78457         ok-to-include-more-than-once white list.
78458
78459         * modules/openat (Depends-on): Add lstat.  Alphabetize.
78460
78461 2006-08-21  Bruno Haible  <bruno@clisp.org>
78462
78463         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78464         Emit a pkgdata_DATA variable only if some snippets add contents to it.
78465         Reported by Martin Lambers <marlam@marlam.de>.
78466
78467 2006-08-21  Bruno Haible  <bruno@clisp.org>
78468
78469         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
78470         specify an installation location, don't emit a noinst_LIBRARIES or
78471         noinst_LTLIBRARIES assignment.
78472
78473 2006-08-21  Bruno Haible  <bruno@clisp.org>
78474
78475         BeOS portability.
78476         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
78477         BeOS has mbrtowc() but no <wctype.h>.
78478
78479 2006-08-21  Bruno Haible  <bruno@clisp.org>
78480
78481         BeOS portability.
78482         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
78483         exist.
78484
78485 2006-08-21  Bruno Haible  <bruno@clisp.org>
78486
78487         BeOS portability.
78488         * lib/mbchar.h: Include <wctype.h> only if it exists.
78489
78490 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78491
78492         Remove files that are no longer needed by their respective modules.
78493         * m4/obstack.m4: Remove.
78494         * m4/strerror_r.m4: Remove.
78495         * m4/uint32_t.m4: Remove.
78496         * m4/uintptr_t.m4: Remove.
78497         * m4/ullong_max.m4: Remove.
78498         * m4/xstrtoimax.m4: Remove.
78499         * m4/xstrtoumax.m4: Remove.
78500
78501         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
78502         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
78503         dependencies now capture this.
78504
78505         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
78506         Do not use AC_LIBSOURCES, since gnulib modules now do this.
78507         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
78508         * m4/human.m4 (gl_HUMAN): Likewise.
78509         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
78510         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
78511
78512         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
78513
78514         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
78515         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
78516         stdint.
78517         * m4/human.m4 (gl_HUMAN): Likewise.
78518         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
78519         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
78520         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78521         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78522         * m4/xstrtol (gl_XSTRTOL): Likewise.
78523
78524         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
78525         AC_TYPE_LONG_LONG_INT.
78526         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78527         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
78528         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
78529         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78530
78531         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
78532         on stdbool.
78533
78534         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
78535         (gl_PREREQ_XSTRTOUL): Remove.
78536
78537         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
78538
78539         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
78540         mode.
78541
78542 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78543
78544         Add and change modules to make it easier for coreutils to use
78545         gnulib-tool.
78546         * modules/backupfile (Files): Remove m4/d-ino.m4.
78547         (Depends-on): Add d-ino.
78548         * modules/cycle-check (Depends-on): Add stdint.
78549         (lib_SOURCES): Add cycle-check.h.
78550         * modules/d-ino: New module.
78551         * modules/d-type: New module.
78552         * modules/error (Files): Remove m4/strerror_r.m4.
78553         * modules/filemode (Files): Add m4/st_dm_mode.m4.
78554         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78555         m4/inttypes_h.m4, m4/uintmax_t.m4.
78556         (Depends-on): Add stdint.
78557         (lib_SOURCES): Add fsusage.h.
78558         * modules/getcwd (Files): Remove d-ino.m4.
78559         (Depends-on): Add d-ino.
78560         * modules/getndelim2 (Depends-on): Add stdint.
78561         * modules/glob (Files): Remove m4/d-type.m4.
78562         (Depends-on): Add d-type.
78563         * modules/host-os: New module.
78564         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
78565         m4/inttypes_h.m4, m4/uintmax_t.m4.
78566         * Depends-on: Add stdint.
78567         (lib_SOURCES): Add human.h.
78568         * modules/inttostr (Files): Remove m4/intmax_t.m4,
78569         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
78570         m4/uintmax_t.m4, m4/ulonglong.m4.
78571         (Depends-on): Add stdint.
78572         (EXTRA_DIST): Add inttostr.h.
78573         * modules/lchmod: New module.
78574         * modules/link-follow: New module.
78575         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
78576         (Depends-on): Add lchmod.
78577         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
78578         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
78579         (Depends-on): Add stdint.
78580         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
78581         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
78582         (Depends-on): Add stdint.
78583         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
78584         * modules/perl: New module.
78585         * modules/regex (Depends-on): Add stdint.
78586         * modules/rmdir-errno: New module.
78587         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78588         m4/intmax_t.m4.
78589         (Depends-on): Add stdint.
78590         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78591         m4/uintmax_t.m4.
78592         (Depends-on): Add stdint.
78593         * modules/unlink-busy: New module.
78594         * modules/utimecmp (Depends-on): Add stdint.
78595         * modules/uptime: New module.
78596         * modules/winsz-ioctl: New module.
78597         * modules/winsz-termios: New module.
78598         * modules/xnanosleep (Depends-on): Add nanosleep.
78599         * modules/ullong_max: Remove.
78600         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
78601         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
78602         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
78603         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
78604         (Depends-on): Add inttypes.
78605         (lib_SOURCES): Add xstrtol.h.
78606         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
78607         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
78608         * MODULES.html.sh: Move 'assert' into the assert section.
78609         Move 'dummy' into the linking section.
78610         Remove ullong_max.
78611         Add section for compatibility checks for POSIX:2001 functions,
78612         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
78613         winsz-ioctl, and winsz-termios into it.
78614         Add lchmod.
78615         Add top-level Misc section and put host-os, perl, and uptime
78616         into it.
78617
78618 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78619
78620         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
78621         now assume the stdint module.  Do not include inttypes.h.
78622         * lib/fsusage.h: Likewise.
78623         * lib/getndelim2.c: Likewise.
78624         * lib/human.h: Likewise.
78625         * lib/inttostr.h: Likewise.
78626         * lib/obstack.c: Likewise.
78627         * lib/regex_internal.h: Likewise.
78628         * lib/tempname.c: Likewise.
78629         * lib/utimecmp.c: Likewise.
78630         * lib/xstrtol.h: Likewise.
78631
78632         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
78633
78634         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
78635         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
78636         * lib/xtime.h: Likewise.
78637
78638 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78639
78640         * modules/openat (Files): Add lib/fchmodat.c.
78641         Fixes problem reported by Jay Youngman.
78642
78643 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78644
78645         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
78646         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
78647
78648 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
78649             Bruno Haible  <bruno@clisp.org>
78650
78651         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
78652         and is a script that invokes bison. Tighten the code. Add comments.
78653
78654 2006-08-18  Jim Meyering  <jim@meyering.net>
78655
78656         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
78657         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
78658         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
78659         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
78660
78661 2006-08-18  Bruno Haible  <bruno@clisp.org>
78662
78663         * modules/bison-i18n: New file.
78664         * MODULES.html.sh (Internationalization functions): Add it.
78665
78666 2006-08-18  Bruno Haible  <bruno@clisp.org>
78667
78668         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
78669         sys/statvfs.h. When getmntinfo was found, check its declaration and
78670         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
78671
78672 2006-08-18  Bruno Haible  <bruno@clisp.org>
78673
78674         * m4/bison-i18n.m4: New file, from bison.
78675
78676 2006-08-18  Bruno Haible  <bruno@clisp.org>
78677
78678         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
78679         (ME_DUMMY): Treat "kernfs" as a dummy.
78680         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
78681
78682 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78683
78684         Update from coreutils.
78685
78686         2006-08-15  Jim Meyering  <jim@meyering.net>
78687
78688         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
78689
78690         2006-01-17  Jim Meyering  <jim@meyering.net>
78691
78692         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
78693
78694         2006-01-11  Jim Meyering  <jim@meyering.net>
78695
78696         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
78697         Check for the lchmod function.
78698
78699 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78700
78701         Update from coreutils.
78702
78703         * lib/__fpending.h: Add copyright notice.
78704         * lib/fprintftime.h: Likewise.
78705         * lib/savedir.c: Use (C) in copyright notice.
78706         * lib/savedir.h: Likewise.
78707
78708         2006-08-15  Jim Meyering  <jim@meyering.net>
78709
78710         * lib/at-func.c: New file, with the logic of all emulated at-functions.
78711         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
78712         in support of the EXPECTED_ERRNO macro.
78713         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
78714         definitions.  Instead, define the appropriate symbols and include
78715         "at-func.c".
78716         * lib/mkdirat.c (mkdirat): Likewise.
78717         * lib/fchmodat.c (fchmodat): Likewise.
78718         (ENOSYS): Remove definition.
78719         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
78720         it.  Don't include "unistd--.h" -- it wasn't ever used.
78721
78722         2006-01-17  Jim Meyering  <jim@meyering.net>
78723
78724         Rewrite fts.c not to change the current working directory,
78725         by using openat, fstatat, fdopendir, etc..
78726
78727         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
78728         (HAVE_OPENAT_SUPPORT): Define.
78729         [_LIBC] (fchdir): Don't undef or define; no longer used.
78730         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
78731         Now, this `function' always succeeds, and consumes its file descriptor
78732         parameter -- so callers must not close such FDs.  Update callers.
78733         (diropen_fd, opendirat, cwd_advance_fd): New functions.
78734         (diropen): Add parameter, SP.  Adjust all callers.
78735         Implement using diropen_fd, rather than open.
78736         (fts_open): Initialize new member, fts_cwd_fd.
78737         Remove fts_rft-setting code.
78738         (fts_close): Close fts_cwd_fd, if necessary.
78739         (__opendir2): Define in terms of opendir or opendirat,
78740         depending on whether the FST_NOCHDIR flag is set.
78741         (fts_build): Since fts_safe_changedir consumes its FD, and since
78742         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
78743         and close the dup'd file descriptor upon failure.
78744         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
78745         (fts_safe_changedir): Tweak semantics to reflect that this function
78746         now calls cwd_advance_fd and hence consumes its FD argument.
78747         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
78748         [struct FTS] (fts_rft): Remove now-unused member.
78749         [struct FTS] (fts_cycle.state): Improve comment.
78750
78751         * lib/openat.c (openat_needs_fchdir): New function.
78752         * lib/openat.h (openat_needs_fchdir): Declare it.
78753
78754 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78755
78756         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
78757         Problem and fix reported by Pádraig Brady in
78758         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
78759
78760 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78761
78762         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
78763
78764 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78765
78766         * lib/memcoll.c (memcoll): Optimize for the common case where the
78767         arguments are bytewise equal.
78768
78769 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78770
78771         * doc/regexprops-generic.texi: Add a copyright notice.
78772
78773 2006-08-15  Bruno Haible  <bruno@clisp.org>
78774
78775         * modules/tmpdir (License): Change to LGPL.
78776
78777 2006-08-15  Bruno Haible  <bruno@clisp.org>
78778
78779         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
78780         module.
78781
78782 2006-08-14  Simon Josefsson  <jas@extundo.com>
78783
78784         * config/srclist.txt: Add gnupload.
78785
78786 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78787
78788         Change copyright notice from LGPL 2 to GPL 2, since that's the
78789         standard form used in the gnulib repository.
78790         * tests/test-lock.c: Likewise.
78791         * tests/test-stdint.c: Likewise.
78792         * tests/test-tls.c: Likewise.
78793
78794         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
78795         prelude-manager.  User shorter URLs for GNU projects, without '?'.
78796         Add copyright notice.
78797
78798         * check-module: Add copyright notice.  Output a copyright
78799         notice if "--version" is specified.
78800         * modules/COPYING: New file.
78801         * tests/test-getaddrinfo.c: Add copyright notice.
78802         * tests/test-verify.c: Likewise.
78803
78804 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78805
78806         Change copyright notice from LGPL 2 to GPL 2, since that's the
78807         standard form used in the gnulib repository.
78808         * lib/lock.c: LGPL -> GPL.
78809         * lib/lock.h: Likewise.
78810         * lib/strnlen1.c: Likewise.
78811         * lib/strnlen1.h: Likewise.
78812         * lib/tls.c: Likewise.
78813         * lib/tls.h: Likewise.
78814         * lib/tmpdir.c: Likewise.
78815
78816         * lib/TODO: Remove; this belongs only in coreutils.
78817
78818 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78819
78820         Add copyright notices to long-enough files that lack them, since
78821         otherwise the files aren't clearly free.  Use the same notice that
78822         getdate.texi already uses.
78823         * doc/alloca-opt.texi: Add copyright notice.
78824         * doc/alloca.texi: Likewise.
78825         * doc/ctime.texi: Likewise.
78826         * doc/functions.texi: Likewise.
78827         * doc/gcd.texi: Likewise.
78828         * doc/gnulib-tool.texi: Likewise.
78829         * doc/inet_ntoa.texi: Likewise.
78830         * doc/visibility.texi: Likewise.
78831
78832         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
78833         * doc/quote.texi: Add copyright notice.
78834
78835         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
78836         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
78837         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
78838         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
78839         is now obsolete, and give a pointer to the Sun list.
78840         Add copyright notice.
78841
78842 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78843
78844         * config/srclistvars.sh: Add copyright notice.
78845
78846 2006-08-14  Eric Blake  <ebb9@byu.net>
78847
78848         Import the following change from libc:
78849
78850         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
78851
78852         Upstream bug 2997.
78853         * lib/misc/error.c: Add space between program name and message if file
78854         name is missing.
78855
78856 2006-08-12  Karl Berry  <karl@gnu.org>
78857
78858         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
78859         remove, these originate in gnulib now.
78860
78861 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78862
78863         * doc/Makefile (standards.info standards.html standards.dvi):
78864         Also depend on make-stds.texi.
78865
78866 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78867
78868         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
78869         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
78870
78871         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
78872         in wchar_t.  Problem reported by Eric Blake.
78873
78874         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
78875         LEN is smaller than SIZE.  Suggested by Bruno Haible.
78876         Also, help the compiler to keep LEN in a register.
78877
78878 2006-08-11  Eric Blake  <ebb9@byu.net>
78879
78880         * users.txt: Sort.  Add tar.
78881
78882 2006-08-11  Bruno Haible  <bruno@clisp.org>
78883
78884         * users.txt: New file.
78885
78886 2006-08-11  Bruno Haible  <bruno@clisp.org>
78887
78888         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
78889         before <wchar.h>. Needed for OSF/1 and BSD/OS.
78890
78891 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78892
78893         * modules/snprintf (Depends-on): Remove minmax.
78894         (Maintainer): Add self and Bruno.
78895
78896 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78897
78898         * lib/.cppi-disable: Add snprintf.h, socket_.h.
78899         * lib/snprintf.c: Include <errno.h> and <limits.h>.
78900         (EOVERFLOW): Define if the system does not.
78901         Do not include "minmax.h"; it wasn't used.
78902         (snprintf): Don't assume size_t promotes to an unsigned type.
78903         Fix bug when generated string was too long for the buffer: the
78904         buffer's contents are supposed to be the initial prefix of the
78905         output.  Don't assume vasnprintf returns EOVERFLOW if the size
78906         exceeds INT_MAX; do the check ourselves.
78907
78908         Import the following changes from libc:
78909
78910         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
78911
78912         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
78913         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
78914         set wc to the byte which couldn't be converted.
78915         (re_string_reconstruct): Don't clear valid_raw_len before calling
78916         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
78917         tip_context using re_string_context_at.
78918
78919         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
78920
78921         * lib/posix/regex.h: g++ still cannot handled [restrict].
78922
78923         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
78924
78925         * lib/posix/regex.h: Remove special handling for VMS.
78926
78927 2006-08-10  Jim Meyering  <jim@meyering.net>
78928
78929         * modules/same-inode: New module.
78930         * modules/dev-ino: New module.
78931         * modules/cycle-check: Depend on these modules, rather than simply
78932         including their .h files.
78933         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
78934         required via m4/cycle-check.m4.
78935         * modules/same: Depend on new same-inode module, rather than
78936         including same-inode.h.
78937         * modules/chdir-safer: New file.
78938
78939         * modules/chown (Depends-on): Add stat-macros.
78940
78941 2006-08-10  Jim Meyering  <jim@meyering.net>
78942
78943         * m4/cycle-check.m4: New file.
78944         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
78945         * m4/dev-ino.m4, m4/same-inode.m4: New files.
78946
78947 2006-08-10  Eric Blake  <ebb9@byu.net>
78948
78949         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
78950         in from original proposal.
78951
78952 2006-08-10  Eric Blake  <ebb9@byu.net>
78953         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78954
78955         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
78956         namespace.
78957
78958 2006-08-10  Bruno Haible  <bruno@clisp.org>
78959
78960         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
78961         as well.
78962
78963 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78964
78965         Sync from coreutils.
78966
78967         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
78968
78969         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
78970         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
78971
78972 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78973
78974         * modules/restrict: Remove; no longer needed now that we assume
78975         Autoconf 2.59 or later.
78976         * MODULES.html.sh: Remove 'restrict'.
78977         * modules/argp (Depends-on): Remove 'restrict'.
78978         * modules/base64 (Depends-on): Likewise.
78979         * modules/gc (Depends-on): Likewise.
78980         * modules/getaddrinfo (Depends-on): Likewise.
78981         * modules/glob (Depends-on): Likewise.
78982         * modules/inet_ntop (Depends-on): Likewise.
78983         * modules/inet_pton (Depends-on): Likewise.
78984         * modules/memxor (Depends-on): Likewise.
78985         * modules/regex (Depends-on): Likewise.
78986         * modules/strtok_r (Depends-on): Likewise.
78987         * modules/time_r (Depends-on): Likewise.
78988
78989 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78990
78991         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
78992         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
78993         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78994         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
78995         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
78996         * m4/memxor.m4 (gl_MEMXOR): Likewise.
78997         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
78998         gl_C_RESTRICT replaced by AC_C_RESTRICT.
78999
79000         Merge from coreutils.
79001         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
79002         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
79003         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
79004         * m4/time_r.m4 (gl_TIME_R): Likewise.
79005
79006 2006-08-09  Karl Berry  <karl@gnu.org>
79007
79008         * config/srclist.txt: no more gettext-tools, per Bruno.
79009
79010 2006-08-08  Eric Blake  <ebb9@byu.net>
79011
79012         * modules/verror: New module.
79013         * MODULES.html.sh: Document it.
79014
79015 2006-08-08  Eric Blake  <ebb9@byu.net>
79016
79017         * lib/verror.h, lib/verror.c: New files.
79018
79019 2006-08-08  Eric Blake  <ebb9@byu.net>
79020
79021         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
79022         verror_at_line output complies with GNU Coding Standards even when
79023         file is NULL.
79024
79025 2006-08-07  Bruno Haible  <bruno@clisp.org>
79026
79027         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
79028         versions of AIX.
79029         Reported by Ralf Wildenhues.
79030
79031 2006-08-07  Bruno Haible  <bruno@clisp.org>
79032
79033         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
79034         in an AC_DEFUN. Needed so that the autoconf snippets can use
79035         AC_REQUIRE.
79036
79037 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79038
79039         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79040         Initialize pkgdata_DATA.
79041         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
79042         overriding it.
79043
79044 2006-08-06  Eric Blake  <ebb9@byu.net>
79045
79046         * lib/error.h: Fold in some upstream changes from glibc.
79047         * lib/error.c: Likewise.
79048
79049 2006-08-04  Bruno Haible  <bruno@clisp.org>
79050
79051         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79052         Make the mostlyclean-local rule depend on mostlyclean-generic.
79053         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
79054
79055 2006-07-31  Bruno Haible  <bruno@clisp.org>
79056
79057         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
79058         <stdlib.h>, <string.h>.
79059
79060 2006-07-30  Bruno Haible  <bruno@clisp.org>
79061
79062         * modules/readlink (License): Change to LGPL.
79063
79064 2006-07-30  Bruno Haible  <bruno@clisp.org>
79065
79066         * modules/javaversion (Makefile.am): Distribute javaversion.java and
79067         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
79068         set PKGDATADIR to point to it.
79069
79070 2006-07-30  Bruno Haible  <bruno@clisp.org>
79071
79072         * modules/csharpexec (configure.ac): Comment out macro invocation.
79073         * modules/javaexec (configure.ac): Likewise.
79074         * modules/javacomp-script (configure.ac): Likewise.
79075
79076         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
79077
79078 2006-07-30  Bruno Haible  <bruno@clisp.org>
79079
79080         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
79081         linked-list.
79082
79083 2006-07-30  Bruno Haible  <bruno@clisp.org>
79084
79085         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
79086
79087 2006-07-30  Bruno Haible  <bruno@clisp.org>
79088
79089         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79090         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
79091         get removed.
79092
79093 2006-07-29  Bruno Haible  <bruno@clisp.org>
79094
79095         Make it possible for gnulib-tool to work with locally modified or
79096         augmented gnulib repositories.
79097         * gnulib-tool (func_usage): Document --local-dir option.
79098         (local_gnulib_dir): New variable.
79099         Handle --local-dir option.
79100         (func_lookup_file): New function.
79101         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
79102         (func_get_description, func_get_filelist, func_get_description,
79103         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
79104         func_get_automake_snippet, func_get_include_directive,
79105         func_get_license, func_get_maintainer): Use func_lookup_file.
79106         (func_import, func_create_testdir): Use func_lookup_file.
79107
79108 2006-07-29  Bruno Haible  <bruno@clisp.org>
79109
79110         * modules/setenv (Depends-on): Add unistd.
79111
79112 2006-07-29  Bruno Haible  <bruno@clisp.org>
79113
79114         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
79115
79116 2006-07-29  Bruno Haible  <bruno@clisp.org>
79117
79118         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
79119
79120 2006-07-29  Bruno Haible  <bruno@clisp.org>
79121
79122         * gnulib-tool (import, update): If there is no Makefile.am, look at
79123         aclocal.m4, instead of bailing out.
79124
79125 2006-07-29  Bruno Haible  <bruno@clisp.org>
79126
79127         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
79128         Categorize the options by when they are useful.
79129
79130 2006-07-29  Bruno Haible  <bruno@clisp.org>
79131
79132         * gnulib-tool (func_usage): Document option --no-libtool.
79133         Handle option --no-libtool.
79134         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
79135         for changed semantics of $libtool variable.
79136         (func_import): Likewise. If libtool is not used, show this through
79137         an option --no-libtool.
79138         (func_create_testdir): Update.
79139
79140 2006-07-29  Bruno Haible  <bruno@clisp.org>
79141
79142         * gnulib-tool (func_import): Extend error message about missing
79143         --doc-base.
79144
79145 2006-07-29  Bruno Haible  <bruno@clisp.org>
79146
79147         * gnulib-tool (func_import): Don't create the $docbase directory if
79148         there is no file to store there.
79149
79150 2006-07-29  Bruno Haible  <bruno@clisp.org>
79151
79152         * gnulib-tool (autoconf_minversion): If a --dir option is given and
79153         relevant, look for configure.ac there, not in the current directory.
79154         Also use a simple search for AC_PREREQ, not "autoconf --trace".
79155
79156 2006-07-29  Bruno Haible  <bruno@clisp.org>
79157
79158         * gnulib-tool (SORT): New variable.
79159         (func_usage): Undocument --assume-autoconf option.
79160         Remove --assume-autoconf option handling.
79161         (autoconf_minversion): Determine from the contents of configure.ac.
79162         (func_import): Remove autoconf_minversion handling.
79163         Suggested by Eric Blake.
79164
79165 2006-07-29  Bruno Haible  <bruno@clisp.org>
79166
79167         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
79168
79169 2006-07-29  Bruno Haible  <bruno@clisp.org>
79170
79171         * config/srclist.txt (*setenv.[ch]): Remove rules.
79172
79173 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79174
79175         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
79176
79177 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79178
79179         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
79180         arpa/inet.h.
79181
79182 2006-07-28  Simon Josefsson  <jas@extundo.com>
79183
79184         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
79185         * modules/inet_pton (Depends-on): Likewise.
79186
79187 2006-07-28  Simon Josefsson  <jas@extundo.com>
79188
79189         * m4/netinet_in_h.m4: New file.
79190
79191 2006-07-28  Simon Josefsson  <jas@extundo.com>
79192
79193         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
79194         #include's.
79195
79196 2006-07-28  Simon Josefsson  <jas@extundo.com>
79197
79198         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
79199         #include's.
79200
79201 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
79202
79203         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
79204         setgid on directories only if they set these bits.
79205         * lib/modechange.h: Remove obsolete comment about masks.
79206
79207 2006-07-28  Eric Blake  <ebb9@byu.net>
79208
79209         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
79210         macro expansion.
79211
79212 2006-07-28  Bruno Haible  <bruno@clisp.org>
79213
79214         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
79215
79216 2006-07-28  Bruno Haible  <bruno@clisp.org>
79217
79218         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
79219
79220 2006-07-28  Bruno Haible  <bruno@clisp.org>
79221
79222         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79223         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79224         Define fallbacks.
79225         Avoids link error on FreeBSD 4.x.
79226         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79227
79228         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
79229         encoding.
79230         * lib/mbswidth.c (iswcntrl): Likewise.
79231
79232 2006-07-27  Bruno Haible  <bruno@clisp.org>
79233
79234         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
79235         test.
79236
79237 2006-07-27  Bruno Haible  <bruno@clisp.org>
79238
79239         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
79240         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
79241         defined.
79242
79243 2006-07-26  Eric Blake  <ebb9@byu.net>
79244
79245         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
79246
79247 2006-07-26  Eric Blake  <ebb9@byu.net>
79248
79249         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
79250         like mingw that lack mkstemp.
79251         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
79252         avoid compilation warning on mingw.
79253
79254 2006-07-26  Bruno Haible  <bruno@clisp.org>
79255
79256         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
79257         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
79258         INT_FAST*_MIN, INTPTR_MIN.
79259
79260 2006-07-25  Bruno Haible  <bruno@clisp.org>
79261
79262         * modules/version-etc (Depends-on): Add stdarg.
79263
79264 2006-07-25  Bruno Haible  <bruno@clisp.org>
79265
79266         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
79267         complex commands.
79268
79269 2006-07-25  Bruno Haible  <bruno@clisp.org>
79270
79271         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
79272         defined in <stdarg.h> or config.h.
79273
79274 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79275
79276         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
79277         (gl_STDIO_SAFER): Remove.
79278
79279 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79280
79281         * MODULES.html.sh (File stream based Input/Output):
79282         Add fopen-safer, tmpfile-safer; remove stdio-safer.
79283         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
79284         * modules/fopen-safer, modules/tmpfile-safer: New files.
79285         * modules/stdio-safer: Remove.
79286
79287 2006-07-24  Bruno Haible  <bruno@clisp.org>
79288
79289         * modules/tmpdir: New file.
79290         * MODULES.html.sh (File system functions): Add it.
79291
79292 2006-07-24  Bruno Haible  <bruno@clisp.org>
79293
79294         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
79295         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
79296
79297 2006-07-24  Bruno Haible  <bruno@clisp.org>
79298
79299         * modules/clean-temp: New file.
79300
79301 2006-07-24  Bruno Haible  <bruno@clisp.org>
79302
79303         * m4/tmpdir.m4: New file, from GNU gettext.
79304
79305 2006-07-24  Bruno Haible  <bruno@clisp.org>
79306
79307         * lib/tmpdir.h: New file, from GNU gettext.
79308         * lib/tmpdir.c: New file, from GNU gettext.
79309
79310 2006-07-24  Bruno Haible  <bruno@clisp.org>
79311
79312         * lib/clean-temp.h: New file, from GNU gettext.
79313         * lib/clean-temp.c: New file, from GNU gettext.
79314
79315 2006-07-23  Eric Blake  <ebb9@byu.net>
79316
79317         * modules/stdio-safer (Files): Add tmpfile-safer.c.
79318         (Depends-on): Add binary-io.
79319
79320 2006-07-23  Eric Blake  <ebb9@byu.net>
79321
79322         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
79323
79324 2006-07-23  Eric Blake  <ebb9@byu.net>
79325
79326         * lib/tmpfile-safer.c: New file.
79327         * lib/stdio-safer.h (fopen_safer): Add prototype.
79328         * lib/stdio--.h (tmpfile): Make safer.
79329
79330 2006-07-23  Bruno Haible  <bruno@clisp.org>
79331
79332         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
79333         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
79334         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
79335         gl_linked_remove_at): Use it.
79336
79337 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79338         and Simon Josefsson <jas@extundo.com>
79339
79340         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
79341
79342         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
79343
79344 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79345
79346         * modules/close-stream: New file.
79347         * modules/closeout (Description): Make it clear that it exits
79348         with a diagnostic on error.
79349         (Depends-on): Add close-stream.  Remove fpending, stdbool.
79350         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
79351
79352 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79353
79354         * m4/close-stream.m4: New file.
79355
79356 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79357
79358         * lib/close-stream.c, lib/close-stream.h: New files.
79359
79360 2006-07-22  Bruno Haible  <bruno@clisp.org>
79361
79362         Merge from GNU gettext 0.15.
79363
79364         2006-05-01  Bruno Haible  <bruno@clisp.org>
79365
79366                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
79367
79368         2006-07-22  Bruno Haible  <bruno@clisp.org>
79369
79370                 * modules/javaversion: New file.
79371                 * MODULES.html.sh (Java): Add javaversion.
79372
79373         2006-03-12  Bruno Haible  <bruno@clisp.org>
79374
79375                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
79376
79377         2005-12-04  Bruno Haible  <bruno@clisp.org>
79378
79379                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
79380                 (untested).
79381
79382         2006-06-21  Bruno Haible  <bruno@clisp.org>
79383
79384                 Avoid warnings from recent versions of mcs.
79385                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
79386                 -o, -L, -r any more. Use options documented since mcs-1.0
79387                 instead. Similarly for -g.
79388
79389         2005-12-04  Bruno Haible  <bruno@clisp.org>
79390
79391                 * build-aux/csharpcomp.sh.in: Suffix for resources is
79392                 .resources, not .resource.
79393
79394         2005-07-09  Bruno Haible  <bruno@clisp.org>
79395
79396                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
79397                 add a .dll suffix.
79398                 Reported by Mark Junker <mjscod@gmx.de>.
79399
79400         2006-07-22  Bruno Haible  <bruno@clisp.org>
79401
79402                 * modules/gettext: Upgrade to gettext-0.15.
79403                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
79404                 m4/visibility.m4.
79405                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
79406
79407 2006-07-22  Bruno Haible  <bruno@clisp.org>
79408
79409         Merge from GNU gettext 0.15.
79410
79411         2006-03-25  Bruno Haible  <bruno@clisp.org>
79412
79413                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
79414
79415         2006-07-21  Bruno Haible  <bruno@clisp.org>
79416
79417                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
79418                 "1.1".
79419
79420         2006-05-09  Bruno Haible  <bruno@clisp.org>
79421
79422                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
79423                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
79424                 for the conftestver execution.
79425
79426         2006-05-01  Bruno Haible  <bruno@clisp.org>
79427
79428                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
79429                 optional target-version argument. Verify that the compiler
79430                 groks source of the specified source-version, or add -source
79431                 option as necessary. Verify that the compiler produces
79432                 bytecode in the specified target-version, or add -target and
79433                 -source options as necessary. Make the result of the test
79434                 available as variable CONF_JAVAC. Also log error output in
79435                 config.log.
79436
79437         2006-03-11  Bruno Haible  <bruno@clisp.org>
79438
79439                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
79440
79441         2006-05-09  Bruno Haible  <bruno@clisp.org>
79442
79443                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
79444                 CLASSPATH_SEPARATOR to a semicolon.
79445
79446         2006-03-12  Bruno Haible  <bruno@clisp.org>
79447
79448                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
79449                 available as variable CONF_JAVA, for subsequent autoconf
79450                 tests. Also log error output in config.log.
79451
79452         2006-07-19  Bruno Haible  <bruno@clisp.org>
79453
79454                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
79455                 that getline works on glibc2 systems. Needed to avoid trouble
79456                 in relocatable.c.
79457                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
79458
79459         2005-12-04  Bruno Haible  <bruno@clisp.org>
79460
79461                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
79462                 launcher (untested).
79463
79464         2005-12-04  Bruno Haible  <bruno@clisp.org>
79465
79466                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
79467
79468         2006-07-22  Bruno Haible  <bruno@clisp.org>
79469
79470                 * gettext.m4: Update from GNU gettext-0.15.
79471                 * nls.m4: Likewise.
79472                 * po.m4: Likewise.
79473                 * inttypes-pri.m4: Likewise.
79474                 * inttypes-h.m4: Renamed from inttypes.m4.
79475                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
79476
79477 2006-07-22  Bruno Haible  <bruno@clisp.org>
79478
79479         Merge from GNU gettext 0.15.
79480
79481         2005-07-05  Bruno Haible  <bruno@clisp.org>
79482
79483                 * printf-args.c (printf_fetchargs): Work around broken
79484                 definition of wint_t on mingw.
79485
79486         2005-02-12  Bruno Haible  <bruno@clisp.org>
79487
79488                 * xallocsa.h: Add extern "C" for C++.
79489
79490         2006-05-17  Bruno Haible  <bruno@clisp.org>
79491
79492                 Cygwin portability.
79493                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
79494
79495         2006-04-30  Bruno Haible  <bruno@clisp.org>
79496
79497                 * progreloc.c: Include <mach-o/dyld.h> if available.
79498                 (find_executable): Use _NSGetExecutablePath when possible.
79499
79500         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
79501
79502                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
79503                 function.
79504
79505         2005-12-29  Bruno Haible  <bruno@clisp.org>
79506
79507                 * progreloc.c (set_program_name_and_installdir): Fix
79508                 compilation error.
79509
79510         2005-12-04  Bruno Haible  <bruno@clisp.org>
79511
79512                 Cygwin portability.
79513                 * progreloc.c: Include <windows.h> also on Cygwin.
79514                 (find_executable): Add support for Cygwin.
79515                 (set_program_name_and_installdir): Handle also platforms with
79516                 nonempty EXEEXT.
79517
79518         2006-07-11  Bruno Haible  <bruno@clisp.org>
79519
79520                 * javacomp.c: Fix a comment.
79521                 Reported by Jim Meyering.
79522
79523         2006-04-30  Bruno Haible  <bruno@clisp.org>
79524
79525                 * javacomp.h (compile_java_class): Add source_version,
79526                 target_version arguments.
79527                 * javacomp.c: Rewritten to choose only a compiler that
79528                 respects the specified source_version and target_version.
79529
79530         2006-06-27  Bruno Haible  <bruno@clisp.org>
79531
79532                 Assume correct S_ISDIR macro.
79533                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
79534
79535         2006-07-22  Bruno Haible  <bruno@clisp.org>
79536
79537                 * javaversion.h: New file, from GNU gettext.
79538                 * javaversion.c: New file, from GNU gettext.
79539                 * javaversion.java: New file, from GNU gettext.
79540                 * javaversion.class: New file, from GNU gettext.
79541
79542         2006-05-17  Bruno Haible  <bruno@clisp.org>
79543
79544                 Cygwin portability.
79545                 * javaexec.c (execute_java_class): Test for jview program
79546                 also on Cygwin.
79547
79548         2006-04-09  Bruno Haible  <bruno@clisp.org>
79549
79550                 * fatal-signal.c: Don't include string.h.
79551                 (at_fatal_signal): Use a copying loop instead of memcpy.
79552
79553         2005-12-04  Bruno Haible  <bruno@clisp.org>
79554
79555                 * csharpexec.c: Add support for 'clix' launcher (untested).
79556                 (execute_csharp_using_sscli): New function.
79557                 (execute_csharp_program): Call it.
79558
79559         2006-06-21  Bruno Haible  <bruno@clisp.org>
79560
79561                 Avoid warnings from recent versions of mcs.
79562                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
79563                 -o, -L, -r any more. Use options documented since mcs-1.0
79564                 instead. Similarly for -g.
79565
79566         2005-07-09  Bruno Haible  <bruno@clisp.org>
79567
79568                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
79569                 add a .dll suffix.
79570                 Reported by Mark Junker <mjscod@gmx.de>.
79571
79572         2006-06-17  Bruno Haible  <bruno@clisp.org>
79573
79574                 * config.charset: Update for NetBSD 3.0.
79575
79576         2006-05-17  Bruno Haible  <bruno@clisp.org>
79577
79578                 Cygwin portability.
79579                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
79580
79581         2006-05-16  Bruno Haible  <bruno@clisp.org>
79582
79583                 * localcharset.c [CYGWIN]: Include <windows.h>.
79584                 (get_charset_aliases): For Cygwin, return the same CPxxx
79585                 aliases list as under WIN32.
79586                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
79587                 the environment variables. Fall back to GetACP().
79588
79589         2006-04-05  Bruno Haible  <bruno@clisp.org>
79590
79591                 * config.charset: Update Juan Manuel Guerrero's address.
79592
79593         2005-02-12  Bruno Haible  <bruno@clisp.org>
79594
79595                 * allocsa.h: Add extern "C" for C++.
79596
79597         2005-02-10  Bruno Haible  <bruno@clisp.org>
79598
79599                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
79600                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
79601
79602         2006-07-22  Bruno Haible  <bruno@clisp.org>
79603
79604                 * gettext.h: Update to GNU gettext-0.15.
79605
79606 2006-07-22  Bruno Haible  <bruno@clisp.org>
79607
79608         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
79609         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
79610         lib-prefix.m4, longdouble.m4, ssize_t.m4.
79611
79612 2006-07-21  Eric Blake  <ebb9@byu.net>
79613
79614         * modules/stdlib-safer: New file.
79615         * MODULES.html.sh (File stream based Input/Output): Add
79616         stdlib-safer.
79617
79618 2006-07-21  Eric Blake  <ebb9@byu.net>
79619
79620         * lib/stdlib-safer.h: New file from coreutils, required by
79621         stdlib--.h.
79622
79623 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
79624
79625         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
79626
79627 2006-07-20  Bruno Haible  <bruno@clisp.org>
79628
79629         * gnulib-tool: Recognize new option --assume-autoconf.
79630         (autoconf_minversion): New variable.
79631         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
79632
79633 2006-07-20  Bruno Haible  <bruno@clisp.org>
79634
79635         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
79636
79637 2006-07-19  Derek R. Price  <derek@ximbiot.com>
79638
79639         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
79640         Reindent and repaginate.
79641
79642 2006-07-19  Derek Price  <derek@ximbiot.com>
79643
79644         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
79645         Correct grammar.
79646
79647 2006-07-17  Bruno Haible  <bruno@clisp.org>
79648
79649         * modules/list: New file.
79650         * modules/array-list: New file.
79651         * modules/carray-list, modules/carray-list-tests: New files.
79652         * modules/linked-list, modules/linked-list-tests: New files.
79653         * modules/avltree-list, modules/avltree-list-tests: New files.
79654         * modules/rbtree-list, modules/rbtree-list-tests: New files.
79655         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
79656         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
79657         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
79658         * modules/oset: New file.
79659         * modules/array-oset: New file.
79660         * modules/avltree-oset, modules/avltree-oset-tests: New files.
79661         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
79662         * tests/test-carray_list.c: New file.
79663         * tests/test-linked_list.c: New file.
79664         * tests/test-avltree_list.c: New file.
79665         * tests/test-rbtree_list.c: New file.
79666         * tests/test-linkedhash_list.c: New file.
79667         * tests/test-avltreehash_list.c: New file.
79668         * tests/test-rbtreehash_list.c: New file.
79669         * tests/test-avltree_oset.c: New file.
79670         * tests/test-rbtree_oset.c: New file.
79671         * MODULES.html.sh (Container data structures): New section.
79672
79673 2006-07-17  Bruno Haible  <bruno@clisp.org>
79674
79675         * m4/gl_list.m4: New file.
79676
79677 2006-07-17  Bruno Haible  <bruno@clisp.org>
79678
79679         * lib/gl_list.h: New file.
79680         * lib/gl_list.c: New file.
79681         * lib/gl_array_list.h: New file.
79682         * lib/gl_array_list.c: New file.
79683         * lib/gl_carray_list.h: New file.
79684         * lib/gl_carray_list.c: New file.
79685         * lib/gl_linked_list.h: New file.
79686         * lib/gl_linked_list.c: New file.
79687         * lib/gl_anylinked_list1.h: New file.
79688         * lib/gl_anylinked_list2.h: New file.
79689         * lib/gl_avltree_list.h: New file.
79690         * lib/gl_avltree_list.c: New file.
79691         * lib/gl_anyavltree_list1.h: New file.
79692         * lib/gl_anyavltree_list2.h: New file.
79693         * lib/gl_rbtree_list.h: New file.
79694         * lib/gl_rbtree_list.c: New file.
79695         * lib/gl_anyrbtree_list1.h: New file.
79696         * lib/gl_anyrbtree_list2.h: New file.
79697         * lib/gl_anytree_list1.h: New file.
79698         * lib/gl_anytree_list2.h: New file.
79699         * lib/gl_linkedhash_list.h: New file.
79700         * lib/gl_linkedhash_list.c: New file.
79701         * lib/gl_anyhash_list1.h: New file.
79702         * lib/gl_anyhash_list2.h: New file.
79703         * lib/gl_avltreehash_list.h: New file.
79704         * lib/gl_avltreehash_list.c: New file.
79705         * lib/gl_rbtreehash_list.h: New file.
79706         * lib/gl_rbtreehash_list.c: New file.
79707         * lib/gl_anytreehash_list1.h: New file.
79708         * lib/gl_anytreehash_list2.h: New file.
79709
79710         * lib/gl_oset.h: New file.
79711         * lib/gl_oset.c: New file.
79712         * lib/gl_array_oset.h: New file.
79713         * lib/gl_array_oset.c: New file.
79714         * lib/gl_avltree_oset.h: New file.
79715         * lib/gl_avltree_oset.c: New file.
79716         * lib/gl_rbtree_oset.h: New file.
79717         * lib/gl_rbtree_oset.c: New file.
79718         * lib/gl_anytree_oset.h: New file.
79719
79720 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79721
79722         * m4/mkancesdirs.m4: New file.
79723         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
79724         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
79725         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
79726         it.
79727
79728 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79729
79730         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
79731         * lib/mkancesdirs.h: New files.
79732         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
79733         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
79734         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
79735         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
79736         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
79737         callers changed.  Revamp internals significantly, by not
79738         attempting to create directories that are temporarily more
79739         permissive than the final results.  Do not attempt to use
79740         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
79741         This removes some race conditions, fixes some bugs, and simplifies
79742         things.  Use new dirchownmod function to do owner and mode changes.
79743         * lib/mkdir-p.h: Likewise.
79744         * lib/modechange.c (octal_to_mode): New function.
79745         (struct mode_change): New member mentioned.
79746         (make_node_op_equals): New arg mentioned.  All callers changed.
79747         (mode_compile): Keep track of which mode bits the user has explicitly
79748         mentioned.
79749         (mode_adjust): New arg DIR, so that we implement the X op correctly.
79750         New arg PMODE_BITS, to keep track of which mode bits the user
79751         mentioned; it treats S_ISUID and S_ISGID speciall.
79752         All callers changed.
79753         * lib/modechange.h: Likewise.
79754
79755 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79756
79757         * MODULES.html.sh: Add mkancestors.
79758         * modules/mkancesdirs: New module.
79759         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
79760         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
79761         The chdir-safer and afs files are now orphans; I'll remove them
79762         unless someone speaks up.
79763         Add lib/dirchownmod.c, lib/dirchownmod.h.
79764         (Depends-on): Remove alloca, chown, save-cwd, dirname.
79765         Add lchown, mkancesdirs.
79766         (Maintainer): Add self.
79767
79768 2006-07-15  Karl Berry  <karl@gnu.org>
79769
79770         * gnulib-tool: help message wording/arrangement.
79771
79772 2006-07-14  Simon Josefsson  <jas@extundo.com>
79773
79774         * doc/gnulib.texi (Libtool and Windows): New section.
79775
79776 2006-07-12  Simon Josefsson  <jas@extundo.com>
79777
79778         * modules/gendocs (License): Fix license, approved by Karl.
79779
79780 2006-07-12  Eric Blake  <ebb9@byu.net>
79781
79782         * MODULES.html.sh: Add gendocs.
79783
79784 2006-07-11  Eric Blake  <ebb9@byu.net>
79785
79786         * modules/fdl: New module, to install doc/fdl.texi.
79787         * MODULES.html.sh: Add new section for documentation modules.
79788         * gnulib-tool: Avoid space-tab.
79789         (--doc-base): New option, to manage files from doc.
79790
79791 2006-07-11  Eric Blake  <ebb9@byu.net>
79792
79793         * m4/absolute-header.m4: Fix comments to match recent change.
79794
79795 2006-07-11  Eric Blake  <ebb9@byu.net>
79796
79797         * gnulib-tool: List --doc-base before --tests-base.
79798
79799 2006-07-11  Derek R. Price  <derek@ximbiot.com>
79800
79801         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
79802
79803 2006-07-11  Bruno Haible  <bruno@clisp.org>
79804
79805         * README: Mention where to put documentation.
79806
79807 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79808
79809         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
79810
79811 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79812
79813         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
79814         to stdint.m4.
79815
79816 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79817
79818         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
79819         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
79820         "no/such/file/stdint.h" when there is no such file, so that
79821         the resulting C code can be parsed by dodgy compilers.
79822         Problems reported by Bob Proulx.
79823
79824 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79825
79826         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
79827         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79828         macros into the GNU _D_EXACT_NAMLEN.
79829         * lib/savedir.c:  Likewise.
79830         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
79831
79832 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79833         and Paul Eggert  <eggert@cs.ucla.edu>
79834
79835         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
79836         * m4/savedir.m4:
79837         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79838         macros into the GNU _D_EXACT_NAMLEN.
79839
79840 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79841
79842         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
79843         around the absolute name, to work around a problem with the HP-UX
79844         11.23 native C compiler, reported by Bob Proulx.
79845
79846 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79847
79848         * doc/maintain.texi, make-stds.texi: Sync from
79849         <http://savannah.gnu.org/projects/gnustandards>.
79850
79851 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79852
79853         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
79854
79855 2006-07-09  Jim Meyering  <jim@meyering.net>
79856
79857         * m4/glob.m4: Remove a doubled word in a comment.
79858
79859 2006-07-09  Jim Meyering  <jim@meyering.net>
79860
79861         * lib/argp-pv.c: Remove a doubled word in a comment.
79862         * lib/check-version.c (check_version): Likewise.
79863         * lib/javacomp.c (compile_java_class): Likewise.
79864
79865 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79866
79867         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
79868         for the benefit of people using Autoconf 2.60.  If you want to
79869         support older Autoconf versions you can copy m4/onceonly_2_57.m4
79870         (or m4/onceonly.m4, if pre-2.57) manually.
79871
79872 2006-07-08  Jim Meyering  <jim@meyering.net>
79873
79874         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
79875         comment.
79876         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
79877         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
79878         comment.
79879
79880 2006-07-08  Jim Meyering  <jim@meyering.net>
79881
79882         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
79883
79884 2006-07-07  Simon Josefsson  <jas@extundo.com>
79885
79886         * tests/test-crc.c: Change expected crc value, the test vector
79887         were probably computed using the old broken crc.c?
79888
79889 2006-07-06  Simon Josefsson  <jas@extundo.com>
79890
79891         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
79892         now the canonical place for the M4 file).
79893
79894         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
79895         from the sys_socket dependency now.
79896
79897         * modules/inet_pton (Files): Ditto.
79898
79899         * modules/inet_ntop (Files): Ditto.
79900
79901 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79902
79903         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
79904         not gl_PREREQ_GETUSERSHELL.
79905
79906 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79907
79908         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
79909         with only one argument, for Autoconf 2.60.
79910         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
79911         expand to nothing, so add a shell command to avoid syntax error.
79912         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79913
79914 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79915
79916         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
79917
79918 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79919
79920         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
79921         no longer needed.  Check for isblank decl.
79922         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
79923         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
79924         of existence.
79925
79926 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79927
79928         * lib/getloadavg.c: Use __VMS, not VMS.
79929         * lib/getopt.c: Likewise.
79930         * lib/getpagesize.h: Likewise.
79931         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
79932         and probably does not work.
79933
79934 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79935
79936         * lib/.cppi-disable: Add wcwidth.
79937         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
79938         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
79939         (ISGRAPH): Remove.  All uses changed to isgraph.
79940         (FOLD) [!defined _LIBC]: Remove special case.
79941         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
79942         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
79943         HAVE_ISBLANK.
79944         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
79945         case.
79946
79947 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79948
79949         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
79950         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
79951         brackets.  Other minor changes to suppress some compiler
79952         warnings.
79953
79954 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79955         and Paul Eggert  <eggert@cs.ucla.edu>
79956
79957         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
79958         of invoking obsolescent AC_HEADER_DIRENT macro.
79959         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
79960         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
79961         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
79962         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
79963         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
79964         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79965         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
79966         * m4/readdir.m4: Remove; no longer needed.
79967
79968 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79969         and Paul Eggert  <eggert@cs.ucla.edu>
79970
79971         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
79972         Don't worry about this obsolete case any more.
79973         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
79974         directories.
79975         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
79976         worry about this obsolete case any more.
79977         * lib/fts.c: Likewise.
79978         * lib/getcwd.c: Likewise.
79979         * lib/glob.h: Likewise.
79980         * lib/savedir.c: Likewise.
79981
79982 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79983
79984         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
79985         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
79986         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
79987         needed.
79988         All uses removed.
79989         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79990         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79991         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
79992         needed.
79993         * m4/getdate.m4 (gl_GETDATE): Likewise.
79994         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79995         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79996         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79997         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79998         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79999         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80000         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
80001         needed.
80002
80003 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80004
80005         * lib/memcasecmp.c: Include <limits.h>.
80006         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
80007         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
80008         Don't assume isdigit succeeds only on '0' through '9'.
80009
80010 2006-07-05  Eric Blake  <ebb9@byu.net>
80011
80012         * modules/getaddrinfo (Depends-on): Add snprintf.
80013
80014 2006-07-05  Eric Blake  <ebb9@byu.net>
80015
80016         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
80017         to avoid 'header present but could not be compiled' on cygwin.
80018
80019 2006-07-05  Eric Blake  <ebb9@byu.net>
80020
80021         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
80022         missing from netdb.h.
80023         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
80024
80025 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80026
80027         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
80028         no longer needed.
80029         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
80030         * m4/getdate.m4 (gl_GETDATE): Likewise.
80031         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80032         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80033         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80034         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80035         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80036
80037 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80038
80039         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
80040         All uses of is_space replaced by isspace.
80041         * lib/exit.h: Don't talk about STDC_HEADERS.
80042         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
80043         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
80044         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
80045         replaced by isprint etc.
80046         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
80047         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80048         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
80049         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
80050         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
80051         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80052
80053 2006-07-05  Bruno Haible  <bruno@clisp.org>
80054
80055         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
80056         the function exists, before testing against AIX.
80057         Reported by Martin Lambers <marlam@marlam.de>.
80058
80059 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80060
80061         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
80062         From Mark D. Baushke.
80063
80064 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80065
80066         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
80067         to the absolute name, not just one, to bypass Sun C 5.8's
80068         "warning: #include of /usr/include/... may be non-portable".
80069
80070 2006-07-04  Eric Blake  <ebb9@byu.net>
80071
80072         * modules/dirname-tests: New test module.
80073         * tests/test-dirname.c: New file, replacing dirname.c
80074         TEST_DIRNAME section that was recently deleted.
80075
80076 2006-07-04  Bruno Haible  <bruno@clisp.org>
80077
80078         Assume ANSI C header files and <ctype.h> functions.
80079         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
80080         (mbsnwidth): Use isprint, iscntrl instead.
80081
80082 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80083
80084         Merge from coreutils.
80085         * MODULES.html.sh: Add xstrtold.
80086         * modules/xstrtold: New file.
80087         * modules/cycle-check (Files): Add lib/same-inode.h.
80088         * modules/dirname (Files): Add m4/double-slash-root.m4.
80089         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
80090         * modules/mkdir-p (Files): Add lib/same-inode.h.
80091         * modules/same (Files): Add lib/same-inode.h.
80092
80093 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80094
80095         * m4/absolute-header.m4: Renamed from full-header-path.m4.
80096         This is to keep the terminology clean; POSIX talks about
80097         "absolute pathnames", not "full pathnames", but the GNU
80098         Coding Standards say to use "path" for something else;
80099         so use "absolute" to keep both sides happy.
80100         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
80101         Set gl_absolute_header, not gl_full_header_path.
80102         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
80103         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
80104         All uses changed.
80105
80106         Merge from coreutils.
80107
80108         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80109
80110         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
80111         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
80112         want to require the building of c-strtod.o.
80113         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
80114         needs -lm directly.
80115         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
80116
80117         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80118
80119         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
80120         --as-needed option if available.  Problem reported by Albert Chin in
80121         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
80122         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
80123         cc merely issues a bunch of annoying warnings for --as-needed
80124         (this problem was reported by Bob Proulx).  Also, try linking with
80125         -lm to detect a bug in binutils 2.16 (this problem was reported
80126         by Ralf Wildenhues).
80127
80128         2006-06-18  Jim Meyering  <jim@meyering.net>
80129
80130         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
80131         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
80132         macro.
80133         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
80134         also check for glibc-2.4's abort-inducing bug.
80135
80136         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
80137         Low-probability clean-up should be to use rmdir to get rid of
80138         the just-created directory, not unlink.
80139
80140         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
80141         configure fail, and request a bug report to inform us about it.
80142         Add a comment that, barring reports to the contrary, in 2007 we'll
80143         assume ftruncate is universally available.
80144
80145         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80146
80147         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
80148
80149         2006-03-12  Jim Meyering  <jim@meyering.net>
80150
80151         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
80152         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
80153         * m4/same.m4 (gl_SAME): Likewise.
80154         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
80155
80156         2006-03-11  Eric Blake  <ebb9@byu.net>
80157
80158         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
80159         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
80160         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
80161         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
80162
80163 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80164
80165         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
80166         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
80167         reported by Mark D. Baushke, one in
80168         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
80169
80170         Merge from coreutils.
80171
80172         * lib/.cppi-disable: Add stdint_.h.
80173         * lib/.cvsignore: Add stdint.h.
80174
80175         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80176
80177         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
80178         both double and long double versions.
80179         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
80180         * lib/xstrtold.c: New file.
80181         * lib/xstrtod.h (xstrtold): New decl.
80182
80183         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
80184
80185         * lib/filemode.c (setst): Remove.
80186         (strmode): Rewrite to avoid setst.  This makes the code shorter,
80187         (arguably) clearer, and the generated code is a bit smaller on my
80188         Debian GNU/Linux stable x86 host.
80189
80190         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80191
80192         * lib/filemode.c: Include "filemode.h" first, to test the interface.
80193         Assume that filemode.h includes sys/types.h and sys/stat.h.
80194         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
80195         (ftypelet): Reorder to put common cases first, for efficiency.
80196         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
80197         to do 'M'.
80198         (strmode): Renamed from mode_string, and now stores 12 bytes instead
80199         of 10, for compatibility with FreeBSD.  All callers changed.
80200         (filemodestring): Now stores 12 bytes instead of 10, and sets file
80201         types that can't be deduced solely from st_mode.  First arg is now a
80202         const pointer.
80203         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
80204         (strmode): Renamed from mode_string.
80205         (filemodestring): New decl.
80206         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
80207         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
80208         needed.
80209         (S_ISPORT, S_ISWHT): New macros, if not already defined.
80210
80211         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80212
80213         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
80214         fsusage.h now does that.  Include fsusage.h first, to test interface.
80215         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
80216         at most one method (the old code could have generated decls that
80217         didn't conform to C89, not that this was ever exercised).
80218         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
80219
80220         2006-03-19  Jim Meyering  <jim@meyering.net>
80221
80222         Work even in a chroot where d_ino values for entries in "/"
80223         don't match the stat.st_ino values for the same names.
80224         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
80225         number, iterate through all entries again, using lstat instead.
80226         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
80227         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
80228
80229         * lib/getcwd.c (__getcwd): Clarify a comment.
80230         Use memcpy in place of a call to strcpy.
80231
80232         2006-03-12  Jim Meyering  <jim@meyering.net>
80233
80234         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
80235         matches that of the current directory (which we're about to chdir ".."
80236         out of), then save the dev-ino of the parent, instead.
80237
80238         * lib/same-inode.h (SAME_INODE): New file/macro.
80239         * lib/chdir-safer.c (SAME_INODE): Remove definition.
80240         Include "same-inode.h", instead.
80241         * lib/same.c: Likewise.
80242         * lib/cycle-check.h: Include "same-inode.h".
80243         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
80244         * lib/cycle-check.c (SAME_INODE): Remove definition.
80245         * lib/root-dev-ino.h: Include "same-inode.h".
80246
80247         2006-03-11  Eric Blake  <ebb9@byu.net>
80248
80249         * lib/same.c (same_name): s/base_name/last_component/
80250         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
80251         * lib/filenamecat.c (file_name_concat): Likewise.
80252
80253         2006-03-11  Eric Blake  <ebb9@byu.net>,
80254                     Paul Eggert  <eggert@cs.ucla.edu>
80255
80256         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
80257         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
80258         drive prefix.
80259         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
80260         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
80261         (last_component): New method.
80262         * lib/dirname.c (dir_len): Determine when drive letters need a
80263         subsequent slash.  Preserve // when it is special.
80264         (dir_name): Don't append dot when drive letter is absolute.
80265         [TEST_DIRNAME]: Move into a full-blown gnulib test.
80266         * lib/basename.c (base_name): New semantics - malloc the result.
80267         Preserve // when it is special.  Preserve relative files that look
80268         like drive letters.
80269         (base_len): Preserve // when it is special.
80270         (last_component): New method, similar to old base_name semantics.
80271         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
80272         base_name.  Strip redundant slashes from ///.
80273
80274 2006-07-03  Jim Meyering  <jim@meyering.net>
80275
80276         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
80277         macro is used before the first cycle_check call.
80278
80279 2006-07-03  Eric Blake  <ebb9@byu.net>
80280
80281         * modules/dirname (Depends-on): Add xstrndup.
80282
80283 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80284
80285         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
80286         test cases, so that config.log is a bit easier to follow.
80287
80288 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80289
80290         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
80291         both are 64 bits, since this seems to be the tradition, and this
80292         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
80293         we ever run into a host that prefers long long to long in this
80294         case, we'll need another configure-time test.  Problem reported by
80295         Jim Meyering.
80296
80297 2006-07-02  Eric Blake  <ebb9@byu.net>
80298
80299         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
80300
80301 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80302
80303         * modules/inttypes (Depends-on): No longer depends on stdint.
80304         * modules/stdint (Description): Say more about assumptions.
80305         Say that the fast types might differ.  Say macros are used.
80306         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
80307         (Makefile.am): Revise list of substituted symbols to match
80308         new stdint.m4.
80309         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
80310         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
80311         * tests/test-stdint.c (verify_same_types)
80312         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
80313         the code conforms to C99/C89.
80314         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
80315         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
80316
80317 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80318
80319         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
80320         but fix a bug, by requiring at least 64 bits.
80321         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80322         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
80323         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
80324         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80325
80326         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
80327         changes.  Make 2.59 a prerequisite.  Check and substitute for
80328         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
80329         inttypes.h.  Do not use special include files; just use the
80330         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
80331         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
80332         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
80333         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
80334         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
80335         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
80336         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
80337         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
80338         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
80339         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
80340         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
80341         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
80342         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
80343         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
80344         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
80345         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
80346         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
80347         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
80348         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
80349         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
80350         WINT_MAX.  Check for C99 conformance more strictly, by detecting
80351         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
80352         not check for things that C99 does not require, e.g., int8_t.  If
80353         a test isn't needed unless <stdint.h> isn't working, and is
80354         unlikely to be needed for any other reason, then don't do it
80355         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
80356         size_t, since we assume C89 freestanding at least.  Do not check
80357         for sig_atomic_t, wchar_t, or wint_t, since the code now does
80358         the right thing even if the types are not defined.  Instead use:
80359         (gl_STDINT_TYPE_PROPERTIES): New macro.
80360         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
80361         testing whether <sys/types.h> clashes, as Autoconf does this for
80362         us now.  All uses removed.
80363         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
80364         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
80365         (gl_CHECK_TYPE_SAME):
80366         Remove; no longer needed.
80367         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
80368         exists, since we'll return 0 anyway in that case.
80369         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
80370
80371 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80372
80373         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
80374         possible collision with system files.
80375         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
80376         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
80377         WCHAR_MIN and WCHAR_MAX in this case.
80378         (<stddef.h>): Do not include; no longer needed.
80379         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
80380         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
80381         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
80382         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
80383         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
80384         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
80385         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
80386         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
80387         !defined(__c99))]: Include in this case too, since it's harmless
80388         now.
80389         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
80390         dangerous to do so.
80391         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
80392         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
80393         (_STDINT_MIN, _STDINT_MAX): New macros.
80394         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
80395         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
80396         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
80397         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
80398         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
80399         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
80400         macros, not typedefs; this simplifies things quite a bit.
80401         Use long int for all types narrower than int64_t.
80402         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
80403         Define in terms of long long int or int64_t or long int,
80404         not int64_t or int32_t.  This saves some compile-time testing.
80405         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
80406         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
80407         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
80408         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
80409         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
80410         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
80411         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
80412         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
80413         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
80414         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
80415         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80416         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80417         undef any previous version and define our own version, for
80418         simplicity and consistency with the new macros for types.
80419         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80420         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80421         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
80422         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
80423         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
80424         @WINT_T_SUFFIX@ to keep things simple here.
80425         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
80426         Simplify by assuming typical 8/16/32/64 host, since we're
80427         already doing that elsewhere anyway.
80428         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
80429         and assume long long int is 64 bits if available.  This
80430         speeds up 'configure'.
80431
80432 2006-07-01  Eric Blake  <ebb9@byu.net>
80433
80434         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
80435         Reported by Andreas Buening.
80436
80437 2006-07-01  Eric Blake  <ebb9@byu.net>
80438
80439         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
80440
80441 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80442
80443         * lib/getaddrinfo.c: fixed typo
80444
80445 2006-06-29  Jim Meyering  <jim@meyering.net>
80446
80447         * modules/strftime (Maintainer): Add my name, since with the
80448         FPRINTFTIME changes strftime.c has forked from glibc.
80449
80450 2006-06-29  Eric Blake  <ebb9@byu.net>
80451
80452         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
80453
80454 2006-06-29  Eric Blake  <ebb9@byu.net>
80455
80456         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
80457
80458 2006-06-29  Eric Blake  <ebb9@byu.net>
80459
80460         * lib/stat_.h: New file.
80461
80462 2006-06-29  Eric Blake  <ebb9@byu.net>
80463
80464         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
80465         unused static function.
80466
80467 2006-06-29  Eric Blake  <ebb9@byu.net>
80468
80469         * doc/functions.texi (Function Portability): Document missing lstat
80470         on mingw.
80471
80472 2006-06-29  Eric Blake  <ebb9@byu.net>
80473
80474         * MODULES.html.sh: Add sys_stat.
80475         * modules/sys_stat: New module.
80476         * modules/mkstemp (Depends-on): Add sys_stat.
80477
80478 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80479
80480         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
80481
80482 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80483
80484         * m4/c-bs-a.m4: Removed.
80485
80486 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80487
80488         * lib/strftime.c: Assume strftime() exists.
80489
80490 2006-06-29  Derek Price  <derek@ximbiot.com>
80491
80492         * modules/c-bs-a: Removed - \a is C89.
80493         * MODULES.html.sh: Remove c-bs-a.
80494
80495 2006-06-29  Bruno Haible  <bruno@clisp.org>
80496
80497         * modules/wcwidth (License): Change to LGPL.
80498
80499 2006-06-28  Simon Josefsson  <jas@extundo.com>
80500
80501         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
80502         on _WIN32.
80503
80504         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
80505         getnameinfo.
80506
80507 2006-06-28  Simon Josefsson  <jas@extundo.com>
80508
80509         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
80510
80511 2006-06-28  Simon Josefsson  <jas@extundo.com>
80512
80513         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
80514         functions there.  It will succeed on Windows XP, but on Windows
80515         2000 and (presumably) earlier, it will fail, and use the internal
80516         re-implementation.
80517         (use_win32_p): New function.
80518         (getaddrinfo): Use strtoul on servname, to support numeric ports.
80519         Support AI_NUMERICSERV to disable getservbyname.
80520         (getnameinfo): New function, only supports
80521         NI_NUMERICHOST|NI_NUMERICSERV for now.
80522
80523         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
80524         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
80525         getnameinfo.
80526
80527 2006-06-28  Eric Blake  <ebb9@byu.net>
80528
80529         * modules/wcwidth: New file.
80530         * modules/mbchar (Depends-on): Add wcwidth.
80531         * modules/mbswidth (Depends-on): Add wcwidth.
80532         * MODULES.html.sh: Add wcwidth.
80533
80534 2006-06-28  Eric Blake  <ebb9@byu.net>
80535
80536         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
80537         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
80538
80539 2006-06-28  Eric Blake  <ebb9@byu.net>
80540
80541         * lib/xvasprintf.h: Fix comments.
80542
80543 2006-06-28  Eric Blake  <ebb9@byu.net>
80544
80545         * lib/mbchar.h (wcwidth): Include wcwidth.h.
80546         * lib/mbswidth.c (wcwidth): Move from here...
80547         * lib/wcwidth.h: ...to this new file.
80548
80549 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80550
80551         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
80552
80553         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
80554         it's obsolete.
80555         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
80556
80557 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80558
80559         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
80560         Autoconf 2.60 says this stuff was obsolete.
80561
80562 2006-06-28  Bruno Haible  <bruno@clisp.org>
80563
80564         * modules/wcwidth (Files): Add m4/wchar_t.m4.
80565
80566 2006-06-28  Bruno Haible  <bruno@clisp.org>
80567
80568         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
80569         gt_TYPE_WCHAR_T.
80570
80571 2006-06-28  Bruno Haible  <bruno@clisp.org>
80572
80573         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
80574         declaration for wcwidth.
80575         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
80576
80577 2006-06-28  Bruno Haible  <bruno@clisp.org>
80578
80579         * lib/mkdtemp.c [MINGW]: Include <io.h>.
80580         (mkdir): Define using _mkdir.
80581
80582 2006-06-28  Bruno Haible  <bruno@clisp.org>
80583
80584         * lib/getaddrinfo.h: Fix POSIX URL.
80585         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
80586         _WIN32.
80587         (use_win32_p): Make static.
80588         (getaddrinfo): Reject service name if it is empty or does not consist
80589         solely of decimal digits, or if its value is > 65535.
80590         (getnameinfo): Remove useless casts.
80591
80592 2006-06-27  Simon Josefsson  <jas@extundo.com>
80593
80594         * modules/sys_select: New file, suggested by Bruno Haible, Paul
80595         Eggert and Martin Lambers.
80596
80597 2006-06-27  Simon Josefsson  <jas@extundo.com>
80598
80599         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
80600         Eggert and Martin Lambers.
80601
80602 2006-06-27  Bruno Haible  <bruno@clisp.org>
80603
80604         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
80605         result to 0, not to empty.
80606         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
80607
80608 2006-06-27  Bruno Haible  <bruno@clisp.org>
80609
80610         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
80611
80612 2006-06-26  Simon Josefsson  <jas@extundo.com>
80613
80614         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
80615         present.
80616
80617 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
80618
80619         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
80620         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
80621         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
80622
80623 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
80624
80625         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
80626
80627 2006-06-26  Bruno Haible  <bruno@clisp.org>
80628
80629         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
80630
80631 2006-06-26  Bruno Haible  <bruno@clisp.org>
80632
80633         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
80634
80635 2006-06-26  Bruno Haible  <bruno@clisp.org>
80636
80637         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
80638         SGI C compiler in pre-C99 mode.
80639         Suggested by Mark D. Baushke and Larry Jones.
80640
80641 2006-06-26  Bruno Haible  <bruno@clisp.org>
80642
80643         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
80644         WCHAR_MAX.
80645         Reported by Mark D. Baushke and Larry Jones.
80646
80647 2006-06-26  Bruno Haible  <bruno@clisp.org>
80648
80649         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
80650         in pre-C99 mode.
80651         Suggested by Mark D. Baushke and Larry Jones.
80652
80653 2006-06-23  Simon Josefsson  <jas@extundo.com>
80654             Bruno Haible  <bruno@clisp.org>
80655
80656         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
80657         Emit mostlyclean-local rule.
80658         (func_emit_tests_Makefile_am): Likewise.
80659         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
80660
80661 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
80662
80663         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
80664
80665 2006-06-23  Bruno Haible  <bruno@clisp.org>
80666
80667         * tests/test-stdint.c: Update to match ISO C 99 Technical
80668         Corrigendum 1.
80669
80670 2006-06-23  Bruno Haible  <bruno@clisp.org>
80671
80672         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
80673
80674 2006-06-23  Bruno Haible  <bruno@clisp.org>
80675
80676         * lib/stdint_.h: Treat IRIX like OpenBSD.
80677
80678 2006-06-23  Bruno Haible  <bruno@clisp.org>
80679
80680         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
80681         ISO C 99 Technical Corrigendum 1.
80682
80683 2006-06-22  Simon Josefsson  <jas@extundo.com>
80684
80685         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
80686         MinGW.
80687
80688 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80689
80690         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
80691         needed.  Some compiler complained about some of them.  Problem reported
80692         by Larry Jones in
80693         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
80694
80695 2006-06-21  Simon Josefsson  <jas@extundo.com>
80696
80697         * tests/test-getaddrinfo.c: New file.
80698
80699         * modules/getaddrinfo-tests: New file.
80700
80701         * MODULES.html.sh: Add inet_pton.
80702
80703         * modules/inet_pton: New file.
80704
80705 2006-06-21  Simon Josefsson  <jas@extundo.com>
80706
80707         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
80708         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
80709         of using the (limited) gnulib implementation on Windows XP.
80710
80711         * m4/inet_pton.m4: New file.
80712
80713 2006-06-21  Simon Josefsson  <jas@extundo.com>
80714
80715         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
80716         variable.
80717
80718         * lib/socket_.h: Don't define WINVER.
80719
80720         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
80721         slightly modified to work in gnulib.
80722
80723 2006-06-21  Simon Josefsson  <jas@extundo.com>
80724
80725         * doc/gnulib.texi (Windows sockets): Add.
80726
80727 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
80728
80729         * lib/read-file.c (fread_file): Start with buffer allocation of
80730         0 bytes rather than 1 byte; this simplifies the code.
80731         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
80732         code to free buffer and save/restore errno.
80733         (internal_read_file): Remove unused local.
80734
80735 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
80736
80737         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
80738         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
80739         Problem reported by Denis Excoffier in
80740         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
80741
80742 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80743
80744         * modules/sys_socket, modules/socklen: Include sys/types since
80745         FreeBSD 4.x's sys/socket.h needs it.
80746
80747 2006-06-19  Simon Josefsson  <jas@extundo.com>
80748
80749         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
80750
80751 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80752
80753         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
80754
80755 2006-06-19  Bruno Haible  <bruno@clisp.org>
80756
80757         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
80758         and FULL_PATH_INTTYPES_H in angle brackets.
80759         Reported by Mark D. Baushke <mdb@gnu.org>.
80760
80761 2006-06-17  Eric Blake  <ebb9@byu.net>
80762
80763         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
80764         errno.
80765
80766 2006-06-17  Bruno Haible  <bruno@clisp.org>
80767
80768         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
80769         <sys/inttypes.h>.
80770
80771 2006-06-17  Bruno Haible  <bruno@clisp.org>
80772
80773         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
80774         whether errno is declared. Assume <errno.h> declares errno.
80775
80776 2006-06-17  Bruno Haible  <bruno@clisp.org>
80777
80778         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
80779
80780 2006-06-17  Bruno Haible  <bruno@clisp.org>
80781
80782         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
80783         problem on Solaris 2.5.1.
80784
80785 2006-06-16  Eric Blake  <ebb9@byu.net>
80786
80787         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
80788         * lib/unicodeio.c [!defined errno]: Likewise.
80789         * lib/strtol.c [!defined errno]: Likewise.
80790         * lib/strtod.c [!defined errno]: Likewise.
80791
80792 2006-06-15  Eric Blake  <ebb9@byu.net>
80793
80794         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
80795
80796 2006-06-15  Eric Blake  <ebb9@byu.net>
80797
80798         * config/srclist.txt (ssize_t.m4): Lose sync.
80799
80800 2006-06-15  Bruno Haible  <bruno@clisp.org>
80801
80802         * modules/stdint (Files): Include m4/full-header-path.m4,
80803         m4/size_max.m4, m4/wchar_t.m4.
80804         (Makefile.am): Many more substitutions.
80805         * modules/stdint-tests: New file.
80806         * tests/test-stdint.c: New file.
80807
80808 2006-06-15  Bruno Haible  <bruno@clisp.org>
80809
80810         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
80811         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
80812         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
80813         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
80814         gl_CHECK_TYPE_SAME): New macros.
80815
80816 2006-06-15  Bruno Haible  <bruno@clisp.org>
80817
80818         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
80819
80820 2006-06-15  Bruno Haible  <bruno@clisp.org>
80821
80822         * lib/stdint_.h: Rewritten to be fully auto-configured.
80823         Fixes bug on HP-UX/IA64.
80824
80825 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
80826
80827         * lib/getdate.y (__attribute__): Don't define if already defined.
80828         Problem reported by Larry Jones.
80829         * lib/utimens.c (__attribute__): Likewise.
80830
80831 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
80832
80833         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
80834         reported by Andreas Schwab.
80835
80836 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80837             Bruno Haible  <bruno@clisp.org>
80838
80839         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
80840         check for the declaration of strnlen and a run test that exposes the
80841         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
80842         rpl_strndup.
80843
80844 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80845             Bruno Haible  <bruno@clisp.org>
80846
80847         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
80848
80849 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80850
80851         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
80852         compile test, for Tru64 4.0D.
80853
80854 2006-05-28  Karl Berry  <karl@gnu.org>
80855
80856         * config/srclist.txt (printf-args.c): lose sync.
80857
80858 2006-05-26  Martin Lambers  <marlam@marlam.de>
80859
80860         * lib/getpass.c: Updates the test for the native W32 API, and adds
80861         missing includes, thus fixing compilation warnings.
80862
80863 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80864
80865         * lib/exclude.c (exclude_fnmatch): New function.
80866         (excluded_file_name): Call exclude_fnmatch.
80867         * lib/exclude.h (excluded_file_name): New prototype
80868
80869 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
80870
80871         * lib/tempname.c (small_open, large_open): New macros.
80872         (__open, __open64) [!_LIBC]: Remove.
80873         (__gen_tempname): Use small_open and large_open instead of __open
80874         and __open64.  This fixes a portability bug on HP-UX 11.11i
80875         reported by Simon Wing-Tang in
80876         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
80877
80878 2006-05-24  Bruno Haible  <bruno@clisp.org>
80879
80880         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
80881         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
80882         Reported by Thorsten Maerz <torte@netztorte.de> via
80883         Aaron Stone <aaron@serendipity.cx>.
80884
80885 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80886
80887         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
80888         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
80889         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
80890         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
80891         not really conditional on the cache.
80892         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
80893
80894 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80895
80896         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
80897         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
80898         (my_usleep): Don't mishandle maximum value.
80899
80900 2006-05-19  Jim Meyering  <jim@meyering.net>
80901
80902         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
80903
80904 2006-05-17  Bruno Haible  <bruno@clisp.org>
80905
80906         Cygwin portability.
80907         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
80908
80909 2006-05-17  Bruno Haible  <bruno@clisp.org>
80910
80911         * lib/stdint_.h: Fix recognition of Cygwin.
80912
80913 2006-05-15  Bruno Haible  <bruno@clisp.org>
80914
80915         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
80916         on libtool patch by Ralf Wildenhues.
80917
80918 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80919
80920         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
80921         test for C99 conformance; (bool) 0.5 is an integer constant
80922         expression, but (bool) -0.5 is not.  Problem reported by Fedor
80923         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
80924
80925 2006-05-11  Simon Josefsson  <jas@extundo.com>
80926
80927         * m4/xvasprintf.m4: Fix obvious typo.
80928
80929 2006-05-11  Jim Meyering  <jim@meyering.net>
80930
80931         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
80932         James Lemley.
80933
80934 2006-05-10  Simon Josefsson  <jas@extundo.com>
80935
80936         * lib/md4.c: Typo fix, update copyright years.
80937         (K1, K2): Don't use L because it turn computations into 64-bit on
80938         64-bit platforms.
80939
80940 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
80941
80942         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
80943         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
80944         unwanted sign propagation, e.g., on hosts with 64-bit int.
80945         There still are some problems with reeelly weird theoretical hosts
80946         (e.g., 33-bit int) but it's not worth worrying about now.
80947         * lib/sha1.c (rol): Likewise.
80948         (K1, K2, K3, K4): Remove unnecessary L suffix.
80949
80950 2006-05-10  Bruno Haible  <bruno@clisp.org>
80951
80952         * lib/des.c: Cast to avoid warnings.
80953
80954 2006-05-09  Bruno Haible  <bruno@clisp.org>
80955
80956         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
80957         (Depends-on): Depend also on xsize, stdarg.
80958         (configure.ac): Add gl_XVASPRINTF.
80959
80960 2006-05-09  Bruno Haible  <bruno@clisp.org>
80961
80962         * m4/xvasprintf.m4: New file.
80963
80964 2006-05-09  Bruno Haible  <bruno@clisp.org>
80965
80966         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
80967         (EOVERFLOW): Define fallback value.
80968         (xstrcat): New function.
80969         (xvasprintf): Recognize the special case of a string concatenation.
80970
80971 2006-05-08  Eric Blake  <ebb9@byu.net>
80972
80973         * gnulib-tool (func_version): Base copyright year on CVS date.
80974         (func_emit_copyright_notice): New function.
80975         (func_emit_lib_Makefile_am): Use it.
80976         (func_emit_tests_Makefile_am): Likewise.
80977         (func_import): Likewise.
80978
80979 2006-05-08  Bruno Haible  <bruno@clisp.org>
80980
80981         * modules/stdarg: New file.
80982         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
80983
80984 2006-05-08  Bruno Haible  <bruno@clisp.org>
80985
80986         * m4/stdarg.m4: New file, from GNU gettext.
80987
80988 2006-05-08  Bruno Haible  <bruno@clisp.org>
80989
80990         * config/srclist.txt (build-aux/config.rpath): different from latest
80991         release.
80992
80993 2006-05-08  Bruno Haible  <bruno@clisp.org>
80994
80995         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
80996
80997 2006-05-05  Jim Meyering  <jim@meyering.net>
80998
80999         * m4/warning.m4: New file, derived from bison's file by the same name.
81000
81001 2006-05-03  Bruno Haible  <bruno@clisp.org>
81002
81003         * lib/stdint_.h: Shorter URL.
81004         * lib/inttypes.h: Likewise.
81005
81006 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81007
81008         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
81009
81010 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81011
81012         * lib/verify.h: Document the internals better.  Most of this change
81013         was written by Bruno Haible.
81014
81015 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81016
81017         * doc/verify.texi: New file, partly based on a proposal by
81018         Bruno Haible.
81019
81020 2006-05-02  Bruno Haible  <bruno@clisp.org>
81021
81022         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
81023         test from here...
81024         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
81025
81026 2006-04-29  Bruno Haible  <bruno@clisp.org>
81027
81028         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
81029         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
81030
81031 2006-04-29  Bruno Haible  <bruno@clisp.org>
81032
81033         * gnulib-tool: Make --update option actually work.
81034
81035 2006-04-29  Bruno Haible  <bruno@clisp.org>
81036
81037         * doc/gcd.texi: New file.
81038         * doc/gnulib.texi: Include it.
81039
81040 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
81041
81042         * lib/getdate.y (get_date): When adding relative date, start with the
81043         initial time, not with the result of the first mktime call.
81044
81045 2006-04-25  Bruno Haible  <bruno@clisp.org>
81046
81047         * gnulib-tool (func_import): Output the include directives in three
81048         blocks, sorted separately.
81049         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81050
81051 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81052
81053         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
81054         to define main with arguments, for C++.  Reported by Eric Blake.
81055         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
81056         Prefer 'int main ()' to 'int main (void)', for C++.
81057         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
81058         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
81059         for 'main', for C99 and C++.
81060
81061 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81062
81063         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
81064         Don't assume that exit status -1 is valid.
81065         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81066         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
81067         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81068         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
81069         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
81070         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
81071         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
81072         functions can be used without declaring them, or that you can
81073         exit with status -1.
81074         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81075
81076 2006-04-24  Karl Berry  <karl@gnu.org>
81077
81078         * config/srclist.txt (longdouble.m4): sync lost.
81079
81080 2006-04-24  Eric Blake  <ebb9@byu.net>
81081
81082         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
81083
81084 2006-04-24  Bruno Haible  <bruno@clisp.org>
81085
81086         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
81087         poll() implementation in AIX.
81088         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81089
81090 2006-04-24  Bruno Haible  <bruno@clisp.org>
81091
81092         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
81093         assigned exactly once.
81094
81095 2006-04-23  Claudio Fontana  <claudio@gnu.org>
81096             Bruno Haible  <bruno@clisp.org>
81097
81098         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
81099         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
81100         for AM_CPPFLAGS.
81101
81102 2006-04-23  Bruno Haible  <bruno@clisp.org>
81103
81104         * modules/copy-file: Depend on unistd.
81105         * modules/execute: Likewise.
81106         * modules/fatal-signal: Likewise.
81107         * modules/findprog: Likewise.
81108         * modules/mkdtemp : Likewise.
81109         * modules/pipe: Likewise.
81110         * modules/wait-process: Likewise.
81111
81112 2006-04-23  Bruno Haible  <bruno@clisp.org>
81113
81114         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
81115         condition was already detected.
81116         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81117
81118 2006-04-23  Bruno Haible  <bruno@clisp.org>
81119
81120         * lib/copy-file.c: Include <unistd.h> unconditionally.
81121         * lib/execute.c: Likewise.
81122         * lib/fatal-signal.c: Likewise.
81123         * lib/findprog.c: Likewise.
81124         * lib/mkdtemp.c: Likewise.
81125         * lib/pipe.h: Likewise.
81126         * lib/pipe.c: Likewise.
81127         * lib/wait-process.h: Likewise.
81128
81129 2006-04-23  Bruno Haible  <bruno@clisp.org>
81130
81131         * gnulib-tool (func_usage): Fix --import description. Document
81132         --update.
81133         (func_import): Create temporary file in a temporary directory, if
81134         --dry-run is specified. Silence errors from 'grep' when there are no
81135         m4 files in $m4dir.
81136         (func_create_testdir): Silence errors from 'grep' when there are no
81137         m4 files in $m4dir.
81138         Reported by Karl Berry <karl@freefriends.org>.
81139
81140 2006-04-20  Bruno Haible  <bruno@clisp.org>
81141
81142         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
81143         one argument, so that the code will be portable to Autoconf 2.60.
81144         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
81145         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81146         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
81147
81148 2006-04-19  Derek Price  <derek@ximbiot.com>
81149             Eric Blake  <ebb9@byu.net>
81150
81151         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
81152         rather than "/full/path.h".  Update comment to match.  Shorten &
81153         generalize m4_translit call via AS_TR_CPP.
81154
81155 2006-04-19  Derek Price  <derek@ximbiot.com>
81156             Eric Blake  <ebb9@byu.net>
81157
81158         * lib/inttypes.h: Correct grammar in comment.
81159
81160 2006-04-18  Derek Price  <derek@ximbiot.com>
81161             Paul Eggert  <eggert@cs.ucla.edu>
81162
81163         * modules/inttypes: New file.
81164         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
81165
81166 2006-04-18  Derek Price  <derek@ximbiot.com>
81167             Paul Eggert  <eggert@cs.ucla.edu>
81168
81169         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
81170         New files.
81171
81172 2006-04-18  Derek Price  <derek@ximbiot.com>
81173             Paul Eggert  <eggert@cs.ucla.edu>
81174
81175         * lib/inttypes.h: New file.
81176         * lib/strtoimax.c: Assume <inttypes.h>.
81177
81178 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
81179
81180         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
81181         isn't mounted.  Problem reported by Kir Kolyshkin.
81182
81183 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81184
81185         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
81186         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
81187         Derek R. Price.
81188         * lib/regex.h (RE_DUP_MAX): Update comment to match current
81189         implementation.
81190
81191 2006-04-12  Eric Blake  <ebb9@byu.net>
81192
81193         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
81194         is now done automatically by the corresponding Autoconf macro.
81195
81196 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
81197
81198         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
81199         time_r.h.
81200
81201 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81202
81203         Merge regex changes from libc, removing some of our
81204         POSIX-conformance changes that were rejected and redoing them in a
81205         less-intrusive way.
81206
81207         * lib/regcomp.c (re_compile_internal, init_dfa):
81208         Length arg is now size_t, not Idx.  All uses changed.
81209         (peek_token): Forward decl now says internal_function.
81210         (__re_error_msgid, __re_error_msgid_idx):
81211         Now static rather than extern with attribute_hidden.
81212         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
81213         For some reason libc prefers K&R style defns for external functions.
81214         (regerror) [!defined _LIBC]: Likewise.
81215         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
81216         (seek_collating_symbol_entry, lookup_collation_sequence_value):
81217         (build_range_exp, build_collating_symbol):
81218         Use K&R-style defn.
81219         (re_compile_fastmap): Use '\0' to memset, not 0.
81220         (utf8_sb_map): Make the calculations more obvious.
81221         (init_dfa, parse_bracket_exp, build_charclass_op):
81222         Call calloc and cast result, as glibc does.
81223         (init_word_char, fetch_token, peek_token, peek_token_bracket):
81224         (build_range_exp, build_collating_symbol):
81225         Now internal functions.
81226
81227         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
81228
81229         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
81230         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
81231         Don't depend on VMS; depend on __VMS instead, for POSIX
81232         namespace cleanness.
81233         (regoff_t): Define to ssize_t, not long int.
81234
81235         Remove the REG_ macros named below.  Instead, make the old names
81236         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
81237         __USE_GNU_REGEX.
81238         (REG_BACKSLASH_ESCAPE_IN_LISTS):
81239         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
81240         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
81241         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
81242         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
81243         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
81244         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
81245         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
81246         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
81247         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
81248         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
81249         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
81250         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
81251         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
81252         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
81253         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
81254         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
81255         (REG_NREGS):
81256         Remove.  All uses replaced by the old RE_* names.
81257         (RE_BACKSLASH_ESCAPE_IN_LISTS):
81258         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
81259         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
81260         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
81261         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
81262         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
81263         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
81264         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
81265         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
81266         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
81267         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
81268         Don't bother having these macros be independent of each others'
81269         values, since they no longer exist in the POSIX name space.
81270
81271         Rename the following member names back to their old names,
81272         unless !__USE_GNU_REGEX.  All uses changed back.
81273         (buffer): Renamed from re_buffer.
81274         (allocated): Renamed from re_allocated.
81275         (used): Renamed from re_used.
81276         (syntax): Renamed from re_syntax.
81277         (fastmap): Renamed from re_fastmap.
81278         (translate): Renamed from re_translate.
81279         (can_be_null): Renamed from re_can_be_null.
81280         (regs_allocated): Renamed from re_regs_allocated.
81281         (fastmap_accurate): Renamed from re_fastmap_accurate.
81282         (no_sub): Renamed from re_no_sub.
81283         (not_bol): Renamed from re_not_bol.
81284         (not_eol): Renamed from re_not_eol.
81285         (newline_anchor): Renamed from re_newline_anchor.
81286         (num_regs): Renamed from rm_num_regs.
81287         (start): Renamed from rm_start.
81288         (end): Renamed from rm_end.
81289
81290         (free_state): Move up a bit.
81291
81292         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
81293         #define to be empty.
81294         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
81295         when that is what is intended.
81296         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
81297         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
81298         (MAX): New macro.
81299         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
81300         All uses changed back to re_malloc, etc.  It's now the caller's
81301         responsibility to check for overflow; all callers changed.
81302         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
81303         (re_x2nrealloc): Remove.
81304         (free_state): Remove decl.
81305
81306         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
81307         (re_set_registers, re_exec):
81308         Use K&R-style defn.
81309
81310         2006-01-31  Roland McGrath  <roland@redhat.com>
81311
81312         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
81313         Reported by Mike Frysinger <vapier@gentoo.org>.
81314
81315         2006-01-15  Andreas Jaeger  <aj@suse.de>
81316
81317         [BZ #1950]
81318         * lib/regex_internal.c (re_string_reconstruct): Adjust for
81319         build_wcs_upper_buffer change.
81320         (build_wcs_upper_buffer): Change return type.
81321
81322         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
81323
81324         * lib/regex_internal.h: Include <stdint.h> if available.
81325
81326         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
81327
81328         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
81329
81330         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
81331
81332         * lib/regcomp.c: Adjust for changed secondary hash function.
81333
81334         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
81335
81336         * lib/regex.h: Pretty printing.
81337         Clean up namespace a bit.
81338
81339         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
81340
81341         * lib/regexec.c (update_cur_sifted_state, check_arrival,
81342         check_arrival_add_next_nodes): Avoid using uninitialized variable.
81343
81344         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81345                     Ulrich Drepper  <drepper@redhat.com>
81346
81347         [BZ #1302]
81348         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
81349         changed.
81350         (bitset_word_t): Renamed from bitset_word.  All uses changed.
81351
81352         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
81353
81354         [BZ #281]
81355         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
81356         * lib/regcomp.c: Remove unnecessary uses of
81357         unsigned RE_TRANSLATE_TYPE.
81358         * lib/regex_internal.h: Likewise.
81359         * lib/regex_internal.c: Likewise.
81360         * lib/regexec.c: Likewise.
81361         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
81362
81363         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
81364
81365         * lib/regexec.c (find_recover_state): Remove unnecessary
81366         initialization.
81367         (transit_state_bkref): Make DFA a const pointer.
81368         (get_subexp): Likewise.
81369         (check_arrival): Likewise.
81370         (update_cur_sifted_state): Likewise.
81371         (re_search_internal): Likewise.
81372         (prune_impossible_nodes): Likewise.
81373         (acquire_init_state_context): Likewise.
81374         (proceed_next_node): Likewise.
81375         (set_regs): Likewise.
81376         (free_fail_stack_return): Likewise.
81377         (check_arrival_expand_ecl): Mark DFA parameter as const.
81378         (check_arrival_expand_ecl_sub): Likewise.
81379         (check_subexp_limits): Likewise.
81380         (sub_epsilon_src_nodes):  Likewise.
81381         (add_epsilon_src_nodes):  Likewise.
81382         (merge_state_array): Likewise.
81383         (update_regs): Likewise.
81384         (build_trtable): Likewise.
81385         (sift_states_backward): Mark MCTX parameter as const.
81386         (build_sifted_states): Likewise.
81387         (update_cur_sifted_state): Likewise.
81388         (sift_states_mkref): Likewise.
81389         (check_arrival_expand_ecl): Mark eclosure as const.
81390         (check_dst_limits_calc_pos_1): Likewise.
81391         * lib/regex_internal.h (re_match_context_t): Make dfa a const
81392         pointer.
81393
81394         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
81395
81396         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
81397         (transit_state_sb): Likewise.
81398         (transit_state_mb): Likewise.
81399         (sift_states_iter_mb): Likewise.
81400         (check_arrival_add_next_nodes): Likewise.
81401         (check_node_accept_bytes): Change first parameter to pointer-to-const.
81402         [_LIBC] (re_search_2_stub): Use mempcpy.
81403
81404         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
81405         mbrtowc for very simple UTF-8 case.
81406
81407         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
81408         a pointer-to-const.
81409         (re_acquire_state_context): Likewise.
81410         * lib/regex_internal.h: Adjust prototypes.
81411
81412         * lib/regex.c: Prevent using C++ compilers.
81413
81414         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
81415         (re_acquire_state_context): Likewise.
81416
81417 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81418
81419         * modules/regex (Depends-on): Add ssize_t.
81420
81421 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81422
81423         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
81424         translation table.
81425
81426 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81427
81428         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
81429
81430 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
81431             Bruno Haible  <bruno@clisp.org>
81432
81433         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
81434         <sys/types.h> and <inttypes.h>.
81435
81436 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81437
81438         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
81439         `__error_t_defined', so argp.h will not typedef the former.
81440
81441 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81442
81443         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
81444         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
81445         glibc names.  Even if glibc is changed to conform to POSIX, the
81446         traditional names will be available anyway, since regex depends on
81447         the extensions module.  Also, fix a longstanding typo in the
81448         implementation of Spencer ERE test #75 from grep 2.3.  Problems
81449         reported by Emanuele Giaquinta.  Also, change sense of cached
81450         variable, so that the message makes sense.
81451
81452 2006-03-24  Simon Josefsson  <jas@extundo.com>
81453
81454         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
81455         including some doc fixes.
81456         (base64_encode_alloc): Fix +1 bug on allocation failures.
81457
81458 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81459
81460         * lib/base64.c (base64_encode): Do not read past end of array with
81461         unsanitized input on systems with CHAR_BIT > 8.
81462
81463 2006-03-24  Eric Blake  <ebb9@byu.net>
81464
81465         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
81466
81467 2006-03-22  Karl Berry  <karl@gnu.org>
81468
81469         * config/srclist.txt (*setenv.[ch]): get from coreutils.
81470         * config/srclistvars.sh (COREUTILS): new var.
81471
81472 2006-03-17  Jim Meyering  <jim@meyering.net>
81473
81474         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
81475         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
81476
81477 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81478
81479         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
81480         no longer needs it.  Instead, check that regoff_t is as least
81481         as wide as ptrdiff_t.
81482
81483         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
81484         so that our regex.h stays compatible with the installed regex.
81485         This is helpful for installers who configure --without-included-regex.
81486         Problem reported by Emanuele Giaquinta.
81487
81488 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81489
81490         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
81491         Typedef to long int, not to off_, as POSIX will likely change
81492         in that direction.
81493
81494 2006-03-15  Eric Blake  <ebb9@byu.net>
81495
81496         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
81497
81498 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81499
81500         * lib/argp-help.c (validate_uparams): Fix typo
81501         * lib/argp-parse.c (argp_default_options): Consistently begin help
81502         messages with a lowercase letter.
81503
81504 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
81505
81506         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
81507         overrun buffers and shouldn't be used (much as gets shouldn't be
81508         used).
81509         * lib/time_r.c (asctime_r, ctime_r): Likewise.
81510
81511 2006-03-08  Simon Josefsson  <jas@extundo.com>
81512
81513         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
81514         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81515
81516 2006-03-08  Simon Josefsson  <jas@extundo.com>
81517
81518         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
81519         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81520
81521 2006-03-08  Simon Josefsson  <jas@extundo.com>
81522
81523         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
81524         signal that configure disabled the device.
81525
81526 2006-03-08  Simon Josefsson  <jas@extundo.com>
81527
81528         * build-aux/maint.mk: Fix refresh-po, to handle no translated
81529         languages.
81530
81531 2006-03-07  Simon Josefsson  <jas@extundo.com>
81532
81533         * modules/getopt (Depends-on): Add unistd.
81534
81535         * modules/unistd: New file.
81536
81537 2006-03-07  Simon Josefsson  <jas@extundo.com>
81538
81539         * modules/gc-random: New file.
81540
81541 2006-03-07  Simon Josefsson  <jas@extundo.com>
81542
81543         * m4/unistd_h.m4: New file.
81544
81545 2006-03-07  Simon Josefsson  <jas@extundo.com>
81546
81547         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
81548         test to be side-effect free by storing the result in the cache
81549         variable gl_cv_lib_readline, and moving the assignment of
81550         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
81551         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81552
81553 2006-03-07  Simon Josefsson  <jas@extundo.com>
81554
81555         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
81556         error on missing devices (the functions will return an error).
81557
81558         * m4/gc.m4: Move random stuff to gc-random.m4
81559
81560 2006-03-07  Simon Josefsson  <jas@extundo.com>
81561
81562         * lib/unistd_.h: New file.
81563
81564 2006-03-07  Simon Josefsson  <jas@extundo.com>
81565
81566         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
81567
81568 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81569
81570         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
81571         Problem reported by Juan Manuel Guerrero.
81572
81573 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81574
81575         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
81576         the unistd module.
81577         * lib/getlogin_r.c: Likewise.
81578         * lib/getlogin_r.h: Likewise.
81579         * lib/glob.c: Likewise.
81580         * lib/pagealign_alloc.c: Likewise.
81581         * lib/unistd_.h: Remove; no longer needed.
81582
81583 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81584
81585         * MODULES.html.sh (Support for systems lacking POSIX:2001):
81586         Add unistd.
81587         * modules/c-stack (Depends-on): Add unistd.
81588         * modules/getlogin_r: Likewise.
81589         * modules/glob: Likewise.
81590         * modules/pagealign_alloc: Likewise.
81591         * modules/unistd (Files): Remove lib/unistd_.h.
81592         (EXTRA_DIST): Remove.
81593         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
81594         need unistd_.h.
81595         (MOSTLYCLEANFILES): Remove unistd.h-t.
81596
81597 2006-03-03  Simon Josefsson  <jas@extundo.com>
81598
81599         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
81600
81601 2006-03-03  Simon Josefsson  <jas@extundo.com>
81602
81603         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
81604         libidn and bison.
81605
81606 2006-03-03  Simon Josefsson  <jas@extundo.com>
81607
81608         * build-aux/maint.mk: Add indent target.
81609
81610 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
81611
81612         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
81613         our replacement poll.h in any case, to avoid a differing
81614         declaration from a system header.  Seen on AIX.
81615
81616 2006-03-01  Simon Josefsson  <jas@extundo.com>
81617
81618         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
81619         <kasal@ucw.cz>.
81620
81621 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81622
81623         * modules/gettime (Depends-on): Add extensions module.
81624         * modules/nanosleep (Depends-on): Likewise.
81625         * modules/settime (Depends-on): Likewise.
81626
81627 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81628
81629         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
81630         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
81631         pedantically.
81632         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81633         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
81634
81635         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
81636         not "==".  Reported by Ralf Wildenhues.
81637
81638 2006-03-01  Karl Berry  <karl@gnu.org>
81639
81640         * doc/Copyright/request-*: new files, synced from gnuorg.
81641
81642 2006-03-01  Karl Berry  <karl@gnu.org>
81643
81644         * config/srclist.txt (Copyright/*): new entries.
81645
81646 2006-02-28  Simon Josefsson  <jas@extundo.com>
81647
81648         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
81649
81650 2006-02-27  Simon Josefsson  <jas@extundo.com>
81651
81652         * lib/base64.h: Indent #define's.  From Jim Meyering
81653         <jim@meyering.net>.
81654
81655 2006-02-27  Jim Meyering  <jim@meyering.net>
81656
81657         Revert the change of 2006-02-24, so these files can continue
81658         to be sync'd from gettext.
81659         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
81660         of `config.h'.
81661
81662 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
81663
81664         * modules/intprops: New file.
81665         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
81666         Add intprops.
81667         * modules/getloadavg (Files): Remove lib/intprops.h.
81668         (Depends-on): Add intprops.
81669         * modules/human: Likewise.
81670         * modules/inttostr: Likewise.
81671         * modules/openat: Likewise.
81672         * modules/sig2str: Likewise.
81673         * modules/userspec: Likewise.
81674         * modules/utimecmp: Likewise.
81675         * modules/xnanosleep: Likewise.
81676         * modules/xstrtol: Likewise.
81677
81678 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
81679
81680         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
81681         * modules/lock-tests (TESTS): Use $(EXEEXT).
81682         * modules/tls-tests: Likewise.
81683         * modules/argp-tests: Likewise.
81684         (check_PROGRAMS): New var, replacing...
81685         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
81686
81687 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81688
81689         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
81690         `config.h'.
81691
81692 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
81693
81694         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
81695
81696 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81697
81698         Sync from coreutils.
81699         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
81700         gl_CHDIR_SAFER.
81701
81702 2006-02-22  Jim Meyering  <jim@meyering.net>
81703
81704         Sync from coreutils.
81705         * m4/chdir-safer.m4: New file.
81706
81707 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
81708
81709         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
81710         AT_FDCWD exceeds INT_MAX.
81711         * lib/openat.h (AT_FDCWD): Likewise.
81712
81713 2006-02-17  Eric Blake  <address@hidden>
81714
81715         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
81716
81717 2006-02-16  Simon Josefsson  <jas@extundo.com>
81718
81719         * modules/getaddrinfo (Depends-on): Add sys_socket.
81720
81721 2006-02-15  Simon Josefsson  <jas@extundo.com>
81722
81723         * build-aux/maint.mk: Add dsyntax-check rule.
81724
81725 2006-02-15  Eric Blake  <ebb9@byu.net>
81726
81727         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
81728         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
81729         'present but cannot compile' warnings on cygwin.
81730         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
81731         use ws2tcpip.h if sys/socket.h works.
81732         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
81733         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
81734
81735 2006-02-14  Simon Josefsson  <jas@extundo.com>
81736
81737         * modules/maintainer-makefile (Files): Rename.
81738
81739         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
81740         and (the local) Makefile.cfg to maint-cfg.mk.
81741
81742         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
81743         to the latter.
81744
81745         * modules/maintainer-makefile: New module.
81746
81747         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
81748         severaly stripped to make it possible to build it up from scratch
81749         with reliable tests.
81750
81751         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
81752         fixes to permit overriding the default actions when configure and
81753         makefile are not available.
81754
81755 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
81756
81757         Sync from coreutils.
81758         * modules/lstat (Depends-on): Don't depend on xalloc.
81759         (License): Change from GPL to LGPL, since this is now simply a
81760         replacement for a libc function.
81761
81762 2006-02-14  Jim Meyering  <jim@meyering.net>
81763
81764         Sync from coreutils.
81765
81766         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
81767         failure on deficient systems, and simplify gnulib lgpl dependencies.
81768         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
81769         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
81770
81771         * lib/xalloc-die.c: Remove unused definition of N_.
81772
81773 2006-02-14  Jim Meyering  <jim@meyering.net>
81774
81775         Sync from coreutils.
81776         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
81777         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
81778         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
81779         double-quote uses of that variable, to accommodate the rare case in
81780         which getmntent is available in none of the libraries checked.  This
81781         happens at least on FreeBSD 5.0.
81782
81783 2006-02-13  Simon Josefsson  <jas@extundo.com>
81784
81785         * gnulib-tool (Usage): Fix --import, from
81786         karl@freefriends.org (Karl Berry).
81787
81788 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81789
81790         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
81791
81792 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
81793
81794         * lib/argp-namefrob.h: Restore changes accidentally lost during the
81795         "autoupdate" on 2005-12-12.
81796
81797 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81798
81799         * modules/closeout (Depends-on): Remove atexit.
81800
81801 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81802
81803         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
81804         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
81805
81806 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
81807
81808         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
81809         __EXTENSIONS__ if this causes compilation to fail.  Problem
81810         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
81811         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
81812
81813 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
81814
81815         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
81816         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
81817         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
81818         All uses changed.
81819
81820 2006-01-26  Simon Josefsson  <jas@extundo.com>
81821
81822         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
81823         prototype is visible on mingw32.
81824
81825         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
81826         for mingw32.
81827
81828         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
81829         mingw32).
81830
81831 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
81832
81833         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
81834         attempt to open for write; this always fails, at least on POSIX
81835         hosts.  This reinstates the 2006-01-09 change, which was
81836         inadvertently removed.
81837
81838 2006-01-26  Bruno Haible  <bruno@clisp.org>
81839
81840         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
81841         Reported by Paul Eggert.
81842
81843 2006-01-26  Bruno Haible  <bruno@clisp.org>
81844             Paul Eggert  <eggert@cs.ucla.edu>
81845
81846         * lib/stdbool_.h (_Bool)
81847         [(! (defined __cplusplus || defined __BEOS__)
81848           && !defined __GNUC__
81849           && !(defined __HP_cc || defined __xlc__
81850                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
81851                || defined __sgi))]:
81852         #define to signed char in these cases too; this simplifies
81853         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
81854         etc., separately) and makes it more conservative.
81855
81856 2006-01-25  Simon Josefsson  <jas@extundo.com>
81857
81858         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
81859         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
81860         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
81861
81862 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81863
81864         * lib/argp-namefrob.h: Bugfix. Remove stray #
81865
81866 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81867
81868         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
81869         so that we test the test.
81870         Check for yet another HP-UX cc bug involving *bool |= bool.
81871
81872 2006-01-25  Karl Berry  <karl@gnu.org>
81873
81874         * config/srclist.txt (vasnprintf.c): sync lost.
81875
81876 2006-01-25  Jim Meyering  <jim@meyering.net>
81877
81878         Sync from the stable (b5) branch of coreutils:
81879
81880         * lib/fts.c (fts_children): Don't let close() clobber errno from
81881         failed fchdir().
81882
81883         * lib/fts.c (fts_stat): When following a symlink-to-directory,
81884         don't necessarily interpret stat-fails+lstat-succeeds as indicating
81885         a dangling symlink.  That can also happen at least for ELOOP.
81886         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
81887         FYI, this bug predates the inclusion of fts.c in coreutils.
81888
81889         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
81890         in their own block, so pre-c99 compilers don't object.
81891
81892         Avoid the double-free (first in fts_read, second in fts_close) that
81893         would occur when an `active' directory is made inaccessible (e.g.,
81894         via chmod a-x) during a traversal.
81895         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81896         before returning.  Reproduce this failure by
81897         mkdir -p a/b; cd a; chmod a-x . b
81898         Reported by Stavros Passas.
81899
81900 2006-01-25  Jim Meyering  <jim@meyering.net>
81901
81902         * lib/fileblocks.c: Remove more useless parentheses.
81903         * lib/readutmp.h: Likewise.
81904
81905 2006-01-25  Bruno Haible  <bruno@clisp.org>
81906
81907         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
81908         warnings.
81909         Reported by Paul Eggert.
81910
81911 2006-01-25  Bruno Haible  <bruno@clisp.org>
81912
81913         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
81914         rid of a trap command. For Solaris sh.
81915         Reported by Mark D. Baushke <mdb@gnu.org>.
81916
81917 2006-01-24  Simon Josefsson  <jas@extundo.com>
81918
81919         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
81920         Bruno.
81921
81922 2006-01-24  Karl Berry  <karl@gnu.org>
81923
81924         * config/srclist.txt (argp-namefrob.h): sync lost.
81925
81926 2006-01-24  Jim Meyering  <jim@meyering.net>
81927
81928         * modules/openat (Files): Add lib/intprops.h.
81929         From Mark D. Baushke.
81930
81931 2006-01-24  Jim Meyering  <jim@meyering.net>
81932
81933         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
81934         Reported by Mark D. Baushke.
81935
81936 2006-01-24  Jim Meyering  <jim@meyering.net>
81937
81938         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
81939
81940 2006-01-24  Bruno Haible  <bruno@clisp.org>
81941
81942         * modules/strnlen (Maintainer): Change from glibc to all.
81943
81944 2006-01-24  Bruno Haible  <bruno@clisp.org>
81945
81946         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
81947         Patch by Paul Eggert.
81948
81949 2006-01-24  Bruno Haible  <bruno@clisp.org>
81950
81951         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
81952         already has it.
81953         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
81954         2005-11-26.
81955
81956         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
81957         'signed char' to avoid problems with the built-in _Bool type.
81958         Reported by Paul Eggert on 2005-11-26.
81959
81960 2006-01-24  Bruno Haible  <bruno@clisp.org>
81961
81962         * gnulib-tool (func_import): Avoid constructing complicated sed
81963         expressions inside backquote.
81964         Report and solution by Mark D. Baushke <mdb@gnu.org>.
81965
81966 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
81967
81968         These changes imported from libc.
81969         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
81970         test and two separate function calls.
81971         * lib/strndup.c (__strndup): Add libc_hidden_def.
81972
81973 2006-01-23  Simon Josefsson  <jas@extundo.com>
81974
81975         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
81976         Remove the test_*_SOURCES variable: automake infers it by default.
81977         * modules/tls-tests: Likewise.
81978
81979 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81980
81981         Work around porting bugs reported by Dieter in
81982         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
81983         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
81984         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
81985         Include "getopt.h" first, to check interface.
81986         (getenv): Declare only if defined HAVE_DECL_GETENV &&
81987         !HAVE_DECL_GETENV.
81988         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
81989         (__strndup): Revert to K&R-style function dfns, the glibc style.
81990         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
81991         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
81992         Include strnlen.h first, to get prototype properly.
81993         (strnlen): Renamed from __strnlen.
81994         Remove weak alias.
81995
81996 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81997
81998         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
81999
82000 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82001
82002         * config/srclist.txt: Adjust to reflect glibc reorganization.
82003         This affects only comments.
82004
82005 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82006
82007          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
82008          Reported by Bruce Korb <bkorb@gnu.org>.
82009
82010 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
82011
82012         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
82013         to pacify gcc -Wswitch-default.
82014
82015 2006-01-22  Bruno Haible  <bruno@clisp.org>
82016
82017         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
82018         temporary buffer for sprintf, take into account the precision also
82019         for 'd', 'i', 'u', 'o', 'x', 'X'.
82020
82021 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82022
82023         * modules/argp-tests: New module
82024         * tests/test-argp.c: New file
82025         * tests/test-argp-2.sh: New file
82026
82027 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82028
82029         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
82030         (__argp_base_name): Removed
82031         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
82032         typo.
82033         (__argp_base_name): Provide macro definition or extern declaration
82034         depending on the configuration
82035
82036 2006-01-20  Simon Josefsson  <jas@extundo.com>
82037
82038         * modules/inet_ntop (Depends-on): Depend on sys_socket.
82039
82040 2006-01-20  Simon Josefsson  <jas@extundo.com>
82041
82042         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
82043
82044 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82045
82046         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
82047         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
82048         Suggested by Bruno Haible.
82049
82050 2006-01-20  Karl Berry  <karl@gnu.org>
82051
82052         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
82053         until changes propagate, I guess.
82054
82055 2006-01-19  Simon Josefsson  <jas@extundo.com>
82056
82057         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
82058
82059 2006-01-19  Simon Josefsson  <jas@extundo.com>
82060
82061         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
82062
82063 2006-01-19  Simon Josefsson  <jas@extundo.com>
82064
82065         * gnulib-tool: Set check_PROGRAMS.
82066
82067         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82068         modules/des-tests, modules/gc-arcfour-tests,
82069         modules/gc-arctwo-tests, modules/gc-des-tests,
82070         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82071         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82072         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82073         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82074         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82075         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
82076         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
82077         test_*_SOURCES.
82078
82079 2006-01-18  Simon Josefsson  <jas@extundo.com>
82080
82081         * modules/socklen (Depends-on): Depend on sys_socket.
82082
82083 2006-01-18  Simon Josefsson  <jas@extundo.com>
82084
82085         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82086         modules/des-tests, modules/gc-arcfour-tests,
82087         modules/gc-arctwo-tests, modules/gc-des-tests,
82088         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82089         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82090         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82091         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82092         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82093         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
82094         $(EXEEXT) to automake TESTS variable, for mingw32.
82095
82096 2006-01-17  Simon Josefsson  <jas@extundo.com>
82097
82098         * modules/socklen (Include): Need sys/socket.h.
82099
82100 2006-01-17  Bruno Haible  <bruno@clisp.org>
82101
82102         * modules/ssize_t (Include): Add <sys/types.h>.
82103
82104 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
82105
82106         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
82107         it's not portable and it doesn't work with cross-compiles.
82108         Problem reported by Bruno Haible.  Fix missing-$ typo in
82109         'test "gl_cv_ignore_unused_libraries" ...' that prevented
82110         -zignore from being used with Sun's C compiler.
82111
82112 2006-01-12  Simon Josefsson  <jas@extundo.com>
82113
82114         * lib/base64.c: Fix warning, reported by Bruno Haible
82115         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
82116
82117 2006-01-12  Bruno Haible  <bruno@clisp.org>
82118
82119         * modules/ldd: New file.
82120         * build-aux/ldd.sh.in: New file.
82121         * MODULES.html.sh (Support for building libraries and executables): Add
82122         ldd.
82123
82124 2006-01-12  Bruno Haible  <bruno@clisp.org>
82125
82126         * m4/ldd.m4: New file.
82127
82128 2006-01-12  Bruno Haible  <bruno@clisp.org>
82129
82130         * gnulib-tool (func_import, func_create_testdir): Don't go into an
82131         endless loop while replacing $auxdir with build-aux.
82132
82133 2006-01-11  Simon Josefsson  <jas@extundo.com>
82134
82135         * lib/stdint_.h (SIZE_MAX): Add missing (.
82136
82137 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
82138
82139         Sync from coreutils.
82140         * lib/md5.c: Fix commentary typos.
82141         (alignof, UNALIGNED_P): No need for a GCC-specific version.
82142         * lib/md5.h (__attribute__): Remove; unused.
82143         * lib/sha1.c: Fix commentary to match md5 better.
82144         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
82145         so that we don't need to worry about alignment.  All uses changed.
82146         This merges the 2005-10-28 md5 change into sha1.
82147
82148 2006-01-11  Jim Meyering  <jim@meyering.net>
82149
82150         Sync from coreutils.
82151         * lib/md5.c (OP): Fix spacing.
82152
82153 2006-01-11  Bruno Haible  <bruno@clisp.org>
82154
82155         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82156         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
82157         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
82158
82159 2006-01-11  Bruno Haible  <bruno@clisp.org>
82160
82161         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82162         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
82163         the "early" section as well.
82164
82165 2006-01-11  Bruno Haible  <bruno@clisp.org>
82166
82167         Avoid "ar: no archive members specified" error on MacOS X.
82168         * gnulib-tool (func_modules_add_dummy): New function.
82169         (func_import, func_create_testdir): Invoke it.
82170
82171 2006-01-11  Bruno Haible  <bruno@clisp.org>
82172
82173         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
82174         with $auxdir in AC_CONFIG_FILES statements.
82175
82176 2006-01-11  Bruno Haible  <bruno@clisp.org>
82177
82178         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
82179         Initialize also noinst_HEADERS to empty.
82180
82181 2006-01-11  Bruno Haible  <bruno@clisp.org>
82182
82183         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
82184         variables.
82185         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
82186         autoreconf.
82187
82188 2006-01-11  Bruno Haible  <bruno@clisp.org>
82189
82190         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
82191         overridable by the user.
82192         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82193
82194 2006-01-10  Simon Josefsson  <jas@extundo.com>
82195
82196         * modules/sys_socket: New file.
82197
82198 2006-01-10  Simon Josefsson  <jas@extundo.com>
82199
82200         * m4/sys_socket_h.m4: New file.
82201
82202 2006-01-10  Simon Josefsson  <jas@extundo.com>
82203
82204         * lib/socket_.h: New file.
82205
82206 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82207
82208         * modules/readutmp (Maintainer): Add myself.
82209
82210 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82211
82212         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
82213         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
82214         People who are still concerned with buggy memcmp implementations
82215         can invoke gl_FUNC_MEMCMP themselves.
82216
82217 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82218
82219         * lib/regex_internal.h (BITSET_WORD_BITS):
82220         Work around a bug in 64-bit PGC (before version 6.1-2), where the
82221         preprocessor mishandles large unsigned values as if they were signed.
82222         Problem reported by Claudio Fontana in
82223         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
82224
82225 2006-01-10  Jim Meyering  <jim@meyering.net>
82226
82227         Avoid the double-free (first in fts_read, second in fts_close) that
82228         would occur when an `active' directory is made inaccessible (e.g.,
82229         via chmod a-x) during a traversal.
82230         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82231         before returning.  Reproduce this failure by
82232         mkdir -p a/b; cd a; chmod a-x . b
82233         Reported by Stavros Passas.
82234
82235         Sync from coreutils.
82236         * lib/sha1.c: Tweak grammar in a comment.
82237
82238 2006-01-10  Jim Meyering  <jim@meyering.net>
82239
82240         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
82241         Patch by Joerg Sonnenberger.
82242
82243 2006-01-10  Bruno Haible  <bruno@clisp.org>
82244
82245         * modules/readutmp: Depend on module free.
82246         * modules/strtok_r: Depend on module restrict.
82247
82248 2006-01-10  Bruno Haible  <bruno@clisp.org>
82249
82250         * modules/gettext (configure.ac): Add an invocation of
82251         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
82252
82253 2006-01-10  Bruno Haible  <bruno@clisp.org>
82254
82255         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
82256         Reported by Werner Lemberg <wl@gnu.org>.
82257
82258 2006-01-10  Bruno Haible  <bruno@clisp.org>
82259
82260         * lib/localcharset.c: Update from GNU gettext.
82261
82262 2006-01-10  Bruno Haible  <bruno@clisp.org>
82263
82264         * lib/argp.h (__const): Remove macro. Use const instead.
82265         * lib/argp-fmtstream.h (__const): Likewise.
82266         * lib/glob_.h (__const): Remove macro.
82267         * lib/glob-libc.h: Use const instead of __const.
82268
82269 2006-01-10  Bruno Haible  <bruno@clisp.org>
82270
82271         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
82272         variable.
82273         Needed to avoid an automake error regarding the 'gettext' module.
82274
82275 2006-01-09  Simon Josefsson  <jas@extundo.com>
82276
82277         * modules/inet_ntop (Depends-on): Add restrict.
82278
82279 2006-01-09  Simon Josefsson  <jas@extundo.com>
82280
82281         * modules/gc-rijndael-tests (License): Put under LGPL.
82282
82283         * modules/gc-des-tests (License): Likewise.
82284
82285         * modules/gc-arcfour-tests (License): Likewise.
82286
82287         * modules/gc-arctwo-tests (License): Likewise.
82288
82289         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
82290
82291         * modules/gc-hmac-sha1-tests (Files): Likewise.
82292
82293         * modules/gc-hmac-md5-tests (License): Likewise.
82294
82295         * modules/gc-sha1-tests (License): Likewise.
82296
82297         * modules/gc-md5-tests (License): Likewise.
82298
82299         * modules/gc-md4-tests (License): Likewise.
82300
82301         * modules/gc-md2-tests (License): Likewise.
82302
82303         * modules/gc-tests (License): Likewise.
82304
82305         * modules/des-tests (License): Likewise.
82306
82307         * modules/md4-tests (License): Likewise.
82308
82309         * modules/md2-tests (License): Likewise.
82310
82311 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82312
82313         Sync from coreutils:
82314
82315         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
82316         * modules/lib-ignore: New file.
82317         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
82318         chdir-safer.m4, lchmod.m4.
82319         * modules/openat: Add mkdirat.c, openat-priv.h.
82320
82321 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82322
82323         Sync from coreutils.
82324         * m4/lib-ignore.m4: New file.
82325         * m4/lchmod.m4: New file.
82326
82327 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82328
82329         Sync from coreutils.
82330         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
82331         for write access: POSIX says that must fail.
82332         * lib/fts.c (diropen): Likewise.
82333         * lib/save-cwd.c (save_cwd): Likewise.
82334         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
82335         well, for minor improvements on hosts that lack O_DIRECTORY.
82336         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
82337         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
82338         Fall back on chown if open failed with EACCES.
82339
82340         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
82341         Report an error at compile-time if only a 1-second nominal clock
82342         resolution is found.
82343
82344         * lib/lchmod.h: New file.
82345         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
82346         (make_dir_parents): Use lchown rather than chown, and
82347         lchmod rather than chmod.
82348
82349         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
82350         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
82351         "proc" reported by n0dalus.
82352
82353         * lib/mountlist.c: Include <limits.h>.
82354         (dev_from_mount_options)
82355         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
82356         New function.  It no longer assumes "dev=" has the System V meaning
82357         on Linux (since it doesn't).  It also parses "dev=" more carefully.
82358         (read_file_system_list)
82359         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
82360         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
82361         dev= in that case.
82362
82363         * lib/posixtm.h (PDS_PRE_2000): New macro.
82364         * lib/posixtm.c (year): Arg is now syntax_bits rather than
82365         allow_century.  All usages changed.  Reject dates outside the range
82366         1969-1999 if PDS_PRE_2000 is used.
82367
82368 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82369
82370         Sync from coreutils.
82371         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
82372         (Time of day items): Mention the possibility of leap seconds.
82373         Problem reported by Dr. David Alan Gilbert.
82374
82375 2006-01-09  Jim Meyering  <jim@meyering.net>
82376
82377         Sync from coreutils.
82378
82379         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
82380
82381         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
82382
82383         * lib/modechange.c (mode_compile): Reject an invalid mode string
82384         that starts with an octal digit.  From Andreas Gruenbacher.
82385
82386         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
82387         and dup to open_safer and dup_safer, respectively.
82388         (openat_permissive): Fix typo in comment.
82389
82390         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
82391         "gettext.h"; either no longer needed or are guaranteed by openat.h.
82392         (_): Remove; no longer needed.
82393         (openat): Renamed from rpl_openat; no need for rpl_openat
82394         since openat.h renames openat for us.
82395         Replace most of the body with a call to openat_permissive,
82396         to avoid duplicate code.
82397         Port to (probably hypothetical) environments were mode_t is
82398         wider than int.
82399         (openat_permissive): Require mode arg, so that we can check
82400         types better.  Put it just after flags.  Change cwd failure
82401         indicator from pointer-to-bool to pointer-to-errno-value.
82402         All callers changed.
82403         Invoke openat_save_fail and/or openat_restore_fail if
82404         cwd_errno is null, so that openat can call us.
82405         (openat_permissive, fdopendir, fstatat, unlinkat):
82406         Simplify errno handling to avoid some duplicate code,
82407         as it's OK to set errno on success.
82408         * lib/openat.h: Revamp code so that function macros depend on
82409         __OPENAT_PREFIX only, not also on AT_FDCWD.
82410         (openat_ro): Remove.  Caller changed to use openat_permissive.
82411         (openat_permissive): Now a macro, if not a function.
82412         (openat_restore_fail, openat_save_fail): Now always functions,
82413         since mkdirat needs them even if __OPENAT_PREFIX is defined.
82414
82415         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
82416         and openat.c.
82417         * lib/mkdirat.c: Include openat-priv.h.
82418         Remove definitions of macros defined therein.
82419         * lib/openat.c: Likewise.
82420
82421         * lib/mkdirat.c (mkdirat): New file and function.
82422         * lib/openat.h (mkdirat): Declare.
82423
82424         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
82425
82426         * lib/openat.h (openat_permissive): Declare.
82427         (openat_ro): Define.
82428
82429         * lib/openat.c (EXPECTED_ERRNO): New macro.
82430         (openat_permissive): New function -- used in remove.c rewrite.
82431         (all functions): Set errno just before returning, only if there
82432         was an actual failure.
82433         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
82434
82435         Emulate openat-family functions using Linux's procfs, if possible.
82436         Idea and some code based on Ulrich Drepper's glibc changes.
82437
82438         * lib/openat.c: (BUILD_PROC_NAME): New macro.
82439         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
82440         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
82441         before falling back on save_cwd and restore_cwd.
82442         (fdopendir, fstatat, unlinkat): Likewise.
82443
82444         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
82445         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
82446
82447         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
82448         as second argument to va_arg.  Otherwise, some versions of gcc
82449         warn that `if this code is reached, the program will abort'.
82450
82451 2006-01-09  Jim Meyering  <jim@meyering.net>
82452
82453         Sync from coreutils.
82454         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
82455         Require openat-priv.h.
82456
82457 2006-01-09  Bruno Haible  <bruno@clisp.org>
82458
82459         * modules/strnlen (Include): Use strnlen.h.
82460
82461 2006-01-09  Bruno Haible  <bruno@clisp.org>
82462
82463         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
82464
82465 2006-01-09  Bruno Haible  <bruno@clisp.org>
82466
82467         * lib/sysexit_.h (EX_OK): New macro.
82468         Suggested by Martin Lambers <marlam@marlam.de>.
82469
82470 2006-01-09  Bruno Haible  <bruno@clisp.org>
82471
82472         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
82473         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
82474
82475 2006-01-09  Bruno Haible  <bruno@clisp.org>
82476
82477         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
82478         numbers.
82479
82480 2006-01-09  Bruno Haible  <bruno@clisp.org>
82481
82482         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
82483         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
82484         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
82485         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
82486
82487 2006-01-09  Bruno Haible  <bruno@clisp.org>
82488
82489         * build-aux/javacomp.sh.in: New file, moved from lib/.
82490         * modules/javacomp-script (Files): Update.
82491         (configure.ac): Add AC_CONFIG_FILES invocation.
82492         (EXTRA_DIST): Remove variable.
82493
82494         * build-aux/javaexec.sh.in: New file, moved from lib/.
82495         * modules/javaexec (Files): Update.
82496         (configure.ac): Add AC_CONFIG_FILES invocation.
82497         (EXTRA_DIST): Remove javaexec.sh.in.
82498
82499         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
82500         * modules/csharpcomp-script (Files): Update.
82501         (configure.ac): Add AC_CONFIG_FILES invocation.
82502         (EXTRA_DIST): Remove variable.
82503
82504         * build-aux/csharpexec.sh.in: New file, moved from lib/.
82505         * modules/csharpexec (Files): Update.
82506         (configure.ac): Add AC_CONFIG_FILES invocation.
82507         (EXTRA_DIST): Remove csharpexec.sh.in.
82508
82509 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82510
82511         Sync from coreutils.
82512
82513         Add POSIX ACL support
82514         * lib/acl.h (copy_acl, set_acl): Add declarations.
82515         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
82516         systems other than Linux.
82517         (chmod_or_fchmod): New function: use fchmod when possible,
82518         and chmod otherwise.
82519         (file_has_acl): Add a POSIX ACL implementation, with a
82520         Linux-specific subcase.
82521         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
82522         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
82523         acls are unsupported.
82524         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
82525         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
82526         are unsupported.
82527
82528 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82529
82530         Sync from coreutils.
82531         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
82532
82533 2006-01-07  Bruno Haible  <bruno@clisp.org>
82534
82535         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
82536         gl_EARLY.
82537
82538 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82539
82540         * lib/strftime.c (tzname): Don't declare if it is already #defined.
82541         Problem reported for Mingw by Mark Junker.
82542
82543 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82544
82545         * README: Gnulib normally doesn't generate a tarball.
82546
82547 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
82548
82549         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
82550         long int, not int, for nanosecond counts, so that people who are
82551         used to POSIX struct timespec won't be surprised.  Reported by Jim
82552         Meyering.
82553
82554 2005-12-28  Bruno Haible  <bruno@clisp.org>
82555
82556         * build-aux/config.rpath: Update from GNU gettext.
82557
82558 2005-12-16  Jim Meyering  <jim@meyering.net>
82559
82560         * modules/fprintftime: New module.
82561         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
82562
82563 2005-12-16  Jim Meyering  <jim@meyering.net>
82564
82565         * m4/fprintftime.m4: New file.
82566
82567 2005-12-16  Jim Meyering  <jim@meyering.net>
82568
82569         * lib/fprintftime.c, lib/fprintftime.h: New files.
82570
82571 2005-12-15  Simon Josefsson  <jas@extundo.com>
82572
82573         * modules/socklen (configure.ac): Fix M4 macro name, to align with
82574         new m4/socklen.m4.
82575
82576 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82577
82578         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
82579         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
82580
82581 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82582
82583         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
82584         * lib/argp-help.c (fill_in_uparams): Check if the constructed
82585         struct uparams is valid. Fall back to the default values if it is
82586         not.
82587
82588 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82589
82590         * modules/argp (Files): Add argp-pin.c
82591         (Depends-on): dirname
82592         (lib_SOURCES): Add argp-pin.c
82593
82594 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82595
82596         * m4/argp.m4:  Check if program_invocation_name and
82597         program_invocation_short_name are declared and define appropriate
82598         macros if they are not.
82599
82600 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82601
82602         * lib/argp-help.c (__argp_base_name): New function
82603         (__argp_short_program_name): Rewrite using __argp_base_name
82604         * lib/argp-namefrob.h: Define program_invocation_name and
82605         program_invocation_short_name if requested
82606         (__argp_base_name): Add prototype
82607         * lib/argp-parse.c (argp_def): Use gettext wrappers
82608         (argp_default_parser): Use __argp_base_name
82609         * lib/argp-pin.c: New file. Defines program_invocation_name and
82610         program_invocation_short_name on systems that lack them.
82611
82612 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82613
82614         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
82615         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82616         porting problem reported by Georg Schwarz in
82617         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82618
82619 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82620
82621         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
82622         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82623         porting problem reported by Georg Schwarz in
82624         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82625
82626 2005-12-05  Bruno Haible  <bruno@clisp.org>
82627
82628         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
82629         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
82630         Reported by Mark Junker <mjscod@gmx.de>.
82631
82632 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
82633
82634         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
82635         Use implementation from Albert Chin, with some
82636         comments/corrections by Stepan Kasal and myself.
82637
82638 2005-12-02  Bruno Haible  <bruno@clisp.org>
82639
82640         * gnulib-tool (func_import): Accept GPLed build tool modules when
82641         --lgpl is given.
82642         * modules/csharpcomp-script: New file.
82643         * modules/csharpcomp: Depend on it.
82644         * modules/javacomp-script: New file.
82645         * modules/javacomp: Depend on it.
82646         Suggested by Simon Josefsson.
82647
82648 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
82649
82650         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
82651         statement, to work around an HP-UX 10.20 compiler bug reported by
82652         Peter O'Gorman.
82653
82654 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82655
82656         * modules/savedir (Depends-on): Add openat.
82657
82658 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82659
82660         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
82661         (uintmax_t) [defined uintmax_t]: Do not declare.
82662         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
82663         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
82664         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
82665         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
82666         sake of portability to weird hosts that C allows (though we don't
82667         know of any practical examples).
82668
82669         * lib/savedir.h (fdsavedir): New decl.
82670         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
82671         contains most of the former guts of savedir.
82672         (savedir): Use savedirstream.
82673         Include "openat.h".
82674
82675 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82676
82677         * modules/obstack (Files): Add m4/ulonglong.m4.
82678         Problem reported by Davide Angelocola.
82679
82680 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82681
82682         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
82683         coreutils no longer futzes with rounding modes.
82684
82685 2005-11-14  Jim Meyering  <jim@meyering.net>
82686
82687         * lib/mkstemp-safer.c: Include <config.h>, required for possible
82688         replacement of mkstemp.
82689
82690 2005-11-10  Simon Josefsson  <jas@extundo.com>
82691
82692         * lib/readline.c: Remove EOL.
82693
82694 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82695
82696         * modules/gethrxtime (Depends-on): Add gettime.
82697
82698 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82699
82700         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
82701         or gettimeofday; no longer needed.
82702
82703 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82704
82705         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
82706         time business.
82707         (gethrxtime) [! (HAVE_NANOUPTIME
82708         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
82709         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
82710         our own approximation.
82711
82712 2005-11-08  Eric Blake  <ebb9@byu.net>
82713
82714         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82715
82716 2005-11-08  Eric Blake  <ebb9@byu.net>
82717
82718         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82719
82720 2005-11-04  Bruno Haible  <bruno@clisp.org>
82721
82722         * gnulib-tool: Implement --update mode.
82723
82724 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82725
82726         Fix porting problem reported by Theodoros V. Kalamatianos.
82727         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
82728         Don't assume that futimes failing means we must fail.
82729
82730 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82731
82732         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
82733         variables to suggest the intended function of the PATH_MAX check.
82734
82735 2005-10-30  Kean Johnston  <jkj@sco.com>
82736
82737         Trivial changes to support SCO systems.
82738         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
82739         as PATH_MAX.
82740         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
82741         where __ptr is null when no I/O is pending.
82742
82743 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82744
82745         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
82746         leave errno alone.  Problem reported by Dmitry V. Levin.
82747
82748 2005-10-28  Simon Josefsson  <jas@extundo.com>
82749
82750         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
82751         Test more.
82752
82753         * tests/test-gc-md2.c, tests/test-md2.c: New files.
82754
82755         * modules/md2, modules/md2-tests: New files.
82756
82757 2005-10-28  Simon Josefsson  <jas@extundo.com>
82758
82759         * m4/inet_ntop.m4: More tests.
82760
82761         * m4/gc-md2.m4, md2.m4: New file.
82762
82763 2005-10-28  Simon Josefsson  <jas@extundo.com>
82764
82765         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
82766         "restrict" keywords, as per POSIX.  Protect the function
82767         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
82768         Don't use K&R prototypes.  Check the sprintf return values.
82769         Re-define EAFNOSUPPORT if not present.  Indent.
82770
82771         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
82772         suggested by Bruno Haible <bruno@clisp.org>.
82773
82774         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
82775
82776         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
82777
82778         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
82779         libgcrypt).
82780
82781         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
82782
82783         * lib/md2.h, lib/md2.c: New files.
82784
82785 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
82786
82787         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
82788         errno alone.  Problem reported by Frederic Jolliton.
82789
82790 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
82791
82792         * modules/verify (License): Change from GPL to LGPL.  This is a
82793         tiny module and there are apparently near-equivalents that are
82794         under the BSD license.
82795
82796 2005-10-24  Simon Josefsson  <jas@extundo.com>
82797
82798         * modules/sha1: Relicense to LGPL.
82799
82800 2005-10-24  Simon Josefsson  <jas@extundo.com>
82801
82802         * lib/md4.h: Shrink buffer size, now that we changed the type.
82803
82804 2005-10-23  Simon Josefsson  <jas@extundo.com>
82805
82806         * gnulib-tool (func_import): Fix --tests-base.
82807
82808 2005-10-22  Simon Josefsson  <jas@extundo.com>
82809
82810         * modules/arcfour (Depends-on): Need stdint.
82811
82812 2005-10-22  Simon Josefsson  <jas@extundo.com>
82813
82814         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
82815         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
82816
82817 2005-10-22  Simon Josefsson  <jas@extundo.com>
82818
82819         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
82820         suggested by Bruno Haible <bruno@clisp.org>.
82821
82822 2005-10-22  Simon Josefsson  <jas@extundo.com>
82823
82824         * lib/crc.h: Include stddef.h, for size_t.
82825
82826 2005-10-22  Simon Josefsson  <jas@extundo.com>
82827
82828         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
82829         arcfour_context struct (simplify test vector testing in GNU
82830         Shishi).
82831
82832 2005-10-21  Simon Josefsson  <jas@extundo.com>
82833
82834         * modules/des, modules/des-tests: New files.
82835
82836         * modules/gc-des, modules/gc-des-tests: New files.
82837
82838         * tests/test-des.c, tests/test-gc-des.c: New file.
82839
82840 2005-10-21  Simon Josefsson  <jas@extundo.com>
82841
82842         * modules/arctwo, modules/arctwo-tests: New files.
82843
82844         * tests/test-arctwo.c: New file.
82845
82846         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
82847
82848         * tests/test-gc-arctwo.c: New file.
82849
82850 2005-10-21  Simon Josefsson  <jas@extundo.com>
82851
82852         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
82853         Bruno Haible <bruno@clisp.org>.
82854
82855         * m4/gc-des.m4: New file.
82856
82857 2005-10-21  Simon Josefsson  <jas@extundo.com>
82858
82859         * m4/arctwo.m4: New file.
82860
82861         * m4/gc-arctwo.m4: New file.
82862
82863 2005-10-21  Simon Josefsson  <jas@extundo.com>
82864
82865         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
82866         block.
82867
82868 2005-10-21  Simon Josefsson  <jas@extundo.com>
82869
82870         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
82871         <bruno@clisp.org>.
82872
82873         * lib/hmac-sha1.c (hmac_sha1): Likewise.
82874
82875         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
82876         Bruno Haible <bruno@clisp.org>.
82877
82878         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
82879         <bruno@clisp.org>.
82880
82881 2005-10-21  Simon Josefsson  <jas@extundo.com>
82882
82883         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
82884
82885 2005-10-21  Simon Josefsson  <jas@extundo.com>
82886
82887         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
82888
82889 2005-10-21  Simon Josefsson  <jas@extundo.com>
82890
82891         * lib/des.h, lib/des.c: New files.
82892
82893         * lib/gc-gnulib.c: Support DES.c
82894
82895 2005-10-21  Simon Josefsson  <jas@extundo.com>
82896
82897         * lib/arctwo.h, lib/arctwo.c: New files.
82898
82899         * lib/gc-gnulib.c: Support ARCTWO.
82900
82901 2005-10-21  Simon Josefsson  <jas@extundo.com>
82902
82903         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
82904         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82905
82906 2005-10-21  Simon Josefsson  <jas@extundo.com>
82907
82908         * gnulib-tool (func_import, func_create_testdir): Define automake
82909         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
82910         Makefile.am snippet),
82911         suggested by Bruno Haible <bruno@clisp.org>.
82912
82913         * modules/gc (Makefile.am): Use it.
82914
82915 2005-10-21  Bruno Haible  <bruno@clisp.org>
82916
82917         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
82918         patch.
82919
82920 2005-10-19  Simon Josefsson  <jas@extundo.com>
82921
82922         * tests/test-gc-rijndael.c: New file.
82923
82924         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
82925
82926 2005-10-19  Simon Josefsson  <jas@extundo.com>
82927
82928         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
82929         interface too.
82930
82931 2005-10-19  Simon Josefsson  <jas@extundo.com>
82932
82933         * tests/test-gc-arcfour.c: New file.
82934
82935         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
82936
82937 2005-10-19  Simon Josefsson  <jas@extundo.com>
82938
82939         * modules/gc-md4, modules/gc-md4-tests: New file.
82940
82941         * tests/test-gc-md4.c: New file.
82942
82943 2005-10-19  Simon Josefsson  <jas@extundo.com>
82944
82945         * m4/gc-md4.m4: New file.
82946
82947 2005-10-19  Simon Josefsson  <jas@extundo.com>
82948
82949         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
82950         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
82951         <kasal@ucw.cz>.
82952
82953 2005-10-19  Simon Josefsson  <jas@extundo.com>
82954
82955         * m4/gc-arcfour.m4: New file.
82956
82957         * m4/gc-rijndael.m4: New file.
82958
82959 2005-10-19  Simon Josefsson  <jas@extundo.com>
82960
82961         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
82962
82963 2005-10-19  Simon Josefsson  <jas@extundo.com>
82964
82965         * lib/gc-gnulib.c: Support ARCFOUR.
82966
82967 2005-10-19  Simon Josefsson  <jas@extundo.com>
82968
82969         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
82970         support.
82971
82972         * lib/gc.h: Add ECB enum type.
82973
82974         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
82975
82976 2005-10-18  Simon Josefsson  <jas@extundo.com>
82977
82978         * tests/test-md5.c: New file.
82979
82980         * modules/md5-tests: New file.
82981
82982 2005-10-18  Simon Josefsson  <jas@extundo.com>
82983
82984         * tests/test-md4.c: New file.
82985
82986         * modules/md4, modules/md4-tests: New files.
82987
82988 2005-10-18  Simon Josefsson  <jas@extundo.com>
82989
82990         * m4/md4.m4: New file.
82991
82992 2005-10-18  Simon Josefsson  <jas@extundo.com>
82993
82994         * lib/md4.h, lib/md4.c: New files, based on md5.?.
82995
82996 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
82997
82998         * gnulib-tool (func_create_testdir): Omit the second check whether
82999         BUILT_SOURCES in nonempty.
83000
83001 2005-10-17  Simon Josefsson  <jas@extundo.com>
83002
83003         * tests/test-rijndael.c: New file.
83004
83005 2005-10-17  Simon Josefsson  <jas@extundo.com>
83006
83007         * modules/sha1: Depend on stdint instead of md5.
83008
83009         * modules/md5: Depend on stdint, remove uint32_t.
83010
83011 2005-10-17  Simon Josefsson  <jas@extundo.com>
83012
83013         * modules/gc-sha1-tests: New file.
83014
83015         * tests/test-gc-sha1.c: New file.
83016
83017 2005-10-17  Simon Josefsson  <jas@extundo.com>
83018
83019         * m4/md5.m4: Remove call to uint32_t.m4.
83020
83021 2005-10-17  Simon Josefsson  <jas@extundo.com>
83022
83023         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
83024
83025         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
83026         md5.h.
83027
83028         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
83029
83030         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
83031
83032 2005-10-17  Simon Josefsson  <jas@extundo.com>
83033
83034         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
83035
83036 2005-10-17  Simon Josefsson  <jas@extundo.com>
83037
83038         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
83039
83040 2005-10-17  Simon Josefsson  <jas@extundo.com>
83041
83042         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
83043
83044         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
83045
83046 2005-10-17  Bruno Haible  <bruno@clisp.org>
83047
83048         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
83049         that it can also be used in a test.
83050
83051 2005-10-16  Bruno Haible  <bruno@clisp.org>
83052
83053         * gnulib-tool (func_emit_tests_Makefile_am): Also define
83054         TESTS_ENVIRONMENT, so that individual tests can augment it.
83055
83056         * gnulib-tool (func_create_testdir): Use an intermediate target for
83057         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
83058         macros, like $(ALLOCA_H), which cannot be passed through the command
83059         line.
83060
83061 2005-10-15  Simon Josefsson  <jas@extundo.com>
83062
83063         * modules/rijndael-tests: New file.
83064
83065         * modules/rijndael: New file.
83066
83067 2005-10-15  Simon Josefsson  <jas@extundo.com>
83068
83069         * m4/rijndael.m4: New file.
83070
83071 2005-10-15  Simon Josefsson  <jas@extundo.com>
83072
83073         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
83074
83075         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
83076
83077 2005-10-14  Simon Josefsson  <jas@extundo.com>
83078
83079         * tests/test-arcfour.c: New file.
83080
83081         * modules/arcfour, modules/arcfour-tests: New files.
83082
83083 2005-10-14  Simon Josefsson  <jas@extundo.com>
83084
83085         * m4/arcfour.m4: New file.
83086
83087 2005-10-14  Simon Josefsson  <jas@extundo.com>
83088
83089         * lib/arcfour.h, lib/arcfour.c: New files.
83090
83091 2005-10-14  Roland McGrath  <roland@redhat.com>
83092
83093         Import from libc.  [BZ #1331]
83094         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
83095         macro argument.
83096         Reported by Matej Vela <vela@debian.org>.
83097
83098 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83099
83100         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
83101         include <wchar.h>; no longer needed.
83102
83103 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83104
83105         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
83106
83107 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
83108         and  Ulrich Drepper  <drepper@redhat.com>
83109
83110         Import from libc.
83111         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
83112         instead of inline stream orientation test and two separate
83113         function calls.  Pay no attention to USE_IN_LIBIO.
83114
83115 2005-10-13  Simon Josefsson  <jas@extundo.com>
83116
83117         * modules/gc-hmac-md5-tests: New file.
83118
83119         * tests/test-gc-hmac-sha1.c: New file.
83120
83121         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
83122
83123         * modules/gc-hmac-md5-tests: New file.
83124
83125         * tests/test-gc-md5.c: New file.
83126
83127         * modules/gc-md5-tests: New file.
83128
83129 2005-10-13  Simon Josefsson  <jas@extundo.com>
83130
83131         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
83132         Move memory allocation outside of loop.
83133
83134 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
83135
83136         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
83137         intermediate directory is in a read-only file system.  Problem
83138         reported by Eric Blake.
83139
83140 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
83141
83142         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
83143
83144 2005-10-12  Simon Josefsson  <jas@extundo.com>
83145
83146         * tests/test-hmac-sha1.c: New file.
83147
83148         * modules/hmac-sha1-tests: New file.
83149
83150         * modules/hmac-sha1: New file.
83151
83152 2005-10-12  Simon Josefsson  <jas@extundo.com>
83153
83154         * modules/gc-sha1: New file.
83155
83156 2005-10-12  Simon Josefsson  <jas@extundo.com>
83157
83158         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
83159
83160         * tests/test-gc-pbkdf2-sha1.c: New file.
83161
83162 2005-10-12  Simon Josefsson  <jas@extundo.com>
83163
83164         * modules/gc-md5, modules/gc-hmac-md5: New files.
83165
83166         * modules/gc (Files): Remove md5, memxor and hmac files.
83167
83168 2005-10-12  Simon Josefsson  <jas@extundo.com>
83169
83170         * m4/gc-pbkdf2-sha1.m4: New file.
83171
83172         * m4/gc-hmac-sha1.m4: New file.
83173
83174         * m4/gc-sha1: New file.
83175
83176         * m4/hmac-sha1.m4: New file.
83177
83178 2005-10-12  Simon Josefsson  <jas@extundo.com>
83179
83180         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
83181
83182         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
83183
83184 2005-10-12  Simon Josefsson  <jas@extundo.com>
83185
83186         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
83187         suggested by Bruno Haible <bruno@clisp.org>.
83188
83189 2005-10-12  Simon Josefsson  <jas@extundo.com>
83190
83191         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
83192
83193 2005-10-12  Simon Josefsson  <jas@extundo.com>
83194
83195         * lib/gc-pbkdf2-sha1.c: New file.
83196
83197         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
83198
83199 2005-10-12  Simon Josefsson  <jas@extundo.com>
83200
83201         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
83202
83203         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
83204
83205 2005-10-12  Simon Josefsson  <jas@extundo.com>
83206
83207         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
83208         GC_USE_HMAC_MD5, respectively.
83209
83210         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
83211         (gc_md5): Fix typo.
83212
83213         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
83214
83215         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
83216
83217         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
83218
83219 2005-10-12  Bruno Haible  <bruno@clisp.org>
83220
83221         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
83222         Reported by Stepan Kasal <kasal@ucw.cz>.
83223
83224 2005-10-11  Simon Josefsson  <jas@extundo.com>
83225
83226         * tests/test-crc.c: New file.
83227
83228         * modules/crc, modules/crc-tests: New files.
83229
83230 2005-10-11  Simon Josefsson  <jas@extundo.com>
83231
83232         * m4/crc.m4: New file.
83233
83234 2005-10-11  Simon Josefsson  <jas@extundo.com>
83235
83236         * lib/gc.h: Add gc_hash and gc_hash_buffer.
83237
83238         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
83239
83240         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
83241
83242 2005-10-11  Simon Josefsson  <jas@extundo.com>
83243
83244         * lib/crc.h, lib/crc.c: New files.
83245
83246         * lib/gc.h (gc_hash_buffer): Add doc.
83247
83248 2005-10-11  Bruno Haible  <bruno@clisp.org>
83249
83250         * modules/c-strcasestr: New file.
83251         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
83252
83253 2005-10-11  Bruno Haible  <bruno@clisp.org>
83254
83255         * modules/c-strcase: New file.
83256         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
83257
83258 2005-10-11  Bruno Haible  <bruno@clisp.org>
83259
83260         * lib/strcasecmp.c: Include limits.h.
83261         (strcasecmp): Avoid integer overflow on exotic platforms.
83262         * lib/strncasecmp.c: Include limits.h.
83263         (strncasecmp): Avoid integer overflow on exotic platforms.
83264         Reported by Paul Eggert.
83265
83266 2005-10-11  Bruno Haible  <bruno@clisp.org>
83267
83268         * lib/c-strcasestr.h: New file, from GNU gettext.
83269         * lib/c-strcasestr.c: New file, from GNU gettext.
83270
83271 2005-10-11  Bruno Haible  <bruno@clisp.org>
83272
83273         * lib/c-strcase.h: New file, from GNU gettext.
83274         * lib/c-strcasecmp.c: New file, from GNU gettext.
83275         * lib/c-strncasecmp.c: New file, from GNU gettext.
83276
83277 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83278
83279         * modules/mempcpy (License): GPL -> LGPL.
83280         * modules/strchrnul (License): Likewise.
83281         * modules/sysexits (License): Likewise.
83282
83283 2005-10-08  Simon Josefsson  <jas@extundo.com>
83284
83285         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
83286
83287 2005-10-07  Simon Josefsson  <jas@extundo.com>
83288
83289         * m4/memxor.m4: Remove gl_C_RESTRICT call.
83290
83291 2005-10-06  Simon Josefsson  <jas@extundo.com>
83292
83293         * tests/test-hmac-md5.c: New file.
83294
83295         * modules/hmac-md5-tests: New file.
83296
83297         * modules/hmac-md5: New file.
83298
83299 2005-10-06  Simon Josefsson  <jas@extundo.com>
83300
83301         * m4/hmac-md5.m4: New file.
83302
83303         * m4/memxor.m4: Require gl_C_RESTRICT.
83304
83305 2005-10-06  Simon Josefsson  <jas@extundo.com>
83306
83307         * lib/memxor.c (memxor): Avoid casts and warnings.
83308
83309 2005-10-06  Simon Josefsson  <jas@extundo.com>
83310
83311         * lib/hmac-md5.c: New file.
83312
83313         * lib/hmac.h: New file.
83314
83315 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83316
83317         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
83318         promotes to int, not unsigned int, to catch the AIX 5.3
83319         compiler bug.
83320
83321 2005-10-05  Simon Josefsson  <jas@extundo.com>
83322
83323         * modules/memxor: New file.
83324
83325         * modules/iconv (Files): Move config.rpath to havelib, it is used
83326         there.
83327
83328         * modules/havelib (Files): Add config.rpath.
83329
83330 2005-10-05  Simon Josefsson  <jas@extundo.com>
83331
83332         * m4/memxor.m4: New file.
83333
83334 2005-10-05  Simon Josefsson  <jas@extundo.com>
83335
83336         * lib/memxor.c (memxor): Fix compiler error.
83337
83338         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
83339         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
83340
83341         * lib/memxor.h, lib/memxor.c: New files.
83342
83343         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
83344         we assume all systems have it, suggested by Jim Meyering
83345         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
83346         any systems lack sys/socket.h; mingw32 is known to lack it, but we
83347         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
83348         same reasons.
83349
83350 2005-10-05  Simon Josefsson  <jas@extundo.com>
83351
83352         * config/srclist.txt: Add glibc bug 1423 for md5.h.
83353
83354 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
83355
83356         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
83357         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
83358         needed, since the source code now assumes these .h files.
83359
83360 2005-10-05  Derek Price  <derek@ximbiot.com>
83361
83362         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
83363
83364 2005-10-05  Bruno Haible  <bruno@clisp.org>
83365
83366         * modules/stdint (License): Change to LGPL.
83367
83368 2005-10-04  Simon Josefsson  <jas@extundo.com>
83369
83370         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
83371         D. Baushke" <mdb@gnu.org>.
83372
83373 2005-10-04  Bruno Haible  <bruno@clisp.org>
83374
83375         * lib/verify.h (verify_true): Provide alternative definition for C++.
83376
83377 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
83378
83379         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
83380         (SSIZE_MAX): New macro, if not already defined.
83381         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
83382         than 2 GiB.
83383
83384 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83385
83386         Sync from coreutils.
83387         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
83388         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
83389         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
83390         ULLONG_MAX doesn't work with 2.7.2.1.
83391
83392 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83393
83394         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
83395         From Ben Pfaff.
83396
83397         * modules/exclude (Depends-on): Depend on verify.
83398         * modules/strtoimax (Depends-on): Likewise.
83399         * modules/utimecmp (Depends-on): Likewise.
83400
83401 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83402
83403         * lib/exclude.c: Include verify.h.
83404         (verify): Remove.  All callers changed to use verify.h's version.
83405         * lib/strtoimax.c: Likewise.
83406         * lib/utimecmp.c: Likewis.e
83407
83408         Sync from coreutils.
83409         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
83410         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
83411         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
83412         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
83413         bother returning ENOSYS if settimeofday or stime fails; just let
83414         them return whatever errno they want to return.
83415         * lib/utimens.c: Include unistd.h, for dup2.
83416         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
83417         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
83418
83419 2005-10-02  Jim Meyering  <jim@meyering.net>
83420
83421         Sync from coreutils.
83422         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
83423         from glibc-2.2.5 that fails for read-only files.
83424
83425 2005-10-02  Jim Meyering  <jim@meyering.net>
83426
83427         Sync from coreutils.
83428         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
83429         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
83430         `#if HAVE_CONFIG_H'.
83431         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
83432         Remove AT_FDCWD test.
83433         Do not consume the fd unless successful.
83434         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
83435         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
83436         block, so that we don't even try to compile it if settimeofday is
83437         available.  This works around a compilation failure on OSF1 V5.1,
83438         due to stime requiring a `long int*' while tv_sec is `int'.
83439
83440 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
83441
83442         Sync from coreutils.
83443         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
83444         against `yes', rather than just testing for nonempty.
83445
83446 2005-10-01  Simon Josefsson  <jas@extundo.com>
83447
83448         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
83449         and Darwin.
83450
83451         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
83452         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
83453         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
83454         freeaddrinfo and gai_strerror are declared by the POSIX headers.
83455         Check if struct addrinfo is declared.
83456
83457 2005-10-01  Simon Josefsson  <jas@extundo.com>
83458
83459         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
83460         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
83461         AI_* and EAI_* definitions.  Protect function declarations.
83462
83463 2005-10-01  Jim Meyering  <jim@meyering.net>
83464
83465         Sync from coreutils.
83466
83467         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
83468         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
83469         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
83470         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83471         in the inet and nsl libraries.  Required on Solaris 5.7.
83472
83473 2005-10-01  Jim Meyering  <jim@meyering.net>
83474
83475         Sync from coreutils.
83476         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83477         in the inet and nsl libraries.  Required on Solaris 5.7.
83478
83479 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
83480
83481         * lib/getdelim.c (getdelim): Remove unused variables.
83482
83483 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
83484
83485         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
83486         so that the code works even with ancient cpp.  Portability problem
83487         with GCC 2.7.2.1 reported by Thomas M.Ott.
83488
83489 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
83490
83491         * modules/regex (Depends-on): Add strcase.
83492
83493         * modules/gethostname (Licence): Change from GPL to LGPL, since
83494         gethostname.c is a trivial implementation of a standard library
83495         function.
83496         * modules/poll (License): Change from GPL to LGPL, since it's
83497         derived from LGPL code.
83498
83499 2005-09-27  Jim Meyering  <jim@meyering.net>
83500
83501         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
83502         HAVE_CONFIG_H.
83503
83504         * lib/intprops.h (signed_type_or_expr__): Define.
83505         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
83506         for unsigned types.
83507
83508 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
83509
83510         * lib/verify.h (verify_expr): Remove, replacing with:
83511         (verify_true): New macro that returns true instead of void.
83512         (verify_type__): Remove.
83513         (verify): Use verify_true rather than verify_type__.
83514
83515 2005-09-26  Bruno Haible  <bruno@clisp.org>
83516
83517         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
83518         is necessary.
83519         (lib_SOURCES): Remove mbchar.c.
83520         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
83521         (Files): Add m4/mbrtowc.m4.
83522         * modules/mbiter: Likewise.
83523         * modules/mbuiter: Likewise.
83524
83525 2005-09-26  Bruno Haible  <bruno@clisp.org>
83526
83527         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
83528         compile mbchar.c if they are not both present.
83529         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
83530         * m4/mbiter.m4 (gl_MBITER): Likewise.
83531         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
83532         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
83533         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
83534
83535 2005-09-25  Jim Meyering  <jim@meyering.net>
83536
83537         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
83538         also uses socklen_t.
83539
83540 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
83541
83542         * lib/utimens.c (ENOSYS): Define if not already defined.
83543         (futimens): Support having a null PATH if the file descriptor
83544         is nonnegative.
83545
83546         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
83547         Remove.
83548         (__attribute): Define to empty unless GCC 3.1 or later.
83549         This works around a core dump on OpenBSD 3.4, which has GCC
83550         2.95.3, which dumps core when given __attribute__(()).  It also
83551         simplifies other tests, since we really don't want to bother with
83552         worrying about which ancient version of GCC supported what.
83553         Original problem reported by Yoann Vandoorselaere, with part of
83554         the fix suggested by Derek Price.
83555
83556 2005-09-24  Jim Meyering  <jim@meyering.net>
83557
83558         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
83559         so we can once again use a positive bitfield width of 1 -- now we
83560         don't have to explain why we were using a bitfield width of 2.
83561
83562 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83563
83564         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
83565         and similarly for the other external symbols.  Problem reported
83566         by James Gallager.
83567
83568         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
83569         bug reported by Jim Meyering.
83570
83571         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
83572         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
83573         not needed, since socklen is a prerequisite module.
83574
83575 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83576
83577         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
83578         Problem reported by Eric Blake.
83579         (getaddrinfo): Initialize se so that it's not garbage.
83580         Redo internal storage allocation so that it doesn't make unportable
83581         assumptions about alignment.
83582         Fix a memory leak.
83583
83584         * lib/utimens.c (futimens): Use futimesat if available.
83585         Prefer it to futimes since it doesn't have the futimes bug.
83586
83587         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
83588         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
83589         Instead, declare a function that returns a pointer to an array,
83590         and use verify_type__ to declare the size of the array.
83591         Problem and germ of a solution reported by Bruno Haible.
83592         (verify_type__): Use 2, not 1, for bitfield size, to avoid
83593         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
83594
83595 2005-09-23  Jim Meyering  <jim@meyering.net>
83596
83597         Sync from coreutils.
83598         Correct build failure (socklen_t not defined) on at least
83599         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
83600         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
83601
83602 2005-09-23  Jim Meyering  <jim@meyering.net>
83603
83604         * modules/getaddrinfo (Depends-on): Add socklen.
83605
83606 2005-09-23  Bruno Haible  <bruno@clisp.org>
83607
83608         * tests/test-verify.c: New file.
83609
83610 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83611
83612         Sync from coreutils.
83613
83614         * modules/argmatch (Depends-on): Add verify.
83615         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
83616         unistd-safer.
83617         * modules/save-cwd (Depends-on): Likewise.
83618
83619         * modules/openat (Files): Add lib/openat-die.c.
83620         (Depends-on): Remove error, exitfail.
83621         Add dirname.
83622
83623         * modules/verify: New file.
83624         * MODULES.html.sh (Diagnostics <assert.h>): New section,
83625         with "verify" module.
83626
83627 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83628
83629         Sync from coreutils.
83630
83631         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
83632         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
83633         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
83634         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
83635         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
83636         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
83637         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
83638         Don't bother checking for string.h, stdlib.h, unistd.h.
83639         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
83640         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
83641         module's job.
83642         * m4/jm-macros.m4 (gl_MACROS): Likewise.
83643         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
83644
83645         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
83646         (gl_GETDATE): Use it.
83647
83648         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
83649
83650 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83651
83652         Sync from coreutils.
83653
83654         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
83655         stat-time.h.
83656         * lib/argmatch.h: Include verify.h
83657         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
83658         (ARGMATCH_ASSERT): Remove; unused.
83659         * lib/canonicalize.c: Assume STDC_HEADERS.
83660         * lib/exclude.c: Include "strcase.h".
83661         * lib/regex_internal.h [!defined _LIBC]: Likewise.
83662         * lib/getusershell.c: Include stdio--.h rather than stdio.h
83663         and stdio-safer.h.
83664         (getusershell): Call fopen, not fopen_safer.
83665         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
83666         Do not include unistd-safer.h.
83667         (save_cwd): Don't call fd_safer; no longer needed
83668         now that we include fcntl--.h.
83669
83670         * lib/getdate.y (relative_time): New type.
83671         (RELATIVE_TIME_0): New constant.
83672         (parser_control): Use relative_time instead of doing it ourselves.
83673         (%union): Add new relative_time rel member.
83674         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
83675         Now typeless.
83676         (relunit, relunit_snumber): Now of type rel.
83677         (zone, rel, relunit, get_date): Adjust to above changes.
83678
83679         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
83680         Do not include unistd-safer.h.
83681         (getloadavg): Don't call fd_safer; no longer needed
83682         now that we include fcntl--.h.
83683
83684         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
83685         (make_dir_parents): Treat ENOSYS like EEXIST.
83686
83687         Improve quality of diagnostics on restore_cwd failure.
83688         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
83689         (make_dir_parents): Last arg is now int * (for errno), not bool *.
83690         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
83691         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
83692         each time through the loop.  Do not diagnose restore_cwd failure;
83693         that is the caller's job (and perhaps the caller does not care).
83694
83695         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
83696         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
83697         If the file already exists but is not a directory, don't bother
83698         to try to make its parents.
83699         Close potential file descriptor leak if we can't chdir("/") (!).
83700         Don't always return true if chdir($PWD) fails; return true only
83701         if the requested action was done successfully (except for the
83702         chdir($PWD)).
83703         Don't log final directory unless we actually made it.
83704         Refactor to avoid duplicate code to fix up permissions.
83705         Don't attempt to fix up parent permissions if chdir($PWD) fails.
83706
83707         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
83708         to make it a bit faster and (I hope) clearer.
83709         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
83710         Fix bug in formats like %2N.
83711
83712         * lib/verify.h: New file.
83713
83714 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83715
83716         Sync from coreutils.
83717         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
83718
83719 2005-09-22  Jim Meyering  <jim@meyering.net>
83720
83721         Sync from coreutils.
83722
83723         * m4/lstat.m4 (gl_FUNC_LSTAT):
83724         Use AC_LIBSOURCES to require lstat.c and lstat.h.
83725         Remove obsolete comment.
83726         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
83727         * m4/xstrtod.m4: Likewise.
83728
83729         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
83730
83731 2005-09-22  Jim Meyering  <jim@meyering.net>
83732
83733         Sync from coreutils.
83734
83735         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
83736
83737         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
83738         the .tm_year member, since otherwise gcc-4.0 would now warn about
83739         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
83740
83741         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
83742         order to avoid an unsuppressible warning from gcc on 64-bit systems.
83743
83744         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
83745         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
83746         when run in a time zone for which daylight savings time is in effect
83747         for the starting date.
83748
83749         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
83750         stop us from restricting permissions of just-created absolute-named
83751         directories.
83752         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
83753         to restore initial working directory.
83754         * lib/mkdir-p.c (make_dir_parents): New parameter:
83755         different_working_dir, to tell caller if/when we change the working
83756         directory and are unable to return to the initial one.
83757         * lib/mkdir-p.h (make_dir_parents): Update prototype.
83758         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
83759         `return false'.  This fixes a bug introduced on 2004-07-30.
83760
83761         * lib/openat.c (fdopendir): Be sure to close the supplied
83762         file descriptor before returning.  This makes our replacement
83763         implementation a little closer to Solaris's, where fdopendir
83764         ties the file descriptor to the returned DIR* pointer.
83765         * lib/openat.c (unlinkat): New function.
83766         * lib/openat.h (unlinkat): Add prototype.
83767         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
83768         (openat_restore_fail): Rename from openat_restore_die.
83769         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
83770
83771         Provide an alternative to exiting immediately upon save_cwd or
83772         restore_cwd failure.  Now, an application can arrange e.g.,
83773         to perform a longjump in that case.
83774         * lib/openat.c: Include dirname.h.
83775         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
83776         (rpl_openat, fdopendir, fstatat): Call openat_save_die
83777         and openat_restore_die rather than calling error directly.
83778         Don't include "error.h" or "exitfail.h"; they're no longer needed.
83779
83780         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
83781         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
83782         define.
83783
83784         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
83785         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
83786                             int utc, int nanoseconds);
83787         Background:
83788         date should not have to allocate a megabyte of virtual memory to
83789         handle a format argument like +%1048575T.  When implemented with
83790         strftime, it must allocate such a buffer, use strftime to fill it
83791         in, print it, then free it.
83792         With fprintftime, it simply prints everything and exits.
83793         With no need for memory allocation, that's one fewer way to fail.
83794         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
83795         optional field width, not before, so we accept %9:z, not %:9z.
83796         (my_strftime): Be sure to use L_('x') for literals.
83797
83798         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
83799         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
83800         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
83801         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
83802         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
83803         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
83804         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
83805         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
83806         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
83807         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
83808         * lib/xgethostname.c, lib/xreadlink.c:
83809         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
83810
83811         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
83812         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
83813         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
83814         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83815         and don't include <sys/file.h>).
83816
83817 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
83818
83819         Sync from coreutils.
83820
83821         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
83822         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
83823         [!LDAV_DONE]: Avoid unused variable warning.
83824
83825 2005-09-21  Bruno Haible  <bruno@clisp.org>
83826
83827         * lib/unicodeio.h (unicode_to_mb): New declaration.
83828
83829 2005-09-20  Derek Price  <derek@ximbiot.com>
83830
83831         * lib/getaddrinfo.c: Don't include <netdb.h> included from
83832         getaddrinfo.h.
83833
83834 2005-09-20  Bruno Haible  <bruno@clisp.org>
83835
83836         * gnulib-tool: Remove trailing slashes from the values specified for
83837         --source-base, --m4-base, --tests-base, --aux-dir.
83838         Suggested by Simon Josefsson <jas@extundo.com>.
83839
83840 2005-09-20  Bruno Haible  <bruno@clisp.org>
83841
83842         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
83843         func_modules_to_filelist, func_import, func_create_testdir): Make all
83844         sorting results locale-independent, so that gnulib-cache.m4 doesn't
83845         change when gnulib-tool is invoked in a different locale.
83846
83847 2005-09-19  Simon Josefsson  <jas@extundo.com>
83848
83849         * m4/socklen.m4: Fix typo.
83850
83851 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83852
83853         Use a consistent style for including <config.h>.
83854         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
83855         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
83856         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
83857         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
83858         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
83859         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
83860         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
83861         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
83862         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
83863         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
83864         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
83865         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
83866         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
83867         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
83868         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
83869         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
83870         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
83871         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
83872         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
83873         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
83874         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
83875         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
83876         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
83877         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
83878         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
83879         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
83880         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
83881         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
83882         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
83883         lib/xstrtoumax.c, lib/yesno.c:
83884         Standardize inclusion of config.h.
83885         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
83886         lib/inttostr.h:  Removed inclusion of config.h from header files.
83887         * lib/inttostr.c:  Adjusted in-tree users.
83888         * lib/timespec.h: Remove superfluous warning to include config.h.
83889         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
83890         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
83891         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
83892         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
83893         config.h with HAVE_CONFIG_H.
83894
83895 2005-09-19  Jim Meyering  <jim@meyering.net>
83896
83897         * modules/pathmax (License): Change to LGPL.
83898
83899 2005-09-19  Derek Price  <derek@ximbiot.com>
83900
83901         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
83902
83903 2005-09-19  Bruno Haible  <bruno@clisp.org>
83904
83905         * gnulib-tool (import): Provide default for --tests-base.
83906
83907 2005-09-19  Bruno Haible  <bruno@clisp.org>
83908
83909         * doc/quote.texi: New file, extracted from gnulib.texi.
83910         * doc/ctime.texi: New file, extracted from gnulib.texi.
83911         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
83912         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
83913         * doc/gnulib.texi: Include them.
83914
83915 2005-09-18  Bruno Haible  <bruno@clisp.org>
83916
83917         Portability fix.
83918         * gnulib-tool (func_readlink): New function.
83919         (func_ln_if_changed): Use it.
83920
83921 2005-09-18  Bruno Haible  <bruno@clisp.org>
83922
83923         * gnulib-tool: Support --with-tests also with --import.
83924         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
83925         (func_import): Use variables $testsbase and $inctests. Emit a
83926         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
83927         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
83928         SUBDIRS += $testsdir.
83929         (func_create_testdir): Update.
83930
83931 2005-09-18  Bruno Haible  <bruno@clisp.org>
83932
83933         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
83934         instead of $dry_run.
83935         (func_cp_if_changed, func_mv_if_changed): Remove functions.
83936         (func_ln_if_changed): Don't handle dry-run here.
83937         (func_import): In dry-run mode, detect more precisely which actions
83938         would be performed, and don't use "...ing" verbs.
83939
83940 2005-09-18  Bruno Haible  <bruno@clisp.org>
83941
83942         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
83943         (func_import): Use join on two temporary files instead of three nested
83944         loops, in order to determine which files are new or old.
83945
83946 2005-09-18  Bruno Haible  <bruno@clisp.org>
83947
83948         * gnulib-tool (func_import): Comment out code that spits out the
83949         new files with --dry-run.
83950
83951 2005-09-18  Bruno Haible  <bruno@clisp.org>
83952
83953         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
83954
83955 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83956
83957         * lib/stat-time.h: New file.
83958         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
83959         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
83960         in a different way.
83961         (timespec_cmp): New function.
83962         * lib/utimecmp.c: Include stat-time.h.
83963         (SYSCALL_RESOLUTION): Depend on whether various struct stat
83964         members exist, not on the obsolescent ST_MTIM_NSEC.
83965         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
83966
83967 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83968
83969         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
83970
83971 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83972
83973         * MODULES.html.sh (File system functions): Add stat-time.
83974         * modules/stat-time: New file.
83975         * modules/timespec (Files): Remove m4/st_mtim.m4; this
83976         is now done in a different way, by the stat-time module.
83977         * modules/utimecmp (Depends-on): Add stat-time.
83978
83979 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
83980
83981         * m4/st_mtim.m4: Remove.  Superseded by...
83982         * m4/stat-time.m4: New file.
83983         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
83984         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
83985
83986 2005-09-15  Derek Price  <derek@ximbiot.com>
83987
83988         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
83989
83990 2005-09-15  Derek Price  <derek@ximbiot.com>
83991
83992         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
83993         * lib/regex_internal.c: Ditto, using this...
83994         (__GNUC_PREREQ): ...new macro.
83995         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
83996         using...
83997         (__GNUC_PREREQ): ...this new macro.
83998
83999         * lib/strstr.h: Include string.h. Define strstr as a macro here.
84000
84001 2005-09-15  Derek Price  <derek@ximbiot.com>
84002             Paul Eggert  <eggert@cs.ucla.edu>
84003
84004         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
84005         changes, consolidating in...
84006         * lib/regex_internal.h: ...this file.
84007
84008 2005-09-13  Jim Meyering  <jim@meyering.net>
84009
84010         * lib/canon-host.c: Filter through gnu indent and reword comments
84011         slightly.
84012         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
84013
84014 2005-09-13  Derek Price  <derek@ximbiot.com>
84015
84016         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
84017         failure.
84018         Reported by Jim Meyering  <jim@meyering.net>.
84019
84020 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84021
84022         * lib/base64.c: Typo.
84023         (base64_encode): Put b64str in initialized data section.
84024
84025 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
84026
84027         Merge glibc and coreutils changes into gnulib, plus a few
84028         extra fixes.
84029         * lib/md5.c: Use #error rather than a string.
84030         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
84031         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
84032         (__attribute__): Define to empty for non recent-GCC.
84033         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
84034         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
84035         Renamed from their non-__ counterparts, with new macros replacing
84036         them if not _LIBC.  Add __THROW attribute.
84037         (rol): Remove.
84038         (struct md5_ctx): Align buffer if using GCC.
84039         * lib/sha1.h (struct sha1_ctx): Likewise.
84040         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
84041         The old name was backwards.
84042         (NOTSWAP): Remove; not used.
84043         (rol): New macro, moved here from md5.h.
84044         (sha1_process_block): Remove a FIXME that doesn't make sense.
84045
84046 2005-09-12  Derek Price  <derek@ximbiot.com>
84047
84048         Return usable errors from canon-host.
84049         * lib/canon-host.h: New file.
84050         * lib/canon-host.c (canon_host): Wrap...
84051         (canon_host_r): ...this new function, which now relies exclusively on
84052         getaddrinfo.
84053         (ch_strerror): New function.
84054         (last_cherror): New global.
84055         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
84056         interface.
84057         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
84058         void *.
84059         (freeaddrinfo): Free ai->ai_canonname when set.
84060
84061 2005-09-12  Derek Price  <derek@ximbiot.com>
84062
84063         Make canon-host require getaddrinfo.
84064         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
84065         AC_LIBSOURCE canon-host.h.  Call...
84066         (gl_PREREQ_CANON_HOST): ...this new function, which requires
84067         gl_GETADDRINFO.
84068         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
84069
84070 2005-09-12  Derek Price  <derek@ximbiot.com>
84071
84072         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
84073         LGPL.
84074         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
84075
84076 2005-09-12  Derek Price  <derek@ximbiot.com>
84077
84078         * lib/gai_strerror.c: Include config.h when available.  Include
84079         getaddrinfo.h before other headers to test interface.
84080         Reported by Larry Jones <lawrence.jones@ugs.com>.
84081
84082 2005-09-12  Derek Price  <derek@ximbiot.com>
84083             Paul Eggert  <eggert@cs.ucla.edu>
84084
84085         * modules/glob (Files): Add glob-libc.h.
84086
84087 2005-09-12  Derek Price  <derek@ximbiot.com>
84088             Paul Eggert  <eggert@cs.ucla.edu>
84089
84090         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
84091         glob_.h, glob-libc.h.
84092         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
84093
84094 2005-09-12  Derek Price  <derek@ximbiot.com>
84095             Paul Eggert  <eggert@cs.ucla.edu>
84096
84097         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
84098         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
84099         protecting things that should be done only in gnulib contexts.
84100         * lib/glob_.h: New file, containing only the glob things needed for
84101         gnulib.
84102         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
84103         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
84104         (glob, globfree, glob_pattern_p): Now defined simply in terms of
84105         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
84106         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
84107         and to respect the namespace rules better.
84108
84109 2005-09-08  Simon Josefsson  <jas@extundo.com>
84110
84111         * modules/socklen: New file.
84112
84113 2005-09-08  Simon Josefsson  <jas@extundo.com>
84114
84115         * m4/socklen.m4: New file.
84116
84117 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84118
84119         * modules/utimens (Files): Add m4/utimbuf.m4, since
84120         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
84121         Reported by Sergey Poznyakoff.
84122
84123 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84124
84125         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
84126         definitions, since that's the preferred style in glibc.
84127         Fix a minor spacing issue, and update copyright notice to match
84128         glibc's.
84129
84130 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84131
84132         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
84133
84134 2005-09-06  Simon Josefsson  <jas@extundo.com>
84135
84136         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
84137         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
84138
84139 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84140
84141         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
84142         warning.
84143
84144 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84145
84146         * config/srclist.txt: Add glibc bug 1302.
84147
84148 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
84149
84150         Change bitset word type from unsigned int to unsigned long int,
84151         as this has better performance on typical 64-bit hosts.
84152         Port bitset code to hosts with unusual word sizes.
84153         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
84154         (build_collating_symbol):
84155         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
84156         argument is a bitset.  This is merely a style issue, but it makes
84157         it clearer that an entire array is expected.
84158         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
84159         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
84160         Port to the case where bitset_word is not the same as unsigned int.
84161         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84162         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
84163         Likewise.
84164         * lib/regexec.c (check_dst_limits_calc_pos_1,
84165         check_subexp_matching_top):
84166         (build_trtable, group_nodes_into_DFAstates):
84167         Likewise.
84168         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
84169         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
84170         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
84171         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
84172         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
84173         * lib/regcomp.c (optimize_subexps, lower_subexp):
84174         Work even if bitset_word has holes in its bitwise representation.
84175         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
84176         * lib/regexec.c (check_dst_limits_calc_pos_1,
84177         check_subexp_matching_top):
84178         Likewise.
84179         * lib/regex_internal.c (re_string_reconstruct):
84180         Don't assume UCHAR_MAX == 255.
84181         * lib/regex_internal.h (bitset_set_all): Likewise.
84182         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
84183         All uses changed.
84184         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
84185         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
84186         All uses changed.
84187         (BITSET_WORD_MAX): New macro.
84188         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
84189         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
84190         (bitset_empty, bitset_copy):
84191         Prefer sizeof (bitset) to multiplying it out ourselves.
84192         (bitset_not_merge): Remove; unused.
84193         (bitset_contain): Return bool, not unsigned int with one bit on.
84194         All callers changed.
84195         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
84196         alignment than re_node_set; do this by defining a new internal
84197         type struct dests_alloc and using it to allocate memory.
84198
84199 2005-09-05  Bruno Haible  <bruno@clisp.org>
84200
84201         * gnulib-tool (func_import): Fix comparison in handling of symbolic
84202         links.
84203
84204 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
84205
84206         * modules/size_max (Makefile.am): Add size_max.h
84207
84208 2005-09-04  Derek Price  <derek@ximbiot.com>
84209
84210         * gnulib-tool (func_import): Fix reversed $symbolic logic.
84211
84212 2005-09-03  Simon Josefsson  <jas@extundo.com>
84213
84214         * gnulib-tool: Fix typo.
84215
84216 2005-09-03  Simon Josefsson  <jas@extundo.com>
84217
84218         * config/srclist.txt: Add glibc bug 1293.
84219
84220 2005-09-03  Derek Price  <derek@ximbiot.com>
84221
84222         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
84223         From Larry Jones <lawrence.jones@ugs.com>.
84224
84225 2005-09-02  Simon Josefsson  <jas@extundo.com>
84226
84227         * modules/socklen: New file.
84228
84229 2005-09-02  Simon Josefsson  <jas@extundo.com>
84230
84231         * modules/havelib: New module.
84232
84233         * modules/gettext, modules/iconv, modules/lock, modules/readline:
84234         Use havelib.
84235
84236 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84237
84238         Check for arithmetic overflow when calculating sizes, to prevent
84239         some buffer-overflow issues.  These patches are conservative, in the
84240         sense that when I couldn't determine whether an overflow was possible,
84241         I inserted a run-time check.
84242         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
84243         macros.
84244         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
84245         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
84246         (re_xnrealloc, re_x2nrealloc): New inline functions.
84247         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
84248         parse_bracket_exp):
84249         (build_equiv_class, build_charclass): Check for arithmetic overflow
84250         in size expression calculations.
84251         * lib/regex_internal.c (re_string_realloc_buffers):
84252         (build_wcs_upper_buffer, re_node_set_add_intersect):
84253         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
84254         (re_dfa_add_node, register_state): Likewise.
84255         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
84256         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
84257         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
84258         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
84259
84260 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84261
84262         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84263         m4/ulonglong.m4.  Problem reported by Martin Lambers.
84264
84265 2005-09-02  Bruno Haible  <bruno@clisp.org>
84266
84267         Support for lib vs. lib64 distinction on biarch platforms.
84268         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
84269         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
84270         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
84271
84272 2005-09-02  Bruno Haible  <bruno@clisp.org>
84273
84274         * gnulib-tool (import): In the other first-use case, provide defaults
84275         as well.
84276
84277 2005-09-02  Bruno Haible  <bruno@clisp.org>
84278
84279         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
84280         patches not yet found in the latest gettext release.
84281
84282 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84283
84284         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
84285         to avoid a collision with bits/local_lim.h in glibc.
84286         All uses changed.  Problem reported by Dmitry V. Levin in
84287         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
84288
84289         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
84290         bugs in int versus size_t comparisons.
84291         (re_string_context_at): Fix bug where the code assumed that
84292         Idx is signed.
84293
84294         Use bool where appropriate.
84295         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
84296         All callers changed.
84297         (calc_eclosure_iter): Likewise, for ROOT arg.
84298         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
84299         (build_charclass_op): Likewise, for NON_MATCH arg.
84300         * lib/regex_internal.c (re_string_allocate, re_string_construct):
84301         (re_string_construct_common): Likewise, for ICASE arg.
84302         * lib/regexec.c (re_search_2_stub, re_search_stub):
84303         Likewise, for RET_LEN arg.
84304         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
84305         (set_regs): Likewise, for FL_BACKTRACK arg.
84306         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
84307         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
84308         (calc_eclosure_iter, parse_bracket_exp):
84309         Use bool for internal variables that are booleans.
84310         * lib/regexec.c (re_search_internal, check_matching,
84311         proceed_next_node):
84312         (set_regs, build_sifted_states, sift_states_bkref):
84313         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
84314         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84315         (find_collation_sequence_value):
84316         Likewise.
84317         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
84318         (re_node_set_compare):
84319         Return bool, not int. All callers changed.
84320         * lib/regexec.c (check_halt_node_context, check_dst_limits):
84321         (build_trtable, check_node_accept): Likewise.
84322         * lib/regex_internal.h: Include stdbool.h.
84323
84324         Fix bugs uncovered when converting to bool.
84325         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
84326         failure instead of charging ahead blindly.
84327         * lib/regex_internal.c (register_state): Likewise.
84328         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
84329         for freeing internal storage.
84330         (group_nodes_into_DFA_states): Use unsigned int, not int, for
84331         bitset pieces used as boolean, to avoid undefined behavior
84332         on hosts that do int overflow checking.
84333
84334 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84335
84336         * config/srclist.txt: Add glibc bugs 1285-1287.
84337
84338 2005-09-01  Jim Meyering  <jim@meyering.net>
84339
84340         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
84341         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
84342         Require gl_STAT_MACROS, too.
84343
84344 2005-09-01  Bruno Haible  <bruno@clisp.org>
84345
84346         * gnulib-tool (import): In the first-use case, provide defaults.
84347
84348 2005-09-01  Bruno Haible  <bruno@clisp.org>
84349
84350         * gnulib-tool (func_import): Remove the .tmp files.
84351
84352 2005-09-01  Bruno Haible  <bruno@clisp.org>
84353
84354         * gnulib-tool (func_import): Fix handling of symbolic links.
84355
84356 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84357
84358         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
84359         old glibc regex code mishandles strings longer than 2**31 bytes.
84360         This patch fixes this when the regex code is used in gnulib
84361         (i.e., outside glibc).
84362
84363         This patch should not affect the use of the regex code inside
84364         glibc.  No doubt this problem also needs to be handled for glibc
84365         as well, but the result will be an incompatible change to the
84366         glibc ABI, and the old ABI will have to be supported too.  That
84367         can be the the subject for another patch.
84368
84369         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
84370         governing whether the rest of this patch is active.  By default,
84371         the macro is disabled and the patch has no effect.
84372         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
84373         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
84374         (struct re_pattern_buffer, re_search, re_search_2, re_match):
84375         (re_match_2, re_set_registers): Use the new types.
84376         * lib/regex_internal.h (Idx, re_hashval_t): New types.
84377         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
84378         New macros.
84379         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
84380         (re_string_context_at, bin_tree_t, re_dfastate_t):
84381         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
84382         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
84383         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
84384         (re_string_char_size_at, re_string_wchar_at):
84385         (re_string_elem_size_at):
84386         Use the new types and macros to port to 64-bit hosts.
84387         Use unsigned types for internal values, so that the code
84388         mostly works even for arrays larger than SSIZE_MAX.
84389         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
84390         (search_duplicated_node, calc_eclosure_iter, fetch_number):
84391         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
84392         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
84393         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
84394         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
84395         (calc_inveclosure, parse_dup_op, build_range_exp):
84396         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
84397         (fetch_number, create_token_tree, mark_opt_subexp):
84398         Likewise.
84399         * lib/regex_internal.c (re_string_construct_common,
84400         create_ci_newstate):
84401         (create_cd_newstate, re_string_allocate, re_string_construct):
84402         (re_string_realloc_buffers, build_wcs_upper_buffer):
84403         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84404         (re_string_reconstruct, re_string_peek_byte_case):
84405         (re_string_fetch_byte_case, re_string_context_at):
84406         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84407         (re_node_set_init_copy, re_node_set_add_intersect):
84408         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84409         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84410         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84411         (re_acquire_state, re_acquire_state_context, register_state):
84412         Likewise.
84413         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
84414         search_cur_bkref_entry):
84415         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
84416         (re_search_internal, re_search_2_stub, re_search_stub)
84417         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
84418         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
84419         (update_cur_sifted_state, check_dst_limits):
84420         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84421         (check_subexp_limits, sift_states_bkref, merge_state_array):
84422         (check_subexp_matching_top, get_subexp, get_subexp_sub):
84423         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
84424         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84425         (expand_bkref_cache, check_node_accept_bytes):
84426         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
84427         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
84428         (acquire_init_state_context, check_halt_node_context):
84429         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
84430         (sift_states_backward, clean_state_log_if_needed):
84431         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
84432         (find_recover_state, transit_state_sb, transit_state_mb):
84433         (transit_state_bkref, build_trtable, match_ctx_clean):
84434         Likewise.
84435         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
84436         to work around an assumption that REG_MISSING is negative.
84437
84438         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
84439         (seek_collating_symbol_entry) [defined _LIBC]:
84440         (lookup_collation_sequence_value) [defined _LIBC]:
84441         (build_range_exp, build_collating_symbol) [defined _LIBC]:
84442         Use prototypes rather than old-style function definitions.
84443         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
84444         (transit_state_sb) [0]:
84445         (find_collation_sequence_value) [defined _LIBC]: Likewise.
84446
84447         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
84448         rm_eo.
84449
84450         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
84451         (optimize_subexps, lower_subexp):
84452         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
84453         since the signed shift might overflow.  Use 1u<<31 instead.
84454         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84455         Likewise.
84456         * lib/regexec.c (check_dst_limits_calc_pos_1,
84457         check_subexp_matching_top): Likewise.
84458
84459         * lib/regcomp.c (optimize_subexps, lower_subexp):
84460         Use CHAR_BIT rather than 8, for clarity.
84461         * lib/regexec.c (check_dst_limits_calc_pos_1):
84462         (check_subexp_matching_top): Likewise.
84463         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
84464         have to worry about portability issues when shifting it left.
84465         Remove no-longer-needed test for table_size > 0.
84466         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
84467         in a word, as the resulting behavior is undefined.
84468         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
84469         in one case, a <= should have been an <, and in another case the
84470         whole test was missing.
84471         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
84472         the standard name CHAR_BIT.
84473         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
84474         this is not true on one's complement and signed-magnitude hosts.
84475
84476         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
84477         next_last_offset.
84478         (struct re_dfa_t): Remove unused member states_alloc.
84479         * lib/regcomp.c (init_dfa): Don't initialize unused members.
84480
84481 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84482
84483         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
84484         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
84485         and large-file glibc and in 32-bit large-file Solaris.
84486
84487 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84488
84489         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
84490         lengths fit in regoff_t; this isn't true if regoff_t is the same
84491         width as size_t.
84492         * lib/regex.c (re_search_internal): 5th arg is LAST_START
84493         (= START + RANGE) instead of RANGE.  This avoids overflow
84494         problems when regoff_t is the same width as size_t.
84495         All callers changed.
84496         (re_search_2_stub): Check for overflow when adding the
84497         sizes of the two strings.
84498         (re_search_stub): Check for overflow when adding START
84499         to RANGE; if it occurs, substitute the extreme value.
84500
84501 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84502
84503         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
84504
84505 2005-08-31  Jim Meyering  <jim@meyering.net>
84506
84507         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
84508         a pointer-to-const.
84509         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
84510         (register_state): Likewise.
84511         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
84512         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84513         (group_nodes_into_DFAstates): Likewise.
84514
84515 2005-08-31  Jim Meyering  <jim@meyering.net>
84516
84517         * check-module: Add a FIXME comment.
84518
84519 2005-08-31  Eric Blake  <ebb9@byu.net>
84520
84521         * modules/unistd-safer (Files): Add unistd--.h.
84522         * modules/stdio-safer (Files): Add stdio--.h.
84523
84524 2005-08-31  Derek Price  <derek@ximbiot.com>
84525
84526         * lib/getdelim.c (getdelim): Return EOF on EOF.
84527         Reported by Larry Jones <lawrence.jones@ugs.com>.
84528
84529 2005-08-31  Bruno Haible  <bruno@clisp.org>
84530
84531         Avoid unnecessary diffs in the generated lib/Makefile.am.
84532         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
84533         the generated files.
84534         (func_import): Don't set cmd.
84535
84536 2005-08-31  Bruno Haible  <bruno@clisp.org>
84537
84538         * lib/strstr.c: Include <stddef.h>, for NULL.
84539         * lib/strcasestr.c: Likewise.
84540         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84541
84542 2005-08-31  Bruno Haible  <bruno@clisp.org>
84543
84544         * gnulib-tool: New option --macro-prefix.
84545         (func_import): Use macro_prefix.
84546         (import): Handle option --macro-prefix.
84547
84548 2005-08-31  Bruno Haible  <bruno@clisp.org>
84549
84550         * gnulib-tool (import): Rename most ac_* variables to cached_*.
84551         Also use new variables cached_lgpl, cached_libtool.
84552
84553 2005-08-31  Bruno Haible  <bruno@clisp.org>
84554
84555         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
84556         always instantiating them.
84557
84558 2005-08-31  Bruno Haible  <bruno@clisp.org>
84559
84560         * gnulib-tool (func_import): Read the previous cached settings
84561         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
84562         earlier added by gnulib but are now dropped. Warn when a gnulib file
84563         overwrites a non-gnulib file.
84564
84565 2005-08-31  Bruno Haible  <bruno@clisp.org>
84566
84567         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
84568         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
84569         projects that don't keep autogenerated files in CVS. Put into
84570         actioncmd only the specified modules, not the transitive closure.
84571
84572 2005-08-31  Bruno Haible  <bruno@clisp.org>
84573
84574         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
84575         Create directories that shall be filled.
84576         (import): Don't look for gl_* macros in configure.ac. Recurse across
84577         all directories containing a gnulib-cache.m4 files, if meaningful.
84578
84579 2005-08-31  Bruno Haible  <bruno@clisp.org>
84580
84581         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
84582         (import): Set seen_libtool when we see gl_LIBTOOL.
84583
84584 2005-08-31  Bruno Haible  <bruno@clisp.org>
84585
84586         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
84587         declaration macro definitions from generated gnulib.m4.
84588
84589 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
84590
84591         * lib/iconvme.h: Add prototype for iconv_alloc.
84592
84593 2005-08-29  Simon Josefsson  <jas@extundo.com>
84594
84595         * lib/iconvme.c: Fix errno.
84596
84597 2005-08-29  Bruno Haible  <bruno@clisp.org>
84598
84599         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
84600         that it works when the directory contains spaces.
84601
84602 2005-08-29  Bruno Haible  <bruno@clisp.org>
84603
84604         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
84605
84606 2005-08-29  Bruno Haible  <bruno@clisp.org>
84607
84608         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
84609         Emit more advice.
84610
84611 2005-08-29  Bruno Haible  <bruno@clisp.org>
84612         and Stepan Kasal  <kasal@ucw.cz>
84613
84614         * check-module: If more parameters are given, check each of them
84615         separately; add more exceptions, as noted by Jim Meyering.
84616         (check_module): New procedure.
84617         (%exempt_header): Now contains all exceptions.
84618
84619 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
84620
84621         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
84622
84623 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84624
84625         * lib/iconvme.c: Split iconv_string into iconv_alloc.
84626
84627 2005-08-28  Bruno Haible  <bruno@clisp.org>
84628
84629         * m4/gnulib-tool.m4: New file.
84630
84631 2005-08-27  Jim Meyering  <jim@meyering.net>
84632
84633         * modules/unistd-safer (Files): Add pipe-safer.c.
84634         * modules/fcntl-safer (Files): Add creat-safer.c.
84635
84636 2005-08-27  Jim Meyering  <jim@meyering.net>
84637
84638         * m4/stdlib-safer.m4: New file.  From coreutils.
84639         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
84640         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
84641         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
84642         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
84643         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
84644
84645 2005-08-27  Jim Meyering  <jim@meyering.net>
84646
84647         * lib/fopen-safer.c: Merge minor changes from coreutils.
84648         * lib/dup-safer.c: Likewise.
84649         * lib/fd-safer.c: Likewise.
84650
84651         Merge from coreutils.
84652         * lib/stdio--.h: New file.
84653         * lib/stdlib--.h: New file.
84654         * lib/mkstemp-safer.c: New file.
84655
84656         GNU tar needs these.
84657         * lib/pipe-safer.c: New file.
84658         * lib/creat-safer.c: New file.
84659         * lib/fcntl--.h (creat): Define to creat_safer.
84660         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
84661         * lib/unistd--.h (pipe): Define to pipe_safer.
84662         * lib/unistd-safer.h: Declare pipe_safer.
84663
84664 2005-08-26  Simon Josefsson  <jas@extundo.com>
84665
84666         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
84667         Haible <bruno@clisp.org>.
84668
84669 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
84670
84671         * lib/regex_internal.h: Remove all references to
84672         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
84673         or better.
84674         (bitset_not, bitset_merge, bitset_not_merge):
84675         (bitset_mask, re_string_allocate, re_string_construct):
84676         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
84677         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
84678         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
84679         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
84680         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84681         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84682         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
84683         (re_acquire_state_context):
84684         Remove unnecessary forward decls.
84685         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
84686         Put __attribute at function definition,
84687         now that the function decl has been removed.
84688         * lib/regex_internal.c (re_string_peek_byte_case):
84689         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
84690         Likewise.
84691
84692 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
84693
84694         * m4/regex.m4: Add AC_PREREQ(2.50).
84695         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
84696
84697 2005-08-25  Simon Josefsson  <jas@extundo.com>
84698
84699         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
84700         __fsetlocking.
84701
84702 2005-08-25  Simon Josefsson  <jas@extundo.com>
84703
84704         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
84705         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
84706         GLIBC specific code.
84707
84708 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84709
84710         Make regex safe for g++.  This fixes one real bug (an "err"
84711         that should have been "*err").  g++ problem reported by
84712         Sam Steingold.
84713         * lib/regex_internal.h (re_calloc): New macro, consistent with
84714         re_malloc etc.  All callers of calloc changed to use re_calloc.
84715         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
84716         not int.  All callers changed.
84717         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
84718         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
84719         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
84720         (find_recover_state): Change "err" to "*err"; this fixes what
84721         appears to be a real bug.
84722         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
84723         versus int.
84724
84725 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84726
84727         * modules/regex (Depends-on): Add malloc, since the code
84728         assumes that !malloc(0) means failure.
84729
84730 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84731
84732         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
84733
84734         alloca modernization/simplification for regex.
84735         * lib/regex.c: Remove portability cruft for alloca.  This no longer
84736         needs to be at the start of the file, and can be moved into
84737         regex_internal.h and simplified.
84738         * lib/regex_internal.h: Include <alloca.h>.
84739         (__libc_use_alloca) [!defined _LIBC]: New macro.
84740         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
84741         now works outside glibc.
84742
84743 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84744
84745         * config/srclist.txt: Add glibc bugs 1241, 1245.
84746
84747 2005-08-25  Jim Meyering  <jim@meyering.net>
84748
84749         * lib/open-safer.c: Include <config.h>.
84750         Otherwise, we'd lose LARGEFILE support in any file using
84751         e.g. "fcntl--.h"
84752
84753 2005-08-25  Bruno Haible  <bruno@clisp.org>
84754
84755         * m4/minmax.m4: Require autoconf 2.52.
84756         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
84757         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
84758         alternatives of translit over the alphabet.
84759         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
84760
84761 2005-08-24  Simon Josefsson  <jas@extundo.com>
84762
84763         * tests/test-getpass.c: New file.
84764
84765 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84766
84767         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
84768         for GNU regex features.
84769
84770 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84771
84772         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
84773         * lib/regex.h (regerror): Likewise.
84774
84775         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
84776         requires this.  (The code never needed it.)
84777
84778         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
84779         All uses of recently-renamed identifiers changed to use the new,
84780         POSIX-compliant names.  The code will build and run just fine
84781         without these changes, but it's better to eat our own dog food
84782         and use the standard-conforming names.
84783
84784         * lib/regex.h: Fix a multitude of POSIX name space violations.
84785         These changes have an effect only for programs that define
84786         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
84787         do not change anything for programs compiled in the normal way.
84788         Also, there is no effect on the ABI.
84789
84790         (_REGEX_SOURCE): New macro.
84791         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
84792         defined and _GNU_SOURCE is not; this fixes a name space violation.
84793
84794         Rename the following macros to obey POSIX requirements.
84795         The old names are still visible as macros if _REGEX_SOURCE is defined.
84796         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
84797         RE_BACKSLASH_ESCAPE_IN_LISTS.
84798         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
84799         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
84800         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
84801         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
84802         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
84803         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
84804         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
84805         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
84806         (REG_INTERVALS): renamed from RE_INTERVALS.
84807         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
84808         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
84809         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
84810         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
84811         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
84812         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
84813         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
84814         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
84815         RE_UNMATCHED_RIGHT_PAREN_ORD.
84816         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
84817         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
84818         (REG_DEBUG): renamed from RE_DEBUG.
84819         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
84820         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
84821         unusual, since we can't clash with the POSIX REG_ICASE.
84822         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
84823         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
84824         (REG_NO_SUB): renamed from RE_NO_SUB.
84825         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
84826         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
84827         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
84828         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
84829         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
84830         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
84831         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
84832         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
84833         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
84834         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
84835         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
84836         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
84837         RE_SYNTAX_POSIX_MINIMAL_BASIC.
84838         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
84839         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
84840         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
84841         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
84842         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
84843         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
84844         (REG_FIXED): Renamed from REGS_FIXED.
84845         (REG_NREGS): Renamed from RE_NREGS.
84846
84847         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
84848         of other REG_* macros, since POSIX says the user is allowed to
84849         #undef these macros selectively.
84850
84851         (reg_errcode_t): Update comment stating what other tables need
84852         to be consistent.
84853
84854         Rename the following enum values to obey POSIX requirements.
84855         The old names are still visible as macros.
84856         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
84857         is not defined, since GNU is supposed to be a superset of POSIX as
84858         much as possible, and since we want reg_errcode_t to be a signed
84859         type for implementation consistency.
84860         (_REG_NOERROR): Renamed from REG_NOERROR.
84861         (_REG_NOMATCH): Renamed from REG_NOMATCH.
84862         (_REG_BADPAT): Renamed from REG_BADPAT.
84863         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
84864         (_REG_ECTYPE): Renamed from REG_ECTYPE.
84865         (_REG_EESCAPE): Renamed from REG_EESCAPE.
84866         (_REG_ESUBREG): Renamed from REG_ESUBREG.
84867         (_REG_EBRACK): Renamed from REG_EBRACK.
84868         (_REG_EPAREN): Renamed from REG_EPAREN.
84869         (_REG_EBRACE): Renamed from REG_EBRACE.
84870         (_REG_BADBR): Renamed from REG_BADBR.
84871         (_REG_ERANGE): Renamed from REG_ERANGE.
84872         (_REG_ESPACE): Renamed from REG_ESPACE.
84873         (_REG_BADRPT): Renamed from REG_BADRPT.
84874         (_REG_EEND): Renamed from REG_EEND.
84875         (_REG_ESIZE): Renamed from REG_ESIZE.
84876         (_REG_ERPAREN): Renamed from REG_ERPAREN.
84877         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
84878         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
84879         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
84880         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
84881
84882         (_REG_RE_NAME, _REG_RM_NAME): New macros.
84883         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
84884         changed.  But support the old name if the new one is not defined
84885         and if _REGEX_SOURCE.
84886
84887         Change the following member names in struct re_pattern_buffer.
84888         The old names are still supported if !_REGEX_SOURCE.
84889         The new names are always supported, regardless of _REGEX_SOURCE.
84890         (re_buffer): Renamed from buffer.
84891         (re_allocated): Renamed from allocated.
84892         (re_used): Renamed from used.
84893         (re_syntax): Renamed from syntax.
84894         (re_fastmap): Renamed from fastmap.
84895         (re_translate): Renamed from translate.
84896         (re_can_be_null): Renamed from can_be_null.
84897         (re_regs_allocated): Renamed from regs_allocated.
84898         (re_fastmap_accurate): Renamed from fastmap_accurate.
84899         (re_no_sub): Renamed from no_sub.
84900         (re_not_bol): Renamed from not_bol.
84901         (re_not_eol): Renamed from not_eol.
84902         (re_newline_anchor): Renamed from newline_anchor.
84903
84904         Change the following member names in struct re_registers.
84905         The old names are still supported if !_REGEX_SOURCE.
84906         The new names are always supported, regardless of _REGEX_SOURCE.
84907         (rm_num_regs): Renamed from num_regs.
84908         (rm_start): Renamed from start.
84909         (rm_end): Renamed from end.
84910
84911         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
84912         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
84913         Prepend __ to parameter names.
84914
84915         Undo yesterday's changes.
84916
84917 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84918
84919         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
84920         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
84921         lib/regex.c.
84922
84923 2005-08-24  Jim Meyering  <jim@meyering.net>
84924
84925         Sync from coreutils.
84926         * m4/fcntl-safer.m4: New file.
84927
84928         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
84929         and object files for this module.
84930
84931 2005-08-24  Jim Meyering  <jim@meyering.net>
84932
84933         Sync from coreutils.
84934         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
84935
84936 2005-08-24  Jim Meyering  <jim@meyering.net>
84937
84938         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
84939         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
84940
84941 2005-08-24  Jim Meyering  <jim@meyering.net>
84942
84943         * modules/fcntl-safer: New module.
84944         * modules/fts (Depends-on): Add fcntl-safer.
84945         * MODULES.html.sh (File descriptor based Input/Output):
84946         Add fcntl-safer.
84947
84948 2005-08-24  Bruno Haible  <bruno@clisp.org>
84949
84950         Support for unit test modules.
84951         * modules/README: Mention tests modules.
84952         * modules/TEMPLATE-TESTS: New file.
84953         * gnulib-tool: New options --extract-tests-module, --with-tests and
84954         --tests-base (unused for the moment).
84955         (testsbase, inctests): New variables.
84956         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
84957         (func_verify_module): Exclude TEMPLATE-TESTS.
84958         (func_verify_nontests_module, func_verify_tests_module): New functions.
84959         (func_get_dependencies): Add implicit dependency for tests modules.
84960         (func_get_tests_module): New function.
84961         (func_modules_transitive_closure): When --with-tests was specified,
84962         include the unit tests as well, unless explicitly avoided.
84963         (func_emit_lib_Makefile_am): Ignore the tests modules here.
84964         (func_emit_tests_Makefile_am): New function.
84965         (func_create_testdir): When --with-tests was specified, emit a
84966         tests/ directory.
84967         * MODULES.html.sh (Future developments): Update.
84968
84969 2005-08-24  Bruno Haible  <bruno@clisp.org>
84970
84971         * modules/tls-tests: New file.
84972         * tests/test-tls.c: New file, from GNU gettext.
84973
84974 2005-08-24  Bruno Haible  <bruno@clisp.org>
84975
84976         * modules/lock-tests: New file.
84977         * tests/test-lock.c: New file, from GNU gettext.
84978
84979 2005-08-24  Bruno Haible  <bruno@clisp.org>
84980
84981         * lib/lock.h: Add multiple inclusion guard.
84982         * lib/tls.h: Add multiple inclusion guard.
84983
84984 2005-08-24  Bruno Haible  <bruno@clisp.org>
84985
84986         * gnulib-tool: Add support for the --aux-dir option to
84987         --create-testdir, --create-megatestdir, --test, --megatest.
84988         (func_create_testdir, func_create_megatestdir): Optionally emit a
84989         AC_CONFIG_AUX_DIR directive.
84990         (create-testdir, create-megatestdir, test, megatest): Provide a
84991         default value for $auxdir.
84992
84993 2005-08-24  Bruno Haible  <bruno@clisp.org>
84994
84995         * gnulib-tool (import): Use compound statement instead of subshell
84996         where possible.
84997
84998 2005-08-24  Bruno Haible  <bruno@clisp.org>
84999
85000         * gnulib-tool (import): Change --aux-dir default to "build-aux".
85001
85002 2005-08-24  Bruno Haible  <bruno@clisp.org>
85003
85004         * gnulib-tool (func_version): Update.
85005
85006 2005-08-24  Bruno Haible  <bruno@clisp.org>
85007
85008         * gnulib-tool (func_import, func_create_testdir,
85009         func_create_megatestdir): Quote all autoconf macro arguments.
85010
85011 2005-08-24  Bruno Haible  <bruno@clisp.org>
85012
85013         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
85014         option --force, because --force causes the aclocal.m4 of each
85015         subdirectory to be newer than the corresponding config.h.in.
85016
85017 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85018
85019         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
85020         All contents moved to gl_REGEX.
85021         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
85022         assume that it does.
85023
85024 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85025
85026         * lib/regex.h (REG_NOSYS)
85027         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
85028         Define, since POSIX requires it as of 2001.
85029         (_REG_ENOSYS)
85030         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
85031         New private symbol, used to keep the enum signed in all cases.
85032         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
85033         Youngman in
85034         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
85035
85036         * lib/regex_internal.c (re_string_skip_chars, register_state):
85037         (calc_state_hash):
85038         Remove forward decls; no longer needed now that we use prototypes.
85039         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
85040         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
85041         (clean_state_log_if_needed): Likewise.
85042
85043 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85044
85045         * config/srclist.txt: Add glibc bugs 1231-1233.
85046
85047 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85048
85049         Fix problems reported by Sam Steingold in
85050         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
85051         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
85052         assumed that reg_errcode_t is a signed type, which is not
85053         necessarily true if _XOPEN_SOURCE is not defined.
85054         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
85055         since some compilers warn about it otherwise.
85056
85057 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85058
85059         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
85060         (init_word_char, create_initial_state, duplicate_node_closure):
85061         (fetch_token, peek_token_bracket, build_range_exp):
85062         (build_collating_symbol): Remove forward decls; no longer needed
85063         now that we use prototypes.
85064
85065         * lib/regcomp.c:
85066         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
85067         (re_compile_fastmap_iter, regcomp, regerror, regfree):
85068         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
85069         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
85070         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
85071         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
85072         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
85073         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
85074         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
85075         (build_range_exp, build_collating_symbol, parse_bracket_exp):
85076         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
85077         (build_charclass, build_charclass_op, fetch_number, create_tree):
85078         (create_token_tree, mark_opt_subexp, duplicate_tree):
85079         Use prototypes rather than old-style definitions.
85080
85081         * lib/regex_internal.c:
85082         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
85083         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
85084         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85085         (re_string_reconstruct, re_string_peek_byte_case):
85086         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
85087         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85088         (re_node_set_init_copy, re_node_set_add_intersect):
85089         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85090         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85091         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85092         (re_acquire_state, re_acquire_state_context, register_state):
85093         (create_ci_newstate, create_cd_newstate, free_state):
85094         Likewise.
85095         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
85096         re_search_2):
85097         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
85098         (re_search_internal, prune_impossible_nodes):
85099         (acquire_init_state_context, check_matching, static):
85100         (check_halt_node_context, check_halt_state_context, proceed_next_node):
85101         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
85102         (update_regs, sift_states_backward, build_sifted_states):
85103         (clean_state_log_if_needed, merge_state_array):
85104         (update_cur_sifted_state, add_epsilon_src_nodes):
85105         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
85106         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
85107         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
85108         (find_recover_state, check_subexp_matching_top, transit_state_mb):
85109         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
85110         (check_arrival, check_arrival_add_next_nodes):
85111         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85112         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85113         (check_node_accept_bytes, check_node_accept, extend_buffers):
85114         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
85115         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
85116         (sift_ctx_init):
85117         Likewise.
85118
85119         * lib/regex_internal.h:
85120         (re_string_allocate, re_string_construct, re_string_reconstruct):
85121         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
85122         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
85123         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
85124         (re_string_context_at, re_string_peek_byte_case):
85125         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
85126         is defined, since we now use prototypes always.
85127
85128         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
85129         C89 or better.  All uses removed.
85130
85131 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85132
85133         * config/srclist.txt: Add glibc bugs 1220-1227.
85134
85135 2005-08-20  Jim Meyering  <jim@meyering.net>
85136
85137         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
85138         of unused local, dfa.
85139
85140 2005-08-20  Bruno Haible  <bruno@clisp.org>
85141
85142         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
85143
85144 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85145
85146         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
85147         (re_node_set_insert_last, re_dfa_add_node):
85148         Rename local variables to avoid GCC shadowing warnings.
85149
85150 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85151
85152         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
85153         [defined lint]: Suppress bogus uninitialized-variable warnings.
85154
85155         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
85156         and let the caller return REG_ESPACE if out of space.  This
85157         removes an uninitialied-variable warning with GCC 4.0.1, and also
85158         avoids taking the address of a local variable.  All callers
85159         changed.
85160
85161 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85162
85163         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
85164         $LIBCSRC/posix/regexec.c.
85165         Add glibc bug 1217 for regcomp.c.
85166
85167 2005-08-19  Jim Meyering  <jim@meyering.net>
85168
85169         * lib/regexec.c (proceed_next_node): Redo local variables to
85170         avoid GCC shadowing warnings.
85171
85172 2005-08-18  Bruno Haible  <bruno@clisp.org>
85173
85174         * lib/strstr.c (strstr): Fix return value in multibyte case.
85175         * lib/strcasestr.c (strcasestr): Likewise.
85176
85177 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85178
85179         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
85180
85181 2005-08-17  Jim Meyering  <jim@meyering.net>
85182
85183         Make the %s format (seconds since the epoch) work for a negative
85184         number and when used with a zero-padded field width, e.g. %015s.
85185
85186         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
85187         label so that it precedes the code to set `digits'.  Otherwise,
85188         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
85189         print `00-22'.  Now, it prints `-0022', as it should.
85190
85191 2005-08-17  Bruno Haible  <bruno@clisp.org>
85192
85193         * modules/strstr (Files): Add m4/mbrtowc.m4.
85194         (Depends-on): Add mbuiter.
85195
85196 2005-08-17  Bruno Haible  <bruno@clisp.org>
85197
85198         * modules/strcasestr: New file.
85199         * MODULES.html.sh (String handling, based on ANSI C 89): Add
85200         strcasestr.
85201
85202 2005-08-17  Bruno Haible  <bruno@clisp.org>
85203
85204         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
85205
85206 2005-08-17  Bruno Haible  <bruno@clisp.org>
85207
85208         * modules/mbuiter: New file.
85209         * MODULES.html.sh (Extended multibyte and wide character utilities):
85210         Add mbuiter.
85211
85212 2005-08-17  Bruno Haible  <bruno@clisp.org>
85213
85214         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
85215         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
85216
85217 2005-08-17  Bruno Haible  <bruno@clisp.org>
85218
85219         * m4/strcasestr.m4: New file.
85220
85221 2005-08-17  Bruno Haible  <bruno@clisp.org>
85222
85223         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
85224         * lib/strstr.c: Completely rewritten, with multibyte locale support.
85225
85226 2005-08-17  Bruno Haible  <bruno@clisp.org>
85227
85228         * lib/strcasestr.h: New file.
85229         * lib/strcasestr.c: New file.
85230
85231 2005-08-17  Bruno Haible  <bruno@clisp.org>
85232
85233         * lib/strcasecmp.c: Use mbuiter.h.
85234
85235 2005-08-17  Bruno Haible  <bruno@clisp.org>
85236
85237         * lib/mbuiter.h: New file.
85238
85239 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
85240
85241         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
85242         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
85243         and gl_GETOPT are both invoked via different paths (as happens
85244         with GNU tar CVS because it uses both argp and getopt), the former
85245         wins.
85246
85247 2005-08-16  Bruno Haible  <bruno@clisp.org>
85248
85249         * modules/tls: New file.
85250         * MODULES.html.sh (Multithreading): Add tls.
85251
85252 2005-08-16  Bruno Haible  <bruno@clisp.org>
85253
85254         * modules/strnlen1: New file.
85255         * MODULES.html.sh (String handling): Add strnlen1.
85256
85257 2005-08-16  Bruno Haible  <bruno@clisp.org>
85258
85259         * modules/strcase (Files): Add m4/mbrtowc.m4.
85260         (Depends-on): Add strnlen1, mbchar.
85261
85262 2005-08-16  Bruno Haible  <bruno@clisp.org>
85263
85264         * modules/mbiter: New file.
85265         * MODULES.html.sh (Extended multibyte and wide character utilities):
85266         Add mbiter.
85267
85268 2005-08-16  Bruno Haible  <bruno@clisp.org>
85269
85270         * modules/mbfile: New file.
85271         * MODULES.html.sh (Extended multibyte and wide character utilities):
85272         Add mbfile.
85273
85274 2005-08-16  Bruno Haible  <bruno@clisp.org>
85275
85276         * modules/mbchar: New file.
85277         * MODULES.html.sh (Extended multibyte and wide character utilities):
85278         New section.
85279
85280 2005-08-16  Bruno Haible  <bruno@clisp.org>
85281
85282         * m4/tls.m4: New file, from GNU gettext.
85283
85284 2005-08-16  Bruno Haible  <bruno@clisp.org>
85285
85286         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
85287         always.
85288         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
85289
85290 2005-08-16  Bruno Haible  <bruno@clisp.org>
85291
85292         * m4/mbiter.m4: New file.
85293
85294 2005-08-16  Bruno Haible  <bruno@clisp.org>
85295
85296         * m4/mbfile.m4: New file.
85297
85298 2005-08-16  Bruno Haible  <bruno@clisp.org>
85299
85300         * m4/mbchar.m4: New file.
85301
85302 2005-08-16  Bruno Haible  <bruno@clisp.org>
85303
85304         * lib/tls.h: New file, from GNU gettext.
85305         * lib/tls.c: New file, from GNU gettext.
85306
85307 2005-08-16  Bruno Haible  <bruno@clisp.org>
85308
85309         * lib/strnlen1.h: New file.
85310         * lib/strnlen1.c: New file.
85311
85312 2005-08-16  Bruno Haible  <bruno@clisp.org>
85313
85314         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
85315         (mbi_init): Update.
85316         (mbi_avail, mbi_advance): Let the iteration end before the terminating
85317         NUL byte, not after it.
85318
85319 2005-08-16  Bruno Haible  <bruno@clisp.org>
85320
85321         * lib/strcase.h (strcasecmp): Add note in comments.
85322         * lib/strncasecmp.c: Use code from strcasecmp.c.
85323         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
85324         (strcasecmp): Work correctly in multibyte locales.
85325
85326 2005-08-16  Bruno Haible  <bruno@clisp.org>
85327
85328         * lib/mbiter.h: New file.
85329
85330 2005-08-16  Bruno Haible  <bruno@clisp.org>
85331
85332         * lib/mbfile.h: New file.
85333
85334 2005-08-16  Bruno Haible  <bruno@clisp.org>
85335
85336         * lib/mbchar.h: New file.
85337         * lib/mbchar.c: New file.
85338
85339 2005-08-16  Bruno Haible  <bruno@clisp.org>
85340
85341         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
85342         the valid ones. Makes the comparison operations transitive:
85343         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
85344         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
85345
85346 2005-08-15  Simon Josefsson  <jas@extundo.com>
85347
85348         * modules/ssize_t (License): Change to 'unlimited'.
85349
85350         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
85351
85352 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
85353
85354         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
85355         Add comments for each pending glibc patch.
85356
85357 2005-08-15  Bruno Haible  <bruno@clisp.org>
85358
85359         * lib/regex.h (__restrict_arr): Don't define to __restrict if
85360         __cplusplus is defined.
85361
85362 2005-08-14  Jim Meyering  <jim@meyering.net>
85363
85364         Sync from coreutils.
85365
85366         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
85367         Use the hash-table-based cycle-detection code not just when
85368         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
85369         Reported by James Youngman in
85370         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
85371         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
85372         FTS_TIGHT_CYCLE_CHECK.
85373         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
85374         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
85375         once again.
85376         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
85377         * lib/fts.c (fd_safer): Remove decl.
85378         Include fcntl--.h rather than unistd-safer.h
85379         (fts_safe_changedir): Don't call fd_safer; no longer needed
85380         now that we include fcntl--.h.
85381
85382 2005-08-12  Simon Josefsson  <jas@extundo.com>
85383
85384         * modules/getndelim2: Use ssize_t module.
85385         * modules/getnline: Likewise.
85386         * modules/safe-read: Likewise.
85387         * modules/xreadlink: Likewise.
85388
85389         * modules/ssize_t: New file.
85390
85391 2005-08-12  Simon Josefsson  <jas@extundo.com>
85392
85393         * m4/readline.m4: Look for termcap, curses or ncurses if required.
85394
85395 2005-08-12  Simon Josefsson  <jas@extundo.com>
85396
85397         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85398         ssize_t.
85399
85400 2005-08-12  Simon Josefsson  <jas@extundo.com>
85401
85402         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
85403         readline, getdelim and check_version.
85404         (Support for systems lacking ISO C 99: Sizes of integer types):
85405         Add size_max.
85406
85407 2005-08-12  Bruno Haible  <bruno@clisp.org>
85408
85409         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
85410
85411 2005-08-11  Simon Josefsson  <jas@extundo.com>
85412
85413         * modules/readline: New file.
85414
85415         * modules/strnlen (Files): Add strnlen.h.
85416
85417 2005-08-11  Simon Josefsson  <jas@extundo.com>
85418
85419         * m4/readline.m4: New file.
85420
85421 2005-08-11  Simon Josefsson  <jas@extundo.com>
85422
85423         * lib/readline.h, readline.c: New file.
85424
85425 2005-08-11  Simon Josefsson  <jas@extundo.com>
85426
85427         * doc/gnulib.texi (Initial import, Finishing touches): Mention
85428         gl_AVOID.
85429
85430 2005-08-11  Bruno Haible  <bruno@clisp.org>
85431
85432         * lib/strnlen.h (strnlen): Change parameter name to match comment.
85433
85434 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
85435
85436         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
85437
85438 2005-08-10  Simon Josefsson  <jas@extundo.com>
85439
85440         * tests/test-iconvme.c: New file.
85441
85442 2005-08-10  Simon Josefsson  <jas@extundo.com>
85443
85444         * m4/strnlen.m4: New file.
85445
85446         * m4/strndup.m4: Don't check for strnlen declaration, done in
85447         strnlen.m4.
85448
85449 2005-08-10  Simon Josefsson  <jas@extundo.com>
85450
85451         * lib/strndup.c: Use strnlen.h.
85452
85453         * lib/strnlen.h: New file.
85454
85455 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85456
85457         * README: Typos.
85458
85459 2005-08-02  Simon Josefsson  <jas@extundo.com>
85460
85461         * modules/readline: New file.
85462
85463 2005-08-02  Simon Josefsson  <jas@extundo.com>
85464
85465         * modules/getdelim: New file.
85466
85467         * modules/getline: Rewrite, don't use getndelim2.
85468
85469 2005-08-02  Simon Josefsson  <jas@extundo.com>
85470
85471         * m4/getline.m4: Separate out getdelim stuff into separate module.
85472
85473         * m4/getdelim.m4: New file.
85474
85475 2005-08-02  Simon Josefsson  <jas@extundo.com>
85476
85477         * lib/getline.h, getline.c: Rewrite.
85478
85479         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
85480
85481 2005-07-31  Bruno Haible  <bruno@clisp.org>
85482
85483         * lib/lock.h (gl_lock_initializer): New macro.
85484         (gl_lock_define_initialized): Use it.
85485         (gl_rwlock_initializer): New macro.
85486         (gl_rwlock_define_initialized): Use it.
85487         (gl_recursive_lock_initializer): New macro.
85488         (gl_recursive_lock_define_initialized): Use it.
85489
85490 2005-07-30  Karl Berry  <karl@gnu.org>
85491
85492         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
85493         Report from Ben Pfaff, regarding getopt.
85494
85495 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
85496
85497         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
85498         normal way.
85499         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
85500         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
85501         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
85502         (gl_GETOPT): Use the new macros.  Most of the implementation
85503         is moved to the new macros.  This is for programs like Emacs
85504         that don't want all the functionality of gl_GETOPT.
85505
85506 2005-07-26  Bruno Haible  <bruno@clisp.org>
85507
85508         * m4/lock.m4: Update from GNU gettext.
85509
85510 2005-07-26  Bruno Haible  <bruno@clisp.org>
85511
85512         * lib/lock.h: Update from GNU gettext.
85513         * lib/lock.c: Update from GNU gettext.
85514
85515 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
85516
85517         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
85518         obsolescent AC_TRY_RUN.  Include the default includes files, for
85519         'exit'.
85520
85521 2005-07-24  Bruno Haible  <bruno@clisp.org>
85522
85523         * modules/visibility: New file.
85524         * MODULES.html.sh (Misc): Add visibility.
85525
85526 2005-07-24  Bruno Haible  <bruno@clisp.org>
85527
85528         * m4/visibility.m4: New file.
85529
85530 2005-07-24  Bruno Haible  <bruno@clisp.org>
85531
85532         * doc/visibility.texi: New file.
85533
85534 2005-07-22  Bruno Haible  <bruno@clisp.org>
85535
85536         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
85537         $(ALLOCA_H), redundant through BUILT_SOURCES.
85538         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
85539         redundant through BUILT_SOURCES.
85540         * modules/byteswap (Makefile.am): Remove explicit dependency on
85541         $(BYTESWAP_H), redundant through BUILT_SOURCES.
85542         * modules/fnmatch (Makefile.am): Remove explicit dependency on
85543         $(FNMATCH_H), redundant through BUILT_SOURCES.
85544         * modules/getopt (Makefile.am): Remove explicit dependency on
85545         $(GETOPT_H), redundant through BUILT_SOURCES.
85546         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
85547         redundant through BUILT_SOURCES.
85548         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
85549         redundant through BUILT_SOURCES.
85550         * modules/stdbool (Makefile.am): Remove explicit dependency on
85551         $(STDBOOL_H), redundant through BUILT_SOURCES.
85552         * modules/stdint (Makefile.am): Remove explicit dependency on
85553         $(STDINT_H), redundant through BUILT_SOURCES.
85554         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
85555         Remove explicit dependency on $(SYSEXITS_H).
85556         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
85557
85558 2005-07-18  Simon Josefsson  <jas@extundo.com>
85559
85560         * lib/check-version.c (check_version): Accept identical versions too.
85561
85562 2005-07-18  Bruno Haible  <bruno@clisp.org>
85563
85564         * modules/lock: New file.
85565         * MODULES.html.sh (Multithreading): New section.
85566
85567 2005-07-18  Bruno Haible  <bruno@clisp.org>
85568
85569         * m4/lock.m4: New file, from GNU gettext.
85570
85571 2005-07-18  Bruno Haible  <bruno@clisp.org>
85572
85573         * lib/lock.h: New file, from GNU gettext.
85574         * lib/lock.c: New file, from GNU gettext.
85575
85576 2005-07-18  Bruno Haible  <bruno@clisp.org>
85577
85578         * lib/lock.h (gl_once_t): New type.
85579         (gl_once_define, gl_once): New macros.
85580         * lib/lock.c (fresh_once): New variable.
85581         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
85582         functions.
85583
85584 2005-07-16  Simon Josefsson  <jas@extundo.com>
85585
85586         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
85587         workaround, suggested by Bruno.
85588
85589 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85590
85591         * modules/xalloc (Depends-on): Add xalloc-die.
85592         * modules/xvasprintf (Depends-on): Add xalloc-die.
85593
85594 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85595
85596         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
85597         with a minor change.
85598
85599 2005-07-15  Bruno Haible  <bruno@clisp.org>
85600
85601         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
85602         When using lib/poll.c, define poll as rpl_poll.
85603
85604 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
85605
85606         * modules/argp (Depends-on): Remove unlocked-io.
85607
85608 2005-07-14  Derek Price  <derek@ximbiot.com>
85609
85610         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
85611         for glob symlink bug.
85612
85613 2005-07-14  Bruno Haible  <bruno@clisp.org>
85614
85615         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
85616         Instead, test for *_unlocked function declarations directly.
85617
85618 2005-07-11  Simon Josefsson  <jas@extundo.com>
85619
85620         * modules/size_max: New file.
85621
85622         * modules/xsize: Depend on size_max module for size_max.m4.
85623
85624 2005-07-11  Simon Josefsson  <jas@extundo.com>
85625
85626         * lib/size_max.h: New file.
85627
85628 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
85629
85630         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
85631         copyright symbol and the year.
85632         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
85633         (version_etc_va): Use parameterized copyright notice.
85634         Reword to conform to the current GNU coding standards.
85635
85636 2005-07-11  Karl Berry  <karl@gnu.org>
85637
85638         * doc/gnulib.texi (Quoting): new node.
85639         (Initial import): more info, from Patrice.
85640
85641 2005-07-11  Bruno Haible  <bruno@clisp.org>
85642
85643         * gnulib-tool (func_usage): Document option --avoid.
85644         (Command line options): Handle --avoid.
85645         (func_acceptable): New function.
85646         (func_modules_transitive_closure): Use it.
85647
85648 2005-07-11  Bruno Haible  <bruno@clisp.org>
85649
85650         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
85651         Reported by Jim Meyering.
85652
85653 2005-07-10  Bruno Haible  <bruno@clisp.org>
85654
85655         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
85656         Needed when size_t is smaller than 'unsigned int'.
85657         Reported by Paul Eggert.
85658
85659 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85660
85661         * modules/argp (Depends-on): Add unlocked-io
85662
85663 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85664
85665         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
85666         block of defines.
85667
85668 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
85669
85670         * config/srclist.txt: Comment out regcomp.c, since we have a porting
85671         fix now.
85672
85673 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
85674         and Paul Eggert  <eggert@cs.ucla.edu>
85675
85676         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
85677         in wint_t, not wchar_t.  Remove now-unnecessary cast.
85678
85679 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85680
85681         * modules/regex (Files): Add lib/regex_internal.c,
85682         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
85683         (Depends-on): Add extensions.
85684         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
85685
85686 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85687
85688         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
85689         pathconf.
85690         * m4/same.m4 (gl_SAME): Likewise.
85691         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
85692
85693         * m4/regex.m4: Adjust to new libc regex implementation.
85694         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
85695         all the .c and .h parts of (the new) regex.
85696         Quote the m4 stuff better.
85697         Check for RE_ICASE bug of old gnulib.
85698         Check for REG_STARTEND of recent libc.
85699         Rename local variables from jm_* to gl_*.
85700         Quote operand of "test -f".
85701         Say "recent enough" version of libc, not "version 2".
85702         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
85703         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
85704         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
85705         Remove check for btowc, isascii.
85706         Require AM_LANGINFO_CODESET.
85707
85708 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85709
85710         * lib/regex.c, regex.h: Sync from libc.
85711         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
85712         * lib/regexec.c:
85713         New files, synced from libc, except that regex_internal.h
85714         currently has a small porting fix.
85715
85716 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85717
85718         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
85719         regex_internal.c, regexec.c.
85720         Add regex_internal.h too, but as a comment, since the libc version
85721         is currently broken in gnulib mode.
85722
85723 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
85724
85725         Support programs like Emacs that use gnulib but not gettext.
85726         * MODULES.html.sh (Internationalization functions): Add gettext-h.
85727         * modules/gettext-h: New file.
85728         * modules/gettext (Files): Remove lib/gettext.h.
85729         (Depends-on): Add gettext-h.
85730         (Makefile.am): Remove lib_SOURCES.
85731         * modules/argmatch, modules/c-stack, modules/closeout:
85732         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
85733         * modules/execute, modules/file-type, modules/getaddrinfo:
85734         * modules/getopt, modules/human, modules/javacomp:
85735         * modules/javaexec, modules/mkdir-p, modules/obstack:
85736         * modules/openat, modules/pagealign_alloc, modules/pipe:
85737         * modules/quotearg, modules/regex, modules/rpmatch:
85738         * modules/unicodeio, modules/userspec, modules/version-etc:
85739         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
85740         * modules/xsetenv:
85741         Depend on gettext-h, not gettext.
85742
85743 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
85744
85745         * gnulib-tool (func_import): Add support for 'public domain' license.
85746         * modules/alloca, modules/atexit, modules/memmove:
85747         Now public domain, not GPL.
85748         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
85749         * modules/realloc, modules/strerror, modules/strtod:
85750         Now LGPL, not GPL.
85751
85752 2005-07-05  Bruno Haible  <bruno@clisp.org>
85753
85754         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
85755         autoconf CVS. Needed for mingw.
85756
85757 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85758
85759         Remove the dependency of the strftime module on the tzset module.
85760         * modules/strftime (Depends-on): Remove dependency on tzset.
85761
85762 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85763
85764         Remove the dependency of the strftime module on the tzset module.
85765         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
85766         gl_FUNC_TZSET_CLOBBER.
85767
85768 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85769
85770         Remove the dependency of the strftime module on the tzset module.
85771         * lib/strftime.c (my_strftime)
85772         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
85773         Copy the input structure, to work around some of the bug with
85774         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
85775         Solaris releases, you should also use the tzset module, but we won't
85776         require it as a dependency any more since we don't want LGPLed code
85777         to depend on GPLed code.
85778
85779 2005-07-02  Jim Meyering  <jim@meyering.net>
85780
85781         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
85782         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
85783         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
85784         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
85785
85786 2005-07-02  Jim Meyering  <jim@meyering.net>
85787
85788         * lib/backupfile.c (backup_args): Change a `0' to NULL.
85789
85790 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
85791
85792         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
85793         declares only 'struct timespec;' (!).
85794
85795 2005-07-01  Jim Meyering  <jim@meyering.net>
85796
85797         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
85798         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
85799         * lib/save-cwd.c, tempname.c:
85800         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85801         and don't include <sys/file.h>).
85802
85803 2005-06-29  Jim Meyering  <jim@meyering.net>
85804
85805         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
85806         type name.  Use the variable name instead.
85807         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
85808         Likewise.
85809
85810 2005-06-28  Simon Josefsson  <jas@extundo.com>
85811
85812         * modules/check-version (Files): Add check-version.m4.
85813
85814 2005-06-28  Simon Josefsson  <jas@extundo.com>
85815
85816         * m4/check-version.m4: New file, suggested by Jim Meyering
85817         <jim@meyering.net>.
85818
85819 2005-06-28  Simon Josefsson  <jas@extundo.com>
85820
85821         * lib/check-version.h, lib/check-version.c: New files.
85822
85823 2005-06-28  Simon Josefsson  <jas@extundo.com>
85824
85825         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
85826         collision with global variable.  Better indentation.  Don't
85827         increment buffer pointer beyond buffer end.  Based on comments
85828         from Paul Eggert <eggert@cs.ucla.edu>.
85829
85830         * lib/base64.h: Indent.
85831
85832 2005-06-28  Simon Josefsson  <jas@extundo.com>
85833
85834         * doc/gnulib.texi (Library version handling): New section.
85835
85836 2005-06-28  Jim Meyering  <jim@meyering.net>
85837
85838         * check-module (find_included_lib_files): Hard-code another
85839         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
85840         but modules/fts-lgpl (correctly) does not list those files.
85841
85842         * modules/canonicalize (Files): Add lib/pathmax.h.
85843
85844 2005-06-25  Simon Josefsson  <jas@extundo.com>
85845
85846         * modules/check-version: New file.
85847
85848 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
85849
85850         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
85851         initializer of struct addrinfo, as an indication that we don't
85852         care how many members the structure has.
85853
85854 2005-06-24  Derek Price  <derek@ximbiot.com>
85855         and Bruno Haible  <bruno@clisp.org>
85856
85857         Remove stat module & update lstat.
85858         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
85859         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85860         * m4/stat.m4: Remove this file.
85861
85862 2005-06-24  Derek Price  <derek@ximbiot.com>
85863         and Bruno Haible  <bruno@clisp.org>
85864
85865         Remove stat module & update lstat.
85866         * lib/stat.c: Remove this file...
85867         (slash_aware_lstat): ...moving this content and its support...
85868         * lib/lstat.c (rpl_lstat): ...into here.
85869         * lib/lstat.h: New file.
85870
85871 2005-06-24  Derek Price  <derek@ximbiot.com>
85872         and Bruno Haible  <bruno@clisp.org>
85873
85874         Remove stat module & update lstat.
85875         * config/srclist.txt (libc sources): Remove stat.
85876
85877 2005-06-24  Derek Price  <derek@ximbiot.com>
85878         and Bruno Haible  <bruno@clisp.org>
85879
85880         Remove stat module & update lstat.
85881         * MODULES.html.sh (stat): Remove.
85882         * MODULES.html: Regenerated.
85883         * modules/lstat (Description): Correct function name.
85884         (Files): Add "lstat.h".
85885         (Depends-on): Remove stat, add xalloc, stat-macros.
85886         * modules/stat: Remove this file.
85887         (Include): Add "lstat.h", remove <sys/stat.h>.
85888
85889 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85890
85891         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
85892         (ranged_convert): Don't save conversion in a temporary struct.
85893         This causes a warning with GCC 4.0.0, and anyway in the typical
85894         case it's not worth the extra 100 bytes or so of code.
85895         (ranged_convert, __mktime_internal): When calling a function via a
85896         pointer P, use P () rather than (*P) (), as we now assume C89 or
85897         better.
85898
85899 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85900
85901         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
85902         "who -r" failed to give output.  Problem reported by Tim Waugh.
85903
85904         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
85905         (xcalloc): Use it to avoid needless tests.
85906         Problem reported by Jim Meyering.
85907
85908 2005-06-20  Derek Price  <derek@ximbiot.com>
85909
85910         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
85911         unnecessary for Autoconfs > 2.59c.
85912
85913 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85914
85915         * lib/argp.h (__option_is_short): Check upper limit of
85916         __key. Isprint() requires its argument to have the value
85917         of an unsigned char or EOF.
85918
85919 2005-06-16  Jim Meyering  <jim@meyering.net>
85920
85921         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
85922         when either N or S is zero.
85923
85924 2005-06-16  Derek Price  <derek@ximbiot.com>
85925
85926         * m4/bison.m4: Declare YACC & YFLAGS precious.
85927
85928 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
85929
85930         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
85931         multibyte string or pattern, fall back on unibyte matching.
85932         Problem reported by James Youngman.
85933
85934 2005-06-08  Bruno Haible  <bruno@clisp.org>
85935
85936         * modules/csharpcomp: New file.
85937         * MODULES.html.sh (C#): Add csharpcomp.
85938
85939 2005-06-08  Bruno Haible  <bruno@clisp.org>
85940
85941         * m4/csharpcomp.m4: New file, from GNU gettext.
85942
85943 2005-06-08  Bruno Haible  <bruno@clisp.org>
85944
85945         * lib/csharpcomp.h: New file, from GNU gettext.
85946         * lib/csharpcomp.c: New file, from GNU gettext.
85947         * lib/csharpcomp.sh.in: New file, from GNU gettext.
85948
85949 2005-06-08  Bruno Haible  <bruno@clisp.org>
85950
85951         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
85952         warning on mingw.
85953
85954 2005-06-07  Derek Price  <derek@ximbiot.com>
85955
85956         Sync from CVS.
85957         * lib/glob_.h: Indent nested #ifdef.
85958
85959 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85960
85961         Sync from coreutils.
85962         Use "file name" when talking about file names, instead of "filename"
85963         or "path", as per the GNU coding standards.
85964         * lib/mkdir-p.c: Renamed from makepath.c.
85965         (make_dir_parents): Renamed from make_path.  All callers changed.
85966         * lib/mkdir-p.h: Likewise.  All includers changed.
85967         * lib/filenamecat.c: Renamed from path-concat.c.
85968         (file_name_concat): Renamed from path_concat.  All callers changed.
85969         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
85970         * lib/filenamecat.h: Likewise.  All includers changed.
85971         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
85972         in comments or local variable names.
85973         * lib/basename.c: Likewise.
85974         * lib/canonicalize.c, canonicalize.h: Likewise.
85975         * lib/dirname.c, dirname.h: Likewise.
85976         * lib/euidaccess.c: Likewise.
85977         * lib/exclude.c: Likewise
85978         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
85979         * lib/fsusage.c, fsuage.h: Likewise.
85980         * lib/fts.c, fts_.h: Likewise.
85981         * lib/getcwd.c: Likewise.
85982         * lib/getloadavg.c: Likewise.
85983         * lib/mkstemp.c: Likewise.
85984         * lib/mountlist.c, mountlist.h: Likewise.
85985         * lib/openat.c, openat.h: Likewise.
85986         * lib/readlink-stub.c: Likewise.
85987         * lib/readutmp.c, readutmp.h: Likewise.
85988         * lib/rename.c: Likewise.
85989         * lib/rmdir.c: Likewise.
85990         * lib/same.c: Likewise.
85991         * lib/savedir.c: Likewise.
85992         * lib/stripslash.c: Likewise.
85993         * lib/tempname.c: Likewise.
85994         * lib/xreadlink.c: Likewise.
85995         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
85996         All uses changed.
85997         * lib/exclude.h: Likewise.
85998
85999         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
86000         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86001         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
86002         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86003         * lib/pathmax.h: Include <limits.h> unconditionally, since other
86004         files have been getting away with it for years (MORE/BSD 4.3
86005         is extinct now).
86006         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
86007         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86008
86009         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
86010         Define to 256, not 255, as per modern POSIX.
86011
86012 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86013
86014         Sync from coreutils.
86015         Use "file name" when talking about file names, instead of "filename"
86016         or "path", as per the GNU coding standards.
86017         * MODULES.html.sh: mkdir-p renamed from makepath.
86018         filenamecat renamed from path-concat.
86019         * modules/filenamecat: Renamed from modules/path-concat.
86020         (Files): filenamecat.h and filenamecat.c renamed from
86021         path-concat.h and path-concat.c.
86022         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
86023         (Include): filenamecat.h, not path-concat.h.
86024         * modules/mkdir-p: Renamed from modules/makepath.
86025         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
86026         makepath.c.
86027         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
86028         (Include): mkdir-p.h, not makepath.h.
86029
86030 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86031
86032         Sync from coreutils.
86033         * m4/mkdir-p.m4: Renamed from makepath.m4.
86034         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
86035         Rename files from makepath.c to mkdir-p.c, and from
86036         makepath.h to mkdir-p.h.
86037         * m4/filenamecat.m4: Renamed from path-concat.m4.
86038         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
86039         Rename files from path-concat.c to filenamecat.c,
86040         and from path-concat.h to filenamecat.h.
86041         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
86042         "file name" in local variables or comments.
86043         * m4/rename.m4: Likewise.
86044
86045 2005-06-01  Bruno Haible  <bruno@clisp.org>
86046
86047         * modules/csharpexec: New file.
86048         * MODULES.html.sh (C#): New section.
86049
86050 2005-06-01  Bruno Haible  <bruno@clisp.org>
86051
86052         * m4/csharp.m4: New file, from GNU gettext.
86053         * m4/csharpexec.m4: New file, from GNU gettext.
86054
86055 2005-06-01  Bruno Haible  <bruno@clisp.org>
86056
86057         * lib/csharpexec.h: New file, from GNU gettext.
86058         * lib/csharpexec.c: New file, from GNU gettext.
86059         * lib/csharpexec.sh.in: New file, from GNU gettext.
86060
86061 2005-05-31  Derek Price  <derek@ximbiot.com>
86062             Paul Eggert  <eggert@cs.ucla.edu>
86063
86064         Sync from cvs.
86065         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86066
86067 2005-05-31  Derek Price  <derek@ximbiot.com>
86068             Paul Eggert  <eggert@cs.ucla.edu>
86069
86070         Sync from cvs.
86071         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86072
86073 2005-05-29  Derek Price  <derek@ximbiot.com>
86074
86075         * config/srclist.txt (glob_.h, glob.c): Add these files.
86076
86077 2005-05-29  Derek Price  <derek@ximbiot.com>
86078
86079         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
86080         * modules/glob: New file.
86081         * modules/getlogin_r: Add link to POSIX spec in description.
86082
86083 2005-05-29  Derek Price  <derek@ximbiot.com>
86084             Paul Eggert  <eggert@cs.ucla.edu>
86085
86086         * m4/glob.m4: New file.
86087
86088 2005-05-29  Derek Price  <derek@ximbiot.com>
86089             Paul Eggert  <eggert@cs.ucla.edu>
86090
86091         * lib/glob_.h, lib/glob.c: New files.
86092
86093 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86094
86095         * modules/fts (Files): Remove m4/inttypes-pri.m4.
86096         * modules/fts-lgpl (Depends-on): Remove gettext.
86097
86098 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86099
86100         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
86101         and don't require gt_INTTYPES_PRI.
86102
86103 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86104
86105         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
86106
86107         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
86108         the configuration hassle isn't worth it.
86109         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
86110         (LONGEST_MODIFIER, PRIuMAX): Remove.
86111
86112 2005-05-27  Bruno Haible  <bruno@clisp.org>
86113
86114         * lib/getlogin_r.h: Remove second include of <stddef.h>.
86115
86116 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
86117
86118         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
86119         _POSIX_PTHREAD_SEMANTICS for Solaris.
86120
86121 2005-05-25  Derek Price  <derek@ximbiot.com>
86122
86123         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
86124
86125 2005-05-25  Derek Price  <derek@ximbiot.com>
86126             Paul Eggert  <eggert@cs.ucla.edu>
86127
86128         * modules/getlogin_r, m4/getlogin_r.m4: New files.
86129         * lib/getlogin_r.c, getlogin_r.h: New files.
86130
86131 2005-05-25  Bruno Haible  <bruno@clisp.org>
86132             Derek Price  <derek@ximbiot.com>
86133
86134         * lib/getlogin_r.h: Simplify API documentation.
86135
86136 2005-05-23  Derek Price  <derek@ximbiot.com>
86137
86138         * modules/minmax (Files): Add m4/minmax.m4.
86139         (configure.ac): Add gl_MINMAX.
86140
86141 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
86142
86143         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
86144         so that unistd-safer.h (GPL'ed code) need not be included.
86145
86146 2005-05-22  Bruno Haible  <bruno@clisp.org>
86147
86148         * m4/minmax.m4: New file.
86149         Based on a patch by Derek Price <derek@ximbiot.com>.
86150
86151 2005-05-22  Bruno Haible  <bruno@clisp.org>
86152
86153         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
86154         (INT64_MIN): Fix definition.
86155         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
86156
86157         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
86158         NEED_SIGNED_INT_TYPES.
86159
86160         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
86161         HAVE_SYSTEM_INTTYPES.
86162
86163 2005-05-22  Bruno Haible  <bruno@clisp.org>
86164
86165         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
86166         Also include <sys/param.h> if it defines MIN, MAX.
86167         Based on a patch by Derek Price <derek@ximbiot.com>.
86168
86169 2005-05-21  Jim Meyering  <jim@meyering.net>
86170
86171         * modules/fts (Files): Add m4/inttypes-pri.m4.
86172         (Depends-on): Add lstat and remove gettext.  Alphabetize.
86173
86174 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86175
86176         New fts module.
86177         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
86178         (setup_dir, free_dir): New functions.
86179         (enter_dir, leave_dir): Define trivial
86180         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
86181         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
86182         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
86183         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
86184         Move to fts-cycle.c.
86185         (fts_open): Use setup_dir.
86186         (fts_close): Use free_dir.
86187         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
86188         This adds a label and some gotos, but the alternatives were messier.
86189         Check for memory allocation failure when entering a dir.
86190         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
86191         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
86192         (FTS): New member fts_cycle, that is a union that contains the
86193         old active_dir_ht and cycle_state.  All uses changed to mention
86194         fts_cycle.ht and fts_cycle.state.
86195         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
86196         fts.c, with the following changes:
86197         (setup_dir, free_dir): New functions.
86198         (enter_dir): Now returns bool.  Return true if successful, false
86199         if memory exhausted.  All callers changed.
86200         Do not bother partly cleaning up on
86201         memory allocation failure; that is free_dir's job.
86202         However, free ad if hash_insert fails, to avoid memory leak.
86203         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
86204         fts->fts_options to see which union member to use.
86205
86206 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86207
86208         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
86209         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
86210
86211 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86212
86213         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
86214
86215 2005-05-20  Jim Meyering  <jim@meyering.net>
86216
86217         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
86218         Now a macro, to pacify GCC.
86219
86220 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86221
86222         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
86223         of -1.
86224
86225 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86226
86227         * lib/chown.c (rpl_chown): Return -1 on failure.
86228
86229 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86230
86231         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
86232         Don't check for stddef.h.
86233         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
86234         don't use its results.
86235         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
86236         since we include them unconditionally.  Don't require
86237         AM_STDBOOL_H, since stdbool is a prerequisite.
86238         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
86239         since we assume C89 or better.
86240         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
86241         as we don't use their results.
86242         Don't check for fchdir, memmove, memset, strrchr, as we use
86243         them unconditionally.
86244         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
86245         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
86246
86247 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86248
86249         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
86250         Include <stddef.h> unconditionally, since we assume C89 now.
86251         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
86252         * lib/fts.c: Include fts_.h first, to check interface.
86253         Do not include intprops.h; no longer needed.
86254         Include cycle-check.h and hash.h, since fts_.h no longer does.
86255         Remove unnecessary casts of closedir to void.
86256         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
86257         decide whether to decrement nlinks.
86258         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
86259         (FTS): Use struct hash_table * instead of Hash_table, so that
86260         we no longer need to include hash.h here.
86261
86262 2005-05-18  Jim Meyering  <jim@meyering.net>
86263
86264         * modules/dirfd (License): Change to LGPL.  Most of the code
86265         is already in the public domain.
86266
86267 2005-05-18  Jim Meyering  <jim@meyering.net>
86268
86269         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
86270         Reported by Yoann Vandoorselaere.
86271
86272 2005-05-17  Jim Meyering  <jim@meyering.net>
86273
86274         * m4/fts.m4: New file, from coreutils.
86275
86276 2005-05-17  Jim Meyering  <jim@meyering.net>
86277
86278         * lib/fts.c, lib/fts_.h: New files, from coreutils.
86279
86280 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86281
86282         Sync from coreutils.
86283         * m4/unlinkdir.m4: New file.
86284
86285 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86286
86287         Sync from coreutils.
86288         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
86289         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
86290         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
86291         White space changes only.
86292         * lib/makepath.c (make_path): Port to hosts where leading "//" is
86293         special.
86294         * lib/yesno.c: Include getline.h, not ctype.h.
86295         (yesno): Don't remove leading white space; POSIX doesn't allow it.
86296         Use getline to remove arbitrary restriction on response length.
86297
86298 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86299
86300         * config/srclist-update: Spell out "Street" in FSF postal
86301         mail address; this is the style the FSF seems to prefer.
86302
86303         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
86304         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
86305         this updates FSF postal mail address.
86306
86307         Sync from coreutils.
86308         * modules/unlinkdir: New file.
86309         * modules/yesno (Depends-on): Add getline.
86310         * MODULES.html.sh (File system functions): Add unlinkdir.
86311
86312 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86313
86314         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
86315         lib/strsep.h:
86316         Change the initial comment to refer to GPL, not LGPL.
86317         gnulib-tool will change it to LGPL as needed.
86318
86319         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
86320         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
86321         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
86322         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
86323         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
86324         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
86325         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
86326         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
86327         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
86328         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
86329         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
86330         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
86331         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
86332         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
86333         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
86334         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
86335         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
86336         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
86337         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
86338         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
86339         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
86340         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
86341         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
86342         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
86343         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
86344         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
86345         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
86346         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
86347         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
86348         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
86349         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
86350         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
86351         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
86352         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
86353         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
86354         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
86355         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
86356         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
86357         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
86358         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
86359         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
86360         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
86361         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
86362         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
86363         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
86364         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
86365         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
86366         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
86367         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
86368         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
86369         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86370         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
86371         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
86372         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
86373         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
86374         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
86375         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
86376         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
86377         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
86378         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
86379         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
86380         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
86381         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
86382         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
86383         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
86384         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
86385         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
86386         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
86387         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
86388         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
86389         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
86390         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
86391         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
86392         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
86393         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
86394         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
86395         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
86396         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
86397         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
86398         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
86399         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
86400         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
86401         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
86402         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
86403         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
86404         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
86405         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
86406         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
86407         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
86408         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
86409         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
86410         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
86411         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
86412         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
86413         lib/yesno.c, lib/yesno.h:
86414         Update FSF postal mail address.
86415
86416 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86417
86418         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
86419         tests/test-memmem.c, tests/test-stpncpy.c:
86420         Update FSF postal mail address.
86421
86422 2005-05-13  Bruno Haible  <bruno@clisp.org>
86423
86424         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
86425         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
86426         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
86427         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
86428         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
86429         Add support for 64-bit integers in the MSVC compiler.
86430
86431 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86432
86433         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
86434
86435 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
86436
86437         * gnulib-tool (func_import): Sort and uniquify recommended includes.
86438
86439 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
86440
86441         * doc/getdate.texi (General date syntax): Don't say that date
86442         date --iso-8601=ns generates acceptable dates; it doesn't yet.
86443         Problem reported by Nic Ferrier.
86444
86445 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86446
86447         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
86448         specified in ai_socktype. Fix invalid ai_protocol
86449         check. ai_protocol is usually set to 0 or depending on
86450         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
86451         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
86452         ai_socktype / ai_protocol in the returned addrinfo structure.
86453
86454 2005-05-10  Simon Josefsson  <jas@extundo.com>
86455
86456         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
86457         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86458
86459 2005-05-10  Karl Berry  <karl@gnu.org>
86460
86461         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
86462         (from http://www.gnu.org/licenses).
86463         * doc/COPYING.LIB: also rename to COPYING.LESSER.
86464         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
86465         fdl.texi suffices.
86466
86467 2005-05-10  Karl Berry  <karl@gnu.org>
86468
86469         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
86470         (COPYING.DOC): remove.
86471
86472         * config/srclist-update: new FSF address.
86473
86474 2005-05-10  Derek Price  <derek@ximbiot.com>
86475
86476         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
86477         possible.
86478
86479 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86480             Bruno Haible  <bruno@clisp.org>
86481
86482         * modules/inet_ntop: New file.
86483         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86484         inet_ntop.
86485
86486 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86487             Bruno Haible  <bruno@clisp.org>
86488
86489         * m4/inet_ntop.m4: New file.
86490
86491 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86492             Bruno Haible  <bruno@clisp.org>
86493
86494         * lib/inet_ntop.h: New file.
86495         * lib/inet_ntop.c: New file, from glibc with modifications.
86496
86497 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
86498
86499         * modules/time_r (License): Change to LGPL.
86500         * modules/extensions (License): Change to LGPL.  Actually,
86501         the license is more permissive than that, but currently gnulib-tool
86502         doesn't know how to handle more-permissive licenses.
86503
86504         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
86505         Problem reported by Dave Love.
86506
86507 2005-05-08  Jim Meyering  <jim@meyering.net>
86508
86509         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
86510         blank.
86511
86512 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86513
86514         * modules/argmatch (Depends-on): Add stdbool.
86515         * modules/backupfile (Depends-on): Likewise.
86516         * modules/chdir-long (Depends-on): Likewise.
86517         * modules/closeout (Depends-on): Likewise.
86518         * modules/cycle-check (Depends-on): Likewise.
86519         * modules/dirname (Depends-on): Likewise.
86520         * modules/fnmatch (Depends-on): Likewise.
86521         * modules/fsusage (Depends-on): Likewise.
86522         * modules/fwriteerror (Depends-on): Likewise.
86523         * modules/getcwd (Depends-on): Likewise.
86524         * modules/getloadavg (Depends-on): Likewise.
86525         * modules/hard-locale (Depends-on): Likewise.
86526         * modules/makepath (Depends-on): Likewise.
86527         * modules/mountlist (Depends-on): Likewise.
86528         * modules/nanosleep (Depends-on): Likewise.
86529         * modules/posixtm (Depends-on): Likewise.
86530         * modules/quotearg (Depends-on): Likewise.
86531         * modules/readtokens (Depends-on): Likewise.
86532         * modules/readtokens0 (Depends-on): Likewise.
86533         * modules/readutmp (Depends-on): Likewise.
86534         * modules/save-cwd (Depends-on): Likewise.
86535         * modules/strftime (Depends-on): Likewise.
86536         * modules/userspec (Depends-on): Likewise.
86537         * modules/utimecmp (Depends-on): Likewise.
86538         * modules/xgetcwd (Depends-on): Likewise.
86539         * modules/xnanosleep (Depends-on): Likewise.
86540         * modules/xstrtod (Depends-on): Likewise.
86541         * modules/yesno (Depends-on): Likewise.
86542
86543 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
86544
86545         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
86546         needless checks.
86547
86548 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86549
86550         Merge from coreutils.  Among other things,
86551         add bulletproofing for cases where stdin, stdout, or stderr are closed.
86552         * lib/fd-safer.c: New file.
86553         * lib/fcntl-safer.h, open-safer.c: Remove.
86554         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
86555         * lib/dup-safer.c: Include unistd-safer.h first.
86556         Don't include errno.h.
86557         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
86558         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
86559         * lib/file-type.c: Rely on file-type.h change.
86560         * lib/getloadavg.c: Include unistd-safer.h.
86561         (getloadavg): Use safer open.
86562         * lib/getusershell.c: Include "stdio-safer.h".
86563         (getusershell): Use safer fopen.
86564         * lib/long-options.c (long_options): Use NULL rather than 0.
86565         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
86566         'free'.
86567         * lib/modechange.c: Likewise.
86568         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
86569         (MODE_DONE): New constant.
86570         (struct mode_change): Remove 'next' member.
86571         (make_node_op_equals): New function; like the old one of the
86572         same name, except it allocates an array.
86573         (mode_compile, mode_create_from_ref): Use it.
86574         (mode_compile): Allocate result as an array, not a linked list.
86575         Parse octal string ourself, so that we catch mistakes like "+0".
86576         (mode_adjust): Arg is an array, not a linked list.
86577         * lib/modechange.c: Include stat-macros.h, xalloc.h.
86578         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
86579         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
86580         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
86581         Remove.  This is now stat-macros.h's job.
86582         (talloc): Remove.  All callers replaced by xalloc, so that
86583         our invokers don't have to worry about reporting memory failures.
86584         (make_node_op_equals): Remove.
86585         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86586         New constants.
86587         (struct mode_change): Moved here from modechange.h.
86588         (mode_append_entry): Remove.
86589         (mode_compile): Remove MASKED_OPS arg, since it encouraged
86590         apps to have incorrect behavior.  Use simpler algorithm for head
86591         and tail.  Don't futz with umask; that's now the job of mode_adjust.
86592         Detect more invalid usages rather than having somewhat-random behavior.
86593         Don't insert an "a=" action, as that leads to incorrect behavior.
86594         (mode_compile, mode_create_from_ref): Return NULL on error instead
86595         of an enum, since now there's only one way to have an error.  All
86596         callers changed.
86597         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
86598         at the correct time.  Simplify calculation of "+u" and its ilk.
86599         Don't mishandle "+X".
86600         (mode_free): Remove "register" and localize decls.
86601         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86602         (struct mode_change): Move to modechange.c; callers don't
86603         need to see this stuff.
86604         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
86605         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
86606         (mode_change, mode_adjust): Reflect the new signatures noted above.
86607         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
86608         that might redefine system include files.
86609         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
86610         (my_usleep): Use NULL rather than (void *) 0.
86611         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
86612         Use siginterrupt to specify that system calls should be interrupted.
86613         (rpl_nanosleep): Move initialization of suspended closer to call of
86614         my_usleep.
86615         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
86616         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
86617         (desirable_utmp_entry): New function.
86618         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
86619         using x2nrealloc, to simplify logic.
86620         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
86621         size calculation.  Do not assume utmp file is a regular file.
86622         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
86623         (READ_UTMP_CHECK_PIDS): New constant.
86624         * lib/save-cwd.c: Include unistd-safer.h.
86625         (save_cwd): Use fd_safer.
86626         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
86627         [!_LIBC] Include "stat-macros.h" instead.
86628         * lib/unistd-safer.h (fd_safer): New decl.
86629
86630 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86631
86632         * modules/getloadavg (Depends-on): Add unistd-safer.
86633         * modules/getusershell (Depends-on): Add stdio-safer.
86634         * modules/lstat (Depends-on): Remove xalloc.
86635         * modules/mkstemp (Depends-on): Add stat-macros.
86636         * modules/modechange (Depends-on): Remove xstrtol.
86637         Add stat-macros, xalloc.
86638         * modules/save-cwd (Depends-on): Add unistd-safer.
86639         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
86640         * modules/unistd-safer (Files): Add lib/fd-safer.c
86641         (Makefile.am): Remove lib_SOURCES.
86642
86643         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
86644         Remove fcntl-safer; unistd-safer supersedes it.
86645
86646 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86647
86648         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
86649         AC_HEADER_STAT.
86650         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
86651         (gl_PREREQ_CHOWN): Remove.
86652         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
86653         it.  Don't require AC_HEADER_STAT.
86654         (gl_PREREQ_LSTAT): Remove.
86655         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
86656         Don't require AC_HEADER_STAT.
86657         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
86658         (gl_PREREQ_RMDIR): Remove.
86659         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
86660         mention stat-macros.h or AC_HEADER_STAT, since we'll make
86661         the stat-macros module a prerequisite.
86662         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
86663         * m4/filemode.m4 (gl_FILEMODE): Likewise.
86664         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
86665         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
86666         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
86667         variable names.
86668         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
86669         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
86670         variable prefixes.
86671         * m4/fcntl-safer.m4: Remove.
86672         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
86673         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
86674         Invoke gl_PREREQ_FD_SAFER.
86675         (gl_PREREQ_FD_SAFER): New macro.
86676         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
86677         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
86678         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
86679         Remove duplicate call to AC_LIBOBJ(readutmp).
86680         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
86681
86682         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
86683         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
86684
86685 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86686
86687         * MODULES.html.sh (Misc): Add byteswap.
86688
86689 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86690
86691         * modules/getcwd (Depends-on): Add extensions.
86692         * modules/openat (Depends-on): Likewise.
86693
86694 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86695
86696         * modules/byteswap: New file.
86697
86698 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86699
86700         * m4/byteswap.m4: New file.
86701
86702 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86703
86704         * lib/byteswap_.h: New file.
86705
86706 2005-04-25  Karl Berry  <karl@gnu.org>
86707
86708         * m4/gettext.m4: Update from GNU gettext 0.14.4.
86709
86710 2005-04-25  Albert Chin  <china@thewrittenword.com>
86711
86712         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
86713         Toolkit C bug.
86714
86715 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
86716
86717         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
86718         (func_ln_if_changed): Remove forcibly for no error message
86719         in case file does not exist.
86720
86721 2005-04-19  Simon Josefsson  <jas@extundo.com>
86722
86723         * gnulib-tool (Options): Make --symlink mean --symbolic.
86724
86725 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
86726
86727         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
86728
86729 2005-04-16  Simon Josefsson  <jas@extundo.com>
86730
86731         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
86732
86733 2005-04-15  Simon Josefsson  <jas@extundo.com>
86734
86735         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
86736
86737 2005-04-15  Simon Josefsson  <jas@extundo.com>
86738
86739         * gnulib-tool: Rename --symlink to --symbolic.
86740
86741 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
86742
86743         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
86744         symbolic links to files instead of copying/moving.  Add --aux-dir,
86745         specifying directory relative --dir where auxiliary build tools
86746         are placed.
86747
86748 2005-04-14  Bruno Haible  <bruno@clisp.org>
86749
86750         * modules/allocsa (License): Change to LGPL.
86751         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86752
86753 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
86754
86755         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
86756         that "UTC +1 second" continues to work.  Problem reported
86757         by Dmitry V. Levin.
86758         (relunit_snumber): New rule.
86759         (relunit): Use it.
86760
86761 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
86762
86763         * lib/getdate.y (universal_time_zone_table): New constant.
86764         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
86765         universal_time_zone_table.
86766         (lookup_zone): Prefer universal_time_zone_table to
86767         local_time_zone_table, so that "GMT" time stamps are allowed in
86768         London during the summer.  Problem reported by Ian Abbott.
86769
86770 2005-04-12  Jim Meyering  <jim@meyering.net>
86771
86772         * lib/human.c (humblock): Set *options even when returning due to
86773         xstrtoumax conversion failure.  Thanks to a used-uninitialized
86774         warning from gcc-4.
86775
86776 2005-04-09  Jim Meyering  <jim@meyering.net>
86777
86778         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
86779         -Wuninitialized: initialize tm0.tm_year.
86780
86781 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
86782
86783         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
86784         count, since there's no maximum.  All uses changed.
86785         Add member dsts_seen.
86786         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
86787         not being INT_MAX.
86788         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
86789         Use pc_rels_seen to decide whether a date is absolute.
86790
86791         * lib/getdate.y (number): Don't overwrite year.
86792         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
86793         check.
86794
86795 2005-04-02  Simon Josefsson  <jas@extundo.com>
86796
86797         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
86798         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
86799
86800 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
86801
86802         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
86803         where no absolute path name can be longer than PATH_MAX.
86804
86805 2005-03-27  Jim Meyering  <jim@meyering.net>
86806
86807         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
86808
86809 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
86810
86811         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
86812         "one's complement" -> "ones' complement" in comment, as per Knuth.
86813         "value of type" -> "type or expression" in comment.
86814         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
86815
86816 2005-03-26  Jim Meyering  <jim@meyering.net>
86817
86818         Comment nits.
86819         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
86820         Correct typos: s/or/of/.
86821
86822 2005-03-26  Jim Meyering  <jim@meyering.net>
86823
86824         * modules/check-include-files: Move to ../ and rename to...
86825         * check-module: ...this.
86826
86827 2005-03-25  Jim Meyering  <jim@meyering.net>
86828
86829         * modules/xvasprintf (Files): Add xalloc.h.
86830
86831 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
86832
86833         * modules/gettext (Files): config/config.rpath ->
86834         build-aux/config.rpath
86835         * modules/iconv (Files): Likewise.
86836         Problem reported by Oskar Liljeblad.
86837
86838 2005-03-23  Jim Meyering  <jim@meyering.net>
86839
86840         * modules/check-include-files: New script to check for
86841         missing dependencies, multiple includes, etc.
86842
86843         * modules/c-strtold (Depends-on): Add xalloc.
86844         * modules/c-strtod (Depends-on): Add xalloc.
86845         * modules/hash (Depends-on): Add xalloc.
86846         (Files): Remove lib/xalloc.h.
86847
86848         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
86849         * modules/userspec (Files): Add lib/inttostr.h.
86850
86851 2005-03-23  Jim Meyering  <jim@meyering.net>
86852
86853         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
86854
86855 2005-03-22  Jim Meyering  <jim@meyering.net>
86856
86857         * modules/stat-macros: New module.
86858         * modules/canonicalize, modules/euidaccess, modules/file-type,
86859         * modules/filemode, modules/lchown, modules/makepath,
86860         * modules/rmdir, modules/stat: Depend on new stat-macros module
86861         rather than listing lib/stat-macros.h manually.
86862         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
86863
86864 2005-03-22  Jim Meyering  <jim@meyering.net>
86865
86866         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
86867
86868 2005-03-22  Bruno Haible  <bruno@clisp.org>
86869
86870         * config/srclist.txt: Replace target directory 'config' with
86871         'build-aux'.
86872         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
86873         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
86874         ../build-aux/.
86875
86876 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
86877
86878         * modules/chdir-long (Depends-on): Add mempcpy.
86879
86880         * modules/acl, modules/backupfile, modules/c-strtod,
86881         modules/c-strtold, modules/canon-host, modules/canonicalize,
86882         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
86883         modules/exclude, modules/exitfail, modules/file-type,
86884         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
86885         modules/getdate, modules/getline, modules/getpagesize,
86886         modules/getpass, modules/getugroups, modules/group-member,
86887         modules/hard-locale, modules/hash, modules/human, modules/idcache,
86888         modules/inttostr, modules/long-options, modules/makepath,
86889         modules/md5, modules/memcasecmp, modules/memcoll,
86890         modules/modechange, modules/mountlist, modules/path-concat,
86891         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
86892         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
86893         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
86894         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
86895         modules/strftime, modules/strndup, modules/strverscmp,
86896         modules/timespec, modules/unlocked-io, modules/userspec,
86897         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
86898         modules/yesno:
86899         Remove lib_SOURCES line from Makefile.am section, as this is now
86900         done automatically by the corresponding Autoconf macro.
86901
86902 2005-03-21  Jim Meyering  <jim@meyering.net>
86903
86904         Changes imported from coreutils.
86905
86906         * lib/cycle-check.c: Don't include xalloc.h.
86907
86908         * lib/path-concat.c: Don't include assert.h.
86909         (path_concat): Remove assertion that would have triggered
86910         for ABASE starting with more than one slash.
86911         Reported by Andreas Schwab.
86912
86913         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
86914         properly when ABASE is an absolute file name.
86915         Correct the description of this function.
86916         Include <assert.h>.
86917         Add an assertion and a test driver.
86918         This fixes a bug introduced on 2004-07-02.
86919         Andreas Schwab reported the resulting failure of cp --parents:
86920         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
86921
86922 2005-03-21  Jim Meyering  <jim@meyering.net>
86923
86924         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
86925         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
86926
86927 2005-03-21  Jim Meyering  <jim@meyering.net>
86928         and  Paul Eggert  <eggert@cs.ucla.edu>
86929
86930         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
86931         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
86932         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
86933         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
86934         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
86935         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
86936         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
86937         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
86938         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
86939         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
86940         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
86941         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
86942         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
86943         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
86944         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
86945         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
86946         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
86947         for these modules.
86948
86949 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
86950
86951         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
86952         (which shouldn't happen), generate nothing instead of returning 0
86953         immediately, so that nstrftime (NULL, ...) doesn't return 0.
86954
86955 2005-03-16  Bruno Haible  <bruno@clisp.org>
86956
86957         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
86958         HAVE_LONGLONG_64BIT.
86959
86960 2005-03-16  Bruno Haible  <bruno@clisp.org>
86961
86962         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
86963         HAVE_LONGLONG_64BIT.
86964
86965 2005-03-16  Bruno Haible  <bruno@clisp.org>
86966
86967         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
86968         HAVE_LONGLONG_64BIT.
86969
86970 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86971
86972         * lib/strftime.c (my_strftime): Prepend space to format so that we can
86973         reliably distinguish strftime failure from empty output on POSIX
86974         hosts.
86975
86976 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86977
86978         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
86979         (iconv_string): Don't guess a size-zero buffer, as that might cause
86980         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
86981         result would be 'too large', where 'too large' is (heuristically)
86982         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
86983         overflow concerns.  This will prevent some unwanted malloc failures
86984         when the inputs are very large.
86985
86986 2005-03-15  Karl Berry  <karl@gnu.org>
86987
86988         * config/srclist.txt (config.rpath): from gettext.
86989         * config/config.rpath: update.
86990
86991 2005-03-15  Bruno Haible  <bruno@clisp.org>
86992
86993         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
86994         to 'negate'.
86995
86996         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
86997         variable.
86998
86999         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
87000         results.
87001
87002 2005-03-14  Simon Josefsson  <jas@extundo.com>
87003
87004         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
87005         <fx@gnu.org>.
87006
87007 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
87008
87009         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
87010         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
87011         intprops.h.
87012         * lib/strtol.c: Likewise.
87013
87014 2005-03-14  Jim Meyering  <jim@meyering.net>
87015
87016         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
87017         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
87018         to be nonzero so that we (and caller) can detect the difference
87019         between a valid zero-length expansion and an error return, even
87020         when the underlying strftime fails before writing anything into
87021         that location.
87022
87023 2005-03-14  Bruno Haible  <bruno@clisp.org>
87024
87025         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
87026         Update from GNU gettext 0.14.3.
87027
87028 2005-03-10  Jim Meyering  <jim@meyering.net>
87029
87030         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
87031
87032 2005-03-10  Jim Meyering  <jim@meyering.net>
87033
87034         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
87035         so that this module works on systems without fchdir.
87036
87037 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
87038
87039         Factor int-properties macros into a single file, except for
87040         glibc-related files.
87041         * lib/intprops.h: New file.
87042         * lib/getloadavg.c: Include it instead of limits.h.
87043         (INT_STRLEN_BOUND): Remove.
87044         * lib/human.c: Include intprops.h.
87045         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
87046         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
87047         302/1000.
87048         * lib/inttostr.h: Include intprops.h instead of limits.h.
87049         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
87050         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
87051         for consistency with intprops.h.
87052         (time_t_is_integer, twos_complement_arithmetic): Use them.
87053         * lib/sig2str.h: Include <signal.h>, intprops.h.
87054         (INT_STRLEN_BOUND): Remove.
87055         * lib/strftime.c (TYPE_SIGNED): Remove.
87056         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
87057         * lib/strtol.c: Adjust comments to match intprops.h.
87058         * lib/userspec.c: Include intprops.h.
87059         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
87060         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
87061         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
87062         instead of rolling our own expressions.
87063         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
87064
87065         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
87066         instead of int.
87067         (my_strftime): Do not mishandle years close to INT_MAX, by doing
87068         the right thing even if adding 1900 would overflow.  Similarly
87069         for tm_mon + 1 and tm_yday + 1.
87070         Make %Y always equivalent to %C%y, and similarly for %G and %g.
87071         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
87072         (DO_SIGNED_NUMBER): New macro.
87073         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
87074
87075 2005-03-07  Bruno Haible  <bruno@clisp.org>
87076
87077         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
87078
87079 2005-03-07  Bruno Haible  <bruno@clisp.org>
87080
87081         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
87082
87083 2005-03-04  Derek R. Price  <derek@ximbiot.com>
87084
87085         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
87086         (func_import): Only replace files via --import when they have actually
87087         changed.
87088
87089 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87090
87091         * m4/mmap-anon.m4: New file.
87092         * m4/pagealign_alloc.m4: New file.
87093
87094 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87095             Bruno Haible  <bruno@clisp.org>
87096
87097         * modules/pagealign_alloc: New file.
87098         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
87099
87100 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87101             Bruno Haible  <bruno@clisp.org>
87102
87103         * lib/pagealign_alloc.h: New file.
87104         * lib/pagealign_alloc.c: New file.
87105
87106 2005-03-03  Bruno Haible  <bruno@clisp.org>
87107
87108         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
87109         Use an all-permissive copyright notice, recommended by RMS.
87110
87111 2005-03-02  Bruno Haible  <bruno@clisp.org>
87112
87113         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
87114         of AIX, the replacement has to be done only after <string.h> is
87115         included, therefore not in config.h. stpncpy.h does the replacement,
87116         and stpncpy.c uses it.
87117
87118 2005-03-02  Bruno Haible  <bruno@clisp.org>
87119
87120         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
87121         stpncpy.c uses it.
87122
87123 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87124
87125         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
87126         The workaround isn't strictly needed for POSIX conformance, and
87127         it's too much of a pain to configure and maintain.  We'll ask
87128         people to fix their kernels instead.
87129         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
87130         (NANOSLEEP_BUG_WORKAROUND): Remove.
87131         (xnanosleep): Remove the workaround.
87132
87133 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87134
87135         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
87136         Reported by Derek Price.
87137         (Include): Add "timespec.h".
87138
87139         * modules/xnanosleep (Depends-on): Remove gethrxtime.
87140
87141 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87142
87143         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
87144         to detect nanosleep bug.
87145
87146 2005-03-01  Bruno Haible  <bruno@clisp.org>
87147
87148         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
87149
87150 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
87151
87152         * modules/gethrxtime: New file.
87153         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
87154         (Depends-on): Add gethrxtime.
87155         (configure.ac): Add gl_XNANOSLEEP.
87156         (Makefile.am): Remove lib_SOURCES line.
87157
87158 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87159
87160         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
87161         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
87162
87163 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87164
87165         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
87166         * lib/timespec.h (gettime): Return void, since it always
87167         succeeds now.  All uses changed.
87168         * lib/gettime.c (gettime): Likewise.
87169         [HAVE_NANOTIME]: Prefer nanotime.
87170         Assume gettimeofday succeeds, as POSIX requires.
87171         Assime time () succeeds, since other code already does.
87172         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
87173         (timespec_subtract): Remove.
87174         (NANOSLEEP_BUG_WORKAROUND): New constant.
87175         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
87176         things considerably.  Use it only on GNU/Linux hosts, since the
87177         workaround shouldn't be needed elsewhere.
87178
87179 2005-02-24  Bruno Haible  <bruno@clisp.org>
87180
87181         * modules/gettext (Files): Add m4/glibc2.m4.
87182
87183 2005-02-24  Bruno Haible  <bruno@clisp.org>
87184
87185         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
87186         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
87187         * m4/progtest.m4:
87188         Update from GNU gettext 0.14.2.
87189         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
87190
87191 2005-02-24  Bruno Haible  <bruno@clisp.org>
87192
87193         * lib/localcharset.c: Update from GNU gettext 0.14.2.
87194         * lib/config.charset: Update from GNU gettext 0.14.2.
87195
87196 2005-02-24  Bruno Haible  <bruno@clisp.org>
87197
87198         * lib/gettext.h: Update from GNU gettext 0.14.2.
87199
87200 2005-02-23  Simon Josefsson  <jas@extundo.com>
87201
87202         * m4/iconvme.m4: New file.
87203
87204 2005-02-23  Jim Meyering  <jim@meyering.net>
87205
87206         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
87207         change.
87208         Thanks to Bruno Haible for catching it.
87209
87210 2005-02-22  Simon Josefsson  <jas@extundo.com>
87211
87212         * modules/iconvme: New file.
87213
87214         * MODULES.html.sh: Add iconvme.
87215
87216 2005-02-22  Simon Josefsson  <jas@extundo.com>
87217
87218         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
87219
87220 2005-02-22  Simon Josefsson  <jas@extundo.com>
87221
87222         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
87223
87224 2005-02-22  Jim Meyering  <jim@meyering.net>
87225
87226         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
87227         s/ifndef/ifdef/.
87228
87229 2005-02-20  Neil Conway  <neilc@samurai.com>
87230
87231         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
87232         returned by OSX/Darwin if the specified buffer is not large
87233         enough for the hostname.
87234
87235 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87236
87237         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
87238         pass it to _help, otherwise the latter coredumps trying to
87239         dereference state.root_argp.
87240
87241 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87242
87243         * modules/chdir-long (Depends-on): Add memrchr.
87244         * modules/memrchr (Files): Add lib/memrchr.h.
87245         (Include): "memrchr.h".
87246
87247 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87248
87249         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
87250
87251 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87252
87253         * lib/memrchr.h: New file.
87254         * lib/chdir-long.c: Include it.
87255         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
87256         Don't bother including stddef.h.
87257
87258 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
87259
87260         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
87261         inclusion.
87262         Include <sys/types.h>, for dev_t.
87263         (ME_DUMMY, ME_REMOTE): Move from here....
87264         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
87265         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
87266         Dmitry V. Levin.
87267         Include mountlist.h first, to test the interface.
87268
87269 2005-01-29  Bruno Haible  <bruno@clisp.org>
87270
87271         * lib/progname.c (program_name): Initialize.
87272         Needed when linking statically on MacOS X.
87273
87274 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87275
87276         Sync from coreutils.
87277         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
87278         (Depends-on): Add c-strtod.
87279         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
87280
87281 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87282
87283         Sync from coreutils.
87284         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
87285
87286         Remove files that are specific to coreutils.
87287         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
87288
87289 2005-01-28  Bruno Haible  <bruno@clisp.org>
87290
87291         * modules/javacomp: New file.
87292         * MODULES.html.sh (Java): Add javacomp.
87293
87294 2005-01-28  Bruno Haible  <bruno@clisp.org>
87295
87296         * m4/javacomp.m4: New file, from GNU gettext.
87297
87298 2005-01-28  Bruno Haible  <bruno@clisp.org>
87299
87300         * lib/javacomp.sh.in: New file, from GNU gettext.
87301         * lib/javacomp.h: New file, from GNU gettext.
87302         * lib/javacomp.c: New file, from GNU gettext.
87303
87304 2005-01-26  Simon Josefsson  <jas@extundo.com>
87305
87306         * lib/gai_strerror.c: Use GPL in header.
87307
87308 2005-01-26  Bruno Haible  <bruno@clisp.org>
87309
87310         * modules/javaexec: New file.
87311         * MODULES.html.sh (Java): Add javaexec.
87312
87313 2005-01-26  Bruno Haible  <bruno@clisp.org>
87314
87315         * m4/javaexec.m4: New file, from GNU gettext.
87316
87317 2005-01-26  Bruno Haible  <bruno@clisp.org>
87318
87319         * lib/javaexec.sh.in: New file, from GNU gettext.
87320         * lib/javaexec.h: New file, from GNU gettext.
87321         * lib/javaexec.c: New file, from GNU gettext.
87322
87323 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87324
87325         * modules/lchown (Depends-on): Remove lchown.h
87326
87327 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87328
87329         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
87330         must be defined if the header file was not found, in order
87331         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
87332
87333 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87334
87335         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
87336         initializers for struct pentry_state.
87337         (__argp_error): Check return value of __asprintf
87338         (__argp_failure): Translate error message
87339
87340         * lib/argp-parse.c: Removed braces around the expansion of N_()
87341
87342 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87343
87344         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
87345         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
87346         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
87347         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
87348         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
87349         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
87350         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
87351         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
87352         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
87353         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
87354         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
87355         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
87356         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
87357         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
87358         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
87359         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
87360         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
87361         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
87362         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
87363         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
87364         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
87365         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
87366         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
87367         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
87368         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
87369         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
87370         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
87371         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
87372         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
87373         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
87374         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
87375         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
87376         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
87377         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
87378         xstrtol.m4, xstrtoumax.m4, yesno.m4:
87379         Use an all-permissive copyright notice, recommended by RMS.
87380
87381 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
87382
87383         * modules/chdir-long (Depends-on): Remove mempcpy.
87384
87385 2005-01-21  Jim Meyering  <jim@meyering.net>
87386
87387         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
87388         same value as for Solaris 9.
87389
87390         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
87391         component length.  This included changing the parameter to be
87392         of type `char *' rather than `char const *'.
87393         * lib/chdir-long.h (chdir_long): Update prototype.
87394
87395         * lib/openat.c (fdopendir, fstatat): New functions.
87396         * lib/openat.h: Include headers required for use of DIR and struct
87397         stat.
87398         [AT_SYMLINK_NOFOLLOW]: Define.
87399         (fdopendir, fstatat): Add prototypes.
87400
87401 2005-01-21  Bruno Haible  <bruno@clisp.org>
87402
87403         * modules/classpath: New file.
87404         * MODULES.html.sh (Java): Add classpath.
87405
87406 2005-01-21  Bruno Haible  <bruno@clisp.org>
87407
87408         * lib/classpath.h: New file, from GNU gettext.
87409         * lib/classpath.c: New file, from GNU gettext.
87410
87411 2005-01-20  Simon Josefsson  <jas@extundo.com>
87412
87413         * modules/version-etc-fsf: New file.
87414
87415 2005-01-20  Simon Josefsson  <jas@extundo.com>
87416
87417         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
87418         * lib/version-etc.c: Remove version_etc_copyright.
87419         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
87420         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
87421
87422 2005-01-20  Simon Josefsson  <jas@extundo.com>
87423
87424         * lib/base64.h (isbase64): Add.
87425
87426         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
87427         using a unsigned prototype, don't inline.
87428         (base64_decode): Use it.
87429
87430 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87431
87432         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
87433         it.
87434
87435 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87436
87437         * lib/save-cwd.c (save_cwd): Remove code to support the case
87438         where fchdir is missing or flaky.
87439
87440 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87441
87442         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
87443
87444 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
87445
87446         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
87447         AC_LIBSOURCES now does this.
87448         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
87449         with new ullong_max module.
87450
87451 2005-01-19  Bruno Haible  <bruno@clisp.org>
87452
87453         * modules/sh-quote: New file.
87454         * MODULES.html.sh (Executing programs): Add sh-quote.
87455
87456 2005-01-19  Bruno Haible  <bruno@clisp.org>
87457
87458         * lib/sh-quote.h: New file, from GNU gettext.
87459         * lib/sh-quote.c: New file, from GNU gettext.
87460
87461 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87462
87463         Merge from coreutils.
87464         * m4/ullong_max.m4: New file.
87465         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
87466         (gl_MACROS): Assume localeconv exists.
87467
87468 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87469
87470         Merge changes from coreutils, as described below in several
87471         changelogs dated today.
87472
87473         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
87474         (O_DIRECTORY): Remove; not needed here, since "." must be
87475         a directory.  All uses removed.
87476         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
87477         universal on Suns, and we also need to test for IRIX.
87478         Revamp code to use 'if' rather than '#if'.
87479         Avoid unnecessary comparison of cwd->desc to 0.
87480
87481         * lib/utimens.c (futimens): Robustify the previous patch, by checking
87482         for known valid error numbers rather than observed invalid ones.
87483
87484 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87485
87486         * modules/ullong_max: New file.
87487
87488         * modules/chdir-long, modules/openat: New files.
87489         * modules/save-cwd (Depends-on): Depend on chdir-long.
87490         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
87491
87492 2005-01-18  Jim Meyering  <jim@meyering.net>
87493
87494         Merge from coreutils.
87495         * m4/chdir-long.m4, m4/openat.m4: New files.
87496         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
87497         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
87498         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
87499         is sane and DOES follow symlinks.  Besides, testing 20 different
87500         systems found no broken chown implementations.
87501         Prompted by a change in rsync's copy of this macro.
87502         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
87503
87504         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
87505
87506         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
87507         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
87508         NULL-means-set-to-current-time semantics.
87509         Remove temporary file immediately, rather than waiting
87510         for configure's at-exit trap code to do it.
87511
87512 2005-01-18  Jim Meyering  <jim@meyering.net>
87513
87514         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87515
87516         * lib/utimens.c (futimens): Account for the fact that futimes
87517         can also fail with errno == ENOSYS or errno == ENOENT.
87518         Patch from Dmitry V. Levin.
87519
87520         Change the name of the robust chdir function from chdir to chdir_long.
87521         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
87522         (restore_cwd): Use chdir_long, not chdir.
87523         * lib/chdir-long.c: Renamed from chdir.c.
87524         * lib/chdir-long.h: Renamed from chdir.h.
87525         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
87526         Hurd.
87527
87528 2005-01-18  Bruno Haible  <bruno@clisp.org>
87529
87530         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
87531         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
87532         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
87533         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
87534         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
87535         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
87536         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
87537         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
87538         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
87539         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
87540         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
87541         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
87542         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
87543         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
87544         Use an all-permissive copyright notice, recommended by RMS.
87545
87546 2005-01-18  Bob Proulx  <bob@proulx.com>
87547
87548         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
87549         simplify offsetof() macro construct to avoid compile failure with
87550         native HP-UX 11.0 ANSI C compiler.
87551
87552 2005-01-17  Bruno Haible  <bruno@clisp.org>
87553
87554         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
87555         redundant because stpncpy.m4 takes care of it.
87556
87557 2005-01-17  Bruno Haible  <bruno@clisp.org>
87558
87559         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
87560
87561 2005-01-17  Bruno Haible  <bruno@clisp.org>
87562
87563         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
87564         used.
87565
87566 2005-01-17  Bruno Haible  <bruno@clisp.org>
87567
87568         * lib/fwriteerror.h (fwriteerror): Change specification to include
87569         fclose.
87570         * lib/fwriteerror.c: Include <stdbool.h>.
87571         (fwriteerror): At the end, close the file stream. Record whether
87572         stdout was already closed.
87573
87574 2005-01-17  Bruno Haible  <bruno@clisp.org>
87575
87576         * lib/execute.c (environ): Declare if needed.
87577         * lib/pipe.c (environ): Likewise.
87578         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
87579
87580 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87581
87582         * modules/argp: Depend on vsnprintf
87583
87584 2005-01-10  Jim Meyering  <jim@meyering.net>
87585
87586         * modules/closeout (Depends-on): Add atexit.
87587
87588 2005-01-06  Bruno Haible  <bruno@clisp.org>
87589
87590         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
87591
87592 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
87593
87594         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
87595         definitions to be after all include files, to avoid collisions.
87596         Problem reported by Bob Proulx.
87597
87598 2005-01-04  Jim Meyering  <jim@meyering.net>
87599
87600         Changes imported from coreutils.
87601         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
87602         as the mkstemp template, use a temporary directory and an
87603         8.3-friendly template to avoid trouble on systems like DJGPP.
87604         Reported by Juan M. Guerrero via Stepan Kasal.
87605         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
87606         close. Remove the temporary directory right away, rather than waiting
87607         for configure's at-exit trap code to do it.
87608         Suggestion from Stepan Kasal.
87609
87610 2005-01-01  Simon Josefsson  <jas@extundo.com>
87611
87612         * gnulib-tool: Print #include directives when --import'ing.
87613
87614 2004-12-28  Simon Josefsson  <jas@extundo.com>
87615
87616         * tests/test-base64.c: Include required header files.  Remove
87617         unused variables.
87618
87619 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87620
87621         * modules/error (Depends-on): Remove gettext.
87622
87623 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87624
87625         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
87626         not needed.  This removes a dependency on the gettext module.
87627         [defined _LIBC]: Do not include <libintl.h>; not needed.
87628
87629 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87630
87631         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
87632         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
87633
87634 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87635
87636         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
87637         HAVE_DECL_STRTOLD.
87638
87639 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87640
87641         * modules/getdate (Depends-on): Remove alloca-opt.
87642
87643 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87644
87645         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
87646
87647 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87648
87649         * lib/argp-parse.c: Include <stddef.h>.
87650         (alignof, alignto): New macros.
87651         (parser_init): Don't assume that void * is aligned sufficiently
87652         for struct option.
87653
87654         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
87655         need to extend the stack.
87656         (YYINITDEPTH): New macro, so that the initial stack isn't overly
87657         large.
87658
87659 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87660
87661         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
87662
87663 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87664
87665         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
87666         (2004-10-24) change.  Apparently this was a false alarm.
87667
87668         * modules/getdate: Depend on alloca-opt, not alloca.
87669
87670 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87671
87672         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
87673         Remove now-obsolete comment about AIX.
87674         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
87675         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
87676         (YYMAXDEPTH): New macro.
87677
87678 2004-12-18  Simon Josefsson  <jas@extundo.com>
87679
87680         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
87681
87682 2004-12-18  Bruno Haible  <bruno@clisp.org>
87683
87684         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
87685
87686 2004-12-18  Bruno Haible  <bruno@clisp.org>
87687
87688         * lib/fatal-signal.c (fatal_signals): Make non-const.
87689         (init_fatal_signals): New function.
87690         (uninstall_handlers, install_handlers): Ignore signals that were set to
87691         SIG_IGN.
87692         (at_fatal_signal): Call init_fatal_signals.
87693         (init_fatal_signal_set): Likewise. Ignore signals that were set to
87694         SIG_IGN.
87695         Reported by Paul Eggert.
87696
87697 2004-12-18  Bruno Haible  <bruno@clisp.org>
87698
87699         * doc/alloca.texi: New file.
87700         * doc/alloca-opt.texi: New file.
87701
87702 2004-12-17  Jim Meyering  <jim@meyering.net>
87703
87704         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
87705         Otherwise, install-sh could exit with improper exit status when
87706         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
87707
87708 2004-12-16  Simon Josefsson  <jas@extundo.com>
87709
87710         * tests/test-base64.c: Add license.
87711
87712 2004-12-15  Stepan Kasal  <address@hidden>
87713
87714         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
87715
87716 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
87717
87718         * modules/getcwd (Files): Add m4/d-ino.m4.
87719         Suggested by Mark D. Baushke.
87720
87721 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87722
87723         * lib/getdate.y (textint): New member "negative".
87724         (time_zone_hhmm): New function.
87725         Expect 14 shift-reduce conflicts, not 13.
87726         (o_colon_minutes): New rule.
87727         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
87728         (yylex): Set the "negative" member of signed numbers.
87729
87730 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87731
87732         * doc/getdate.texi (Time of day items, Time zone items):
87733         Describe new formats +00:00, UTC+00:00.
87734
87735 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
87736
87737         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
87738         spurious "-l"s.  Problem reported by Stepan Kasal.
87739
87740 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
87741
87742         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
87743         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
87744
87745 2004-12-04  Simon Josefsson  <jas@extundo.com>
87746
87747         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
87748         Vandoorselaere <yoann@prelude-ids.org>.
87749
87750 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87751
87752         Changes imported from coreutils.
87753         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
87754         exist.
87755         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
87756
87757 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87758
87759         Changes imported from coreutils.
87760         * lib/hard-locale.c: Assume <locale.h> exists.
87761         Include "strdup.h".
87762         (GLIBC_VERSION): New macro.
87763         (hard_locale): Assume setlocale exists.
87764         Rewrite to avoid #ifdef.
87765         Use strdup rather than malloc + strcpy.
87766         * lib/human.c: Assume <locale.h> exists.
87767         (human_readable): Assume localeconv exists.
87768
87769 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87770
87771         * modules/hard-locale (Depends-on): Add strdup.
87772
87773 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
87774
87775         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
87776         convert T2, not T.  (Imported from libc.)
87777
87778 2004-11-30  Simon Josefsson  <jas@extundo.com>
87779
87780         * modules/restrict (License): Change to LGPL.
87781
87782 2004-11-30  Simon Josefsson  <jas@extundo.com>
87783
87784         * m4/restrict.m4: Add copyright and copying conditions.
87785
87786 2004-11-30  Simon Josefsson  <jas@extundo.com>
87787
87788         * m4/base64.m4: New file.
87789
87790 2004-11-30  Simon Josefsson  <jas@extundo.com>
87791
87792         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
87793         base64.
87794
87795         * tests/test-base64.c: New file.
87796
87797         * modules/base64: New file.
87798
87799 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87800
87801         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
87802         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
87803
87804         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
87805
87806 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87807
87808         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
87809         (__getcwd.c): Don't restore errno; glibc doesn't.
87810         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
87811         first, falling back to our code only if its results look suspicious.
87812         Ensure that the resulting buffer is only as large as necessary.
87813
87814         * lib/readutmp.c: Include readutmp.h first.
87815         Include <errno.h>, since readutmp.h no longer does that.
87816         * lib/readutmp.h: Don't include <errno.h>,
87817         <sys/param.h>, <time.h>; not needed to establish interface.
87818         (errno): Remove decl.
87819         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
87820         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
87821         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
87822
87823 2004-11-28  Simon Josefsson  <jas@extundo.com>
87824
87825         * lib/base64.h, base64.c: New file.
87826
87827 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
87828
87829         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
87830
87831 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
87832
87833         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
87834         (Depends-on): Remove pathmax, same.  Add mempcpy.
87835         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
87836         (Makefile.am): Append getcwd.h to lib_SOURCES.
87837         (Include): Add getcwd.h.
87838         (Maintainer): Change from Jim Meyering to "all, glibc",
87839         since getdate now uses intended-for-glibc code.
87840         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
87841         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
87842
87843 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87844
87845         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
87846         HP's ANSI C compiler.
87847         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
87848         Declaring int functions causes warnings on some modern systems and
87849         shouldn't be needed to compile on ancient ones.
87850         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
87851         defined.
87852
87853         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
87854         with the following changes.
87855         (__set_errno): Parenthesize properly.
87856         Include <stdbool.h>.
87857         (MIN, MAX, MATCHING_INO): New macros.
87858         (__getcwd): Define with prototype, not K&R form.
87859         Use heuristics to allocate default buffer on stack if possible.
87860         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
87861         behavior, and to avoid the PATH_MAX limit when computing
87862         ../../../../...
87863         Use MATCHING_INO to compare inode number to file.
87864         Check for arithmetic overflow in size calculations.
87865         Fix bug in reallocation of dot array that caused getcwd to fail
87866         on directories nested deeper than 75.
87867         Be more careful about saving errno on error.
87868         Do not use realloc; use only free+malloc, as this is a bit
87869         more flexible and avoids a needless copy operation.
87870         Do not inspect st_dev and st_ino for symbolic links; POSIX
87871         doesn't specify the latter.
87872         Check for closedir errors.
87873         Avoid needless casts.
87874         Use "#ifdef weak_alias" around weak_alias, to be like other
87875         glibc code.
87876         The following changes to getcwd.c have effect only when used in
87877         gnulib; they have no effect inside glibc proper.
87878         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
87879         as alloca isn't used.
87880         (alloca, __alloca): Likewise.
87881         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
87882         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87883         unconditionally, as gnulib assumes C89 or better.
87884         Do not include <sys/param.h>.
87885         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
87886         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
87887         better.
87888         (NULL) [!defined NULL]: Remove; we assume C89 or better.
87889         Include <dirent.h> in a way that is compatible with modern Autoconf.
87890         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
87891         New macros, if not already defined.
87892         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
87893         Use "_LIBC", not "defined _LIBC", for consistency.
87894         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
87895         a mempcpy module.
87896         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
87897         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
87898         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
87899         credit only to Jim Meyering and adjust the copyright dates.
87900         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
87901         <stdlib.h>, <unistd.h>, "pathmax.h".
87902         Instead, include "xgetcwd.h" (first) and "getcwd.h".
87903         (INITIAL_BUFFER_SIZE): Remove.
87904         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
87905
87906 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87907
87908         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
87909         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
87910         Use the _ONCE methods, for efficiency.
87911         Check for fcntl.h.  In test program, include <errno.h>
87912         and <fcntl.h> if available.  Remove old K&R cruft from
87913         test program.  Check for common errors in GNU/Linux,
87914         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
87915         don't do AC_LIBOBJ, as that's getcwd.m4's job.
87916         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
87917         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
87918         name accordingly.
87919         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
87920         accommodate new getcwd.c.
87921         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
87922         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
87923         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
87924         that's all we need now.
87925
87926 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87927
87928         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
87929         argp-parse.c depends on getopt internals, that means we should
87930         always use our getopt, to be on the safe side.
87931         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
87932         order not to spoil the result of an eventual previous invocation
87933         of gl_GETOPT_SUBSTITUTE.
87934
87935 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87936
87937         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
87938         redefinition warnings. To avoid them, include the defines
87939         in `#if !defined __need_getopt ... #endif'. The only place
87940         where __getopt_argv_const is used is in definitions
87941         of getopt_long and getopt_long_only below, which are as well
87942         protected by `#ifndef __need_getopt'.
87943         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
87944         __need_getopt after including <stdio.h> and <unistd.h> These
87945         headers might have defined it.
87946
87947 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87948
87949         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
87950
87951 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87952
87953         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
87954         (futimens): New function, which uses futimes if available.
87955         (futimens, utimens): Support timespec==NULL, with same semantics
87956         as utime and utimens.
87957         * lib/utimens.h (futimens): New decl.
87958
87959 2004-11-23  Jim Meyering  <jim@meyering.net>
87960
87961         * lib/getopt_.h: Remove trailing blanks.
87962
87963 2004-11-23  Jim Meyering  <jim@meyering.net>
87964
87965         * lib/__fpending.c: Add comment.
87966
87967 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
87968
87969         * modules/canonicalize (Depends-on): Add xreadlink.
87970         Problem reported by James Youngman.
87971
87972 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
87973
87974         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
87975         New macros.
87976         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
87977         optopt): Use them instead of invoking ## directly; otherwise, the
87978         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
87979
87980 2004-11-19  Bruno Haible  <bruno@clisp.org>
87981
87982         * lib/strtok_r.c: Move comments from here...
87983         * lib/strtok_r.h: ... to here.
87984
87985 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87986
87987         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
87988         implementations that mishandle size_t overflow.
87989
87990 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87991
87992         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
87993         might fail.  Problem reported by Yoann Vandoorselaere.
87994         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
87995         implementations that mishandle size_t overflow.
87996
87997 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87998
87999         * modules/canon-host (Depends-on): Add strdup.
88000
88001 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88002
88003         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
88004
88005 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88006
88007         * lib/canon-host.c: Include "strdup.h".
88008         (canon_host): Use getaddrinfo if available, so that IPv6 works.
88009         Use strdup instead of malloc/strcpy to duplicate strings.
88010
88011         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
88012         (human_space_before_unit): New constant.
88013         * lib/human.c (human_readable): Support it.
88014
88015         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
88016         (xgetcwd): Set errno correctly when failing.
88017         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
88018         the failure is actually due to a PATH_MAX problem.
88019
88020         Further getopt changes to make it more likely that glibc will
88021         buy the changes back.
88022         * lib/getopt.c (POSIXLY_CORRECT): New constant.
88023         (getopt): Use it, so to preserve glibc semantic
88024         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
88025         when compiling for libc.
88026         * lib/getopt_.h (__getopt_argv_const): Bring it back.
88027         (getopt_long, getopt_long_only): Use it.
88028
88029         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88030         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
88031         (getopt): Argv is now char * const *, as per standard.
88032         (_getopt_internal_r, _getopt_internal): Argv is now char **,
88033         not char *__getopt_argv_const *.
88034         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88035         _getopt_long_only_r): Likewise.
88036         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
88037         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88038         _getopt_long_r, _getopt_long_only_r): Likewise.
88039         * lib/getopt_.h (__getopt_argv_const): Remove.
88040         (getopt): Argv is now char * const *, as per standard.
88041
88042         * lib/getdate.y (tORDINAL): New token.
88043         (day, relunit): Allow it for relative times.
88044         (relative_time_table): Use tORDINAL for ordinals.
88045
88046 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88047
88048         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
88049         Document that "second" isn't allowed as an ordinal number.
88050
88051 2004-11-16  Jim Meyering  <jim@meyering.net>
88052
88053         * modules/closeout (Depends-on): Add fpending.
88054
88055 2004-11-15  Jim Meyering  <jim@meyering.net>
88056
88057         * lib/closeout.c: Include "__fpending.h" once again.
88058         Include <stdbool.h>.
88059         (close_stdout): Don't fail just because stdout was closed initially,
88060         since some programs don't write to stdout in the normal course of
88061         operation (other than --version and --help), and we don't want this
88062         function to make e.g. `touch file >&-' fail.
88063         But do fail if it was closed and someone has tried to write to it.
88064         E.g., `printf foo >&-' must fail.
88065
88066 2004-11-13  Jim Meyering  <jim@meyering.net>
88067
88068         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
88069
88070 2004-11-12  Simon Josefsson  <jas@extundo.com>
88071
88072         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
88073         small doc fix is still pending.
88074
88075 2004-11-11  Simon Josefsson  <jas@extundo.com>
88076
88077         * modules/strtok_r: New file.
88078
88079         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88080         strtok_r.
88081
88082 2004-11-11  Simon Josefsson  <jas@extundo.com>
88083
88084         * m4/strtok_r.m4: New file.
88085
88086         * m4/getopt.m4: Replace opterr.
88087
88088 2004-11-11  Simon Josefsson  <jas@extundo.com>
88089
88090         * lib/strtok_r.h, strtok_r.c: New file.
88091
88092 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88093
88094         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
88095         of replacing opterr, getopt, etc.  This should handle the
88096         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
88097
88098 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88099
88100         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
88101         we can stop lying to compilers about the constness of argv when we
88102         are compiled outside glibc.
88103         (getopt, getopt_long, getopt_long_only): Use it.
88104         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88105         _getopt_internal, getopt): Likewise.
88106         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88107         _getopt_long_only_r): Likewise.
88108         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88109         _getopt_long_r, _getopt_long_only_r): Likewise.
88110
88111         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
88112         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
88113         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
88114         the other external symbols.
88115         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
88116         declaration, since the above renaming now works around collisions.
88117
88118 2004-11-11  Jim Meyering  <jim@meyering.net>
88119
88120         * lib/linebreak.c: Remove trailing blanks.
88121         * lib/alloca_.h: Likewise.
88122         * lib/acosl.c: Likewise.
88123         * lib/euidaccess.c: Likewise.
88124         * lib/allocsa.h: Likewise.
88125
88126 2004-11-10  Simon Josefsson  <jas@extundo.com>
88127
88128         * m4/getaddrinfo.m4: New file.
88129
88130 2004-11-10  Simon Josefsson  <jas@extundo.com>
88131
88132         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
88133
88134 2004-11-10  Simon Josefsson  <jas@extundo.com>
88135
88136         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88137         getaddrinfo.
88138
88139         * modules/getaddrinfo: New file.
88140
88141 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88142
88143         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
88144
88145 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88146
88147         * lib/mktime.c (SHR): New macro, which is a portable
88148         substitute for >> that should work even on Crays.
88149         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
88150         Problem reported by Mark D. Baushke in
88151         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
88152         * lib/getdate.y (SHR): Likewise.
88153         (tm_diff): Use it.
88154         * lib/strftime.c (SHR): Likewise.
88155         (tm_diff): Use it.
88156         * lib/quotearg.c (struct quoting_options): Use unsigned int for
88157         quote_these_too, so that right shifts are well defined.  All uses
88158         changed.
88159
88160 2004-11-10  Jim Meyering  <jim@meyering.net>
88161
88162         Ensure that no close failure goes unreported.
88163         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
88164         return early when it seems there's nothing to flush.
88165         Don't include __fpending.h.
88166
88167 2004-11-10  Jim Meyering  <jim@meyering.net>
88168
88169         * modules/closeout (Depends-on): Remove fpending.
88170
88171 2004-11-10  Jim Meyering  <jim@meyering.net>
88172
88173         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
88174
88175 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88176
88177         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
88178         gl_FUNC_STRFTIME.
88179         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
88180         and AC_REQUIRE when possible, to avoid duplicate checks.
88181         Check for <wchar.h>.
88182
88183 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88184
88185         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
88186
88187 2004-11-09  Bruno Haible  <bruno@clisp.org>
88188
88189         * m4/sockpfaf.m4: New file.
88190
88191 2004-11-05  Bruno Haible  <bruno@clisp.org>
88192
88193         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
88194         Reported by Mark D. Baushke <mdb@cvshome.org>.
88195
88196 2004-11-04  Bruno Haible  <bruno@clisp.org>
88197
88198         2004-09-11  Bruno Haible  <bruno@clisp.org>
88199                 * allocsa.valgrind: New file.
88200         2004-02-06  Bruno Haible  <bruno@clisp.org>
88201                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
88202                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
88203                 Reported by Christopher Seip <chris.seip@hp.com>.
88204
88205 2004-11-04  Bruno Haible  <bruno@clisp.org>
88206
88207         * modules/allocsa (Files): Add lib/allocsa.valgrind.
88208         (Makefile.am): Distribute it.
88209
88210 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
88211
88212         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
88213         with errno == ERANGE if the buffer is too small.
88214         Problem reported by Mark D. Baushke.
88215
88216 2004-11-03  Albert Chin  <china@thewrittenword.com>
88217             Paul Eggert  <eggert@cs.ucla.edu>
88218
88219         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
88220         equivalent, substitute $ac_type for equivalent type rather than
88221         blindly using uint32_t *always* which won't work if uint32_t is not
88222         available.  Define _UINT32_T to work around typedef of uint32_t if
88223         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
88224         2.5.1.
88225
88226 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88227
88228         * m4/jm-macros.m4: Sync from coreutils.
88229         (gl_MACROS): Check for mbrlen, for pathchk.
88230         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
88231
88232 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88233
88234         * lib/xreadlink.c (MAXSIZE): New macro.
88235         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
88236         size does not exceed MAXSIZE.  Avoid cast.
88237         As suggested by Mark D. Baushke in
88238         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
88239         if readlink fails with buffer size just under MAXSIZE, try again
88240         with MAXSIZE.
88241
88242 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88243
88244         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
88245
88246 2004-11-02  Derek R. Price  <derek@ximbiot.com>
88247         and  Paul Eggert  <eggert@cs.ucla.edu>
88248
88249         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
88250         (get_date): Overparenthesize to avoid GCC warning.
88251
88252 2004-11-02  Bruno Haible  <bruno@clisp.org>
88253
88254         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
88255         returns void.
88256
88257 2004-11-02  Bruno Haible  <bruno@clisp.org>
88258
88259         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
88260         function returns void.
88261
88262 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88263
88264         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
88265         fflush_unlocked, flockfile, funlockfile, funlockfile,
88266         fputs_unlocked, putc_unlocked.
88267
88268 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88269
88270         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88271         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
88272         already declared.
88273
88274 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88275
88276         * modules/getdate (Files): Add doc/getdate.texi.
88277         (Depends-on): Add setenv, xalloc.
88278
88279 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88280
88281         * lib/getdate.y: Add support for TZ="foo" within a date string.
88282         Fix some bugs near time_t boundaries.  Reject dates with
88283         out-of-range components, e.g., "Sept 31".
88284         Include <stdlib.h>, "setenv.h", "xalloc.h".
88285         (ISDIGIT_LOCALE): Remove; unused.
88286         Note that the TZ and time functions used here are not reentrant.
88287         (mktime_ok, get_tz): New functions.
88288         (TZBUFSIZE): New constant.
88289         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
88290         This requires that we sometimes generate our own TZ="XXX..." setting.
88291
88292 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88293
88294         * doc/getdate.texi: New file, from coreutils with modifications for
88295         the new TZ parsing.
88296
88297 2004-10-27  Derek R. Price  <derek@ximbiot.com>
88298
88299         * lib/mktime.c (not_equal_tm): Remove redundant check.
88300
88301 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88302
88303         * modules/regex (lib_SOURCES): Add regex.c.
88304         Reported by James Youngman in
88305         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
88306
88307 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88308
88309         * lib/getdate.y: Use Bison 1.875 features, and some minor
88310         code cleanups.  This change does not affect semantics.
88311         Don't include <stdlib.h>; no longer needed.
88312         Don't include unlocked-io.h; only the "#if TEST" code uses
88313         stdio, and performance isn't crucial there.
88314         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
88315         Bison 1.875 features as described below.
88316         All uses of "PC." replaced by "pc->".
88317         (YYSTYPE): Add a forward declaration.
88318         (yylex, yyerror): Use full prototypes in forward decls.
88319         Use "%pure-parser" rather than obsolescent "%pure_parser".
88320         Use %parse-param and %lex-param instead of obsolescent
88321         YYPARSE_PARAM and YYLEX_PARAM.
88322         (meridian_table, month_and_day_table, time_units_table,
88323         relative_time_table, time_zone_table, military_table,
88324         lookup_zone, lookup_word, get_date):
88325         Use NULL instead of 0 where appropriate.
88326         (to_hour): Avoid abort (), to avoid a dependency on
88327         stdlib.h.
88328         (yyerror, yylex): Now accepts parser_control * arg.
88329         (main) [TEST]: Use '\0' rather than 0 for char.
88330
88331 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88332
88333         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
88334
88335 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88336
88337         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
88338         It's now the caller's responsibility to handle the case where
88339         !HAVE_GETPAGESIZE && !defined getpagesize.
88340
88341         * lib/mktime.c (leapyear): Arg is long int, not int.
88342
88343 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
88344
88345         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
88346
88347 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
88348
88349         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
88350         missing.  Problem reported by James Youngman.
88351
88352 2004-10-16  Simon Josefsson  <jas@extundo.com>
88353
88354         * gnulib-tool: Fix comments.  Fix parse problem.
88355         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
88356
88357 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
88358
88359         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
88360         implementation of getopt_long.  Problem reported by Alexander Taler in:
88361         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
88362
88363 2004-10-15  Bruno Haible  <bruno@clisp.org>
88364
88365         * gnulib-tool: Untabify. Initialize supplied_libname.
88366         (func_usage): More homogenous output.
88367         (func_modules_transitive_closure, func_modules_to_filelist,
88368         func_emit_lib_Makefile_am): New functions.
88369         (func_import): New function, extracted from big case statement. Use
88370         func_get_license, func_modules_transitive_closure,
88371         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
88372         opt_lgpl. Don't use test -a, as it's not portable.
88373         (func_create_testdir): Use func_modules_transitive_closure,
88374         func_modules_to_filelist, func_emit_lib_Makefile_am.
88375
88376 2004-10-15  Bruno Haible  <bruno@clisp.org>
88377
88378         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
88379
88380 2004-10-15  Bruno Haible  <bruno@clisp.org>
88381
88382         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
88383         the portions belonging to each module.
88384         Suggested by Derek Robert Price <derek@ximbiot.com>.
88385
88386 2004-10-12  Simon Josefsson  <jas@extundo.com>
88387
88388         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88389         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
88390         to real functions.
88391
88392 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88393
88394         * modules/vsnprintf: New file.
88395
88396 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88397
88398         * m4/vsnprintf.m4: New file.
88399
88400 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88401
88402         * lib/vsnprintf.h: New file.
88403         * lib/vsnprintf.c: New file.
88404
88405 2004-10-11  Bruno Haible  <bruno@clisp.org>
88406
88407         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
88408         vsnprintf.
88409
88410 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
88411
88412         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
88413
88414 2004-10-07  Bruno Haible  <bruno@clisp.org>
88415
88416         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
88417         fits into the provided buffer.
88418
88419 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
88420
88421         * lib/diacrit.c, diacrit.h: Add GPL notice.
88422
88423         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
88424         notice.
88425         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
88426         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
88427         This avoids a potential constant-folding bug.
88428
88429 2004-10-05  Bruno Haible  <bruno@clisp.org>
88430
88431         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
88432         for the declaration of strsep.
88433
88434 2004-10-05  Bruno Haible  <bruno@clisp.org>
88435
88436         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
88437
88438 2004-10-04  Simon Josefsson  <jas@extundo.com>
88439
88440         * modules/memmem: New file.
88441         * tests/test-memmem.c: New file.
88442         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
88443
88444 2004-10-04  Simon Josefsson  <jas@extundo.com>
88445
88446         * m4/memmem.m4: New file.
88447
88448 2004-10-04  Simon Josefsson  <jas@extundo.com>
88449
88450         * lib/memmem.h: New file.
88451         * lib/memmem.c: New file, taken from glibc.
88452
88453 2004-10-04  Simon Josefsson  <jas@extundo.com>
88454
88455         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
88456         '#ifdef USE_UNLOCKED_IO'.
88457
88458 2004-10-04  Simon Josefsson  <jas@extundo.com>
88459
88460         * config/srclist.txt: Add memmem from glibc.
88461
88462 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88463
88464         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
88465
88466         * modules/argmatch, modules/argp, modules/closeout, modules/error,
88467         modules/exclude, modules/getdate, modules/getline,
88468         modules/getndelim2, modules/getpass, modules/getpass-gnu,
88469         modules/getusershell, modules/linebuffer, modules/md5,
88470         modules/mountlist, modules/posixtm, modules/readtokens,
88471         modules/readutmp, modules/regex, modules/sha1,
88472         modules/version-etc, modules/yesno:
88473         Remove dependency on unlocked-io.
88474
88475 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88476
88477         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
88478
88479         * m4/unlocked-io.m4: Add copyright notice.
88480         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
88481
88482 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88483
88484         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
88485         * lib/xmalloc.c (xmemdup): Likewise.
88486         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
88487         XFREE): Remove these long-obsolescent macros.
88488         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
88489         * lib/xstrdup.c: Remove.
88490
88491         * lib/regex.c (re_comp): Cast gettext return value to char *,
88492         Problem reported by Martin Neitzel via Mark D. Baushke.
88493
88494 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88495
88496         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
88497         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
88498         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
88499         regex.c, sha1.c, version-etc.c, yesno.c:
88500         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
88501         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
88502         the includer's responsibility.
88503
88504         Sync from coreutils.
88505
88506         * lib/modechange.c (mode_compile): Don't decrement a pointer that
88507         points to the start of a string, as the C Standard says the
88508         resulting behavior is undefined.
88509
88510         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
88511         simple -> simple_backups, numbered_existing ->
88512         numbered_existing_backups, numbered -> numbered_backups
88513         to avoid shadowing problems.  All uses changed.
88514         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
88515         * lib/backupfile.c (check_extension, numbered_backup):
88516         Rename locals to avoid shadowing 'basename'.
88517         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
88518         once.
88519
88520         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
88521         * lib/.cvsignore: Add getopt.h.
88522
88523 2004-10-04  Bruno Haible  <bruno@clisp.org>
88524
88525         * modules/README: New file.
88526         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
88527         not a module.
88528
88529 2004-10-02  Jim Meyering  <jim@meyering.net>
88530
88531         * lib/dirfd.h, getpagesize.h: Add copyright notice.
88532
88533 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88534
88535         * modules/strsep: New file.
88536
88537 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88538
88539         * m4/strsep.m4: New file.
88540
88541 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88542
88543         * lib/strsep.h: New file.
88544         * lib/strsep.c: New file.
88545
88546 2004-10-01  Simon Josefsson  <jas@extundo.com>
88547
88548         * lib/snprintf.c (snprintf): Handle size==0.
88549
88550 2004-10-01  Simon Josefsson  <jas@extundo.com>
88551             Bruno Haible  <bruno@clisp.org>
88552
88553         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
88554         (snprintf): Declare 'args'.
88555
88556 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
88557
88558         * lib/snprintf.c: Remove comments as to why each header is needed.
88559
88560 2004-10-01  Bruno Haible  <bruno@clisp.org>
88561
88562         * MODULES.html.sh: Add strsep.
88563
88564 2004-09-30  Simon Josefsson  <jas@extundo.com>
88565
88566         * modules/snprintf: New file.
88567
88568 2004-09-30  Simon Josefsson  <jas@extundo.com>
88569
88570         * m4/snprintf.m4: New file.
88571
88572 2004-09-30  Simon Josefsson  <jas@extundo.com>
88573
88574         * lib/snprintf.h, lib/snprintf.c: New files.
88575
88576 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88577
88578         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
88579         (hol_entry_help): Never translate an empty string.
88580         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
88581         * lib/argp.h (OPTION_NO_TRANS): New option.
88582
88583 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88584
88585         * modules/argp (Maintainer): Replace Simon Josefsson
88586         by Sergey Poznyakoff.
88587
88588 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88589
88590         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
88591         changes merged back into glibc.
88592
88593 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88594
88595         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
88596
88597 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
88598
88599         * lib/xvasprintf.c: Include xalloc.h.
88600         (xvasprintf): Use xalloc_die, not xmalloc_die.
88601
88602 2004-09-29  Bruno Haible  <bruno@clisp.org>
88603
88604         * modules/alloca-opt: New file, derived from modules/alloca.
88605         * modules/allocsa: Depend on alloca-opt instead of alloca.
88606         * modules/setenv: Likewise.
88607         * modules/vasnprintf: Likewise.
88608         * MODULES.html.sh: Add alloca-opt.
88609
88610 2004-09-28  Simon Josefsson  <jas@extundo.com>
88611
88612         * gnulib-tool: New parameter --lgpl, to asseert that modules are
88613         LGPL, and to replace license template from GPL to LGPL.
88614
88615 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88616
88617         * modules/dummy: Change license to LGPL.
88618
88619 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88620
88621         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
88622
88623 2004-09-24  Simon Josefsson  <jas@extundo.com>
88624
88625         * modules/minmax (License): Change from GPL to LGPL.
88626
88627 2004-09-23  Simon Josefsson  <jas@extundo.com>
88628
88629         * gnulib-tool (--import): Typo.
88630
88631 2004-09-23  Simon Josefsson  <jas@extundo.com>
88632
88633         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
88634
88635 2004-09-22  Bruno Haible  <bruno@clisp.org>
88636
88637         * modules/*: Add 'License' field.
88638         * gnulib-tool: Accept --extract-license option.
88639         (func_get_license): New function.
88640
88641 2004-09-21  Bruno Haible  <bruno@clisp.org>
88642
88643         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
88644         Reported by Simon Josefsson.
88645
88646 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88647
88648         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
88649         gl_AC_TYPE_LONG_LONG.
88650
88651 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88652
88653         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
88654
88655 2004-09-18  Simon Josefsson  <jas@extundo.com>
88656         and  Paul Eggert  <eggert@cs.ucla.edu>
88657
88658         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
88659         calls with autoreconf.  Define GL_LIB.
88660
88661 2004-09-14  Karl Berry  <karl@gnu.org>
88662
88663         * config/srclist.txt: unsync setenv.c, sigh.
88664
88665 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88666
88667         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
88668         Problem reported by Bruno Haible in:
88669         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
88670
88671 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88672
88673         * config/srclist.txt: Comment out argp-pvh.c.
88674
88675 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
88676
88677         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
88678         in case some system header has #define'd it.  Problem reported by
88679         Soeren D. Schulze in
88680         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
88681
88682 2004-09-09  Karl Berry  <karl@gnu.org>
88683
88684         * regex.[ch]: delete from the root.  These were supposed to be
88685                 synced with emacs cvs, but this has not happened for about
88686                 a year, and anyway nothing else uses emacs regex.[ch].
88687                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
88688                 lib/regex[.ch] is untouched.
88689
88690 2004-09-09  Bruno Haible  <bruno@clisp.org>
88691
88692         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
88693
88694 2004-09-09  Bruno Haible  <bruno@clisp.org>
88695
88696         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
88697         modifications.
88698         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
88699
88700 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88701
88702         * modules/xvasprintf: New file.
88703         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
88704
88705 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88706
88707         * lib/xvasprintf.h: New file.
88708         * lib/xvasprintf.c: New file.
88709         * lib/xasprintf.c: New file.
88710
88711 2004-09-08  Bruno Haible  <bruno@clisp.org>
88712
88713         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
88714
88715 2004-09-08  Bruno Haible  <bruno@clisp.org>
88716
88717         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
88718         length is > INT_MAX.
88719         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
88720         more.
88721
88722 2004-09-08  Bruno Haible  <bruno@clisp.org>
88723
88724         * lib/stdint_.h: New file, taken from GNU clisp.
88725
88726 2004-09-08  Bruno Haible  <bruno@clisp.org>
88727             Oskar Liljeblad  <oskar@osk.mine.nu>
88728
88729         * modules/stdint: New file.
88730         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
88731
88732 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88733
88734         Import from coreutils.
88735         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
88736         strings on unbounded length.  alloca's performance benefits aren't
88737         that important here.
88738         (V_STRDUP): Remove.
88739         (parse_with_separator): New function, with most of the internals
88740         of the old parse_user_spec.  Allow user to omit both user and group,
88741         for compatibility with FreeBSD.
88742         Clone only the user name, not the entire spec.
88743         Do not set *uid, *gid unless entirely successful.
88744         Avoid memory leak in some failing cases.
88745         Fix regression for USER.GROUP reported by Dmitry V. Levin in
88746         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
88747         (parse_user_spec): Rewrite to use parse_with_separator.
88748
88749 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88750
88751         * modules/userspec: Don't depend on alloca.
88752
88753 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88754
88755         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
88756
88757 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
88758
88759         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
88760         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
88761         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
88762
88763 2004-08-16  Simon Josefsson  <jas@extundo.com>
88764
88765         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
88766         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
88767         Add --dry-run for --import.
88768         Let user provided command line parameters override configure.ac
88769         settings.
88770
88771 2004-08-12  Simon Josefsson  <jas@extundo.com>
88772
88773         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
88774         as discussed with Paul Eggert in threads rooted at
88775         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
88776         and
88777         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
88778         Before, the test was empty, and relied on ELIDE_CODE in source
88779         code.)
88780         (gl_PREREQ_GETOPT): New macro.
88781         (gl_GETOPT): Use them.
88782
88783 2004-08-12  Simon Josefsson  <jas@extundo.com>
88784
88785         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
88786         * lib/getopt_.h: Renamed from getopt.h.
88787
88788 2004-08-12  Simon Josefsson  <jas@extundo.com>
88789
88790         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
88791         Change default library name from libfoo to libgnu.
88792         Now, if you have a configure.ac that says:
88793                 gl_SOURCE_BASE(gl)
88794                 gl_M4_BASE(gl/m4)
88795                 gl_MODULES(error getopt etcetera)
88796                 gl_INIT
88797         you can import all you need by running:
88798                 ../gnulib/gnulib-tool --import
88799
88800         * modules/getopt (Files): Rename getopt.h to getopt_.h.
88801         (Makefile.am): Rewrite, use logic from argz.
88802         (Include): Use <getopt.h> instead of "getopt.h".
88803
88804 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88805
88806         * modules/argp (Files): Add m4/unlocked-io.m4.
88807         (Depends-on): Add extensions.
88808
88809 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88810
88811         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
88812         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
88813         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
88814         Check for program_invocation_name, program_invocation_short_name,
88815         flockfile, funlockfile, features.h, _getopt_long_only_r.
88816
88817 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88818
88819         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
88820         its complicated substitute.
88821         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
88822         and program_invocation_name.
88823         (__argp_basename) [!_LIBC]: Remove; the only use was
88824         replaced by its body.
88825         (__argp_short_program_name): Change condition from
88826         !defined __argp_short_program_name to
88827         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
88828         to match argp-namefrob.h.
88829         (__argp_failure): Don't assume strerror_r returns char *.
88830         * lib/argp-parse.c (N_): Define unconditionally.
88831         (argp_default_options): Fill out initializers with 0 to avoid
88832         gcc warnings.
88833
88834 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88835
88836         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
88837         getopt1.c.
88838
88839 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88840
88841         Merge from coreutils.
88842
88843         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
88844
88845         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
88846         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
88847
88848 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88849
88850         Merge from coreutils.
88851
88852         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
88853         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
88854         for Reliant Unix 5.43.
88855
88856         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
88857         (union fooround): Use uintmax_t, not long int.
88858         The rest is a merge from libc:
88859         [defined _LIBC]: Include <shlib-compat.h>.
88860         (_obstack) [defined _LIBC]: Remove after 2.3.4.
88861
88862         * lib/settime.c (settime): Recode to avoid warning with
88863         Sun Forte C 6U2.
88864
88865         * lib/strverscmp.c: Convert to UTF-8.
88866
88867 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88868
88869         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
88870         m4/uintmax_t.m4.
88871
88872 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88873
88874         * modules/xalloc-die: New file.
88875         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
88876
88877         * modules/md5 (Files): Add m4/uint32_t.m4.
88878         * modules/sha1: Renamed from modules/sha.
88879         (Files):
88880         Rename lib/sha.h to lib/sha1.h.
88881         Rename lib/sha.c to lib/sha1.c.
88882         Rename m4/sha.m4 to m4/sha1.m4.
88883         (lib_SOURCES): Likewise.
88884         (configure.ac): Rename gl_SHA to gl_SHA1.
88885         (Include): sha.h -> sha1.h.
88886
88887 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88888
88889         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
88890         * m4/sha1.m4: Renamed from sha.m4.
88891         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
88892
88893 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88894
88895         * lib/obstack.h (obstack_empty_p):
88896         Don't assume that chunk->contents is suitably aligned.
88897         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
88898         Likewise. Problem reported by Benno in
88899         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
88900
88901         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
88902         readable.  This could be improved further but it'd take some work.
88903
88904 2004-08-08  Simon Josefsson  <jas@extundo.com>
88905
88906         * modules/xgethostname (Depends-on): Remove exit and error (not
88907         used).
88908
88909         * modules/getpass-gnu: Add getpass.h.
88910         (Depends-on): Add stdbool.
88911         * modules/getpass: Add getpass.h.
88912
88913 2004-08-08  Simon Josefsson  <jas@extundo.com>
88914
88915         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
88916         Check getpass declaration.
88917
88918 2004-08-08  Simon Josefsson  <jas@extundo.com>
88919
88920         * lib/xgethostname.c: Don't include error.h (not used).
88921
88922         * lib/getpass.h: Add.
88923         * lib/getpass.c: Include getpass.h first.
88924
88925 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
88926
88927         * lib/xalloc-die.c: New file.
88928         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
88929         All uses removed.
88930         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
88931         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
88932         xalloc-die.c.
88933         (_, N_, xalloc_die): Move to xalloc-die.c.
88934         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
88935         so that we needn't mess with xalloc_msg_memory_exhausted.
88936
88937         * lib/sha1.h: Renamed from sha.h.
88938         (SHA1_H): Renamed from _SHA_H.
88939         (sha1_ctx): Renamed from sha_ctx.
88940         (sha1_init_ctx): Renamed from sha_init_ctx.
88941         (sha1_process_block): Renamed from sha_process_block.
88942         (sha1_process_bytes): Renamed from sha_process_bytes.
88943         (sha1_finish_ctx): Renamed from sha_finish_ctx.
88944         (sha1_read_ctx): Renamed from sha_read_ctx.
88945         (sha1_stream): Renamed from sha_stream.
88946         (sha1_buffer): Renamed from sha_buffer.
88947         * lib/sha1.c: Likewise; renamed from sha.c.
88948         Do not include <sys/types.h>.
88949         Include <stddef.h> rather than <stdlib.h>.
88950
88951 2004-08-08  Bruno Haible  <bruno@clisp.org>
88952
88953         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
88954         FILESYSTEM_PREFIX_LEN.
88955         * lib/progreloc.c: Likewise.
88956         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
88957
88958 2004-08-06  Simon Josefsson  <jas@extundo.com>
88959
88960         * modules/progname (Depends-on): Don't depend on stdbool.
88961
88962 2004-08-06  Simon Josefsson  <jas@extundo.com>
88963
88964         * modules/getsubopt: New file.
88965         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88966         getsubopt.
88967
88968 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88969
88970         More merge from coreutils.
88971
88972         * m4/utimens.m4, m4/utimecmp.m4: New files.
88973         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
88974         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
88975         prereq.m4, sha.m4: Import changes from coreutils.
88976
88977 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88978
88979         More merge from coreutils.
88980         * modules/raise, modules/readtokens0, modules/utimens:
88981         * modules/utimecmp, module/xnanosleep: New files.
88982         * modules/strftime: Add lib/strftime.h.
88983         Change include from <time.h> to "strftime.h".
88984         * modules/yesno: Add lib/yesno.h.
88985         * modules/backupfile: Remove lib/addext.c.
88986         * modules/euidaccess: Add stat-macros.h.
88987         * modules/canonicalize, modules/euidaccess,
88988         modules/filemode, modules/lchown, modules/makepath,
88989         modules/rmdir, modules/stat: Likewise.
88990
88991 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88992
88993         Merge from tar.
88994         * lib/argp-help.c (make_hol, hol_append): Don't assume that
88995         SIZE_MAX is a valid preprocessor constant.
88996         (__argp_basename): Change from "#ifndef _LIBC"
88997         to "#ifndef __argp_short_program_name", so that
88998         we don't compile these functions for tar.
88999
89000         More merges from coreutils.
89001         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
89002         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
89003         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
89004         * lib/addext.c: Remove; no longer needed.
89005         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
89006         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
89007         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
89008         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
89009         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
89010         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
89011         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
89012         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
89013         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
89014         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
89015         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
89016         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
89017         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
89018         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
89019         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
89020         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
89021         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
89022         Import changes from coreutils.
89023
89024 2004-08-05  Simon Josefsson  <jas@extundo.com>
89025
89026         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
89027
89028 2004-08-05  Simon Josefsson  <jas@extundo.com>
89029
89030         * m4/getsubopt.m4: New file.
89031
89032 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89033
89034         Merge from coreutils.
89035
89036         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
89037         * m4/getcwd-path-max.m4: New files.
89038
89039         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
89040         FILESYSTEM_PREFIX_LEN ->
89041         FILE_SYSTEM_PREFIX_LEN.
89042         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
89043         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
89044         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
89045         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
89046
89047         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
89048         prerequisite modules now handle the DOS stuff.
89049         Don't check for unistd.h.
89050
89051 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89052
89053         Merge from coreutils.
89054
89055         * lib/.gdb-history: Remove; this doesn't belong here.
89056
89057         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
89058         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
89059         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
89060         * lib/getcwd.c: New files.
89061
89062         * lib/dirname.h: Include <stdbool.h>.
89063         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
89064         for consistency with POSIX terminology.  All uses changed.
89065         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
89066         (strip_trailing_slashes): Use bool for booleans.
89067         * lib/stripslash.c (strip_trailing_slashes): Likewise.
89068
89069         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
89070         sometimes returns a positive errno value even when it succeeds.
89071         (print_errno_message) [!LIBC]: Fall back on strerror if
89072         __strerror_r fails.
89073
89074         * lib/path-concat.c (mempcpy): Don't define if a system header defines
89075         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
89076         (longest_relative_suffix): New function.
89077         (path_concat): Use it.  Assume first argument is not NULL.
89078         Port to DOS.  Omit redundant separators.
89079         Report an error instead of returning NULL.
89080         Use mempcpy instead of memcpy.
89081         (xpath_concat): Remove: not declared or used.
89082
89083         * lib/same.h: Include <stdbool.h>
89084         (same_name): Return bool, not int.
89085         * lib/same.c (same_name): Likewise.
89086         (errno): Don't declare; we assume C89 or better now.
89087
89088         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
89089         if not already defined.
89090
89091         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
89092         * lib/dup-safer.c (errno): Likewise.
89093
89094 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89095
89096         Merge from coreutils.
89097         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
89098         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
89099         * modules/path-concat: Don't depend on strdup.
89100
89101 2004-08-03  Simon Josefsson  <jas@extundo.com>
89102
89103         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
89104         * lib/progname.h: Don't include stdbool.h.
89105
89106 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89107
89108         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
89109         * MODULES.html.sh (func_all_modules): Remove fatal.
89110
89111 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89112
89113         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
89114
89115 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89116
89117         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
89118         working.
89119
89120 2004-08-02  Simon Josefsson  <jas@extundo.com>
89121
89122         * lib/getsubopt.h: New file, with comments from Bruno Haible.
89123         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
89124         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
89125
89126 2004-08-01  Simon Josefsson  <jas@extundo.com>
89127
89128         * lib/xgetdomainname.c: Include stdlib.h, for free().
89129
89130 2004-07-19  Bruno Haible  <bruno@clisp.org>
89131
89132         * MODULES.html.sh (func_all_modules): Add dummy.
89133
89134 2004-07-16  Simon Josefsson  <jas@extundo.com>
89135
89136         * modules/dummy: New file.
89137
89138 2004-07-16  Simon Josefsson  <jas@extundo.com>
89139
89140         * lib/dummy.c: New file.
89141
89142 2004-07-16  Bruno Haible  <bruno@clisp.org>
89143
89144         * lib/backupfile.h: Add extern "C" for C++.
89145         * lib/closeout.h: Likewise.
89146         * lib/copy-file.h: Likewise.
89147         * lib/findprog.h: Likewise.
89148         * lib/full-write.h: Likewise.
89149         * lib/pathname.h: Likewise.
89150         * lib/progname.h: Likewise.
89151         * lib/stpcpy.h: Likewise.
89152         * lib/stpncpy.h: Likewise.
89153         * lib/strcase.h: Likewise.
89154         * lib/strstr.h: Likewise.
89155         * lib/xalloc.h: Likewise.
89156
89157         * lib/mbswidth.h: Add extern "C" for C++.
89158         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
89159
89160 2004-07-13  Robert Millan  <robertmh@gnu.org>
89161
89162         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
89163
89164 2004-07-09  Simon Josefsson  <jas@extundo.com>
89165
89166         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
89167         failed without this.)
89168
89169 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89170
89171         * modules/chown (Files): Add lib/fchown-stub.c, since
89172         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
89173
89174 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89175
89176         * lib/fchown-stub.c: New file.
89177
89178 2004-06-24  Jim Meyering  <jim@meyering.net>
89179
89180         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
89181
89182 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89183
89184         * modules/argz: Omit "#include".
89185
89186         * MODULES.html.sh (func_all_modules): Add calloc, to match
89187         2004-06-01 addition of calloc module.
89188
89189 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89190
89191         * m4/argz.m4: New file, which is autoupdated from libtool.
89192
89193 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89194
89195         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
89196         libtool.
89197
89198 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89199
89200         * config/srclist-update: Don't insist on "USA." before the
89201         close-comment, as libtool omits the period and puts the */ on a
89202         separate line.
89203         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
89204         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
89205
89206 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
89207
89208         * modules/argz: New file.
89209         * MODULES.html.sh (func_all_modules): Add argz.
89210
89211 2004-06-12  Jim Meyering  <jim@meyering.net>
89212         and  Paul Eggert  <eggert@cs.ucla.edu>
89213
89214         * modules/hash (Files): Add lib/xalloc.h.
89215         * modules/pipe (Depends-on): Add wait-process.
89216         * modules/stat (Depends-on): Add xalloc.
89217         * modules/userspec (Files): Add lib/userspec.h.
89218         * modules/xstrto
89219
89220         Upgrade from gettext-0.13.
89221         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
89222         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
89223         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
89224
89225 2004-06-10  Jim Meyering  <jim@meyering.net>
89226
89227         * lib/calloc.c: New file.
89228
89229 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
89230
89231         * lib/getdate.y (yylex): Allow space between sign and number.
89232         Problem reported by Dan Jacobson.
89233
89234 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89235
89236         Merge from coreutils CVS.
89237
89238         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
89239         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
89240         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
89241         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
89242         xstrtol.m4: Fix copyright date and/or serial number.
89243
89244         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
89245         See if we need an fchown replacement.
89246         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
89247         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
89248         and use the replacement function if we detect either defect.
89249
89250         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
89251         gl_UTIMECMP.
89252
89253 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89254         and  Jim Meyering  <jim@meyering.net>
89255
89256         Merge from coreutils CVS.
89257
89258         * lib/stat-macros.h: New file, with contents from file-type.h
89259         and coreutils' system.h.
89260         * lib/file-type.c: Include "stat-macros.h".
89261         * lib/file-type.h (file_type): Move all macro definitions to new file,
89262         stat-macros.h.
89263
89264         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
89265         Wrap old code with this conditional.
89266         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
89267         function that does not dereference symlinks.
89268         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
89269
89270         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
89271         dependency problems.
89272         (xreadlink): Accept new arg SIZE, for efficiency.
89273         All decls and uses changed.
89274         * lib/xreadlink.h: Include <stddef.h>, for size_t.
89275
89276         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
89277         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
89278
89279         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
89280         sysexits.h.
89281
89282 2004-06-01  Jim Meyering  <jim@meyering.net>
89283
89284         * m4/calloc.m4: New file.
89285
89286 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
89287
89288         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
89289         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
89290         Also, fix a typo in a diagnostic.
89291
89292 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89293
89294         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
89295         or AC_FUNC_REALLOC.
89296
89297 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89298
89299         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
89300         macros to be defined.
89301         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
89302         the allocator returns NULL because the requested size is zero.
89303
89304 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
89305
89306         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
89307         var.  Add comment explaining why libc still defines it.  This
89308         merges the following patch from glibc:
89309         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
89310
89311 2004-05-20  Andreas Schwab  <schwab@suse.de>
89312
89313         * m4/free.m4: Replace free if it not known to work, not the other
89314         way round.
89315
89316 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
89317
89318         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
89319         present in glibc since revision 1.1 of this file.
89320         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
89321         obstack_alignment_mask, obstack_alloc, obstack_base,
89322         obstack_blank, obstack_blank_fast, obstack_chunk_size,
89323         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
89324         obstack_grow0, obstack_init, obstack_int_grow,
89325         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
89326         obstack_next_free, obstack_object_size, obstack_ptr_grow,
89327         obstack_ptr_grow_fast, obstack_room): Remove declarations of
89328         nonexistent functions.
89329
89330 2004-05-18  Karl Berry  <karl@gnu.org>
89331
89332         * config/srclist.txt: break link for vasnprintf.c.
89333
89334 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89335
89336         Port obstack to the AS/400, where pointers are 16 bytes wide and
89337         you cannot cast an integer to a valid pointer.  This patch is
89338         currently waiting to be integrated into glibc; see
89339         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
89340
89341         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
89342         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
89343         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
89344         (struct obstack): temp member is now a union of a pointer and
89345         an integer, instead of an integer.  All integer uses changed.
89346         This does not affect the physical layout of struct obstack,
89347         except on hosts (like the AS/400) where the size or alignment of
89348         void * is greater than that of ptrdiff_t.
89349         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
89350         __STDC__)]: Store temporary in pointer member of union, not
89351         integer member.
89352         * lib/obstack.c: Include <stddef.h>, for offsetof.
89353         (struct fooalign): Remove; it doesn't need a name.
89354         (union fooround): Change double to long double, and add void *.
89355         (DEFAULT_ALIGNMENT): Use offsetof to compute.
89356         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
89357         not a macro.  Hence the values are always int; so remove all
89358         casts-to-int in uses.
89359
89360 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89361
89362         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
89363         we can get this patch merged into glibc.
89364
89365 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89366             Paul Eggert  <eggert@cs.ucla.edu>
89367
89368         * m4/argp: Depend on alloca.
89369
89370 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89371             Paul Eggert  <eggert@cs.ucla.edu>
89372
89373         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
89374         freecoding.
89375
89376 2004-05-17  Bruno Haible  <bruno@clisp.org>
89377
89378         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
89379         precision that consists of a '.' followed by an empty digit string.
89380         Patch by Tor Lillqvist <tml@iki.fi>.
89381
89382 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89383
89384         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
89385         for backward compatibility with older code.  We need our own
89386         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
89387         it under some other name, and our alloca.h will define it.
89388
89389 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89390             Derek Price  <derek@ximbiot.com>
89391
89392         * lib/alloca.c: Include <alloca.h>, to get our interface.
89393         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
89394         include <alloca.h> first.  Use C89 prototype for alloca; this
89395         requires including <stddef.h> for size_t.  Use extern "C" if C++.
89396         Use #elif for simplicity, since we can assume C89 now.
89397         Don't try to source the system alloca.h since it will not be found
89398         and to prevent recursively including its replacement.
89399         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
89400         * lib/regex.c: Likewise.
89401
89402 2004-05-16  Derek Price  <derek@ximbiot.com>
89403             Paul Eggert  <eggert@cs.ucla.edu>
89404
89405         getline cleanup.  This changes the getndelim2 API: both order of
89406         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
89407         no delimiter).
89408
89409         * lib/getline.c: Don't include stddef.h or stdio.h, since our
89410         interface does that.
89411         (getline): Always use getdelim, so that we don't have two
89412         copies of this code.
89413         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
89414         if available.
89415         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
89416         (GETNDELIM2_MAXIMUM): New macro.
89417         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
89418         instead of the old practice of delim2==0.  All callers changed.
89419         Return -1 on overflow, instead of returning junk.
89420         Do not set *linesize unless allocation succeeds.
89421         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
89422         that we include sys/types.h.
89423         * lib/getnline.h: Likewise.
89424         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
89425         (getndelim2): Reorder arguments.
89426         * lib/getnline.c (getnline, getndelim):
89427         Don't discard the NMAX argument.
89428         (getnline): Invoke getndelim, to avoid code duplication.
89429         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
89430         of (size_t) -1 by callers of the getnline family.
89431
89432 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89433
89434         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
89435         Check for gettimeofday.
89436         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
89437         Check for settimeofday, stime.
89438
89439 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89440
89441         * lib/nanosleep.c (suspended): Change its type from int to
89442         sig_atomic_t volatile.
89443         (first_call): Make it private to rpl_nanosleep, and have it
89444         be zero initially as that's a bit faster.
89445         (my_usleep): Round up fractional times instead of truncating them,
89446         as this is the usual meaning for 'sleep'.
89447
89448         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
89449         doesn't work.
89450         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
89451         (ENOSYS): Define if not defined.
89452         (settime): Fall back on stime if it exists and settimeofday fails.
89453         But don't bother with fallbacks if a method fails with errno == EPERM.
89454
89455 2004-05-11  Jim Meyering  <jim@meyering.net>
89456
89457         Prior to this change, the save_cwd caller required read access to the
89458         current directory on most systems (ones with the fchdir function).
89459
89460         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
89461         fails, try write-only, and finally, resort to using xgetcwd.
89462
89463 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
89464
89465         * lib/obstack.c, obstack.h: Import changes from libc.
89466
89467 2004-04-28  Bruno Haible  <bruno@clisp.org>
89468
89469         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
89470         also implicitly appends .exe to executables.
89471         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
89472         accepts Windows pathnames.
89473         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89474         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89475         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89476         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89477         Reported by Derek Robert Price <derek@ximbiot.com>.
89478
89479 2004-04-21  Karl Berry  <karl@gnu.org>
89480
89481         * config/srclist.txt (localcharset.c): break sync.
89482
89483 2004-04-20  Paul Eggert  <eggert@twinsun.com>
89484
89485         * m4/host-os.m4: Add a copyright notice.
89486
89487 2004-04-20  Jim Meyering  <jim@meyering.net>
89488
89489         Change UTILS_ to gl_ in AC_DEFINE'd names.
89490         Change utils_- and jm_-prefixed variables, too.
89491         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
89492         UTILS_FUNC_MKDIR_TRAILING_SLASH.
89493         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
89494
89495         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
89496         Don't emit trailing blanks.
89497         Also rename jm_-prefixed variables to have gl_ prefix.
89498
89499         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
89500         Also rename jm_-prefixed variables to have gl_ prefix.
89501
89502         * m4/jm-macros.m4: Reflect the renamings.
89503         * m4/prereq.m4: Likewise.
89504
89505 2004-04-20  Jim Meyering  <jim@meyering.net>
89506
89507         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
89508         memory.
89509
89510 2004-04-20  Jim Meyering  <jim@meyering.net>
89511             Bruno Haible  <bruno@clisp.org>
89512
89513         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
89514         memory when realloc fails.
89515
89516 2004-04-19  Jim Meyering  <jim@meyering.net>
89517
89518         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
89519         now that readutmp.c may call `free (0)'.
89520
89521 2004-04-19  Bruno Haible  <bruno@clisp.org>
89522
89523         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
89524         * m4/inttypes_h.m4: Likewise.
89525         * m4/stdint_h.m4: Likewise.
89526         * m4/intmax_t.m4: Likewise.
89527         * m4/uintmax_t.m4: Likewise.
89528
89529 2004-04-18  Jim Meyering  <jim@meyering.net>
89530
89531         * m4/prereq.m4: Don't forbid jm_ prefix.
89532
89533         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
89534         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
89535         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
89536         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
89537         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
89538         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
89539         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
89540         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
89541         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
89542         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
89543         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
89544         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
89545         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
89546         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
89547         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
89548         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
89549         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
89550         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
89551         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
89552
89553 2004-04-18  Jim Meyering  <jim@meyering.net>
89554
89555         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
89556         failure, don't leak memory and do call END_UTMP_ENT.
89557
89558 2004-04-16  Jim Meyering  <jim@meyering.net>
89559
89560         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
89561         coreutils' stat program.
89562         (gl_PREREQ): Don't require jm_PREREQ_STAT.
89563
89564 2004-04-11  Paul Eggert  <eggert@twinsun.com>
89565
89566         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
89567         C89.
89568         (CHAR_BIT): Remove, since we assume C89.
89569         Include <stdint.h> if available, as per current Autoconf CVS advice.
89570
89571 2004-03-31  Jim Meyering  <jim@meyering.net>
89572
89573         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
89574         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
89575         * m4/xalloc.m4: Likewise.
89576
89577 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89578
89579         Merge from coreutils.
89580
89581         * m4/inttostr.m4: New file.
89582         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
89583         Require AM_STDBOOL_H and gl_TIMESPEC instead.
89584         Require gl_CLOCK_TIME.
89585         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
89586
89587 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89588
89589         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
89590         not bool, to be more consistent with Unix conventions.
89591         Suggested by Bruno Haible.
89592
89593         Merge from coreutils.
89594
89595         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
89596         * lib/umaxtostr.c: New files.
89597
89598         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
89599         the usual <time.h> dance.
89600         (get_date): Change signature to support fractional time stamps.
89601         All callers changed.
89602         * lib/getdate.y: Include "getdate.h" first, as we can now
89603         assume C89 and don't need to worry about 'const'.
89604         Similarly, include "unlocked-io.h" near start, not in middle.
89605         Include <limits.h>.
89606         (textint.value): Use long int rather than int.
89607         (textint.digits): Use size_t rather than int.
89608         (BILLION, LOG10_BILLION): New constants.
89609         (parser_control): New member rel_ns.  Members day_ordinal,
89610         time_zone, month, day, hour, minutes, rel_year, rel_month,
89611         rel_day, rel_hour, rel_minutes, rel_seconds
89612         are now long int, not int.  Member seconds is now struct timespec,
89613         not int.  New member timespec_seen.  Members dates_seen, days_seen,
89614         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
89615         not int.
89616         (%union.intval): Now long int, not int.
89617         New member timespec.
89618         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
89619         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
89620         (spec): Now is a timespec or an item list.
89621         (timespec, items): New nonterminals.
89622         (time, rel, relunit, number, get_date):
89623         Add support for fractional seconds.
89624         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
89625         (gmtime, localtime, mktime): Remove decls; not needed with C89.
89626         (to_hour): First arg is now long int, not int.
89627         (to_year): Returns long int, not int.
89628         Don't treat year -70 like 70.
89629         (tm_diff): Returns long int, not int.
89630         (lookup_word): Use bool instead of int when appropriate.
89631         (yylex): Use size_t for count, not int.
89632         Detect overflow when parsing large integer constants.
89633         Add support for fractions.
89634         (get_date): Make pointers 'const' if possible.
89635         Use more-portable code to detect integer overflow.
89636         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
89637         Don't use ctime; it's not reliable if the year has >4 digits.
89638
89639         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
89640         This is for compatibility with BSD.
89641
89642         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
89643         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
89644         From coreutils' system.h.
89645
89646         * lib/userspec.c: Don't include "posixver.h".
89647         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
89648         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
89649         compatible extension.  Simplify code by removing a boolean int
89650         that was always nonzero if a string was nonnull.
89651
89652 2004-03-30  Jim Meyering  <jim@meyering.net>
89653
89654         Merge from coreutils.
89655
89656         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
89657         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
89658         on some systems one must include <grp.h> before it.
89659         Reported by Christian Krackowizer.
89660
89661 2004-03-30  Jim Meyering  <jim@meyering.net>
89662
89663         Merge from coreutils.
89664
89665         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
89666
89667         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
89668         an empty input stream.
89669
89670         * lib/readtokens.c: Include <stdbool.h>.
89671         (readtoken): Use `size_t' rather than int/long.
89672         All callers adjusted.
89673         Use `bool' rather than `int' where appropriate.
89674         Use memset rather than an explicit loop.
89675         Use x2nrealloc rather than xrealloc.
89676         Allow the use of `\0' as a delimiter.
89677         (readtokens): Likewise.
89678         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
89679
89680 2004-03-30  Jim Meyering  <jim@meyering.net>
89681
89682         * m4/realloc.m4: Remove file, since now it does no more than
89683         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
89684         the `configure.ac' section of module/realloc.
89685         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
89686
89687 2004-03-30  Bruno Haible  <bruno@clisp.org>
89688
89689         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
89690         nonnull.
89691
89692 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89693
89694         Merge changes to getloadavg.c from coreutils and Emacs.
89695
89696         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
89697         Define to an expression, not to the empty string.
89698         Include cloexec.h and xalloc.h.
89699         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
89700         Use set_cloexec_flag rather than rolling our own.
89701         * lib/cloexec.c, lib/cloexec.h: New files.
89702
89703 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89704
89705         * m4/cloexec.m4: New file.
89706
89707 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89708
89709         * lib/getopt.h: Sync with libc CVS.
89710
89711 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89712             Bruno Haible  <bruno@clisp.org>
89713
89714         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
89715         mbswidth.
89716
89717 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89718             Bruno Haible  <bruno@clisp.org>
89719
89720         * lib/mbswidth.h: Include <wchar.h> only if
89721         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
89722         <wchar.h>.
89723         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
89724
89725 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89726
89727         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
89728         Sync with libc CVS.
89729         * lib/getopt_int.h: New file, also synced from libc.
89730
89731 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89732
89733         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
89734         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
89735         Bring back getopt.c, getopt.h, getopt1.c.
89736
89737 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89738
89739         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
89740         All uses changed.  Check for sa_sigaction member; this fixes
89741         a bug first reported by Jason Andrade in
89742         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89743
89744 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89745
89746         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
89747         '#if' expressions.  Unlike the code it replaces, it does not
89748         depend on (defined _SC_PAGESIZE).  However, it does depend on
89749         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
89750         first reported by Jason Andrade in
89751         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89752
89753 2004-02-25  Simon Josefsson  <jas@extundo.com>
89754
89755         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
89756
89757 2004-02-25  Simon Josefsson  <jas@extundo.com>
89758
89759         * lib/strdup.h: New file.
89760         * lib/strdup.c: Include it.
89761         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
89762         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
89763
89764 2004-02-23  Karl Berry  <karl@gnu.org>
89765
89766         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
89767         (from fencepost.gnu.org:/gd/gnuorg).
89768
89769 2004-02-23  Karl Berry  <karl@gnu.org>
89770
89771         * config/srclistvars.sh (GNUORG) [karl]: redefine.
89772         * config/srclist.txt: add maintain/standards documents.
89773
89774 2004-02-18  Bruno Haible  <bruno@clisp.org>
89775
89776         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
89777         Reported by Derek Robert Price <derek@ximbiot.com>.
89778
89779 2004-02-16  Karl Berry  <karl@gnu.org>
89780
89781         * config/mkinstalldirs, install-sh: update from automake.
89782
89783 2004-02-06  Karl Berry  <karl@gnu.org>
89784
89785         * m4/po.m4: update from gettext 0.14.1.
89786
89787 2004-02-06  Karl Berry  <karl@gnu.org>
89788
89789         * lib/config.charset: update from gettext 0.14.1.
89790
89791 2004-02-05  Paul Eggert  <eggert@twinsun.com>
89792
89793         Add comments and code, prompted by suggestions from Bruno Haible
89794         for sh-quote.
89795         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
89796         describing the enum quoting_style values.
89797         * lib/quotearg.c (quotearg_alloc): New function.
89798         (quotearg_buffer_restyled): Treat lone { and } as special.
89799         Treat = as special.  Work around bug with older shells
89800         that "see" a '\' that is really the 2nd byte of a multibyte char.
89801         Quote empty string with shell_quoting_style.
89802
89803 2004-02-03  Bruno Haible  <bruno@clisp.org>
89804
89805         * m4/pipe.m4: New file, from GNU gettext.
89806
89807 2004-02-03  Bruno Haible  <bruno@clisp.org>
89808
89809         * lib/pipe.h: New file, from GNU gettext.
89810         * lib/pipe.c: New file, from GNU gettext.
89811
89812 2004-01-27  Bruno Haible  <bruno@clisp.org>
89813
89814         * m4/execute.m4: New file, from GNU gettext.
89815
89816 2004-01-27  Bruno Haible  <bruno@clisp.org>
89817
89818         * lib/execute.h: New file, from GNU gettext.
89819         * lib/execute.c: New file, from GNU gettext.
89820         * lib/w32spawn.h: New file, from GNU gettext.
89821
89822 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89823
89824         Merge from diffutils.
89825
89826         * lib/file-type.c (file_type): Add typed memory objects.
89827         * lib/file-type.h (S_TYPEISTMO): New macro.
89828
89829         * lib/c-stack.h (c_stack_action): Remove argv argument.
89830         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
89831         (die): Don't calculate message unless segv_action returns.
89832         (get_stack_location, min_address_from_argv, max_address_from_argv,
89833         volatile stack_base, volatile_stack_size): Remove.
89834         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
89835         that every segmentation violation is a stack overflow.  (Ouch!)
89836         See Debian bug 136249 (still outstanding) for more info about why
89837         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
89838
89839 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89840
89841         Exit-status fix from coreutils.
89842
89843         Use exit_failure consistently in place of EXIT_FAILURE,
89844         so that program exit statuses are consistent on failure.
89845
89846         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
89847         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
89848         * lib/argmatch.h: Comment fix to match the above.
89849         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
89850         Now a macro referring to exit_failure, instead of a separate
89851         variable.  Include "exitfail.h" to get it.
89852         * lib/xstrtol.h: Include "exitfail.h".
89853         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
89854
89855         * lib/long-options.c (parse_long_options): Use prototype
89856         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
89857         for clarity.
89858
89859 2004-01-21  Jim Meyering  <jim@meyering.net>
89860
89861         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
89862         so as not to conflict with a different-sized __mktime_internal
89863         function in GNU libc.
89864         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
89865         Problem building statically-linked `ls' reported by Michael Brunnbauer.
89866
89867 2004-01-20  Karl Berry  <karl@gnu.org>
89868
89869         * config/config.guess: update from config.
89870
89871         * config/srclistvars.sh: GNUWWWLICENSES for karl.
89872
89873 2004-01-20  Bruno Haible  <bruno@clisp.org>
89874
89875         Safer stack allocation.
89876         * lib/setenv.c: Include allocsa.h.
89877         (alloca): Remove fallback definition.
89878         (freea): Remove macro.
89879         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
89880         instead of freea.
89881
89882 2004-01-20  Bruno Haible  <bruno@clisp.org>
89883
89884         * m4/eealloc.m4: New file, from GNU gettext.
89885
89886 2004-01-20  Bruno Haible  <bruno@clisp.org>
89887
89888         * m4/allocsa.m4: New file, from GNU gettext.
89889
89890 2004-01-20  Bruno Haible  <bruno@clisp.org>
89891
89892         * lib/xallocsa.h: New file, from GNU gettext.
89893         * lib/xallocsa.c: New file, from GNU gettext.
89894
89895 2004-01-20  Bruno Haible  <bruno@clisp.org>
89896
89897         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
89898
89899 2004-01-20  Bruno Haible  <bruno@clisp.org>
89900
89901         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
89902         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
89903         specially.
89904
89905 2004-01-20  Bruno Haible  <bruno@clisp.org>
89906
89907         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
89908         patch.
89909
89910 2004-01-20  Bruno Haible  <bruno@clisp.org>
89911
89912         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
89913
89914 2004-01-20  Bruno Haible  <bruno@clisp.org>
89915
89916         * lib/eealloc.h: New file.
89917
89918 2004-01-20  Bruno Haible  <bruno@clisp.org>
89919
89920         * lib/binary-io.h: Avoid warnings on Cygwin.
89921
89922 2004-01-20  Bruno Haible  <bruno@clisp.org>
89923
89924         * lib/allocsa.h: New file, from GNU gettext.
89925         * lib/allocsa.c: New file, from GNU gettext.
89926
89927 2004-01-18  Karl Berry  <karl@gnu.org>
89928
89929         * doc/gpl.texi, doc/lgpl.texi: new files.
89930
89931 2004-01-18  Karl Berry  <karl@gnu.org>
89932
89933         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
89934         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
89935
89936 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89937
89938         Merge from coreutils.
89939
89940         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
89941         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
89942         (gl_DEFAULT_POSIX2_VERSION): Move
89943         the documentation from 'configure' into 'config.hin',
89944         so that 'configure --help' isn't burdened by it and
89945         we don't have to worry about its formatting there.
89946         Reword the documentation so that it's more succinct
89947         and can be run together into a single paragraph.
89948         * m4/same.m4 (gl_SAME): Check for pathconf.
89949
89950 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89951
89952         Merge from coreutils.
89953
89954         * lib/posixver.c: Include posixver.h.
89955
89956         * lib/same.c: Include <stdbool.h>, <limits.h>.
89957         (_POSIX_NAME_MAX): Define if not defined.
89958         (MIN): New macro.
89959         (same_name): If file names are silently truncated, report
89960         that the file names are the same if they are the same after
89961         the silent truncation.
89962
89963         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
89964         conversion function.
89965         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
89966         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
89967         longer needed.
89968
89969 2004-01-15  Jim Meyering  <jim@meyering.net>
89970
89971         Merge from coreutils.
89972
89973         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
89974         if no library is required.
89975         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
89976         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
89977         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
89978         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
89979         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
89980         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
89981         value, $ac_cv_search_crypt, if it's "none required".
89982         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
89983         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
89984         not gl_FUNC_GETLOADAVG.
89985         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
89986         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
89987
89988 2004-01-15  Jim Meyering  <jim@meyering.net>
89989
89990         Merge from coreutils.
89991
89992         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
89993         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
89994         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
89995
89996         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
89997         optional configure-time default.
89998
89999         * lib/version-etc.c (version_etc_copyright): Update copyright date.
90000
90001         * lib/xreadlink.c (xreadlink): Correct outdated comment.
90002
90003 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
90004
90005         Merge from coreutils.
90006
90007         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
90008         value, $ac_cv_search_nanosleep, if it's "none required".
90009
90010 2004-01-14  Paul Eggert  <eggert@twinsun.com>
90011
90012         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
90013         with like-named macro in fnmatch.c.
90014         (EXT): Use an internal constant instead.
90015
90016         Merge fnmatch patches from glibc.
90017         * lib/fnmatch.c (mbsinit): Remove define.
90018         Add libc_hidden_ver (__fnmatch, fnmatch).
90019         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
90020         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
90021
90022 2004-01-14  Karl Berry  <karl@gnu.org>
90023
90024         * config/install-sh: update from automake.
90025
90026 2004-01-13  Karl Berry  <karl@gnu.org>
90027
90028         * config/install-sh: update from automake.
90029
90030 2004-01-09  Karl Berry  <karl@gnu.org>
90031
90032         * config/install-sh: update from automake.
90033
90034 2004-01-05  Karl Berry  <karl@gnu.org>
90035
90036         * config/config.{sub,guess}: update from config.
90037
90038 2003-12-31  Karl Berry  <karl@gnu.org>
90039
90040         * config/depcomp: update from automake.
90041
90042 2003-12-14  Karl Berry  <karl@gnu.org>
90043
90044         * lib/config.charset: update from gettext-runtime.
90045
90046 2003-12-03  Paul Eggert  <eggert@twinsun.com>
90047
90048         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
90049         Bug reported by Alfred M. Szmidt.
90050
90051 2003-12-03  Bruno Haible  <bruno@clisp.org>
90052
90053         * m4/gettext.m4: Upgrade from gettext-0.13.
90054         * m4/po.m4: Upgrade from gettext-0.13.
90055         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
90056         * m4/intmax.m4: New file, from gettext-0.13.
90057         * m4/printf-posix.m4: New file, from gettext-0.13.
90058
90059 2003-11-29  Karl Berry  <karl@gnu.org>
90060
90061         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
90062
90063 2003-11-25  Paul Eggert  <eggert@twinsun.com>
90064             Bruno Haible  <bruno@clisp.org>
90065
90066         * lib/printf-parse.h: Don't include sys/types.h.
90067         (ARG_NONE): New macro.
90068         (char_directive): Change type of *arg_index fields to size_t.
90069         * lib/printf-parse.c: Don't include sys/types.h.
90070         (SSIZE_MAX): Remove macro.
90071         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
90072         Remove unnecessary overflow check.
90073         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
90074         fields.
90075
90076 2003-11-25  Bruno Haible  <bruno@clisp.org>
90077
90078         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
90079
90080 2003-11-25  Bruno Haible  <bruno@clisp.org>
90081
90082         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
90083         gt_TYPE_SSIZE_T.
90084
90085 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90086
90087         * modules/alloca: Remove dependency on xalloc.
90088
90089 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90090
90091         * lib/alloca.c: Remove dependency on xalloc module.
90092         (xalloc_die): Remove.
90093         (memory_full) [!defined emacs]: New macro.
90094         [!defined emacs]: Don't include xalloc.h.
90095         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
90096         address arithmetic overflows.  Change datatypes a bit to avoid
90097         unnecessary casts.
90098
90099 2003-11-22  Jim Meyering  <jim@meyering.net>
90100
90101         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
90102         s/size/size_t/.
90103
90104 2003-11-21  Karl Berry  <karl@gnu.org>
90105
90106         * config/config.{sub,guess}: update from config.
90107
90108 2003-11-18  Karl Berry  <karl@gnu.org>
90109
90110         * config/config.{sub,guess}: update from config.
90111
90112         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
90113
90114 2003-11-17  Paul Eggert  <eggert@twinsun.com>
90115
90116         * README: Mention that S+T cannot overflow if S is the size of
90117         an existing object and T is sufficiently small.
90118
90119 2003-11-17  Jim Meyering  <jim@meyering.net>
90120
90121         On systems without utime and without a utimes function capable of
90122         dealing with a NULL struct utimbuf* argument, this utime replacement
90123         could -- in unusual circumstances -- leak a file descriptor.
90124         * lib/utime.c: Include <unistd.h> and <errno.h>.
90125         (utime_null): Be sure to close `fd' and to preserve errno.
90126         Reported by Geoff Collyer via Arnold Robbins.
90127
90128 2003-11-17  Bruno Haible  <bruno@clisp.org>
90129
90130         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
90131         (Depends-on): Add xsize.
90132
90133 2003-11-17  Bruno Haible  <bruno@clisp.org>
90134
90135         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
90136
90137 2003-11-17  Bruno Haible  <bruno@clisp.org>
90138
90139         * lib/vasnprintf.c (alloca): Remove fallback definition.
90140         (freea): Remove definition.
90141         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
90142         Reported by Paul Eggert.
90143
90144 2003-11-16  Paul Eggert  <eggert@twinsun.com>
90145             Bruno Haible  <bruno@clisp.org>
90146
90147         Protect against address arithmetic overflow.
90148         * lib/printf-args.h: Include stddef.h.
90149         (arguments): Change type of field 'count' to size_t.
90150         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
90151         'unsigned int' where appropriate.
90152         * lib/printf-parse.h: Include sys/types.h.
90153         (char_directive): Change type of *arg_index fields to ssize_t.
90154         (char_directives): Change type of fields 'count', max_*_length to
90155         size_t.
90156         * lib/printf-parse.c: Include sys/types.h and xsize.h.
90157         (SSIZE_MAX): Define fallback value.
90158         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
90159         instead of 'int' where appropriate. Check a_allocated, d_allocated
90160         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
90161         * lib/vasnprintf.c: Include xsize.h.
90162         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
90163         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
90164         overflow. Avoid wraparound when converting a width or precision from
90165         decimal to binary.
90166
90167 2003-11-16  Bruno Haible  <bruno@clisp.org>
90168
90169         Update from GNU gettext.
90170         * lib/printf-parse.c: Generalize to it can be compiled for wide
90171         strings.
90172         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
90173         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
90174         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
90175         SNPRINTF): New macros.
90176         Don't include <alloca.h> if the file is used inside libintl.
90177         (local_wcslen): New function, for Solaris 2.5.1.
90178         (VASNPRINTF): Use it instead of wcslen.
90179
90180 2003-11-16  Bruno Haible  <bruno@clisp.org>
90181
90182         * lib/xsize.h (xmax): New function.
90183         (xsum, xsum3, xsum4): Declare as "pure" functions.
90184
90185 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90186
90187         * modules/xalloc (Files): Undo latest change, since xalloc.h
90188         no longer needs SIZE_MAX or PTRDIFF_MAX.
90189
90190 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90191
90192         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
90193         gl_PTRDIFF_MAX.
90194
90195 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90196
90197         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
90198         "return", to pacify some unknown compiler.  Problem reported
90199         by Joerg Schilling.
90200
90201 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90202
90203         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
90204         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
90205         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
90206         heuristic is just as accurate as far as we know, and it removes a
90207         dependency on size_max.m4 and ptrdiff_max.m4.
90208
90209 2003-11-11  Bruno Haible  <bruno@clisp.org>
90210
90211         * modules/xsize (Files): Add m4/size_max.m4.
90212         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
90213
90214 2003-11-11  Bruno Haible  <bruno@clisp.org>
90215
90216         * m4/size_max.m4: New file.
90217         * m4/ptrdiff_max.m4: New file.
90218         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
90219         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
90220         (gl_XALLOC): Invoke it.
90221
90222 2003-11-11  Bruno Haible  <bruno@clisp.org>
90223
90224         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
90225         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
90226         defined.
90227
90228 2003-11-10  Paul Eggert  <eggert@twinsun.com>
90229
90230         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
90231         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
90232         rejected some allocations of exactly SIZE_MAX - 2 bytes.
90233         From Bruno Haible.
90234         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
90235         not (size_t) -1, since it's defined here.
90236
90237 2003-11-09  Karl Berry  <karl@gnu.org>
90238
90239         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
90240
90241 2003-11-06  Paul Eggert  <eggert@twinsun.com>
90242
90243         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
90244         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
90245         Reject sizes of exactly SIZE_MAX bytes.
90246         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
90247         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
90248
90249 2003-11-05  Bruno Haible  <bruno@clisp.org>
90250
90251         * lib/xsize.h: Include limits.h, to avoid a possible collision with
90252         SIZE_MAX defined in <limits.h> on Solaris.
90253
90254 2003-11-04  Jim Meyering  <jim@meyering.net>
90255
90256         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
90257         variable names, rather than @VAR@.
90258         * modules/poll: Likewise.
90259
90260 2003-11-04  Bruno Haible  <bruno@clisp.org>
90261
90262         * modules/xsize: New file.
90263         * modules/linebreak: Depend on xsize.
90264         * MODULES.html.sh (func_all_modules): Add xsize.
90265
90266 2003-11-04  Bruno Haible  <bruno@clisp.org>
90267
90268         * m4/xsize.m4: New file.
90269
90270 2003-11-04  Bruno Haible  <bruno@clisp.org>
90271
90272         * lib/xsize.h: New file.
90273         * lib/linebreak.c: Include xsize.h.
90274         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
90275         argument for overflow.
90276         Suggested by Paul Eggert.
90277
90278 2003-11-03  Karl Berry  <karl@gnu.org>
90279
90280         * config/config.{guess,sub}: update from config.
90281
90282 2003-11-03  Jim Meyering  <jim@meyering.net>
90283
90284         * modules/userspec (lib_SOURCES): Add userspec.h.
90285         (Include): Add "userspec.h".
90286         Improve description.
90287
90288 2003-11-03  Jim Meyering  <jim@meyering.net>
90289
90290         * lib/userspec.c: Include "userspec.h".
90291         * lib/userspec.h: New file.
90292
90293 2003-11-03  Bruno Haible  <bruno@clisp.org>
90294
90295         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
90296
90297 2003-11-03  Bruno Haible  <bruno@clisp.org>
90298
90299         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
90300         available, to avoid (extremely rare) race condition.
90301         Suggested by Paul Eggert.
90302
90303 2003-11-02  Karl Berry  <karl@gnu.org>
90304
90305         * config/srclist.txt (vasprintf.c): sync broken, sigh.
90306
90307 2003-10-31  Paul Eggert  <eggert@twinsun.com>
90308
90309         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
90310         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
90311         (read_filesystem_list): Set and use me_type_malloced.
90312         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
90313         whatever the type happens to be), for brevity and consistency.
90314         Check for size calculation overflow on Alphas running OSF/1.
90315
90316 2003-10-31  Jim Meyering  <jim@meyering.net>
90317
90318         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
90319
90320         * lib/linebuffer.c: Include <string.h> for declaration of memset.
90321
90322 2003-10-30  Paul Eggert  <eggert@twinsun.com>
90323             Bruno Haible  <bruno@clisp.org>
90324
90325         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
90326         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
90327
90328 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
90329
90330         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
90331         netbsd*-gnu*.  Suggested by Robert Millan.
90332
90333 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90334
90335         * modules/group-member: Depend on stdbool.
90336
90337 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90338
90339         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
90340
90341 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90342
90343         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
90344         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
90345         after the 'gnu' in these cases.  This fixes some bugs in the
90346         previous change, and is based on suggestions by Robert Millan.
90347
90348 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90349
90350         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
90351         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
90352         no longer needed.
90353         * lib/quotearg.c (quotearg_n_options): Use it.
90354         * lib/group-member.c: Include <stdbool.h>.
90355         (free_group_info): Arg is now const *; don't free arg.
90356         (get_group_info): Now returns bool and accepts struct group_info *,
90357         rather than returning a malloc'ed struct group_info *.
90358         All uses changed.  Check for overflow in internal size calculation.
90359
90360         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
90361         rather than xmalloc/xrealloc.
90362         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
90363         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
90364         conformance bug: the old code used a pointer after freeing the
90365         storage that it addressed.
90366         * lib/hash.c (hash_initialize): Simplify the code by using
90367         xalloc_oversized rather than doing it by hand.
90368         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
90369         the buffer preserved.  Use free and xmalloc instead.
90370         * lib/quotearg.c (quotearg_n_options): Likewise.
90371         Use a simpler test for size overflow.  Don't use xalloc_oversized
90372         because unsigned int might be wider than size_t (!); this suggests
90373         that we should switch from unsigned int to size_t for slot numbers.
90374
90375 2003-10-28  Paul Eggert  <eggert@twinsun.com>
90376
90377         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
90378         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
90379         NetBSD kernels.  Requested by Richard Stallman.
90380
90381 2003-10-27  Paul Eggert  <eggert@twinsun.com>
90382
90383         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
90384         to allocate the returned structure.  Do not allocate a subarray,
90385         as x2nrealloc will do that.
90386         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
90387         instead of xnrealloc.
90388         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
90389
90390 2003-10-27  Bruno Haible  <bruno@clisp.org>
90391
90392         * lib/stdbool_.h: Better support for BeOS.
90393
90394 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90395
90396         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
90397         now uses inline.
90398
90399 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90400
90401         * lib/xalloc.h (xalloc_oversized): New static inline function, for
90402         callers that want to do their own size-overflow checking.  Include
90403         <stdbool.h>, since xalloc_oversized returns bool.
90404         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
90405         to use xalloc_oversized.
90406
90407         Add two functions x2realloc, x2nrealloc, for programs that grow
90408         arrays dynamically by doubling their sizes.
90409         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
90410         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
90411         New functions.
90412
90413         Port to C99 semantics for 'inline' of external functions.
90414         Bug reported by Bruno Haible.
90415         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
90416         with the old contents of xnmalloc.
90417         (xnmalloc, xmalloc): Use it.
90418         (xnrealloc_inline): New static inline function,
90419         with the old contents of xnrealloc.
90420         (xnrealloc, xrealloc): Use it.
90421
90422         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
90423         that.
90424
90425 2003-10-26  Karl Berry  <karl@gnu.org>
90426
90427         * config/srclist.txt (COPYING.DOC): no longer available from
90428         /gd/gnuorg; don't know where the ultimate source is.
90429
90430 2003-10-25  Paul Eggert  <eggert@twinsun.com>
90431
90432         Fix several address-calculation bugs in the hash modules,
90433         plus some minor code cleanup.
90434
90435         * lib/hash.h: Include <stdbool.h>, for bool.
90436         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
90437         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
90438         hash_get_n_entries, hash_get_max_bucket_length,
90439         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
90440         hash_rehash): Use size_t rather than unsigned.
90441         * lib/hash.c (struct hash_table, hash_get_n_buckets,
90442         hash_get_n_buckets_used, hash_get_n_entries,
90443         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
90444         hash_get_entries, hash_do_for_each, hash_string, is_prime,
90445         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
90446         Likewise.
90447         (SIZE_MAX): Define if not defined.
90448         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
90449         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
90450         hash_print):
90451         Use const * when possible.
90452         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
90453         (check_tuning): Fix bug: if tuning parameters were very close to
90454         0 or 1, rounding errors could have caused subscript violations.
90455         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
90456         (hash_initialize): Add 'fail:' label
90457         to free table and return NULL, and use it to simplify code.
90458         Use calloc rather than clearing the storage ourself.
90459         (hash_initialize, hash_rehash): Check for arithmetic overflow in
90460         buffer size calculations.
90461         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
90462         Include <stddef.h>, for size_t.
90463         * lib/hash-pjw.c (hash_pjw): Likewise.
90464         Switch to method described by Bruno Haible.
90465         Include <limits.h>, for CHAR_BIT.
90466         (SIZE_BITS): New macro.
90467
90468 2003-10-23  Paul Eggert  <eggert@twinsun.com>
90469
90470         * m4/getline.m4 (AM_FUNC_GETLINE):
90471         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
90472         hosts.  Problem reported by Derek Robert Price in
90473         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
90474         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
90475         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
90476
90477 2003-10-21  Paul Eggert  <eggert@twinsun.com>
90478
90479         * lib/getndelim2.c (getndelim2): When size calculation overflows,
90480         ceiling the allocation at NMAX bytes rather than silently
90481         discarding input bytes before NMAX is reached.  This makes
90482         a difference only if NMAX exceeds SIZE_MAX / 2.
90483
90484         * lib/obstack.c: Merge from glibc.
90485         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
90486         Add libc_hidden_def (_obstack_newchunk).
90487         (_obstack_free) [! defined _LIBC]: Remove.
90488         [defined _LIBC]: Make a strong alias from obstack_free, rather than
90489         a clone of the function body.
90490         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
90491         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
90492
90493         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
90494         glibc.
90495         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
90496         arg to memcpy.
90497
90498         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
90499         (obstack_ptr_grow_fast, obstack_int_grow_fast):
90500         Don't use lvalue casts, as GCC plans to remove support for them
90501         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
90502         was also present in the non-GCC version, indicating that this
90503         code had always been buggy and had never been widely used.
90504         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
90505         Use the fast variant of each macro, rather than copying the
90506         definiens of the fast variant; that way, we'll be more likely to
90507         catch future bugs in the fast variants.
90508
90509 2003-10-20  Bruno Haible  <bruno@clisp.org>
90510
90511         * modules/wait-process: New file.
90512         * MODULES.html.sh (func_all_modules): Add wait-process.
90513
90514 2003-10-20  Bruno Haible  <bruno@clisp.org>
90515
90516         * m4/wait-process.m4: New file.
90517
90518 2003-10-20  Bruno Haible  <bruno@clisp.org>
90519
90520         * lib/wait-process.h: New file, from GNU gettext.
90521         * lib/wait-process.c: New file, from GNU gettext.
90522
90523 2003-10-19  Jim Meyering  <jim@meyering.net>
90524
90525         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
90526         HPUX 10.20.
90527
90528 2003-10-18  Karl Berry  <karl@gnu.org>
90529
90530         * config/config.guess: update from config.
90531
90532 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90533
90534         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
90535         (getgroups): First arg is int, not size_t.
90536         Don't let 'free' mangle errno.
90537
90538 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90539
90540         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
90541
90542 2003-10-16  Karl Berry  <karl@gnu.org>
90543
90544         * config/config.{guess,sub}: update from config.
90545
90546 2003-10-16  Jim Meyering  <jim@meyering.net>
90547
90548         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
90549         memcpy.
90550
90551 2003-10-15  Paul Eggert  <eggert@twinsun.com>
90552
90553         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
90554         (SIZE_MAX): Remove.
90555         (new_exclude, add_exclude_file): Initial size no longer needs to
90556         be a power of 2.
90557         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
90558         our own address arithmetic overflow checking.
90559
90560         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
90561         (fnmatch): Do not alloca more than 2000 wide characters;
90562         instead, use malloc for large buffers.
90563         Check for address arithmetic overflow, and return -1
90564         with errno set to ENOMEM in that case.
90565         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
90566         (NEW_PATTERN): Do not alloca more than 8000 bytes;
90567         instead, return -1.  Check for address arithmetic overflow.
90568
90569 2003-10-14  Paul Eggert  <eggert@twinsun.com>
90570
90571         Handle invalid suffixes and overflow independently, so that
90572         callers can treat them independently as needed.  Fix some bugs in
90573         suffix handling, e.g., "100k@" was not diagnosed as an invalid
90574         suffix for a human-readable blocksize.  The major caller-visible
90575         change is the addition of a new
90576         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
90577         that both overflow and suffix chars were found.
90578
90579         * lib/human.c (humblock): Don't check separately for invalid suffix
90580         char; that is xstrtoumax's job (now that its bug is fixed).
90581         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
90582         INTMAX_MAX]: New macros.
90583         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
90584         TYPE_MAXIMUM): New macros.
90585         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
90586         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
90587         if overflow occurs, as it's what __strtol does and it's more useful
90588         in practice.
90589         (__xstrtol): If __strtol reports some error other than ERANGE,
90590         reflect it to the caller as LONGINT_INVALID.  If it reports
90591         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
90592         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
90593         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
90594         value.
90595         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
90596         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
90597         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
90598         [defined UINTMAX_MAX]: New macros.
90599
90600 2003-10-14  Bruno Haible  <bruno@clisp.org>
90601
90602         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
90603
90604 2003-10-14  Bruno Haible  <bruno@clisp.org>
90605
90606         * m4/sig_atomic_t: New file, from GNU gettext.
90607         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
90608
90609 2003-10-14  Bruno Haible  <bruno@clisp.org>
90610
90611         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
90612         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
90613         Also use volatile where needed.
90614
90615 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90616
90617         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
90618         Change maintainer from Bruno Haible to 'all'.
90619
90620 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90621
90622         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
90623
90624 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90625
90626         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
90627         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
90628         and define in terms of the other primitives.
90629         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
90630         (SIZE_MAX): Define if not already defined.
90631         (array_size_overflow): New function.
90632         (xalloc_die): Abort instead of exiting if 'error' returns.
90633         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
90634         (xmalloc, xrealloc): Use them.
90635         (xcalloc): Check for address arithmetic overflow.
90636         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
90637         a bit faster than strcpy.
90638
90639 2003-10-10  Simon Josefsson  <jas@extundo.com>
90640
90641         * modules/argp (Depends-on): Add restrict and strcase.
90642
90643 2003-10-10  Simon Josefsson  <jas@extundo.com>
90644
90645         * m4/argp.m4: Add AC_C_INLINE.
90646
90647 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90648
90649         Merge getpass from libc, plus a few fixes.
90650
90651         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
90652         Include <stdbool.h>.
90653         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
90654         __fsetlocking to empty.
90655         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
90656         do include <bits/libc-lock.h>.
90657         Do not include <fcntl.h>; not needed.
90658         [_LIBC]: Include <wchar.h>.
90659         (NOTCANCEL_MODE): New macro.
90660         (flockfile, funlockfile) [_LIBC]: New macros.
90661         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
90662         [!_LIBC]: New macros.
90663         (call_fclose): New function.
90664         (getpass): Use it.  Save tty stream separately; this simplifies the
90665         code and makes it more reliable if stdin happens to equal stdout.
90666         Invoke __fsetlocking on tty.
90667         Handle thread cancellation if needed.
90668         Namespace cleanup (use __tcgetattr, __getline).
90669         Use bool for Booleans.
90670         [USE_IN_LIBIO]: Handle wide streams.
90671         [!_LIBC]: Unconditionally do the fseek, since we don't know what
90672         stream might go where.
90673
90674         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
90675         doesn't have to include <stdio.h> before us.
90676         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
90677         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
90678         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
90679         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
90680         if not declared, so that we can use getpass.c code from libc without
90681         rewriting it.
90682         (flockfile, ftrylockfile, funlockfile): New macros.
90683
90684 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90685
90686         * modules/getpass: Depend on stdbool.
90687
90688 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90689
90690         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
90691
90692 2003-10-07  Karl Berry  <karl@gnu.org>
90693
90694         * config/config.{guess,sub}: update from config.
90695
90696 2003-10-06  Jim Meyering  <jim@meyering.net>
90697             Bruno Haible  <bruno@clisp.org>
90698
90699         This lets translators provide better translations for the
90700         "Written by ..." part of --version output.
90701         * lib/version-etc.h: Include stdarg.h.
90702         (version_etc_copyright): Declare as readonly.
90703         (version_etc): Make this function variadic with a NULL-terminated list
90704         of author name strings.
90705         (version_etc_va): New declaration.
90706         * lib/version-etc.c: Include stdarg.h, stdlib.h.
90707         (version_etc_copyright): Declare as readonly.
90708         (version_etc_va): New function. Provide a different translatable string
90709         for each possible number of authors < 10. Abbreviate when there are 10
90710         authors or more.
90711         (version_etc): Make this function variadic. Call version_etc_va.
90712         Suggestion from Gary V. Vaughan.
90713
90714         * lib/long-options.h (parse_long_options): Change prototype: the
90715         authors string is moved to the end and becomes variadic.
90716         * lib/long-options.c: Include stdarg.h.
90717         (parse_long_options): Make this function variadic, too.
90718         Call version_etc_va, not version_etc.
90719
90720 2003-10-06  Bruno Haible  <bruno@clisp.org>
90721
90722         * modules/version-etc-2: Remove file.
90723         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
90724
90725 2003-10-06  Bruno Haible  <bruno@clisp.org>
90726
90727         * modules/fatal-signal: New file.
90728         * MODULES.html.sh (func_all_modules): Add fatal-signal.
90729
90730 2003-10-06  Bruno Haible  <bruno@clisp.org>
90731
90732         * m4/fatal-signal.m4: New file.
90733         * m4/signalblocking.m4: New file, from GNU gettext.
90734
90735 2003-10-06  Bruno Haible  <bruno@clisp.org>
90736
90737         * lib/version-etc-2.h: Remove file.
90738         * lib/version-etc-2.c: Remove file.
90739
90740 2003-10-06  Bruno Haible  <bruno@clisp.org>
90741
90742         * lib/fatal-signal.h: New file, from GNU gettext.
90743         * lib/fatal-signal.c: New file, from GNU gettext.
90744
90745 2003-10-05  Paul Eggert  <eggert@twinsun.com>
90746
90747         * README: Rework advice for preventing empty .o files.
90748         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
90749         not <sys/types.h>.
90750
90751 2003-10-04  Karl Berry  <karl@gnu.org>
90752
90753         * lib/argp*: update from libc.
90754
90755 2003-10-04  Karl Berry  <karl@gnu.org>
90756
90757         * config/config.{guess,sub}: update from config.
90758
90759 2003-10-02  Bruno Haible  <bruno@clisp.org>
90760
90761         * modules/lchown (Include): Add lchown.h.
90762         * modules/time_r (Include): Use "..." syntax.
90763         * modules/xgetdomainname (Include): Add xgetdomainname.h.
90764
90765 2003-10-01  Simon Josefsson  <jas@extundo.com>
90766
90767         * MODULES.html.sh (func_all_modules): Move gethostname from section
90768         'based on' to section 'lacking' POSIX:2001.
90769
90770 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
90771
90772         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
90773         to output mode on the same stream.
90774
90775 2003-09-29  Paul Eggert  <eggert@twinsun.com>
90776
90777         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
90778         Fix arg typo in previous patch.
90779
90780 2003-09-28  Jim Meyering  <jim@meyering.net>
90781
90782         * lib/error.c: Correct cpp indentation.
90783
90784 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90785
90786         * modules/free: New file.
90787
90788 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90789
90790         * m4/free.m4: New file.
90791
90792 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90793
90794         * lib/minmax.h (MIN, MAX)
90795         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
90796         Omit the special code that used __typeof__, since we worry that
90797         it could be more trouble than it's worth.  See:
90798         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
90799         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
90800
90801         * lib/free.c: New file.
90802
90803 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
90804
90805         Trivial fixes to Makefile.am parts of module listings.
90806         * modules/strstr: Append strstr.h to lib_SOURCES.
90807         * modules/strcase: Likewise, for strcase.h.
90808
90809 2003-09-27  Karl Berry  <karl@gnu.org>
90810
90811         * config/mkinstalldirs: update from automake.
90812
90813 2003-09-26  Paul Eggert  <eggert@twinsun.com>
90814
90815         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
90816         (error_tail): Do not loop, reallocating temporary buffer, since
90817         the output cannot contain more wide characters than the input
90818         contains bytes, the size must be big enough already.  This avoids
90819         one potential size overflow calculation.  Check for size overflow
90820         when calculating temporary buffer size.  Free temporary buffer
90821         when done, if it was allocated with malloc; this plugs a memory
90822         leak.  Remove casts from void * to pointers, that are no longer
90823         needed now that we're assuming C89 or better.
90824
90825         Merge error changes from glibc.
90826
90827         * lib/error.c, error.h: Update copyright notice header to match glibc.
90828         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
90829         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
90830         Disable cancellation while printing error.
90831         * lib/error.h: Prepend __ to parameter names.
90832
90833 2003-09-26  Jim Meyering  <jim@meyering.net>
90834
90835         * lib/error.c (error_tail): Move some declarations
90836         into inner scope where the local variables are used.
90837
90838 2003-09-26  Bruno Haible  <bruno@clisp.org>
90839
90840         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
90841         stpncpy().
90842         Don't define stpncpy through config.h; it's now done through stpncpy.h.
90843
90844 2003-09-26  Bruno Haible  <bruno@clisp.org>
90845
90846         * lib/stpncpy.h (gnu_stpncpy): New declaration.
90847         (stpncpy): Define as alias for gnu_stpncpy.
90848         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
90849
90850 2003-09-25  Simon Josefsson  <jas@extundo.com>
90851
90852         * lib/xgetdomainname.h: New file.
90853         * lib/xgetdomainname.c: New file.
90854
90855 2003-09-25  Simon Josefsson  <jas@extundo.com>
90856             Bruno Haible  <bruno@clisp.org>
90857
90858         * modules/getdomainname: New file.
90859         * modules/xgetdomainname: New file.
90860         * MODULES.html.sh (func_all_modules): Add getdomainname,
90861         xgetdomainname.
90862
90863 2003-09-25  Simon Josefsson  <jas@extundo.com>
90864             Bruno Haible  <bruno@clisp.org>
90865
90866         * m4/getdomainname.m4: New file.
90867
90868 2003-09-25  Simon Josefsson  <jas@extundo.com>
90869             Bruno Haible  <bruno@clisp.org>
90870
90871         * lib/getdomainname.h: New file.
90872         * lib/getdomainname.c: New file.
90873
90874 2003-09-25  Karl Berry  <karl@gnu.org>
90875
90876         * lib/argp-fmtstream.c, argp-help.c: update from libc.
90877
90878 2003-09-25  Karl Berry  <karl@gnu.org>
90879
90880         * config/install-sh: update from automake.
90881
90882 2003-09-25  Bruno Haible  <bruno@clisp.org>
90883
90884         * modules/version-etc-2: New file, from modules/version-etc with
90885         modifications.
90886         * MODULES.html.sh (func_all_modules): Add version-etc-2.
90887
90888 2003-09-25  Bruno Haible  <bruno@clisp.org>
90889
90890         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
90891         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
90892
90893 2003-09-24  Simon Josefsson  <jas@extundo.com>
90894
90895         * modules/xgethostname: Add xgethostname.h.
90896
90897 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90898
90899         * lib/linebuffer.c (freebuffer): Don't free the argument, just
90900         the buffer associated with the argument.  Bug reported by
90901         Simon Josefsson.
90902
90903 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90904
90905         * README: Document assumptions that 'int' is at least 32 bits
90906         wide, that integer arithmetic is 2's complement without overflow,
90907         that there are no holes in integer values, that adding sizes of
90908         two nonoverlapping objects can't overflow, and that all-bits-zero
90909         yields scalar zero.  Fix spelling and capitalization typos.
90910
90911 2003-09-19  Karl Berry  <karl@gnu.org>
90912
90913         * lib/argp.h: update from libc.
90914
90915 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90916
90917         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
90918         to avoid spurious warnings like "AC_RUN_IFELSE was called before
90919         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
90920
90921 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90922
90923         * gnulib-tool: Use "test -h", not "test -L", for portability
90924         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
90925         (tags_regexp): Remove, since \| doesn't conform to POSIX.
90926         (sed_extract_prog): Issue s commands one-by-one, rather than
90927         using \| in one s command.
90928
90929 2003-09-16  Paul Eggert  <eggert@twinsun.com>
90930
90931         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
90932         input error, instead of returning NULL the next time we are called
90933         (and therefore losing track of errno).
90934
90935 2003-09-16  Bruno Haible  <bruno@clisp.org>
90936
90937         * gnulib-tool (func_create_testdir): Warn about duplicated
90938         dependencies.
90939
90940 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90941
90942         * modules/argmatch, modules/fatal, modules/obstack,
90943         modules/xalloc, modules/xgethostname: Sort dependencies by
90944         importance, not alphabetically.
90945
90946 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90947
90948         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
90949         fails, so that the caller gets the proper errno.
90950
90951         * lib/readutmp.c (read_utmp): Likewise.
90952         Check for fstat error.  Close stream and free storage
90953         when failing.
90954
90955 2003-09-14  Karl Berry  <karl@gnu.org>
90956
90957         * config/srclist.txt (strdup.c): disable for c89 changes.
90958
90959 2003-09-14  Jim Meyering  <jim@meyering.net>
90960
90961         * lib/getloadavg.c: Correct cpp indentation.
90962         * lib/strdup.c: Likewise.
90963         * lib/vasnprintf.c: Likewise.
90964
90965 2003-09-14  Bruno Haible  <bruno@clisp.org>
90966
90967         * modules/fwriteerror: New file.
90968         * MODULES.html.sh (func_all_modules): Add fwriteerror.
90969
90970 2003-09-14  Bruno Haible  <bruno@clisp.org>
90971
90972         * lib/fwriteerror.h: New file.
90973         * lib/fwriteerror.c: New file.
90974
90975 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90976
90977         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
90978         modules/xgethostname, modules/xalloc: Depend on exit.
90979
90980 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90981
90982         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
90983
90984         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
90985         and AC_MINIX, too, so that their extensions are available.
90986
90987         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
90988         This macro has been superseded by gl_BACKUPFILE.
90989
90990         More patches to assume C89 or better.
90991
90992         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
90993
90994         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
90995         unconditionally.
90996         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
90997         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
90998         Include <string.h>, <stdlib.h> unconditionally.
90999         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
91000         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
91001         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
91002         headers or for string.h.
91003         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
91004         or strtoul.
91005
91006         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
91007         headers.
91008         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
91009         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91010         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
91011         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
91012         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91013         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
91014         memcpy, memset.
91015         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
91016         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
91017         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
91018         strtol.
91019         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
91020         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
91021         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
91022         strtoul.
91023
91024 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91025
91026         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
91027         * lib/obstack.c [!defined _LIBC]: Likewise.
91028         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
91029         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
91030         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
91031
91032         More changes to assume C89 or better.
91033
91034         * lib/error.c (error_tail): Assume vprintf.
91035
91036         * lib/argmatch.c (getenv): Remove decl.
91037         * lib/progreloc.c (get_full_program_name): Define via prototype.
91038         * lib/setenv.c (clearenv): Likewise.
91039         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
91040         needed.
91041         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
91042         (malloc, memcpy): Remove decls.
91043         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
91044         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
91045         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91046         (memcpy): Remove macro.
91047         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
91048         (__P): Remove.  All uses removed.
91049         (PTR): Remove.  All uses changed to void *.
91050         (CHAR_BIT, NULL): Remove.
91051         (spaces, zeros, memset_space, memset_zero)
91052         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
91053         Remove.
91054         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
91055         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
91056         Define with prototype.
91057         Remove now-unnecessary prototype decl.
91058         (extra_args_spec): Assume ANSI C.  All uses changed.
91059         (extra_args_spec_iso): Remove.
91060         (my_strftime, emacs_strftimeu): Define via prototype.
91061         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
91062         unconditionally.
91063         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
91064         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
91065         (strtoul, strtol): Remove decls.
91066         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
91067         LONG_MAX): Remove.
91068         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91069         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
91070         (LOCALE_PARAM_PROTO): New macro.
91071         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
91072         (INTERNAL (strtol), strtol): Define with a prototype.
91073         (PARAMS): Remove.  All uses removed.
91074         * lib/tempname.c: Include <string.h> unconditionally.
91075         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
91076         * lib/xgethostname.c (main): Define with a prototype.
91077         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
91078         Include <stdlib.h> unconditionally.
91079         (calloc, malloc, realloc, free): Remove decls.
91080         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
91081         Include <stdlib.h> unconditionally.  Sort include file names.
91082         (strtod): Remove.
91083         (xstrtod): Define with a prototype.
91084         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
91085         (strtol, strtoul): Remove decls.
91086
91087 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91088
91089         More patches to assume C89 or better.
91090         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
91091         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
91092         string.h, memchr, STDC_HEADERS.
91093
91094 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91095
91096         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
91097         Include <stdlib.h>, <string.h> unconditionally.
91098         Remove now-unnecessary cast to char *.
91099         * lib/strnlen.c: Include <string.h> unconditionally.
91100         * lib/yesno.c (yesno): Define with a prototype.
91101
91102 2003-09-11  Bruno Haible  <bruno@clisp.org>
91103
91104         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
91105
91106 2003-09-10  Jim Meyering  <jim@meyering.net>
91107
91108         * lib/error.c: Correct indentation of cpp directives.
91109
91110 2003-09-10  Bruno Haible  <bruno@clisp.org>
91111
91112         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
91113         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
91114         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
91115         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
91116         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
91117         <stdlib.h> and <string.h> checks.
91118         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
91119         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
91120
91121 2003-09-10  Bruno Haible  <bruno@clisp.org>
91122
91123         * lib/strcspn.c: Include <string.h> unconditionally.
91124         * lib/strpbrk.c: Include <string.h> unconditionally.
91125         * lib/strstr.c: Include <string.h> unconditionally.
91126         * lib/unicodeio.c: Include <string.h> unconditionally.
91127         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
91128         * lib/unsetenv.c: Likewise.
91129         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
91130         * lib/yesno.c: Include <stdlib.h> unconditionally.
91131         (rpmatch): Add prototype.
91132
91133 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91134
91135         More patches to assume C89 or better.
91136         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
91137         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
91138         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
91139         or for string.h.
91140         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
91141         stdlib.h.
91142         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
91143         C headers.
91144         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
91145         string.h.
91146         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
91147         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
91148         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
91149         or for string.h.
91150         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
91151         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
91152         C headers.
91153         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
91154         memcpy.
91155         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
91156         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
91157         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
91158         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
91159         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
91160         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
91161         string.h, free.
91162         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
91163         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
91164         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
91165         C headers, or for string.h.
91166         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
91167         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
91168         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
91169         headers, memory.h, stdlib.h, string.h, strings.h.
91170         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
91171         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
91172         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
91173         strchr.
91174         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
91175         headers, memory.h, string.h.
91176         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
91177         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
91178         free.
91179         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
91180         headers.
91181         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
91182         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
91183         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
91184         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
91185         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
91186
91187 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91188
91189         More K&R removal.
91190
91191         * lib/acosl.c (main): Use a prototype.
91192         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
91193         tanl.c: Likewise.
91194
91195         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
91196
91197         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
91198         (getopt, etopt_long, getopt_long_only, _getopt_internal)
91199         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
91200         with a prototype.
91201         * lib/getopt.c (const): Remove macro.
91202         Include <string.h> unconditionally.
91203         (my_index): Remove; all uses changed to strchr.
91204         (strlen): Remove decl.
91205         (exchange): Remove forward decl; no longer needed.
91206         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
91207         Define with prototype.
91208         * lib/getopt1.c (const): Remove macro.
91209         (getopt_long, getopt_long_only, main): Define with prototype.
91210
91211         * lib/getugroups.c: Include <string.h> unconditionally.
91212
91213         * lib/getusershell.c: Include <stdlib.h> unconditionally.
91214         (getusershell, setusershell, endusershell, readname, main):
91215         Define with prototypes.
91216
91217         * lib/group-member.c: Include group-member.h first.
91218         Include <stdlib.h> unconditionally.
91219
91220         * lib/hard-locale.c: Include hard-locale.h first.
91221         Include <stdlib.h>, <string.h> unconditionally.
91222
91223         * lib/hash.c (free, malloc): Remove decls.
91224         Include <stdlib.h> unconditionally.
91225
91226         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
91227         (getenv): Do not declare.
91228
91229         * lib/idcache.c: Include <string.h> unconditionally.
91230
91231         * lib/long-options.c: Include long-options.h first, to test interface.
91232         Include <stdlib.h> unconditionally.
91233
91234         * lib/makepath.c: Include makepath.h first, to test interface.
91235         Include <stdlib.h> and <string.h> unconditionally.
91236
91237         * lib/linebuffer.c: Include <stdlib.h>.
91238         (free): Remove decl.
91239
91240         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
91241         stddef.h. rpl_malloc returns void *, not char *.
91242         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
91243         prototype.
91244
91245         * lib/md5.h: Include <limits.h> unconditionally.
91246         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
91247         (__P): Remove; all uses removed.
91248         * lib/md5.c: Include "md5.h" first.
91249         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
91250         md5_buffer, md5_process_bytes, md5_process_block):
91251         Define with prototypes.
91252         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
91253         * lib/sha.c: Include "sha.h" first.
91254         Include <stdlib.h>, <string.h> unconditionally.
91255
91256         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
91257         * lib/memcmp.c (__ptr_t): Likewise.
91258         * lib/memrchr.c (__ptr_t): Likewise.
91259         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
91260         Include <string.h> unconditionally.
91261         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
91262         * lib/memchr.c: Include <stdlib.h> unconditionally.
91263         * lib/memchr.c (LONG_MAX): Remove.
91264         * lib/memrchr.c (LONG_MAX): Likewise.
91265         * lib/memchr.c (__memchr): Define via a prototype.
91266         * lib/memrchr.c (__memrchr): Likewise.
91267         * lib/memcmp.c (__P): Remove, and remove all uses.
91268         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
91269         Remove forward decls; no longer needed.
91270         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
91271         Use types required by C89 in prototype.
91272
91273         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
91274         * lib/savedir.c: Likewise.
91275         * lib/mkdir.c (free): Remove decl.
91276         * lib/rmdir.c (rmdir): Define with a prototype.
91277         * lib/savedir.c: Include savedir.h first, to test interface.
91278
91279         * lib/mktime.c (STDC_HEADERS): Remove.
91280         Include <stdlib.h>, <string.h> unconditionally.
91281
91282         * lib/modechange.c: Include <stdlib.h> unconditionally.
91283         (malloc): Remove decl.
91284
91285         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
91286         (free): Remove decl.
91287
91288         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
91289         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
91290         (This type really should be intptr_t, but that's a C99ism.)
91291         (_obstack_memcpy): Remove: all uses changed to memcpy.
91292         Include <string.h> unconditionally.
91293         (struct obstack): Assume __STDC__ for types of members
91294         chunkfun, freefun, extra_arg.
91295         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
91296         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
91297         obstack_begin, obstack_specify_allocation,
91298         obstack_specify_allocation_with_arg, obstack_chunkfun,
91299         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
91300         Remove unprototyped decls and the macros that use them.
91301         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
91302         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
91303         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
91304         (defined __STDC__ && __STDC__)]:
91305         Remove nonprototyped code.
91306         Include <stdlib.h> unconditionally.
91307         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
91308         _obstack_allocated_p, _obstack_free, obstack_free,
91309         _obstack_memory_used, print_and_abort):
91310         Define using prototypes.
91311         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
91312         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
91313         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
91314         obstack_next_free, obstack_object_size, obstack_room) [0]:
91315         Remove unused, unprototyped code.
91316
91317         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
91318
91319         * lib/physmem.c (physmem_total, physmem_available, main): Define
91320         with prototypes.
91321
91322         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
91323         (main): Define with a prototype.
91324
91325         * lib/posixver.c (getenv): Remove decl.
91326
91327         * lib/putenv.c (malloc): Returns void *, not char *.
91328         Include <string.h> unconditionally.
91329         (strchr, memcpy, NULL): Do not define.
91330
91331         * lib/readtokens.c: Include readtokens.h first, to test interface.
91332         Include <stdlib.h>, <string.h> unconditionally.
91333         (init_tokenbuffer): Define with a prototype.
91334
91335         * lib/regex.c (PARAMS): Remove.  All uses removed.
91336         All uses of _RE_ARGS removed, too.
91337         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
91338         unconditionally.
91339         (bzero): Assume memset exists.
91340         (memcmp, memcpy, NULL): Remove.
91341         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
91342         char, or assignments to local vars of type signed char.
91343         (init_syntax_once, PREFIX(extract_number_and_incr),
91344         PREFIX(print_partial_compiled_pattern),
91345         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
91346         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
91347         PREFIX(regex_grow_registers), PREFIX(regex_compile),
91348         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
91349         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
91350         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
91351         wcs_compile_range, byte_compile_range, truncate_wchar,
91352         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
91353         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
91354         count_mbs_length, wcs_re_match_2_internal,
91355         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
91356         PREFIX(alt_match_null_string_p),
91357         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
91358         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
91359         regfree, PREFIX(extract_number)): Define with prototype.  Remove
91360         now-unnecessary declaration, if any.
91361         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
91362         regcomp, regexec):
91363         Remove now-unnecessary casts among pointer types.
91364         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
91365
91366         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
91367         (free): Remove decl.
91368
91369         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
91370
91371         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
91372         (free): Remove decl.
91373
91374         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
91375         * lib/xgetcwd.c: Likewise.
91376
91377         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
91378         (free): Remove decl.
91379
91380         * lib/strchrnul.c (strchrnul): Define with a prototype.
91381         Fix bug: c_in was not converted to char before searching.
91382
91383         The following changes are not K&R related:
91384
91385         * lib/group-member.h: Include <sys/types.h>, so that this file is
91386         self-contained.
91387         * lib/makepath.h: Likewise.
91388
91389         * lib/getusershell.c (readname, default_index, line_size, readname):
91390         Use size_t, not int, for sizes.
91391         (readname): If the size overflows, report an error instead of
91392         looping forever.
91393
91394 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91395
91396         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
91397         libc.
91398
91399 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91400
91401         * README: New section: portability guidelines.
91402
91403 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91404
91405         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
91406         C89 spec.
91407
91408 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91409
91410         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
91411
91412 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91413
91414         Assume C89 or better; remove K&R cruft.
91415         A few of these changes were first proposed by Derek Robert Price
91416         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
91417
91418         * lib/addext.c: Include <string.h> unconditionally.
91419         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
91420         Don't declare getenv or malloc.
91421
91422         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
91423         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
91424         (NULL): Remove.
91425         (find_stack_direction, alloca): Use prototypes.
91426
91427         * lib/atexit.c (atexit): Define using a prototype.
91428
91429         * lib/basename.c, dirname.c, stripslash.c:
91430         Include <string.h> unconditionally.
91431
91432         * lib/bcopy.c: Include <stddef.h>.
91433         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
91434
91435         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
91436
91437         * lib/error.h (error, error_at_line, error_print_progname)
91438         [! (defined (__STDC__) && __STDC__)]: Remove decls.
91439         * lib/error.c: Include error.h first, to check interface.
91440         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91441         (VA_START): Remove; all uses changeed to va_start.
91442         (exit, strerror): Remove decls.
91443         (error_print_progname): Prototype uncondionally.
91444         Don't include <errno.h>; no longer needed.
91445         (private_strerror): Remove.
91446         (error_tail): Always define.
91447         (error, error_at_line): Assume C89 or better; always use prototypes.
91448         * lib/fatal.c: Include "fatal.h" first, to test interface.
91449         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91450         (VA_START): Remove; all uses changed to va_start.
91451         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
91452         this case.
91453         (exit): Remove decl.
91454         (fatal): Prototype unconditionally.  Assume va_start works.
91455         Abort at end, to pacify gcc.
91456
91457         * lib/euidaccess.c (main): Define with a prototype.
91458
91459         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
91460
91461         * lib/exitfail.c: Include <stdlib.h> unconditionally.
91462
91463         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
91464         prototypes.
91465         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
91466         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
91467         (getenv): Remove decl.
91468         (fnmatch): Define using a prototype.
91469         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
91470         (FCT): Define using a prototype.
91471
91472         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
91473
91474         * lib/gethostname.c: Include <stddef.h>.
91475         (gethostname): Define with prototype.  Length is size_t, not int.
91476
91477 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91478
91479         Assume C89 or better; remove K&R cruft.
91480         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
91481         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
91482         string.h, getenv, malloc.
91483         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
91484         headers.
91485         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
91486         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
91487         do not check for strerror.
91488         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
91489         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
91490         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
91491         do not check for doprnt or vprintf.
91492         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
91493         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
91494
91495 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91496
91497         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
91498         getversion.c should have been removed then, but was accidentally
91499         preserved.
91500
91501         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
91502         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
91503
91504 2003-09-08  Karl Berry  <karl@gnu.org>
91505
91506         * config/config.sub, config.guess, srclistvars.sh: update from savannah
91507                 config, forget about prep.
91508
91509         * config/depcomp, missing: update from automake.
91510
91511 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91512
91513         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
91514         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91515
91516 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91517
91518         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
91519         copy_tm_result.  Bug reported by Simon Josefsson in
91520         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91521
91522 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91523
91524         * m4/time_r.m4: New file.
91525         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
91526         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
91527         is. Check for timegm declaration.
91528         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
91529         Do not check for gmtime_r.
91530         Replace mktime if __mktime_internal does not exist and if mktime
91531         hasn't been replaced already.
91532
91533 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91534
91535         * lib/time_r.c, lib/time_r.h: New files.
91536
91537         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
91538         __localtime_r.
91539         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
91540         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
91541
91542         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
91543         __gmtime_r.
91544         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
91545         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
91546         Include <time_r.h>.
91547
91548         * lib/timegm.c: Switch to glibc implementation, with the following
91549         changes:
91550         [defined HAVE_CONFIG_H]: Include <config.h>.
91551         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
91552         (__mktime_internal) [!defined _LIBC]: New decl.
91553         (__gmtime_r) [!defined _LIBC]: New macro and function.
91554         (timegm): Use a prototype, since gnulib assumes C89.
91555         Do not bother declaring tmp to be const, as it's not really usefu.
91556         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
91557         (timegm): Declare only if HAVE_DECL_TIMEGM.
91558
91559 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91560
91561         * MODULES.html.sh (func_all_modules): Add time_r.
91562         * modules/time_r: New file.
91563         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
91564         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
91565
91566 2003-09-03  Paul Eggert  <eggert@twinsun.com>
91567
91568         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
91569         Bug reported by Lute Kamstra in
91570         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
91571
91572         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
91573         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
91574         course with correspondingly smaller numbers for tomorrow and
91575         yesterday.  From Tadayoshi Funaba.  Originally installed into
91576         sh-utils on 1999-08-07, but the patch got lost (I guess during the
91577         coreutils merge?).
91578
91579 2003-08-31  Simon Josefsson  <jas@extundo.com>
91580
91581         * modules/timegm: New file.
91582         * MODULES.html.sh (func_all_modules): Add timegm.
91583
91584 2003-08-31  Simon Josefsson  <jas@extundo.com>
91585
91586         * m4/timegm.m4: New file.
91587
91588 2003-08-31  Simon Josefsson  <jas@extundo.com>
91589
91590         * lib/timegm.h: New file.
91591         * lib/timegm.c: New file.  Based on
91592         wget-1.8.2/src/http.c:mktime_from_utc.
91593
91594 2003-08-31  Karl Berry  <karl@gnu.org>
91595
91596         * lib/argp.h: update from libc.
91597
91598 2003-08-28  Bruno Haible  <bruno@clisp.org>
91599
91600         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
91601         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
91602         followed by '#define fnmatch fnmatch_posix' gives an error.
91603
91604 2003-08-28  Bruno Haible  <bruno@clisp.org>
91605
91606         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
91607         warning on QNX, which defines O_BINARY to 000000.
91608
91609 2003-08-27  Jim Meyering  <jim@meyering.net>
91610
91611         * m4/mkstemp.m4: Require that the system mkstemp be able to create
91612         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
91613         would fail after 32.  Reported by Danny Levinson.  Details here:
91614         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
91615
91616 2003-08-24  Bruno Haible  <bruno@clisp.org>
91617
91618         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
91619         MSVC7 <stdio.h> is included later.
91620
91621 2003-08-22  Simon Josefsson  <jas@extundo.com>
91622
91623         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
91624
91625 2003-08-20  Karl Berry  <karl@gnu.org>
91626
91627         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
91628
91629 2003-08-20  Bruno Haible  <bruno@clisp.org>
91630
91631         * modules/progname: New file.
91632         * MODULES.html.sh (func_all_modules): Add progname.
91633
91634 2003-08-20  Bruno Haible  <bruno@clisp.org>
91635
91636         * lib/progname.h: New file, from GNU gettext.
91637         * lib/progname.c: New file, from GNU gettext.
91638         * lib/progreloc.c: New file, from GNU gettext.
91639
91640 2003-08-19  Jim Meyering  <jim@meyering.net>
91641
91642         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
91643         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
91644
91645 2003-08-19  Bruno Haible  <bruno@clisp.org>
91646
91647         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
91648         more.
91649
91650 2003-08-19  Bruno Haible  <bruno@clisp.org>
91651
91652         * lib/xstrdup.c: Assume <string.h> exists.
91653
91654 2003-08-18  Paul Eggert  <eggert@twinsun.com>
91655
91656         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
91657         in makefile rules.
91658
91659 2003-08-18  Jim Meyering  <jim@meyering.net>
91660
91661         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
91662         * m4/lib-ld.m4: Likewise.
91663
91664 2003-08-18  Jim Meyering  <jim@meyering.net>
91665
91666         * lib/setenv.h: Indent nested cpp directive.
91667         * lib/vasnprintf.c: Remove trailing blanks.
91668
91669 2003-08-17  Simon Josefsson  <jas@extundo.com>
91670
91671         * modules/xstrndup: New file.
91672         * MODULES.html.sh (func_all_modules): Add xstrndup.
91673
91674 2003-08-17  Simon Josefsson  <jas@extundo.com>
91675
91676         * modules/argp: Fix autoconf macro name. Add more dependencies.
91677
91678 2003-08-17  Simon Josefsson  <jas@extundo.com>
91679
91680         * m4/xstrndup.m4: New file.
91681
91682 2003-08-17  Simon Josefsson  <jas@extundo.com>
91683
91684         * m4/argp.m4: New file.
91685
91686 2003-08-17  Simon Josefsson  <jas@extundo.com>
91687             Bruno Haible  <bruno@clisp.org>
91688
91689         * lib/xstrndup.h: New file.
91690         * lib/xstrndup.c: New file.
91691
91692 2003-08-17  Bruno Haible  <bruno@clisp.org>
91693
91694         * modules/strndup (Files, Include): Add lib/strndup.h.
91695
91696 2003-08-17  Bruno Haible  <bruno@clisp.org>
91697
91698         * modules/euidaccess (Files): Add lib/euidaccess.h.
91699
91700 2003-08-17  Bruno Haible  <bruno@clisp.org>
91701
91702         * lib/strndup.h: New file.
91703
91704 2003-08-17  Bruno Haible  <bruno@clisp.org>
91705
91706         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
91707         like AC_GNU_SOURCE.
91708         * modules/extensions (configure.ac): Comment out the invocation of
91709         gl_USE_SYSTEM_EXTENSIONS.
91710
91711 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91712
91713         Merges from coreutils, etc.
91714         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
91715         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
91716         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
91717         fixing a typo.
91718         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
91719         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
91720
91721 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91722
91723         Document merge from coreutils.
91724         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
91725         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
91726         * modules/utime: Add m4/utimes-null.m4.
91727
91728 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91729
91730         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
91731         space, undoing this 2003-08-12 change:
91732         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91733
91734 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91735
91736         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
91737         strtoul.c from libc, undoing this 2003-08-12 change:
91738         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91739
91740 2003-08-16  Jim Meyering  <jim@meyering.net>
91741
91742         Merges from coreutils.
91743         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
91744         prefix.  Adjust cache variables similarly.  Create 500 rather than
91745         just 300 files, to exercise bug on Darwin6.5, too.
91746         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
91747         $missing_dir.
91748         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
91749         AM_SYS_POSIX_TERMIOS.
91750         Reported by mkc@mathdogs.com.
91751         Also change use of $am_cv_sys_posix_termios
91752         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
91753         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
91754         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
91755         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
91756         in /proc/mounts until it finds one with matching device number.  This
91757         is unnecessary when the FILE argument *is* a mount point.  No stat call
91758         is necessary in that case.  So, disable the statvfs-testing code on
91759         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
91760         as RedHat bug# 84846.
91761         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91762         to 1MB, so as not to render systems with no stack size limit (e.g.,
91763         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91764         Include <unistd.h>.  On some systems,
91765         it is required for the definition of _SC_PAGESIZE.
91766
91767 2003-08-16  Jim Meyering  <jim@meyering.net>
91768
91769         Merge from coreutils.
91770         * lib/xstrtoimax.c: #else #if -> #elif.
91771         * lib/xstrtoumax.c: Likewise.
91772
91773 2003-08-16  Jim Meyering  <jim@meyering.net>
91774
91775         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
91776         * m4/utimes.m4: Removed.
91777         * m4/utimes-null.m4: Renamed from utimes.m4.
91778
91779         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91780         to 1MB, so as not to render systems with no stack size limit (e.g.,
91781         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91782         Include <unistd.h>.  On some systems,
91783         it is required for the definition of _SC_PAGESIZE.
91784
91785 2003-08-16  Jim Meyering  <jim@meyering.net>
91786         and Paul Eggert  <eggert@cs.ucla.edu>
91787
91788         Merges from coreutils, etc.
91789
91790         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
91791         using the latest version from cvs.  This avoids problems with #line
91792         directives using a vendor (Sun) compiler.
91793         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
91794         Don't set GETGROUPS_LIB here; now it's
91795         done via getgroups.m4's wrapper function.
91796         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
91797         rather than just in sh-util/configure.in, so that the
91798         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
91799         same.
91800         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
91801         AC_FUNC_GETLOADAVG where to find getloadavg.c.
91802         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
91803         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
91804         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
91805         Remove code that is now done by the newly-required macros.
91806         Append $(EXEEXT) to DF_PROG.
91807         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
91808         Do not invoke or require the following here,
91809         since prereq.m4 or some gnulib .m4 now does this for us:
91810         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
91811         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
91812         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
91813         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
91814         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
91815         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
91816         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
91817         AC_FUNC_OBSTACK.
91818         Do not replace the following functions, as this is now the job
91819         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
91820         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
91821         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
91822         atexit getpass, strdup, getpagesize.
91823         Replace 'raise'.
91824         Do not check for the following functions, as this is now the job
91825         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
91826         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
91827         setregid.
91828         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
91829         Check for sys/sysctl.h.
91830         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
91831         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
91832         of checking for ssize_t ourselves.
91833
91834         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
91835         Require every macro that gnulib/modules/* suggests for us.
91836         (jm_PREREQ_ADDEXT): New macro.
91837         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
91838         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
91839
91840         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
91841         (gl_PHYSMEM): Use it.
91842         Also check for `table' function.
91843         Check for new headers and functions.
91844         Add check for sys/sysmp.h.
91845         With suggestions from Kaveh Ghazi.
91846         Ignore headers that are present but cannot be compiled.  This
91847         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
91848         C 5.4.
91849
91850 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91851
91852         Document merge from coreutils.
91853         * modules/userspec: Depend on posixver.
91854         * modules/strftime: Depend on tzset.
91855
91856 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91857
91858         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
91859         rather than tab, after '#' in shell-script copyright notices.
91860         Suggested by Bruno Haible.
91861
91862 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91863
91864         * config/srclist-update: Use three spaces, rather than tab, after '#'
91865         in shell-script copyright notices.  Suggested by Bruno Haible.
91866         Remove unnecessary parenthesization in regular expression.
91867
91868 2003-08-15  Jim Meyering  <jim@meyering.net>
91869
91870         Merge from coreutils.
91871         * lib/xgethostname.c: Include <stdlib.h>.
91872         (xghostname): Don't exit for anything other than memory-related
91873         failure; just return NULL.
91874         * lib/userspec.c: Include "posixver.h".
91875         (parse_user_spec): Accept `.' as a separator only
91876         in pre-POSIX-200112 mode.
91877         * lib/strtoimax.c: Use #elif rather than #else #if.
91878         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
91879         Remove function, now that we can rely on a working tzset function.
91880         [!_LIBC]: Ensure that the required autoconf test has been run.
91881         [!defined _NL_CURRENT && HAVE_STRFTIME]:
91882         Use underlying_strftime for %r.
91883         * lib/sha.c: Merge in some clean-up and optimization changes from
91884         glibc.
91885         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
91886         Ensure that it is a multiple of 64.
91887         Rearrange loop exit tests so as to avoid performing an
91888         additional fread after encountering an error or EOF.
91889         * lib/realloc.c: Update copyright date.
91890
91891 2003-08-15  Jim Meyering  <jim@meyering.net>
91892         and Paul Eggert  <eggert@twinsun.com>
91893
91894         Merge from coreutils.
91895         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
91896         member but strut utmpx does not.  Needed for AIX 4.3.3.
91897         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
91898
91899 2003-08-15  Jim Meyering  <jim@meyering.net>
91900         and Paul Eggert  <eggert@cs.ucla.edu>
91901
91902         Merges from coreutils, etc.
91903         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
91904         Require gl_FUNC_TZSET_CLOBBER.
91905         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
91906         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
91907         members.
91908
91909 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91910
91911         Help the merge from coreutils.
91912         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
91913         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
91914         * m4/tzset.m4: Use it too.
91915
91916 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91917
91918         * modules/tzset: New file.
91919
91920 2003-08-14  Jim Meyering  <jim@meyering.net>
91921
91922         Merges from coreutils.
91923         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
91924         variable names, rather than @FNMATCH_H@.
91925         * modules/alloca: Likewise for $(ALLOCA_H).
91926
91927         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
91928         the three copies of the literal target, `fnmatch.h'.
91929         * modules/alloca (alloca.h): Likewise.
91930
91931 2003-08-14  Jim Meyering  <jim@meyering.net>
91932
91933         Merge from coreutils.
91934         * m4/tzset.m4: New file.
91935         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
91936         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
91937         otherwise, AIX 5.1 systems would end up using the latter.
91938         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
91939         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
91940         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
91941         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
91942
91943 2003-08-14  Jim Meyering  <jim@meyering.net>
91944
91945         Merge from coreutils.
91946         * lib/obstack.h: Whitespace changes.
91947         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
91948         and xcalloc return values.
91949         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
91950         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
91951         hang on OSF/1 5.1 for DIR on both local and remote file systems.
91952         Reported by (and fix confirmed by) Nelson H. F. Beebe.
91953         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91954         error from mntctl.
91955         Use mntctl's return value to drive the entry-processing loop, since
91956         we can't rely on the value of the vmt_length member in the last
91957         entry.  On some systems doing so could result in exhausting
91958         virtual memory.  Based in part on a patch from Mike Jetzer.
91959
91960 2003-08-14  Jim Meyering  <jim@meyering.net>
91961         and Paul Eggert  <eggert@twinsun.com>
91962
91963         Merges from coreutils, plus other fixes.
91964         * lib/physmem.c: Merge in portability changes from gcc/libiberty
91965         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
91966         for credits and details.  Thanks to Kaveh Ghazi for helping
91967         to keep these files in sync.
91968         (ARRAY_SIZE): Define it.
91969         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
91970         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
91971         (memcasecmp): Don't assume size_t fits in unsigned int.
91972         Remove casts and duplicate code.
91973         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
91974         (memcpy): Remove definition.
91975         Merge in some clean-up and optimization changes from glibc.
91976         [BLOCKSIZE]: Move definition to top of file.
91977         Ensure that it is a multiple of 64.
91978         Rearrange loop exit tests so as to avoid performing an
91979         additional fread after encountering an error or EOF.
91980         * lib/md5.h (md5_uintptr): Define.
91981         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
91982         return to the initial working directory.  Preserve errno
91983         for caller.
91984         * lib/idcache.c: Include "xalloc.h".
91985         (xmalloc, xrealloc): Remove decls.
91986         (getuser): Remove casts no longer required in C89.
91987         * lib/human.c: Include stdio.h, for sprintf.
91988         * lib/group-member.c: Include "xalloc.h".
91989         (xmalloc, xrealloc): Remove decls.
91990         (get_group_info): Remove casts no longer required in C89.
91991         * lib/getusershell.c (readname): Remove casts no longer required in
91992         C89.
91993         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
91994         * lib/getline.c: Whitespace fix, from coreutils.
91995
91996 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91997
91998         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
91999         Check for isascii.
92000
92001         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92002         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92003         Undo previous (whitespace-only) change.
92004
92005 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92006
92007         * lib/exclude.c: Include <ctype.h>
92008         (IN_CTYPE_DOMAIN): New macro.
92009         (is_space): New fn.
92010         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
92011         and empty lines.
92012
92013         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92014         Undo previous (whitespace-only) change.
92015
92016 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92017
92018         * config/srclist-update: Change update back to the old behavior,
92019         leaving whitespace alone.  Use one 'sed' command rather than a
92020         pipeline.
92021         (fixlicense): Now a variable, not a function.
92022         (remove_trailing_blanks): Remove.
92023         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
92024         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92025         Undo previous (whitespace-only) change.
92026
92027 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92028
92029         Merge from coreutils.
92030         * modules/euidaccess: Add lib_SOURCES, include for new
92031         file euidaccess.h
92032
92033 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92034
92035         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92036         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92037         Normalize leading white space and remove trailing white space.
92038
92039         Merge from coreutils
92040         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
92041
92042         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
92043         0.12.1.  These files are now being upgraded automatically by
92044         ../config/srclist-update.
92045
92046 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92047
92048         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92049         Normalize leading white space and remove trailing white space.
92050         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
92051         notice, as per ../config/srclist-update.
92052
92053         Merge from coreutils.
92054         * lib/euidaccess.h: New file.
92055         * lib/euidaccess.c: Include it.
92056         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
92057         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
92058         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
92059
92060 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92061
92062         * config/srclist-update: Add copyright notice.
92063         (remove_id_lines, remove_trailing_blanks): New constants.
92064         (fixfile): Use them to normalize spacing a bit in copied files.
92065         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92066         Normalize leading white space and remove trailing white space.
92067
92068         * config/texinfo.tex: Sync with texinfo.
92069
92070         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
92071         strtoul.c from libc, to merge coreutils whitespace changes.
92072
92073         * config/srclist.txt: Get the following m4 files from gettext:
92074         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
92075         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
92076         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
92077         wint_t.m4.
92078
92079 2003-08-12  Karl Berry  <karl@gnu.org>
92080
92081         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
92082         been made.
92083
92084 2003-08-11  Paul Eggert  <eggert@twinsun.com>
92085
92086         * modules/gnu-source, m4/gnu-source.m4:
92087         Remove; we're assuming Autoconf 2.54 or later now.
92088         Suggested by Bruno Haible.
92089         * MODULES.html.sh (func_all_modules): Remove gnu-source.
92090
92091 2003-08-11  Bruno Haible  <bruno@clisp.org>
92092
92093         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
92094
92095 2003-08-11  Bruno Haible  <bruno@clisp.org>
92096
92097         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
92098         (vasnprintf): Use it instead of wcslen.
92099
92100 2003-08-11  Bruno Haible  <bruno@clisp.org>
92101
92102         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
92103         value to ensure that _Bool promotes to int. Use #define for _Bool when
92104         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
92105
92106 2003-08-10  Karl Berry  <karl@gnu.org>
92107
92108         * lib/regex.h: update from libc (whitespace fix).
92109
92110 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92111
92112         Merge some files from coreutils.  These changes were
92113         originally made by Jim Meyering.
92114         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
92115         many older Unixes require this.
92116         * lib/alloca.c (alloca): Remove cast to argument of free;
92117         no longer needed in C89.
92118         * lib/alloca_.h, regex.h: Fix white space to match
92119         what GNU indent does.
92120
92121 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92122
92123         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
92124         apparently Emacs's Unicode mode got confused before my 2003-08-05
92125         checkin.
92126
92127 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92128
92129         * m4/extensions.m4: New file.
92130         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
92131         Require gl_USE_SYSTEM_EXTENSIONS.
92132         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
92133         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
92134
92135 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92136
92137         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
92138         * modules/extensions, modules/gnu-source: New files.
92139         * modules/timespec, modules/unlocked-io: Depend on extensions.
92140
92141 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92142
92143         * modules/restrict: New file.
92144         * MODULES.html.sh (func_all_modules): Add restrict.
92145         * modules/regex: Depend on restrict.
92146
92147 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92148
92149         * m4/restrict.m4: New file.
92150         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
92151
92152 2003-08-07  Bruno Haible  <bruno@clisp.org>
92153
92154         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
92155         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
92156
92157 2003-08-07  Bruno Haible  <bruno@clisp.org>
92158
92159         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
92160         makes the module 'getndelim2' compatible with the module 'getline'.
92161
92162 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92163
92164         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
92165         byte with "\201" to avoid glitches when editing that source file
92166         with multi-gnome-terminal.
92167
92168 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92169
92170         * lib/bumpalloc.h: Remove.
92171
92172 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92173
92174         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
92175         * modules/bumpalloc: Remove.
92176
92177 2003-08-04  Paul Eggert  <eggert@twinsun.com>
92178
92179         * lib/getloadavg.c: Change copyright notice and spacing to conform to
92180         GNU coding style.
92181
92182         Merge from coreutils.
92183         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
92184         1. From glibc.
92185         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
92186         from Karl Berry, implemented by Jim Meyering.
92187         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
92188         from Dmitry V. Levin.
92189         Remove anachronistic cast of xrealloc.
92190         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
92191         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
92192         type. Otherwise, it wouldn't compile with at least /bin/cc on
92193         ymp-cray-unicos9.0.2.X.
92194         Combine two mostly-identical uses of alloca into one.
92195         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
92196
92197 2003-08-04  Dave Love  <d.love@dl.ac.uk>
92198
92199         [From Emacs.]
92200
92201         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
92202         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
92203         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
92204         obsolete NLIST_NAME_UNION.
92205         [__GNU__]: Undef BSD and FSCALE.
92206         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
92207
92208 2003-08-03  Paul Eggert  <eggert@twinsun.com>
92209
92210         * lib/stdbool_.h (_Bool): Make it signed char, instead of
92211         an enum type, so that it's guaranteed to promote to int.  See:
92212         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
92213
92214 2003-08-03  Karl Berry  <karl@gnu.org>
92215
92216         * config/depcomp: update from automake.
92217
92218 2003-07-31  Paul Eggert  <eggert@twinsun.com>
92219
92220         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
92221         (strerror): Don't assume that a printable int fits in 14 bytes.
92222
92223 2003-07-31  Bruno Haible  <bruno@clisp.org>
92224
92225         * modules/getpass-gnu: New file.
92226         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
92227
92228 2003-07-31  Bruno Haible  <bruno@clisp.org>
92229
92230         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
92231
92232 2003-07-24  Karl Berry  <karl@gnu.org>
92233
92234         * config/missing: update from automake.
92235
92236 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
92237             Bruno Haible  <bruno@clisp.org>
92238
92239         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
92240         * lib/getline.c (getline, getdelim): Likewise.
92241         Remove _GNU_SOURCE define; now it's defined in config.h through
92242         m4/getline.m4.
92243
92244 2003-07-23  Karl Berry  <karl@gnu.org>
92245
92246         * config/config.sub: update from prep.
92247
92248 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92249
92250         * modules/xalloc (Depends-on): Add exitfail.
92251         * modules/xmemcoll: Likewise.
92252
92253 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92254
92255         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
92256         over-parenthesization in macros.
92257
92258         Sync with coreutils.
92259
92260         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
92261         required by C99.
92262
92263         Use `exit_failure' for xalloc and xmemcoll instead of their own
92264         private exit-failure variables.
92265         * lib/xalloc.h (xalloc_exit_failure): Remove.
92266         * lib/xmalloc.c: Likewise.  Include exitfail.h.
92267         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
92268         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
92269         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
92270         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
92271
92272 2003-07-20  Jim Meyering  <jim@meyering.net>
92273
92274         * modules/closeout (Depends-on): Add exitfail.
92275         Suggestion from Bruno Haible.
92276
92277 2003-07-19  Karl Berry  <karl@gnu.org>
92278
92279         * config/config.sub: update from prep.
92280
92281 2003-07-18  Paul Eggert  <eggert@twinsun.com>
92282
92283         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
92284         Remove.
92285         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
92286         to test that it can stand by itself.  Include "exitfail.h".
92287         Clients should set exit_failure instead.
92288         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
92289
92290 2003-07-18  Bruno Haible  <bruno@clisp.org>
92291
92292         * modules/getndelim2: New file.
92293         * modules/getline: Share files with module getndelim2.
92294         * modules/getnline: Depend on getndelim2 instead of sharing files with
92295         it. Add getnline.c to lib_SOURCES.
92296         * MODULES.html.sh (func_all_modules): Add getndelim2.
92297
92298 2003-07-18  Bruno Haible  <bruno@clisp.org>
92299
92300         * m4/getndelim2.m4: New file.
92301         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
92302         invoke gl_PREREQ_GETNDELIM2.
92303         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
92304         gl_PREREQ_GETNDELIM2.
92305         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
92306         gl_GETNDELIM2.
92307
92308 2003-07-18  Bruno Haible  <bruno@clisp.org>
92309
92310         * lib/getndelim2.h: New file.
92311         * lib/getndelim2.c: Make into a module of its own. Include config.h,
92312         getndelim2.h.
92313         (getndelim2): Make non-static. Change return type to ssize_t.
92314         * lib/getline.h: Change argument names.
92315         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
92316         * lib/getnline.c: Include getndelim2.h.
92317
92318 2003-07-18  Andreas Schwab  <schwab@suse.de>
92319
92320         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
92321
92322 2003-07-17  Karl Berry  <karl@gnu.org>
92323
92324         * config/config.sub: update from prep.
92325
92326 2003-07-17  Bruno Haible  <bruno@clisp.org>
92327
92328         * modules/getnline: New file.
92329         * modules/getline: Add lib/getndelim2.c to source file list.
92330         * MODULES.html.sh (func_all_modules): Add getnline.
92331
92332 2003-07-17  Bruno Haible  <bruno@clisp.org>
92333
92334         * m4/getnline.m4: New file.
92335
92336 2003-07-17  Bruno Haible  <bruno@clisp.org>
92337
92338         * m4/Makefile.am.in: Remove file.
92339         * m4/Makefile.am: Remove file.
92340         * m4/Makefile.in: Remove file.
92341
92342 2003-07-17  Bruno Haible  <bruno@clisp.org>
92343
92344         * lib/getnline.h: New file.
92345         * lib/getnline.c: New file.
92346         * lib/getndelim2.c: New file, extracted from getline.c.
92347         (getndelim2): Renamed from getdelim2, with added nmax argument.
92348         * lib/getline.c: Include getndelim2.c.
92349         (getdelim2): Moved out to getndelim2.c.
92350         (getline, getdelim): Update.
92351
92352 2003-07-17  Bruno Haible  <bruno@clisp.org>
92353
92354         * lib/Makefile.am: Remove file.
92355         * lib/Makefile.in: Remove file.
92356
92357 2003-07-17  Bruno Haible  <bruno@clisp.org>
92358
92359         * configure.in: Remove file.
92360         * Makefile.in: Remove file.
92361
92362 2003-07-17  Bruno Haible  <bruno@clisp.org>
92363
92364         * MODULES.html.sh: Put the </BODY> right before </HTML>.
92365
92366 2003-07-16  Karl Berry  <karl@gnu.org>
92367
92368         * config/srclist-update: was running fixlicense twice, which caused
92369                 texinfo.tex to be nullified for some reason.  Simplify,
92370                 $gplsrc is no longer needed as far as I can see?
92371
92372 2003-07-16  Jim Meyering  <jim@meyering.net>
92373
92374         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
92375
92376 2003-07-15  Paul Eggert  <eggert@twinsun.com>
92377
92378         * config/srclist.txt: Get the following files from gettext-runtime/intl
92379         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
92380         ref-del.sin.  From Bruno Haible.
92381         * config/srclist-update (fixfile): Change grep pattern again, since the
92382         previous fix didn't work (there was another trailing $).  Use
92383         '[$]' to escape the $s.
92384
92385 2003-07-15  Karl Berry  <karl@gnu.org>
92386
92387         * lib/vasnprintf.c: update from gettext.
92388
92389 2003-07-15  Karl Berry  <karl@gnu.org>
92390
92391         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
92392         gets expanded when surrounded by '$'.
92393
92394 2003-07-15  Jim Meyering  <jim@meyering.net>
92395
92396         * modules/save-cwd: Don't depend on error.  From Derek Price.
92397
92398 2003-07-15  Jim Meyering  <jim@meyering.net>
92399
92400         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
92401
92402 2003-07-14  Simon Josefsson  <jas@extundo.com>
92403
92404         * modules/mempcpy: New file.
92405         * MODULES.html.sh (func_all_modules): Add mempcpy.
92406
92407 2003-07-14  Simon Josefsson  <jas@extundo.com>
92408
92409         * m4/mempcpy.m4: New file.
92410
92411 2003-07-14  Simon Josefsson  <jas@extundo.com>
92412
92413         * lib/mempcpy.h: New file.
92414         * lib/mempcpy.c: New file.
92415
92416 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92417
92418         * modules/getdate, modules/posixtm: Depend on mktime.
92419
92420 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92421
92422         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
92423         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
92424         unicodeio.c, unicodeio.h, unlocked-io.h:
92425         Switch from LGPL to GPL.
92426
92427 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92428
92429         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
92430         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
92431         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
92432         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
92433         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
92434         updated automatically by ../config/srclist-update.  This changes
92435         their license from LPGL to GPL.
92436
92437 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92438
92439         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
92440         assumed to refer to the root of the most recent stable gettext version.
92441         * config/srclistvars.sh: Add defaults for eggert.
92442         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
92443         Match "This program" as well as "The program".  This is needed
92444         for gettext.
92445
92446 2003-07-14  Jim Meyering  <jim@meyering.net>
92447
92448         Don't emit diagnostics.  Let callers do that.
92449         * lib/save-cwd.c: Don't include "error.h".
92450         (save_cwd): Don't call error.  Ensure that errno is valid
92451         when returning nonzero.
92452
92453         * lib/save-cwd.h (restore_cwd): Update prototype.
92454         * lib/save-cwd.c (restore_cwd): Remove two parameters.
92455         Simplify.  Don't call error upon failure.  Let callers do that.
92456         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
92457         when auditing is enabled.  But don't bother updating the #if.
92458
92459 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
92460
92461         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
92462         it breaks C++ compilation.
92463         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
92464
92465 2003-07-10  Simon Josefsson  <jas@extundo.com>
92466
92467         * modules/strchrnul (Makefile.am): Add strchrnul.h.
92468
92469 2003-07-10  Jim Meyering  <jim@meyering.net>
92470
92471         * m4/clock_time.m4: Remove trailing blank.
92472         * m4/intmax_t.m4: Likewise.
92473
92474 2003-07-10  Jim Meyering  <jim@meyering.net>
92475
92476         * lib/vasnprintf.c: Remove trailing blanks.
92477         Make cpp indentation consistent.
92478
92479 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92480
92481         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
92482         posixver.c, strftime.c, strnlen.c, strverscmp.c:
92483         Switch from LGPL to GPL.
92484
92485 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92486
92487         * config/srclist.txt: Sort sublists.  Add
92488         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
92489         that differ from gnulib for one reason or another; we'd like this list
92490         to be smaller but for now let's document what we have.
92491
92492 2003-07-08  Paul Eggert  <eggert@twinsun.com>
92493
92494         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
92495         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
92496         and sweeter "eval x=$x".
92497         * config/srclist.txt: Get lib/argp* from glibc.
92498
92499 2003-07-07  Paul Eggert  <eggert@twinsun.com>
92500
92501         * lib/mktime.c: Fix some boundary cases and remove need for floating
92502         point.
92503
92504         Issue a compile-time diagnostic if time_t is floating point, or if
92505         two's complement arithmetic is not in effect, or if arithmetic
92506         right shift does not propagate the sign.  These assumptions were
92507         all in the original code but they weren't checked.
92508
92509         (TIME_T_MIDPOINT, verify): New macros.
92510         (__isleap): Remove; it has integer overflow problems.
92511         (leapyear): New function, without those problems.
92512         (ydhms_tm_diff): Remove; splitting into two parts.
92513         (ydhms_diff): New function, containing the arithmetic part of
92514         the old ydhms_tm_diff function.  Issue a compile-time
92515         diagnostic if we are not using C99 integer division.
92516         Avoid casts when possible.
92517         (guess_time_tm): New function, containing the checking part of
92518         the old ydhms_tm_diff function.  Return the new value, rather than
92519         the difference between it and the old.  Accept a new argument T
92520         so that *T specifies the old value.  Check for overflow in the result.
92521
92522         (__mktime_internal): Use a time_t offset, not a long int offset.
92523         This undoes the 2003-06-04 change, which is no longer needed now
92524         that we have better overflow checking.
92525         (localtime_offset): Likewise.
92526
92527         (__mktime_internal): Avoid harmful overflow on hosts where time_t
92528         and long are 64-bit but int is only 32-bit.
92529         (ydhms_diff): Use long int to store year1 and yday1.
92530         Issue a compile-time diagnostic if long int is not wide enough.
92531
92532         (__mktime_internal): Use long int to store adjusted year and yday.
92533         Use plain C rather than preprocessor commands, if that doesn't
92534         affect efficiency.
92535         Check for overflow (and try to repair) after each probe
92536         rather than checking only at the very end.  This avoids some bugs
92537         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
92538         does not equal GMT offset at maximum time).
92539         Use integer to check for overflow rather than floating point; this
92540         is more portable to non-IEEE hosts, and is a tad faster.
92541         When we detect that we are oscillating between two values,
92542         don't check whether tm_isdst has the requested value, since
92543         we already know the answer.  When tm_isdst has the wrong value,
92544         use a different heuristic to find the right one, based on the
92545         extreme values actually observed in practice in tz2003a,
92546         rather than the (overly optimistic) "previous 3 calendar quarters".
92547
92548         (not_equal_tm, print_tm, check_result): Use "const T" rather than
92549         "T const" to accommodate glibc style.
92550         (check_result): Use less-confusing report format.  "long" -> "long int.
92551         (main): Likewise.
92552         Don't loop if the iteration overflows time_t.
92553         Allow a negative step in the iteration.
92554
92555 2003-07-06  Karl Berry  <karl@gnu.org>
92556
92557         * config/depcomp: update from automake.
92558         * config/config.sub: update from prep.
92559
92560 2003-07-03  Karl Berry  <karl@gnu.org>
92561
92562         * config/config.guess: update from prep.
92563
92564 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92565
92566         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
92567         xreadlink.c now includes it unconditionally.
92568
92569 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92570
92571         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
92572         having it depend on HAVE_SYS_TYPES_H.
92573
92574 2003-07-01  Bruno Haible  <bruno@clisp.org>
92575
92576         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
92577         <sys/types.h> should be sufficient.
92578         Reported by Paul Eggert.
92579
92580 2003-06-26  Karl Berry  <karl@gnu.org>
92581
92582         * config/depcomp: update from automake.
92583
92584 2003-06-26  Bruno Haible  <bruno@clisp.org>
92585
92586         * modules/human: Depend on module stdbool.
92587
92588 2003-06-25  Bruno Haible  <bruno@clisp.org>
92589
92590         * modules/readlink: New file.
92591         * modules/xreadlink: Depend on it.
92592         * MODULES.html.sh (func_all_modules): Add readlink.
92593
92594 2003-06-25  Bruno Haible  <bruno@clisp.org>
92595
92596         * m4/readlink.m4: New file.
92597
92598 2003-06-25  Bruno Haible  <bruno@clisp.org>
92599
92600         * lib/readlink.c: New file.
92601
92602 2003-06-22  Karl Berry  <karl@gnu.org>
92603
92604         * config/srclist.txt: update mkinstalldirs from automake.
92605         * config/mkinstalldirs: update.
92606
92607 2003-06-22  Bruno Haible  <bruno@clisp.org>
92608
92609         Portability to mingw32.
92610         * m4/ssize_t.m4: New file, from GNU gettext.
92611         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
92612         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
92613
92614 2003-06-22  Bruno Haible  <bruno@clisp.org>
92615
92616         * modules/safe-read: Add m4/ssize_t.m4.
92617         * modules/xreadlink: Add m4/ssize_t.m4.
92618
92619 2003-06-20  Bruno Haible  <bruno@clisp.org>
92620
92621         Assume C89, so PARAMS isn't needed.
92622         * lib/unicodeio.h (PARAMS): Remove.
92623         * lib/unicodeio.c: Don't use PARAMS.
92624
92625 2003-06-18  Karl Berry  <karl@gnu.org>
92626
92627         * config/config.{guess,sub}: update from prep.
92628
92629 2003-06-18  Jim Meyering  <jim@meyering.net>
92630
92631         Merge changes from coreutils.
92632         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
92633         Remove explicit declarations of xmalloc and realloc.
92634         Include xalloc.h.
92635         (read_utmp): Remove anachronistic cast of xmalloc.
92636
92637 2003-06-17  Paul Eggert  <eggert@twinsun.com>
92638
92639         Assume C89, so PARAMS isn't needed.
92640         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
92641         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
92642         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
92643         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
92644         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
92645         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
92646         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
92647         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
92648         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
92649         lib/xstrtod.h, lib/xstrtol.h: Likewise.
92650         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
92651         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
92652         no longer needed. Anyway, config.h should always be included before any
92653         other file.
92654
92655 2003-06-11  Simon Josefsson  <jas@extundo.com>
92656
92657         * modules/sysexits: New file.
92658         * MODULES.html.sh (func_all_modules): Add sysexits.
92659
92660 2003-06-11  Simon Josefsson  <jas@extundo.com>
92661
92662         * lib/sysexit_.h: New file.
92663
92664 2003-06-11  Derek Price  <derek@ximbiot.com>
92665
92666         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
92667         necessary.
92668
92669 2003-06-11  Bruno Haible  <bruno@clisp.org>
92670
92671         * m4/sysexits.m4: New file.
92672
92673 2003-06-10  Simon Josefsson  <jas@extundo.com>
92674
92675         * lib/argp.h: New file, from glibc.
92676         * lib/argp-ba.c: New file, from glibc.
92677         * lib/argp-eexst.c: New file, from glibc.
92678         * lib/argp-fmtstream.c: New file, from glibc.
92679         * lib/argp-fmtstream.h: New file, from glibc.
92680         * lib/argp-fs-xinl.c: New file, from glibc.
92681         * lib/argp-help.c: New file, from glibc.
92682         * lib/argp-namefrob.h: New file, from glibc.
92683         * lib/argp-parse.c: New file, from glibc.
92684         * lib/argp-pv.c: New file, from glibc.
92685         * lib/argp-pvh.c: New file, from glibc.
92686         * lib/argp-xinl.c: New file, from glibc.
92687
92688 2003-06-10  Simon Josefsson  <jas@extundo.com>
92689
92690         * modules/strchrnul: New file.
92691
92692 2003-06-10  Simon Josefsson  <jas@extundo.com>
92693
92694         * modules/argp: New file.
92695
92696 2003-06-10  Simon Josefsson  <jas@extundo.com>
92697
92698         * m4/strchrnul.m4: New file.
92699
92700 2003-06-10  Simon Josefsson  <jas@extundo.com>
92701
92702         * lib/strchrnul.h: New file.
92703         * lib/strchrnul.c: New file.
92704
92705 2003-06-10  Bruno Haible  <bruno@clisp.org>
92706
92707         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
92708
92709 2003-06-07  Karl Berry  <karl@gnu.org>
92710
92711         * config/config.{guess,sub}: update from prep.
92712
92713 2003-06-07  Jim Meyering  <jim@meyering.net>
92714
92715         * modules/strtod: Use $(...) notation, not @...@ for
92716         AC_REPLACE'd variables.
92717         * modules/localcharset: Likewise.
92718
92719 2003-06-07  Jim Meyering  <jim@meyering.net>
92720
92721         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
92722         in place of my name in the copyright comment.
92723         Remove definition and uses of __P.
92724
92725         From coreutils.
92726         * lib/stat.c: Don't declare xmalloc explicitly.
92727         Instead, include "xalloc.h".
92728         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
92729         xrealloc, and xcalloc return values.
92730         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
92731         Improve comment.
92732         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
92733
92734 2003-06-07  Bruno Haible  <bruno@clisp.org>
92735
92736         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
92737         avoid AC_CONFIG_LINKS.
92738         * modules/fnmatch (Makefile.am): Use explicit creation rule for
92739         fnmatch.h, to avoid AC_CONFIG_LINKS.
92740         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
92741
92742 2003-06-07  Bruno Haible  <bruno@clisp.org>
92743
92744         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
92745         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
92746         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92747         directory.
92748         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
92749         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92750         directory.
92751
92752 2003-06-06  Jim Meyering  <jim@meyering.net>
92753
92754         Merge from coreutils.
92755         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
92756         Consolidate declarations and initializations of *_base* locals.
92757
92758         Merge from coreutils.
92759         This avoids a core dump on systems without GNU putenv,
92760         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
92761         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
92762         (unsetenv): New static function, from GNU libc.
92763         (rpl_putenv): Use it.
92764
92765         * lib/modechange.c: Remove trailing blanks.
92766
92767         Merge from coreutils.
92768         * lib/fsusage.c: Remove declaration of statfs.
92769         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
92770
92771         * lib/posixtm.c: Include <stdbool.h> unconditionally.
92772
92773 2003-06-06  Jim Meyering  <jim@meyering.net>
92774
92775         * lib/stdbool_.h: Renamed from stdbool.h.in.
92776
92777 2003-06-06  Jim Meyering  <jim@meyering.net>
92778             Bruno Haible  <bruno@clisp.org>
92779
92780         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
92781         Adjust Makefile.am snippet not to redirect directly to target.
92782         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
92783
92784 2003-06-05  Paul Eggert  <eggert@twinsun.com>
92785
92786         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
92787         mismatch, look in future quarters as well as past.  This fixes a
92788         bug when processing fall-backwards gaps immediately after a long
92789         period of daylight-saving time.
92790
92791         * lib/mktime.c: Assume freestanding C89 or better.
92792         (HAVE_LIMITS_H): Remove.  Assume it's 1.
92793         (__P): Remove; not used.
92794         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
92795         (mktime, not_equal_tm, print_tm, check_result,
92796         main): Use prototypes.  Use const * where appropriate.
92797         (main): Fix typo in testing code that uncovered by above changes.
92798         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
92799
92800 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92801
92802         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
92803         locale.h, localeconv.  This merges changes from coreutils.
92804
92805         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
92806         It can be removed after the next Autoconf is released.
92807         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
92808         needed.
92809
92810 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92811
92812         * lib/mktime.c: Fix Debian bug 177940
92813         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
92814         (localtime_offset): Now long int, not time_t, because we want it
92815         to be guaranteed to be signed.  All uses changed.
92816         (__mktime_internal): If overflow would occur when adding offset,
92817         don't add it.
92818
92819         Merge 'human' changes from coreutils.  Rewrite to support
92820         locale-specific notations like thousands separators.
92821         * lib/human.c: Simplify authorship notice.
92822         Include human.h immediately after config.h.
92823         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
92824         <limits.h>: Do not include, since human.h does.
92825         (SIZE_MAX, UINTMAX_MAX): New macros.
92826         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
92827         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
92828         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
92829         (power_letter): Renamed from suffixes.
92830         (generate_suffix_backwards): Remove.
92831         (adjust_value): Now takes int style (because of human.h changes)
92832         and long double value (for greater precision on some platforms).
92833         (group_number): New function.
92834         (human_readable): Use it.  Use integer options, not enum.
92835         Put the options before the sizes in the arg list.
92836         Support all the new options.
92837         The old human_readable function has been removed;
92838         use inttostr.h instead.
92839         (human_readable, default_block_size, humblock):
92840         Use uintmax_t, not int, for block sizes.
92841         (human_readable_inexact, block_size_types): Remove.
92842         (block_size_opts): New constant.
92843         (human_options): Renamed from human_block_size, with new signature
92844         that allows block sizes up to UINTMAX_MAX.  All callers changed.
92845         * lib/human.h: Add copyright and authorship notice.
92846         Include <limits.h> and <stdbool.h> unconditionally.
92847         (PARAMS): Remove.  All uses removed.
92848         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
92849         (enum human_inexact_style): Remove tag; now a nameless enum.
92850         (human_floor, human_ceiling, human_round_to_even): Now have
92851         values 2, 0, 1 rather than -1, 1, 0.
92852         (human_group_digits, human_suppress_point_zero, human_autoscale,
92853         human_base_1024, human_SI, human_B): New constants.
92854         (human_readable_inexact, human_block_size): Remove.
92855         (human_readable): Size args are now uintmax_t, not int.
92856         (human_options): New decl.
92857
92858         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
92859         unnecessary now that we assume C89 or better.  This change
92860         imported from coreutils.
92861
92862         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92863         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
92864         in the 2003-05-30 sync from glibc.
92865
92866         .h files should stand alone, but we shouldn't include <sys/types.h>
92867         if we can get away with just <stddef.h>.
92868
92869         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
92870         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
92871         rather than <sys/types.h>, as we merely need size_t.
92872         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
92873         to get size_t.
92874         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
92875         Include <stdio.h>, to get FILE.
92876         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
92877         memcasecmp.h has included <stddef.h> and all we need is size_t.
92878         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
92879         our interface, instead of including <sys/types.h>
92880
92881 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92882
92883         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
92884         now, as glibc mktime is buggy on non-glibc systems.
92885
92886 2003-06-03  Karl Berry  <karl@gnu.org>
92887
92888         * config/config.sub: update from prep.
92889
92890 2003-06-02  Paul Eggert  <eggert@twinsun.com>
92891
92892         [from coreutils]
92893         Fix some minor time-related bugs with POSIX time arguments.
92894         Some valid time stamps were being rejected (notably -1, and
92895         time stamps before 1900 on 64-bit hosts).  And some invalid
92896         time stamps were being accepted, e.g. September 31.
92897
92898         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
92899         that we can return (time_t) -1 successfully.
92900         * lib/posixtm.c: Likewise.
92901         [HAVE_STDBOOL_H]: Include <stdbool.h>.
92902         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
92903         (t): Remove static var.
92904         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
92905         of static var.  All uses changed.
92906         (year): Do not reject years before 1900; they can occur with
92907         64-bit time_t.
92908         (posix_time_parse): Do not check for out-of-range components;
92909         that is now the caller's responsibility, since our checks were
92910         only approximations.
92911         (posixtime): Use mktime to check for out-of-range components,
92912         since it knows them exactly.
92913         If mktime returns (time_t) -1, check whether an error actually occurred
92914         by invoking localtime on -1.
92915         (main) [TEST_POSIXTIME]: Check for input data errors, and report
92916         posixtime failures better.
92917         Improve the test data (in comments only).
92918
92919 2003-06-02  Karl Berry  <karl@gnu.org>
92920
92921         * config/mkinstalldirs (version): new variable.
92922         (--version): new option.
92923         (usage): improve message.
92924
92925 2003-05-30  Karl Berry  <karl@gnu.org>
92926
92927         * lib/mktime.c: update from libc.
92928
92929 2003-05-30  Bruno Haible  <bruno@clisp.org>
92930
92931         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
92932         * config/config.rpath: Upgrade to gettext-0.12.1.
92933
92934 2003-05-30  Bruno Haible  <bruno@clisp.org>
92935
92936         * m4/gettext.m4: Upgrade to gettext-0.12.1.
92937         * m4/nls.m4: New file, from gettext-0.12.1.
92938         * m4/po.m4: New file, from gettext-0.12.1.
92939         * m4/progtest.m4: Upgrade to gettext-0.12.1.
92940
92941 2003-05-30  Bruno Haible  <bruno@clisp.org>
92942
92943         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
92944         * lib/localcharset.h: Likewise.
92945         * lib/localcharset.c: Likewise.
92946
92947 2003-05-29  Karl Berry  <karl@gnu.org>
92948
92949         * config/config.rpath: update from gettext.
92950
92951 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92952
92953         Assume the headers required for C89 freestanding compilers.
92954         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
92955         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
92956         * m4/human.m4 (gl_HUMAN): Likewise.
92957         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
92958         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
92959         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92960         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
92961         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92962         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
92963
92964 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92965
92966         Assume the headers required for C89 freestanding compilers.
92967         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
92968         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
92969         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
92970         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
92971         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
92972         define, since <limits.h> is guaranteed to do that.
92973         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
92974         * lib/exclude.c: Include <stdbool.h> unconditionally.
92975         * lib/tempname.c: Include <stddef.h> unconditionally.
92976         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
92977         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
92978         <stddef.h> does that.
92979         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
92980         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
92981         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
92982         needed.
92983         * lib/xstrtol.c: Likewise.
92984         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
92985         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
92986
92987         * lib/addext.c (addext): Use assignment rather than cast, to avoid
92988         warnings on some platforms.
92989
92990         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92991         arbitrarily.
92992
92993 2003-05-26  Jim Meyering  <jim@meyering.net>
92994
92995         Merge in a change from coreutils:
92996         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
92997         that is guaranteed to be `no'.  Use `no_such_member' to indicate
92998         that condition, rather than `-1' which is slightly misleading.
92999         Change the name of the cache variable to have the gl_ prefix.
93000         Prompted by a patch from Richard Dawe for DJGPP.
93001
93002 2003-05-24  Karl Berry  <karl@gnu.org>
93003
93004         * config/config.guess: update from prep.
93005
93006 2003-05-22  Karl Berry  <karl@gnu.org>
93007
93008         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
93009
93010 2003-05-20  Karl Berry  <karl@gnu.org>
93011
93012         * config/config.guess: update from prep.
93013
93014 2003-05-18  Karl Berry  <karl@gnu.org>
93015
93016         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
93017         might actually be set by the user.
93018
93019         * config/depcomp, install-sh, mdate-sh: update from automake.
93020
93021 2003-05-17  Bruno Haible  <bruno@clisp.org>
93022
93023         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
93024         invalid expansion for AC_EGREP_CPP.
93025         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
93026         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
93027         Suggested by Akim Demaille <akim@epita.fr> in
93028         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
93029
93030 2003-05-12  Jim Meyering  <jim@meyering.net>
93031
93032         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
93033         the space-padded-by-default conversion specifiers, %e, %k, %l.
93034
93035 2003-05-12  Bruno Haible  <bruno@clisp.org>
93036
93037         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
93038         the string is longer than 4 KB.
93039
93040 2003-05-11  Karl Berry  <karl@gnu.org>
93041
93042         * config/config.{guess,sub}: update from prep.
93043
93044 2003-05-09  Bruno Haible  <bruno@clisp.org>
93045
93046         * modules/error: Add m4/strerror_r.m4 to file list.
93047
93048 2003-05-03  Bruno Haible  <bruno@clisp.org>
93049
93050         Upgrade to Unicode-4.0.
93051         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
93052         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
93053         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
93054         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
93055         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
93056         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
93057         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
93058         Change width of U+E0100..U+E01EF from 1 to 0.
93059
93060 2003-04-25  Jim Meyering  <jim@meyering.net>
93061
93062         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
93063         of type size_t, not int.
93064
93065 2003-04-25  Bruno Haible  <bruno@clisp.org>
93066
93067         * lib/copy-file.c: Include <stddef.h>, for size_t.
93068
93069 2003-04-21  Paul Eggert  <eggert@twinsun.com>
93070
93071         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
93072         code which expansion is under static control.  Patch imported from
93073         Akim Demaille's patch to Bison; see
93074         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
93075
93076 2003-04-14  Bruno Haible  <bruno@clisp.org>
93077
93078         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
93079
93080 2003-04-11  Jim Meyering  <jim@meyering.net>
93081
93082         Merge changes from Coreutils.
93083
93084         2003-03-22  Jim Meyering  <jim@meyering.net>
93085
93086         * lib/strftime.c (widen): Cast alloca return value to proper type.
93087
93088         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
93089
93090         From GNU libc.
93091         * lib/strftime.c (my_strftime): Handle very large width
93092         specifications for numeric values correctly.  Improve checks for
93093         overflow.
93094
93095         2003-01-19  Jim Meyering  <jim@meyering.net>
93096
93097         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
93098         definitions.
93099         (nl_get_alt_digit) [! defined my_strftime]: Define.
93100         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
93101         _nl_get_alt_digit and _nl_get_walt_digit.
93102
93103         * lib/strftime.c (my_strftime): Merge in locale-related changes from
93104         libc. These changes have no effect outside of _LIBC.
93105
93106 2003-04-10  Bruno Haible  <bruno@clisp.org>
93107
93108         * modules/findprog: New file.
93109         * MODULES.html.sh (func_all_modules): Add it.
93110
93111 2003-04-10  Bruno Haible  <bruno@clisp.org>
93112
93113         * m4/findprog.m4: New file.
93114         * m4/eaccess.m4: New file.
93115
93116 2003-04-10  Bruno Haible  <bruno@clisp.org>
93117
93118         * lib/findprog.h: New file, from GNU gettext.
93119         * lib/findprog.c: New file, from GNU gettext.
93120
93121 2003-04-05  Jim Meyering  <jim@meyering.net>
93122
93123         Merge changes from Coreutils.
93124
93125         * lib/exclude.h (PARAMS): Remove definition and uses.
93126         * lib/exclude.c: Remove uses of `PARAMS'.
93127
93128         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
93129         Add test-cases for DOS filenames. Declare program_name.
93130         (main): Set up program_name.  Patch by Rich Dawe.
93131
93132         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93133         error from mntctl.
93134         Use mntctl's return value to drive the entry-processing loop, since
93135         we can't rely on the value of the vmt_length member in the last
93136         entry.  On some systems doing so could result in exhausting
93137         virtual memory.  Based in part on a patch from Mike Jetzer.
93138
93139 2003-04-04  Bruno Haible  <bruno@clisp.org>
93140
93141         * modules/linebreak: New file.
93142         * MODULES.html.sh (func_all_modules): Add it.
93143
93144 2003-04-04  Bruno Haible  <bruno@clisp.org>
93145
93146         * m4/linebreak.m4: New file.
93147
93148 2003-04-04  Bruno Haible  <bruno@clisp.org>
93149
93150         * lib/linebreak.h: New file, from GNU gettext.
93151         * lib/linebreak.c: New file, from GNU gettext with slight
93152         modifications.
93153         * lib/lbrkprop.h: New file, from GNU gettext.
93154
93155 2003-04-03  Bruno Haible  <bruno@clisp.org>
93156
93157         * modules/utf8-ucs4: New file.
93158         * modules/utf16-ucs4: New file.
93159         * modules/ucs4-utf8: New file.
93160         * modules/ucs4-utf16: New file.
93161         * MODULES.html.sh (func_all_modules): Add them.
93162
93163 2003-04-03  Bruno Haible  <bruno@clisp.org>
93164
93165         * m4/utf-ucs4.m4: New file.
93166         * m4/ucs4-utf.m4: New file.
93167
93168 2003-04-03  Bruno Haible  <bruno@clisp.org>
93169
93170         * lib/utf8-ucs4.h: New file, from GNU gettext.
93171         * lib/utf16-ucs4.h: New file, from GNU gettext.
93172         * lib/ucs4-utf8.h: New file, from GNU gettext.
93173         * lib/ucs4-utf16.h: New file, from GNU gettext.
93174
93175 2003-04-02  Bruno Haible  <bruno@clisp.org>
93176
93177         * modules/binary-io: New file.
93178         * MODULES.html.sh (func_all_modules): Add it.
93179
93180 2003-04-02  Bruno Haible  <bruno@clisp.org>
93181
93182         * lib/binary-io.h: New file, from GNU gettext.
93183
93184 2003-04-01  Bruno Haible  <bruno@clisp.org>
93185
93186         * modules/pathname: New file.
93187         * MODULES.html.sh (func_all_modules): Add it.
93188
93189 2003-04-01  Bruno Haible  <bruno@clisp.org>
93190
93191         * lib/pathname.h: New file, from GNU gettext.
93192         * lib/concatpath.c: New file, from GNU gettext.
93193
93194 2003-03-30  Bruno Haible  <bruno@clisp.org>
93195
93196         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
93197
93198 2003-03-30  Bruno Haible  <bruno@clisp.org>
93199
93200         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
93201         function chown() doesn't exist.
93202
93203 2003-03-28  Bruno Haible  <bruno@clisp.org>
93204
93205         * modules/copy-file: New file.
93206         * MODULES.html.sh (func_all_modules): Add it.
93207
93208 2003-03-28  Bruno Haible  <bruno@clisp.org>
93209
93210         * m4/copy-file.m4: New file.
93211
93212 2003-03-28  Bruno Haible  <bruno@clisp.org>
93213
93214         * lib/copy-file.h: New file, from GNU gettext.
93215         * lib/copy-file.c: New file, from GNU gettext.
93216
93217 2003-03-18  Jim Meyering  <jim@meyering.net>
93218
93219         * lib/quote.c (quote_n): Fix typo in comment.
93220
93221 2003-03-18  Bruno Haible  <bruno@clisp.org>
93222
93223         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
93224         checking.
93225         * m4/onceonly_2_57.m4: Likewise.
93226
93227 2003-03-17  Bruno Haible  <bruno@clisp.org>
93228
93229         * m4/onceonly.m4: Require autoconf 2.54 or newer.
93230         (m4_quote): Remove macro.
93231         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
93232
93233 2003-03-14  Jim Meyering  <jim@meyering.net>
93234
93235         Merge changes from Coreutils.
93236         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
93237         to be const, in order to avoid warnings.
93238         (obstack_room): Likewise.
93239         (obstack_empty_p): Likewise.
93240
93241 2003-03-14  Bruno Haible  <bruno@clisp.org>
93242
93243         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
93244         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
93245
93246 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93247
93248         Merge changes from Bison.
93249         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
93250         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
93251         when compiling Bison 1.875's `bitset bset = obstack_alloc
93252         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
93253         * lib/hash.c: Include <stdbool.h> unconditionally.
93254
93255 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93256
93257         * m4/onceonly.m4 (m4_quote): New macro.
93258         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
93259         Quote AC_FOREACH variable-expansions properly.
93260
93261 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93262
93263         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
93264
93265 2003-03-09  Paul Eggert  <eggert@twinsun.com>
93266
93267         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
93268         Reported by Bruce Becker; see:
93269         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
93270
93271 2003-03-03  Paul Eggert  <eggert@twinsun.com>
93272             Bruno Haible  <bruno@clisp.org>
93273
93274         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
93275         Reported by John Hughes, see
93276         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
93277
93278 2003-02-20  Bruno Haible  <bruno@clisp.org>
93279
93280         * MODULES.html.sh (func_all_modules): Add poll.
93281
93282 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93283
93284         * modules/poll: New file.
93285
93286 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93287
93288         * lib/poll_.h: New file.
93289         * lib/poll.c: New file.
93290
93291 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93292
93293         * m4/poll.m4: New file.
93294
93295 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93296
93297         * modules/mathl: New file.
93298
93299 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93300
93301         * lib/mathl.h: New file.
93302         * lib/acosl.c: New file.
93303         * lib/asinl.c: New file.
93304         * lib/atanl.c: New file.
93305         * lib/ceill.c: New file.
93306         * lib/cosl.c: New file.
93307         * lib/expl.c: New file.
93308         * lib/floorl.c: New file.
93309         * lib/frexpl.c: New file.
93310         * lib/ldexpl.c: New file.
93311         * lib/logl.c: New file.
93312         * lib/sincosl.c: New file.
93313         * lib/sinl.c: New file.
93314         * lib/sqrtl.c: New file.
93315         * lib/tanl.c: New file.
93316         * lib/trigl.c: New file.
93317         * lib/trigl.h: New file.
93318
93319 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93320
93321         * m4/mathl.m4: New file.
93322
93323 2003-02-18  Bruno Haible  <bruno@clisp.org>
93324
93325         * MODULES.html.sh (func_all_modules): Add mathl.
93326
93327 2003-02-17  Bruno Haible  <bruno@clisp.org>
93328
93329         * modules/mkdtemp: New module.
93330         * MODULES.html.sh (func_all_modules): Add it.
93331
93332 2003-02-17  Bruno Haible  <bruno@clisp.org>
93333
93334         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
93335
93336 2003-02-17  Bruno Haible  <bruno@clisp.org>
93337
93338         * lib/mkdtemp.h: New file, from GNU gettext.
93339         * lib/mkdtemp.c: New file, from GNU gettext.
93340
93341 2003-02-02  Jim Meyering  <jim@meyering.net>
93342
93343         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
93344         e.g. glibc-2.2.93.
93345
93346 2003-01-31  Bruno Haible  <bruno@clisp.org>
93347
93348         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
93349         'rpl_rename'.
93350         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
93351         'rpl_strnlen'.
93352         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
93353         'rpl_strtod'.
93354         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
93355         'rpl_utime'.
93356
93357 2003-01-31  Bruno Haible  <bruno@clisp.org>
93358
93359         * lib/rename.c: #undef rename before defining rpl_rename.
93360         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
93361
93362 2003-01-30  Bruno Haible  <bruno@clisp.org>
93363
93364         * modules/vasnprintf, modules/vasprintf: New modules.
93365         * MODULES.html.sh (func_all_modules): Add them.
93366
93367 2003-01-30  Bruno Haible  <bruno@clisp.org>
93368
93369         * m4/signed.m4: New file, from GNU gettext.
93370         * m4/longdouble.m4: New file, from GNU gettext.
93371         * m4/wchar_t.m4: New file, from GNU gettext.
93372         * m4/wint_t.m4: New file, from GNU gettext.
93373         * m4/vasnprintf.m4: New file.
93374         * m4/vasprintf.m4: New file.
93375
93376 2003-01-30  Bruno Haible  <bruno@clisp.org>
93377
93378         * lib/printf-args.h: New file, from GNU gettext.
93379         * lib/printf-args.c: New file, from GNU gettext.
93380         * lib/printf-parse.h: New file, from GNU gettext.
93381         * lib/printf-parse.c: New file, from GNU gettext.
93382         * lib/vasnprintf.h: New file, from GNU gettext.
93383         * lib/vasnprintf.c: New file, from GNU gettext.
93384         * lib/asnprintf.c: New file, from GNU gettext.
93385         * lib/vasprintf.h: New file, from GNU gettext with modifications.
93386         * lib/vasprintf.c: New file, from GNU gettext.
93387         * lib/asprintf.c: New file, from GNU gettext.
93388
93389 2003-01-29  Bruno Haible  <bruno@clisp.org>
93390
93391         * modules/stpncpy: New module.
93392         * MODULES.html.sh (func_all_modules): Add it.
93393
93394 2003-01-29  Bruno Haible  <bruno@clisp.org>
93395
93396         * m4/stpncpy.m4: New file.
93397
93398 2003-01-29  Bruno Haible  <bruno@clisp.org>
93399
93400         * lib/stpncpy.h: New file, from GNU gettext with modifications.
93401         * lib/stpncpy.c: New file, from GNU gettext with modifications.
93402
93403 2003-01-28  Bruno Haible  <bruno@clisp.org>
93404
93405         * modules/c-ctype: New module.
93406         * MODULES.html.sh (func_all_modules): Add it.
93407
93408 2003-01-28  Bruno Haible  <bruno@clisp.org>
93409
93410         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
93411         Paul Eggert.
93412         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
93413         Paul Eggert.
93414
93415 2003-01-27  Bruno Haible  <bruno@clisp.org>
93416
93417         * modules/xsetenv: New module.
93418         * MODULES.html.sh (func_all_modules): Add it.
93419
93420 2003-01-27  Bruno Haible  <bruno@clisp.org>
93421
93422         * lib/xsetenv.h: New file, from GNU gettext.
93423         * lib/xsetenv.c: New file, from GNU gettext.
93424
93425 2003-01-23  Jim Meyering  <jim@meyering.net>
93426
93427         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
93428         from working on systems without dirfd (at least Irix and OSF1/Tru64).
93429
93430 2003-01-23  Bruno Haible  <bruno@clisp.org>
93431
93432         * modules/minmax: New module.
93433         * MODULES.html.sh (func_all_modules): Add it.
93434
93435 2003-01-23  Bruno Haible  <bruno@clisp.org>
93436
93437         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
93438         Eggert.
93439
93440 2003-01-22  Bruno Haible  <bruno@clisp.org>
93441
93442         * modules/exit: New module.
93443         * MODULES.html.sh (func_all_modules): Add it.
93444
93445 2003-01-22  Bruno Haible  <bruno@clisp.org>
93446
93447         * lib/exit.h: New file, from GNU gettext.
93448
93449 2003-01-19  Bruno Haible  <bruno@clisp.org>
93450
93451         * gnulib-tool: Recognize option --extract-maintainer.
93452         (func_get_maintainer): New function.
93453         * modules/*: Add Maintainer entry.
93454
93455 2003-01-16  Jim Meyering  <jim@meyering.net>
93456
93457         * m4/regex.m4: The `regex' struct is both input and output.
93458         Initialize it before each use.  Patch by Tim Waugh.
93459
93460 2003-01-16  Bruno Haible  <bruno@clisp.org>
93461
93462         * MODULES.html.sh: Add a table of contents. Add the module name as
93463         leftmost column. Add hyperlinks.
93464
93465 2003-01-15  Bruno Haible  <bruno@clisp.org>
93466
93467         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
93468
93469 2003-01-15  Bruno Haible  <bruno@clisp.org>
93470
93471         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
93472         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
93473         suffix.
93474
93475 2003-01-15  Bruno Haible  <bruno@clisp.org>
93476
93477         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
93478
93479 2003-01-15  Bruno Haible  <bruno@clisp.org>
93480
93481         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
93482         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
93483
93484 2003-01-14  Jim Meyering  <jim@meyering.net>
93485
93486         * lib/same.c (same_name): Tweak a comment.
93487
93488 2003-01-14  Bruno Haible  <bruno@clisp.org>
93489
93490         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
93491         when a string comparison is sufficient.
93492
93493 2003-01-14  Bruno Haible  <bruno@clisp.org>
93494
93495         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
93496         'unsigned int'.
93497
93498 2003-01-14  Bruno Haible  <bruno@clisp.org>
93499
93500         * lib/hash-pjw.c: Add comment about low quality of this function.
93501
93502 2003-01-13  Bruno Haible  <bruno@clisp.org>
93503
93504         * modules/stpcpy: Distribute lib/stpcpy.h.
93505         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
93506
93507 2003-01-13  Bruno Haible  <bruno@clisp.org>
93508
93509         * modules/*: Add a description.
93510         * modules/strpbrk: Fix Makefile.am snippet.
93511         * modules/strtoimax: Fix dependencies.
93512         * modules/strtoumax: Likewise.
93513
93514 2003-01-13  Bruno Haible  <bruno@clisp.org>
93515
93516         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
93517         * modules/alloca (Makefile.am): All object files depend on alloca.h.
93518         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
93519
93520 2003-01-13  Bruno Haible  <bruno@clisp.org>
93521
93522         * gnulib-tool (func_create_testdir): Store config/* files in the main
93523         directory.
93524         * config.rpath: Move to ...
93525         * config/config.rpath: ... here.
93526         * modules/gettext: Contains config/config.rpath, not config.rpath.
93527         * modules/iconv: Likewise.
93528
93529 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93530
93531         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93532         to avoid collisions with libcurses and libreadline.
93533
93534         * m4/getstr.m4: Remove.
93535         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
93536
93537 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93538
93539         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93540         to avoid collisions with libcurses and libreadline.
93541
93542         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
93543         * lib/getstr.h, getstr.c: Remove.
93544         * lib/getline.c: Include "getline.h", to check interface.
93545         Move body of old getstr.c here: this defines MIN_CHUNK and
93546         declares getdelim2, which is renamed from getstr.
93547         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
93548
93549         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
93550         All uses changed.
93551         * lib/linebuffer.h: Likewise.
93552         (readline): Remove backward-compatibility macro.
93553
93554 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93555
93556         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93557         to avoid collisions with libcurses and libreadline.
93558         * getstr: Remove.
93559         * MODULES.html.sh: Remove getstr.
93560         * modules/getline: Depend on unlocked-io, not getstr.
93561
93562 2003-01-12  Jim Meyering  <jim@meyering.net>
93563
93564         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
93565
93566 2003-01-10  Bruno Haible  <bruno@clisp.org>
93567
93568         * modules/alloca: Change Makefile.am requirements. Simplify Include
93569         requirements. Add lib/alloca_.h to file list.
93570
93571 2003-01-10  Bruno Haible  <bruno@clisp.org>
93572
93573         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
93574
93575 2003-01-10  Bruno Haible  <bruno@clisp.org>
93576
93577         * lib/alloca_.h: New file.
93578         * lib/getdate.y: Unconditionally include alloca.h.
93579         * lib/makepath.c: Likewise.
93580         * lib/setenv.c: Likewise.
93581         * lib/userspec.c: Likewise.
93582
93583 2003-01-09  Karl Berry  <karl@gnu.org>
93584
93585         * MODULES.html.sh: include `dirname $0` in PATH, to find
93586         gnulib-tool.
93587
93588 2003-01-09  Bruno Haible  <bruno@clisp.org>
93589
93590         * modules/stdbool: Change configure.ac, Makefile.am requirements.
93591         Simplify Include requirements. Add lib/stdbool.h.in to file list.
93592
93593 2003-01-09  Bruno Haible  <bruno@clisp.org>
93594
93595         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
93596
93597 2003-01-09  Bruno Haible  <bruno@clisp.org>
93598
93599         * lib/stdbool.h.in: New file.
93600
93601 2003-01-09  Bruno Haible  <bruno@clisp.org>
93602
93603         * gnulib-tool (func_all_modules): Ignore files ending in ~.
93604         * MODULES.html.sh: Likewise.
93605
93606 2003-01-08  Jim Meyering  <jim@meyering.net>
93607
93608         * lib/full-write.c: Undefine and define-away `const' after inclusion
93609         of errno.h, not before.  Suggestion from Bruno Haible.
93610
93611 2003-01-08  Bruno Haible  <bruno@clisp.org>
93612
93613         * modules/full-read: Depend on full-write.
93614
93615 2003-01-08  Bruno Haible  <bruno@clisp.org>
93616
93617         * lib/safe-read.c: Include specification header first, to ensure its
93618         selfcontainedness.
93619         * lib/full-write.c: Likewise.
93620
93621 2003-01-07  Jim Meyering  <jim@meyering.net>
93622
93623         * lib/full-write.c: Rework so that it may serve to define full_read,
93624         too.
93625         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
93626
93627 2003-01-07  Bruno Haible  <bruno@clisp.org>
93628
93629         * lib/strtoimax.c: Include <stdint.h> as an alternative to
93630         <inttypes.h>.
93631         * lib/xstrtol.h: Likewise.
93632         * lib/xstrtoimax.c: Likewise.
93633         * lib/xstrtoumax.c: Likewise.
93634         * lib/human.h: Likewise.
93635
93636         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
93637         on systems that have <inttypes.h> but not <stdint.h>.
93638
93639 2003-01-07  Bruno Haible  <bruno@clisp.org>
93640
93641         * MODULES.html.sh: Add copyright notice.
93642         (missed_files): Omit CVS directory entries.
93643         (func_module): Make it work with sed-3.02.
93644         * MODULES.txt: Remove file.
93645
93646 2003-01-06  Jim Meyering  <jim@meyering.net>
93647
93648         * lib/version-etc.c: Update year in translatable copyright string.
93649
93650 2003-01-03  Karl Berry  <karl@gnu.org>
93651
93652         * config/config.{guess,sub}: update from prep.
93653
93654 2003-01-02  Karl Berry  <karl@gnu.org>
93655
93656         * doc/COPYING.DOC: belatedly updated to 1.2.
93657
93658 2003-01-01  Karl Berry  <karl@gnu.org>
93659
93660         * gnulib-tool (func_verify_module): report module name $module in
93661         error message, not $1.
93662         * gnulib-tool (create-testdir): don't complain if destdir couldn't
93663         be created, only if it doesn't exist.
93664         * gnulib-tool (last_checkin_date): don't expand the $Date here.
93665
93666 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93667
93668         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
93669
93670 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93671
93672         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
93673         memcmp if strcoll doesn't work.
93674
93675 2002-12-31  Bruno Haible  <bruno@clisp.org>
93676
93677         * lib/utime.c (utime_null): No need to call ftruncate if the file was
93678         nonempty.
93679
93680 2002-12-31  Bruno Haible  <bruno@clisp.org>
93681
93682         * lib/memcoll.c (STRCOLL): New macro.
93683         (memcoll): Use it.
93684
93685 2002-12-31  Bruno Haible  <bruno@clisp.org>
93686
93687         * lib/localcharset.h: New file.
93688         * lib/localcharset.c: Include it.
93689         * lib/unicodeio.c: Likewise.
93690
93691 2002-12-31  Bruno Haible  <bruno@clisp.org>
93692
93693         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
93694         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
93695
93696 2002-12-31  Bruno Haible  <bruno@clisp.org>
93697
93698         * lib/getline.h: Include <stddef.h>, for size_t.
93699
93700         * lib/unicodeio.h: Include <stddef.h>, for size_t.
93701         * lib/unicodeio.c: Don't include <stddef.h>.
93702
93703 2002-12-31  Bruno Haible  <bruno@clisp.org>
93704
93705         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
93706         HAVE_TM_ZONE.
93707
93708 2002-12-24  Karl Berry  <karl@gnu.org>
93709
93710         * config/config.guess: update from prep.
93711
93712 2002-12-24  Bruno Haible  <bruno@clisp.org>
93713
93714         General infrasructure.
93715         * m4/README: Rewritten.
93716         * m4/onceonly.m4: New file.
93717         * m4/onceonly_2_57.m4: New file.
93718
93719         Module atexit.
93720         * m4/atexit.m4: New file.
93721
93722         Module strtod.
93723         * m4/strtod.m4: New file.
93724
93725         Module strtol.
93726         * m4/strtol.m4: New file.
93727
93728         Module strtoul.
93729         * m4/strtoul.m4: New file.
93730
93731         Module memchr.
93732         * m4/memchr.m4: New file.
93733
93734         Module memcmp.
93735         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
93736         (jm_FUNC_MEMCMP): Invoke it.
93737
93738         Module memcpy.
93739         * m4/memcpy.m4: New file.
93740
93741         Module memmove.
93742         * m4/memmove.m4: New file.
93743
93744         Module memset.
93745         * m4/memset.m4: New file.
93746
93747         Module strcspn.
93748         * m4/strcspn.m4: New file.
93749
93750         Module strpbrk.
93751         * m4/strpbrk.m4: New file.
93752
93753         Module strstr.
93754         * m4/strstr.m4: New file.
93755
93756         Module strerror.
93757         * m4/strerror.m4: New file.
93758
93759         Module mktime.
93760         * m4/mktime.m4: Renamed from jm-mktime.m4.
93761         (gl_PREREQ_MKTIME): New macro.
93762         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
93763
93764         Module malloc.
93765         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
93766         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
93767         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
93768
93769         Module realloc.
93770         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
93771         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
93772         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
93773
93774         Module strftime.
93775         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
93776         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
93777         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
93778         gl_TM_GMTOFF.
93779         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
93780
93781         Module xalloc.
93782         * m4/xalloc.m4: New file.
93783
93784         Module alloca.
93785         * m4/alloca.m4: New file.
93786
93787         Module putenv.
93788         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
93789         (jm_FUNC_PUTENV): Invoke it.
93790
93791         Module setenv.
93792         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
93793         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
93794         when invoked twice.
93795         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
93796         gt_FUNC_SETENV.
93797
93798         Module memrchr.
93799         * m4/memrchr.m4: New file.
93800
93801         Module stpcpy.
93802         * m4/stpcpy.m4: New file.
93803
93804         Module strcase.
93805         * m4/strcase.m4: New file.
93806
93807         Module strdup.
93808         * m4/strdup.m4: New file.
93809
93810         Module strnlen.
93811         * m4/strnlen.m4: New file.
93812
93813         Module strndup.
93814         * m4/strndup.m4: New file.
93815
93816         Module xstrtod.
93817         * m4/xstrtod.m4: New file.
93818
93819         Module xstrtol.
93820         * m4/xstrtol.m4: New file.
93821
93822         Module getdate.
93823         * m4/getdate.m4: New file.
93824
93825         Module unlocked-io.
93826         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
93827         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
93828         * m4/jm-glibc-io.m4n: Remove file.
93829
93830         Module long-options.
93831         * m4/long-options.m4: New file.
93832
93833         Module md5.
93834         * m4/md5.m4: New file.
93835
93836         Module sha.
93837         * m4/sha.m4: New file.
93838
93839         Module getstr.
93840         * m4/getstr.m4: New file.
93841
93842         Module getline.
93843         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
93844         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
93845         <sys/types.h>, for size_t. Use the function name gnu_getline, not
93846         simply getline. Infoke gl_PREREQ_GETLINE.
93847
93848         Module obstack.
93849         * m4/obstack.m4: New file.
93850
93851         Module hash.
93852         * m4/hash.m4: New file.
93853
93854         Module readtokens.
93855         * m4/readtokens.m4: New file.
93856
93857         Module strverscmp.
93858         * m4/strverscmp.m4: New file.
93859
93860         Module stdbool.
93861         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
93862         OSF/1.
93863
93864         Module strtoll.
93865         * m4/strtoll.m4: New file.
93866
93867         Module strtoull.
93868         * m4/strtoull.m4: New file.
93869
93870         Module strtoimax.
93871         * m4/strtoimax.m4: New file.
93872
93873         Module strtoumax.
93874         * m4/strtoumax.m4: New file.
93875
93876         Module xstrtoimax.
93877         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
93878         jm_AC_PREREQ_XSTRTOIMAX.
93879         Moved the strtol prerequisites to strtol.m4.
93880         Moved the strtoll prerequisites to strtoll.m4.
93881         Moved the strtoimax prerequisites to strtoimax.m4.
93882
93883         Module xstrtoumax.
93884         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
93885         jm_AC_PREREQ_XSTRTOUMAX.
93886         Moved the strtoul prerequisites to strtoul.m4.
93887         Moved the strtoull prerequisites to strtoull.m4.
93888         Moved the strtoumax prerequisites to strtoumax.m4.
93889
93890         Module chown.
93891         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
93892         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
93893
93894         Module dup2.
93895         * m4/dup2.m4: New file.
93896
93897         Module ftruncate.
93898         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
93899         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
93900
93901         Module getgroups.
93902         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
93903         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
93904
93905         Module gettimeofday.
93906         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
93907         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
93908         gl_PREREQ_GETTIMEOFDAY.
93909
93910         Module mkdir.
93911         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
93912         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
93913
93914         Module mkstemp.
93915         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
93916         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
93917         jm_AC_TYPE_UINTMAX_T.
93918         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
93919
93920         Module stat.
93921         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
93922         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
93923
93924         Module lstat.
93925         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
93926         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
93927
93928         Module timespec.
93929         * m4/timespec.m4 (gl_TIMESPEC): New macro.
93930         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
93931         * m4/st_mtim.m4: Indentation.
93932
93933         Module nanosleep.
93934         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
93935         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
93936         gl_PREREQ_NANOSLEEP.
93937
93938         Module regex.
93939         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
93940         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
93941         (gl_REGEX): New macro.
93942
93943         Module rename.
93944         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
93945         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
93946
93947         Module rmdir.
93948         * m4/rmdir.m4: New file.
93949
93950         Module utime.
93951         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
93952         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
93953         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
93954
93955         Module dirname.
93956         * m4/dirname.m4: New file.
93957
93958         Module getopt.
93959         * m4/getopt.m4: New file.
93960
93961         Module unistd-safer.
93962         * m4/unistd-safer.m4: New file.
93963
93964         Module fnmatch.
93965         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
93966         declaration.
93967         (gl_PREREQ_FNMATCH_EXTRA): New macro.
93968         (gl_FUNC_FNMATCH_POSIX): New macro.
93969         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
93970         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
93971         simply fnmatch.
93972
93973         Module exclude.
93974         * m4/exclude.m4: New file.
93975
93976         Module human.
93977         * m4/human.m4: New file.
93978
93979         Module acl.
93980         * m4/acl.m4: Nop.
93981
93982         Module backupfile.
93983         * m4/backupfile.m4: New file.
93984         * m4/d-ino.m4: Indentation.
93985
93986         Module fsusage.
93987         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
93988         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
93989         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
93990
93991         Module dirfd.
93992         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
93993         requirements.
93994
93995         Module euidaccess.
93996         * m4/euidaccess.m4: New file.
93997
93998         Module file-type.
93999         * m4/file-type.m4: New file.
94000
94001         Module fileblocks.
94002         * m4/fileblocks.m4: New file.
94003
94004         Module filemode.
94005         * m4/filemode.m4: New file.
94006
94007         Module isdir.
94008         * m4/isdir.m4: New file.
94009
94010         Module lchown.
94011         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
94012         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
94013
94014         Module makepath.
94015         * m4/makepath.m4: New file.
94016
94017         Module modechange.
94018         * m4/modechange.m4: New file.
94019
94020         Module mountlist.
94021         * m4/mountlist.m4: New file.
94022         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
94023         Indentation.
94024
94025         Module path-concat.
94026         * m4/path-concat.m4: New file.
94027
94028         Module pathmax.
94029         * m4/pathmax.m4: New file.
94030
94031         Module same.
94032         * m4/same.m4: New file.
94033
94034         Module save-cwd.
94035         * m4/save-cwd.m4: New file.
94036
94037         Module savedir.
94038         * m4/savedir.m4: New file.
94039
94040         Module xgetcwd.
94041         * m4/xgetcwd.m4: New file.
94042         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
94043
94044         Module xreadlink.
94045         * m4/xreadlink.m4: New file.
94046
94047         Module safe-read.
94048         * m4/safe-read.m4: New file.
94049
94050         Module safe-write.
94051         * m4/safe-write.m4: New file.
94052
94053         Module closeout.
94054         * m4/closeout.m4: New file.
94055
94056         Module stdio-safer.
94057         * m4/stdio-safer.m4: New file.
94058
94059         Module getpass.
94060         * m4/getpass.m4: New file.
94061
94062         Module getugroups.
94063         * m4/getugroups.m4: New file.
94064
94065         Module group-member.
94066         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
94067         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
94068
94069         Module idcache.
94070         * m4/idcache.m4: New file.
94071
94072         Module userspec.
94073         * m4/userspec.m4: New file.
94074
94075         Module gettime.
94076         * m4/clock_time.m4: New file.
94077         * m4/gettime.m4: New file.
94078
94079         Module settime.
94080         * m4/settime.m4: New file.
94081
94082         Module posixtm.
94083         * m4/posixtm.m4: New file.
94084
94085         Module gethostname.
94086         * m4/gethostname.m4: New file.
94087
94088         Module canon-host.
94089         * m4/canon-host.m4: New file.
94090
94091         Module gettext.
94092         * m4/codeset.m4: New file, from gettext-0.11.5.
94093         * m4/gettext.m4: New file, from gettext-0.11.5.
94094         * m4/glibc21.m4: New file, from gettext-0.11.5.
94095         * m4/iconv.m4: New file, from gettext-0.11.5.
94096         * m4/intdiv0.m4: New file, from gettext-0.11.5.
94097         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
94098         * m4/inttypes.m4: New file, from gettext-0.11.5.
94099         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
94100         * m4/isc-posix.m4: New file, from gettext-0.11.5.
94101         * m4/lcmessage.m4: New file, from gettext-0.11.5.
94102         * m4/lib-ld.m4: New file, from gettext-0.11.5.
94103         * m4/lib-link.m4: New file, from gettext-0.11.5.
94104         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
94105         * m4/progtest.m4: New file, from gettext-0.11.5.
94106         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
94107         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
94108         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
94109
94110         Module localcharset.
94111         * m4/localcharset.m4: New file.
94112
94113         Module hard-locale.
94114         * m4/hard-locale.m4: New file.
94115
94116         Module mbswidth.
94117         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
94118         onceonly macros.
94119         * m4/mbrtowc.m4: Add comment.
94120
94121         Module memcasecmp.
94122         * m4/memcasecmp.m4: New file.
94123
94124         Module memcoll.
94125         * m4/memcoll.m4: New file.
94126
94127         Module unicodeio.
94128         * m4/unicodeio.m4: New file.
94129
94130         Module rpmatch.
94131         * m4/rpmatch.m4: New file.
94132
94133         Module yesno.
94134         * m4/yesno.m4: New file.
94135
94136         Module exitfail.
94137         * m4/exitfail.m4: New file.
94138
94139         Module c-stack.
94140         * m4/c-stack.m4 (gl_C_STACK): New macro.
94141         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
94142
94143         Module error.
94144         * m4/error.m4 (gl_ERROR): New macro.
94145         (jm_PREREQ_ERROR): Use onceonly macros.
94146
94147         Module fatal.
94148         * m4/fatal.m4: New file.
94149
94150         Module getloadavg.
94151         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
94152         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
94153
94154         Module getpagesize.
94155         * m4/getpagesize.m4: New file.
94156
94157         Module getusershell.
94158         * m4/getusershell.m4: New file.
94159
94160         Module physmem.
94161         * m4/physmem.m4: New file.
94162
94163         Module posixver.
94164         * m4/posixver.m4: New file.
94165
94166         Module quotearg.
94167         * m4/quotearg.m4: New file.
94168
94169         Module quote.
94170         * m4/quote.m4: New file.
94171
94172         Module readutmp.
94173         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
94174
94175         Module sig2str.
94176         * m4/sig2str.m4: New file.
94177
94178         Other.
94179         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
94180         ulonglong.m4.
94181         * m4/intmax_t.m4: New file.
94182         * m4/d-type.m4: Indentation.
94183         * m4/jm-macros.m4: Update.
94184         * m4/prereq.m4 (jm_PREREQ): Update.
94185         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
94186         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
94187         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
94188         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
94189         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
94190         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
94191         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
94192         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
94193         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
94194         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
94195         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
94196         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
94197         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
94198         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
94199         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
94200         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
94201         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
94202         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
94203         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
94204
94205 2002-12-24  Bruno Haible  <bruno@clisp.org>
94206
94207         * MODULES.txt: Update according to m4/ changes.
94208
94209         Module gettext.
94210         * config.rpath: New file, from gettext-0.11.5.
94211
94212         * modules/*: New module descriptions.
94213         * gnulib-tool: New file.
94214         * MODULES.html.sh: New file.
94215
94216 2002-12-21  Karl Berry  <karl@gnu.org>
94217
94218         * doc/fdl.texi: update to version 1.2.
94219
94220 2002-12-19  Karl Berry  <karl@gnu.org>
94221
94222         * config/config.guess: update from prep.
94223
94224 2002-12-18  Bruno Haible  <bruno@clisp.org>
94225
94226         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
94227         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
94228
94229 2002-12-17  Bruno Haible  <bruno@clisp.org>
94230
94231         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
94232         stdlib.h, string.h.
94233
94234 2002-12-17  Bruno Haible  <bruno@clisp.org>
94235
94236         * lib/canon-host.c (strdup): Remove unused declaration.
94237
94238         * lib/fsusage.c: Include full_read.h.
94239         (get_fs_usage): Use full_read instead of safe_read.
94240
94241         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
94242
94243 2002-12-12  Karl Berry  <karl@gnu.org>
94244
94245         * config/config.guess: update from prep.
94246
94247 2002-12-11  Bruno Haible  <bruno@clisp.org>
94248
94249         * m4/setenv.m4: New file, from gettext-0.11.5.
94250
94251 2002-12-11  Bruno Haible  <bruno@clisp.org>
94252
94253         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
94254         not unsetenv().
94255         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
94256         modifications:
94257
94258         2002-12-11  Bruno Haible  <bruno@clisp.org>
94259
94260                 * setenv.c (alloca): Fall back to malloc.
94261                 (freea): New macro.
94262                 (setenv): Use freea() to free memory allocated with alloca().
94263
94264         2002-11-13  Bruno Haible  <bruno@clisp.org>
94265
94266                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
94267                 function declarations.
94268                 * unsetenv.c (unsetenv): Likewise.
94269
94270         2002-03-04  Bruno Haible  <bruno@clisp.org>
94271
94272                 Portability to AIX 4.3.3.
94273                 * unsetenv.c: New file, extracted from setenv.c.
94274                 * setenv.c: Move the unsetenv() function to unsetenv.c.
94275
94276         2001-12-20  Bruno Haible  <bruno@clisp.org>
94277
94278                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
94279                 use malloc instead. For SunOS 4.
94280
94281         2001-12-11  Bruno Haible  <bruno@clisp.org>
94282
94283                 * setenv.c: Declare alloca.
94284                 (compar_fn_t): New typedef.
94285                 (KNOWN_VALUE, STORE_VALUE): Use it.
94286
94287         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
94288         setenv.h.
94289
94290 2002-12-10  Paul Eggert  <eggert@twinsun.com>
94291
94292         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
94293         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
94294         Choose values that are less likely to collide with system fnmatch
94295         options.
94296         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
94297         defined (e.g., a pure POSIX system).
94298         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
94299         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
94300
94301 2002-12-06  Paul Eggert  <eggert@twinsun.com>
94302
94303         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
94304         a pain in practice to deal with generated m4 files.  This change
94305         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
94306
94307         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
94308         and jm-glibc-io.m4, as they are no longer a special case.
94309         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
94310         kludge and the auto-generation stuff.  Check only whether the
94311         functions are declared, not whether they exist, since older hosts
94312         that don't declare the functions can't use the optimization anyway.
94313
94314 2002-12-06  Jim Meyering  <jim@meyering.net>
94315
94316         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
94317
94318         Merge in changes from libc's misc/error.c, in preparation
94319         for the merge of gnulib's changes back into libc.
94320
94321         * lib/error.c (_): Define only if not already defined.
94322         Move definition to follow all #include directives.
94323         Include unlocked-io.h only if !_LIBC.
94324         [_LIBC]: Include <libio/libioP.h>.
94325         [USE_IN_LIBIO]: Include <libio/iolibio.h>
94326         (fflush): Tweak definition to use INTUSE.
94327         (putc): Define.
94328
94329 2002-12-05  Paul Eggert  <eggert@twinsun.com>
94330
94331         * lib/alloca.c [defined emacs]: Include "lisp.h".
94332         (xalloc_die) [defined emacs]: New macro.
94333         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
94334         [! defined emacs]: Include <xalloc.h>.
94335         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
94336         (pointer): Typedef to POINTER_TYPE *.
94337         (malloc): Remove decl; we now always use xmalloc.
94338         (alloca): Use old-style definition, since Emacs needs this.
94339         Check for arithmetic overflow when computing combined size.
94340
94341 2002-12-04  Paul Eggert  <eggert@twinsun.com>
94342
94343         Do not generate unlocked-io.h automatically, since it's easier to
94344         maintain it by hand.
94345
94346         * lib/unlocked-io.h: New file, from GNU diffutils,
94347         but with proper copyright notice and attribution.
94348         * lib/gen-uio: Remove.
94349         * lib/Makefile.am: Add copyright notice.
94350         (libfetish_a_SOURCES): Add unlocked-io.h.
94351         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
94352         (DISTCLEANFILES, io_functions): Remove macros.
94353         (EXTRA_DIST): Remove gen_uio.
94354         (unlocked-io.h): Remove rule.
94355
94356 2002-12-04  Jim Meyering  <jim@meyering.net>
94357
94358         Reflect the fact that stat.c and lstat.c are no longer generated.
94359         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
94360         (DISTCLEANFILES): Likewise.
94361         (EXTRA_DIST): Likewise.
94362         (all_local): Don't depend on stat.c or lstat.c.
94363         (stat.c, lstat.c): Remove rules.
94364         (EXTRA_DIST): Remove xstat.in.
94365
94366         * lib/xstat.in: Remove file.  Contents moved into stat.c.
94367         * lib/stat.c: New file.  Contents mostly from xstat.in.
94368         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
94369         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
94370
94371         * lib/safe-read.c: Rework so that it may serve to define safe_write,
94372         too.
94373         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
94374
94375 2002-12-03  Jim Meyering  <jim@meyering.net>
94376
94377         * lib/safe-read.c, safe-write.c: Change variable names and comments,
94378         but not semantics, to minimize the differences between these two files.
94379         (safe_read): Change comment to mention SAFE_READ_ERROR.
94380
94381         * lib/safe-read.c (IS_EINTR): Define.
94382         (safe_read): Use IS_EINTR in place of in-function cpp directives.
94383
94384 2002-12-02  Jim Meyering  <jim@meyering.net>
94385
94386         * lib/safe-read.c (EINTR): Define.
94387         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94388         (INT_MAX): Provide fallback.
94389         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
94390
94391         * lib/safe-read.h (SAFE_READ_ERROR): Define.
94392
94393 2002-12-02  Bruno Haible  <bruno@clisp.org>
94394
94395         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
94396         Define, taken from safe-read.c.
94397         (INT_MAX): Provide fallback.
94398         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
94399         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
94400
94401         * lib/safe-read.c (EINTR): Remove definition.
94402         (safe_read): Don't use EINTR if it is absent.
94403
94404 2002-12-01  Jim Meyering  <jim@meyering.net>
94405
94406         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
94407         zero.
94408         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
94409
94410 2002-11-27  Paul Eggert  <eggert@twinsun.com>
94411
94412         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
94413         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
94414         with `if (! (value < limit)) abort ();', for readability.
94415
94416 2002-11-26  Karl Berry  <karl@gnu.org>
94417
94418         * lib/strdup.c: copy from libc again, with jim's ok.
94419         * lib/.cppi-disable: re-add strdup.c
94420
94421 2002-11-25  Karl Berry  <karl@gnu.org>
94422
94423         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
94424         instead of "strtol.c".
94425
94426 2002-11-25  Karl Berry  <karl@gnu.org>
94427
94428         * config/install-sh: update from automake for variable quoting, $0 in
94429         error msgs, etc.
94430
94431         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
94432         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
94433         entry.
94434
94435 2002-11-25  Jim Meyering  <jim@meyering.net>
94436
94437         * lib/mktime.c: Sync from libc, now that it has the latest fix.
94438
94439 2002-11-24  Karl Berry  <karl@gnu.org>
94440
94441         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
94442         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
94443
94444 2002-11-24  Jim Meyering  <jim@meyering.net>
94445
94446         Update from coreutils:
94447
94448         * lib/mktime.c: Merge in changes from libc.
94449
94450         Avoid a link-time failure on some Linux systems.
94451         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
94452         (otherwise).
94453         (__mon_yday): Declare with the STATIC attribute.
94454         (__mktime_internal): Likewise.
94455         Based on a report from Greg Schafer.
94456
94457 2002-11-23  Jim Meyering  <jim@meyering.net>
94458
94459         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
94460         Use `unsigned', not `int', as type of index.
94461
94462         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
94463
94464         * lib/fsusage.c: Remove unneeded parentheses around operands of
94465         `defined'.
94466
94467 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94468
94469         * lib/quotearg.h: Allow multiple inclusion by surrounding with
94470         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
94471         so that we can be included first.
94472         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
94473         * lib/quotearg.c: Include quotearg.h immediately after config.h.
94474         No need to include stddef.h or sys/types.h any more.
94475         Surround local include files with "", not "<>".
94476         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
94477         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
94478         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
94479         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
94480         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
94481         (ISPRINT): Remove; no longer needed now that we assume C89.
94482
94483         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
94484         Preserve errno.
94485
94486         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
94487         quotearg_char): Use SIZE_MAX rather than
94488         (size_t) -1 when we are talking about "infinity".
94489
94490         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
94491
94492 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94493
94494         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
94495         hint that one should use `if (! x) abort ();' rather than `assert
94496         (x);', and anyway it's one less thing to worry about configuring.
94497         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
94498         hash_rehash, hash_insert): Use abort rather than assert.
94499
94500 2002-11-22  Bruno Haible  <bruno@clisp.org>
94501
94502         * lib/safe-read.h: Assume C89. Add comments.
94503         (safe_read): Change return type to size_t.
94504         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
94505         byte counts > SSIZE_MAX correctly.
94506         * lib/safe-write.h: New file.
94507         * lib/safe-write.c: New file.
94508         * lib/full-read.h: New file.
94509         * lib/full-read.c: New file.
94510         * lib/full-write.h: Assume C89. Add comments.
94511         * lib/full-write.c: Include safe-write.h.
94512         (full_write): Rewritten to use safe_write.
94513         Suggested by Jim Meyering and Paul Eggert.
94514
94515 2002-11-21  Jim Meyering  <jim@meyering.net>
94516
94517         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
94518
94519         Merge in changes from the coreutils.
94520
94521         2002-09-25  Paul Eggert  <eggert@twinsun.com>
94522         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
94523         <stdint.h>.
94524         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
94525         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
94526         int.  Work more efficiently if X is the same width as uintmax_t.
94527         Do not compare X to -1, to avoid bogus compiler warning.
94528         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
94529         Don't assume that f_frsize and f_bsize are the same type.
94530
94531         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
94532         warning on FreeBSD.
94533
94534         * lib/makepath.c (make_path): Restore umask *before* creating the final
94535         component.
94536         (make_path): Minor reformatting.
94537
94538         * lib/xmalloc.c: Adjust to work with new autoconf macros,
94539         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
94540         HAVE_MALLOC/HAVE_REALLOC.
94541
94542         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
94543         dummy ones.  At least on GNU/Linux systems, `auto' means something
94544         else.
94545         From Michael Stone.
94546
94547 2002-11-21  Bruno Haible  <bruno@clisp.org>
94548
94549         Remove case insensitive option matching.
94550         * lib/argmatch.h (argcasematch): Remove declaration.
94551         (ARGCASEMATCH): Remove macro.
94552         (__xargmatch_internal): Remove case_sensitive argument.
94553         (XARGMATCH): Update.
94554         (XARGCASEMATCH): Remove macro.
94555         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
94556         case_sensitive argument.
94557         (argcasematch): Remove function.
94558         (__xargmatch_internal): Remove case_sensitive argument.
94559         (main): Use XARGMATCH instead of XARGCASEMATCH.
94560
94561         * lib/xmalloc.c: Change compile-time error message. Add comment about
94562         required autoconf version.
94563
94564 2002-11-20  Paul Eggert  <eggert@twinsun.com>
94565
94566         Merge argmatch cleanups from Bison.  Assume C89.
94567
94568         * lib/argmatch.c: Include config.h here, not in argmatch.h.
94569         Include stdlib.h, for EXIT_FAILURE.
94570         Always include <string.h>, since we assume C89.
94571         (EXIT_FAILURE): Remove pre-C89 bug workaround.
94572         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
94573         Include <stddef.h> instead, since it's all we need for size_t.
94574         (PARAMS): Remove.  All uses removed.
94575         (ARRAY_CARDINALITY): Do not bother to #undef.
94576         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
94577         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94578         Remove unnecessary parentheses.
94579         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94580         Insert necessary parentheses.
94581         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
94582         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
94583
94584 2002-11-19  Bruno Haible  <bruno@clisp.org>
94585
94586         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
94587         * lib/mbswidth.h: Include <stddef.h>, for size_t.
94588
94589         * lib/mbswidth.h (PARAMS): Remove macro.
94590         (mbswidth, mbsnwidth): Use ANSI C function declarations.
94591         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
94592
94593         * lib/gcd.h (PARAMS): Remove macro.
94594         (gcd): Use ANSI C function declarations.
94595         * lib/gcd.c (gcd): Likewise.
94596
94597 2002-11-15  Bruno Haible  <bruno@clisp.org>
94598
94599         * lib/strcspn.c: Include <stddef.h>.
94600         (strcspn): Use ANSI C function declaration. Change return type to
94601         size_t. Use NULL.
94602         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
94603         (strpbrk): Use NULL.
94604         * lib/strpbrk.h (PARAMS): Remove macro.
94605         (strpbrk): Use ANSI C function declaration.
94606         * lib/strstr.c: Don't include <sys/types.h>.
94607         * lib/strstr.h (PARAMS): Remove macro.
94608         (strstr): Use ANSI C function declarations.
94609
94610 2002-11-14  Karl Berry  <karl@gnu.org>
94611
94612         * config/mkinstalldirs: `do' on separate line, instead of
94613         `for var; do'.
94614
94615 2002-11-06  Bruno Haible  <bruno@clisp.org>
94616
94617         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
94618         * lib/gcd.c (gcd): Likewise.
94619
94620 2002-11-05  Bruno Haible  <bruno@clisp.org>
94621
94622         * lib/gcd.h: New file, from gettext-0.11.5.
94623         * lib/gcd.c: New file, from gettext-0.11.5.
94624
94625 2002-11-05  Bruno Haible  <bruno@clisp.org>
94626
94627         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94628         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94629         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94630         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94631
94632         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
94633         <libintl.h>.
94634         * lib/makepath.c: Include gettext.h instead of <locale.h> and
94635         <libintl.h>.
94636
94637         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
94638         * lib/human.c: Include gettext.h instead of <libintl.h>.
94639         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
94640         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
94641         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
94642         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
94643         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
94644         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
94645         (textdomain): Remove definition.
94646         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
94647
94648         * lib/long-options.c: Remove include of <libintl.h> and definition of
94649         _.
94650         * lib/same.c: Remove include of <libintl.h> and definition of _.
94651
94652 2002-11-04  Owen Taylor  <otaylor@redhat.com>
94653
94654         * lib/config.charset: A few additions for Solaris.
94655
94656 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94657
94658         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
94659         * lib/localcharset.c (locale_charset): Declare as extern "C".
94660
94661 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94662
94663         * lib/config.charset: msdos in uk_UA uses CP1125.
94664
94665 2002-11-04  Bruno Haible  <bruno@clisp.org>
94666
94667         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
94668         * lib/strcase.h: New file, from GNU gettext-0.11.5.
94669         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
94670         * lib/strstr.h: New file, from GNU gettext-0.11.5.
94671         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
94672
94673 2002-11-04  Bruno Haible  <bruno@clisp.org>
94674
94675         * lib/localcharset.c (locale_charset): Don't return an empty string.
94676
94677 2002-11-04  Bruno Haible  <bruno@clisp.org>
94678
94679         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
94680         aliases.
94681
94682 2002-11-04  Bruno Haible  <bruno@clisp.org>
94683
94684         * lib/config.charset: Update for newest glibc. Add canonical names
94685         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
94686
94687 2002-11-04  Bruno Haible  <bruno@clisp.org>
94688
94689         * lib/config.charset: Add support for NetBSD.
94690
94691 2002-11-04  Bruno Haible  <bruno@clisp.org>
94692
94693         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
94694
94695 2002-11-01  Bruno Haible  <bruno@clisp.org>
94696
94697         * configure.in: Add AC_CONFIG_AUX_DIR call.
94698         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
94699         test/Makefile.
94700         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
94701
94702 2002-09-28  Karl Berry  <karl@gnu.org>
94703
94704         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
94705         installed automake until the next release, since changes have been
94706         made.
94707
94708 2002-09-25  Karl Berry  <karl@gnu.org>
94709
94710         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
94711         * lib/getopt*: copy from libc/posix.
94712         * lib/gettext.h: copy from gettext.
94713         * lib/.cppi-disable: add strdup.c, gettext.h.
94714
94715 2002-09-25  Karl Berry  <karl@gnu.org>
94716
94717         * config/srclist.txt: enable gettext.h check.
94718         * config/config.{guess,sub}: update from prep.
94719         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
94720                 from automake 1.6.3.
94721         See srclist*.
94722
94723 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
94724
94725         * regex.c (PATFETCH): Remove the translating fetch.
94726         (PATFETCH_RAW): Rename to PATFETCH.
94727         (set_image_of_range): New fun.
94728         (SET_RANGE_TABLE_WORK_AREA): Use it.
94729         (regex_compile): Don't translate the pattern chars so eagerly.
94730         Only do it when inserting an `exactn' bytecode or when handling
94731         a char-range.
94732         (mutually_exclusive_p): Avoid empty statement.
94733
94734 2002-07-06  Jim Meyering  <meyering@lucent.com>
94735
94736         * m4/README: Don't mention Makefile.am.in.
94737         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
94738
94739 2002-07-01  Jim Meyering  <meyering@lucent.com>
94740
94741         * lib/c-stack.c: Include sys/time.h.
94742         From Volker Borchert.
94743
94744 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94745
94746         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
94747
94748 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94749
94750         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
94751         New macro.  Use it uniformly instead of
94752         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
94753         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
94754         reported by Vin Shelton.
94755
94756 2002-06-22  Paul Eggert  <eggert@twinsun.com>
94757
94758         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
94759         Do not assume SA_SIGINFO behavior.
94760         Bug reported by Jim Meyering on NetBSD 1.5.2.
94761
94762 2002-06-22  Jim Meyering  <meyering@lucent.com>
94763
94764         * m4/c-stack.m4: New file, from diffutils-2.8.2.
94765         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
94766
94767         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
94768         now that configure.ac uses AC_GNU_SOURCE.
94769         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
94770         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
94771
94772         Update to latest tools.  Suggestions from Paul Eggert.
94773         * m4/stdbool.m4: New file, from diffutils-2.8.2.
94774         * m4/gnu-source.m4: Update from diffutils-2.8.2.
94775         * m4/fnmatch.m4: Likewise.
94776         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
94777         to AC_HEADER_STDBOOL
94778
94779 2002-06-22  Jim Meyering  <meyering@lucent.com>
94780
94781         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
94782         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
94783
94784 2002-06-22  Jim Meyering  <meyering@lucent.com>
94785
94786         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
94787
94788         * lib/exitfail.c, exitfail.h: Likewise.
94789         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
94790
94791         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
94792         of fnmatch.h.
94793         (EXTRA_DIST): Add fnmatch_loop.c.
94794         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
94795
94796         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
94797         * lib/fnmatch.c: Update from diffutils-2.8.2.
94798         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
94799         * lib/fnmatch.h: Remove file.
94800
94801 2002-06-21  Jim Meyering  <meyering@lucent.com>
94802
94803         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
94804         * m4/mbrtowc.m4: Likewise.
94805
94806         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
94807         * m4/mbswidth.m4: Reflect name change:
94808         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
94809         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94810
94811         * m4/lib-link.m4: Update from gettext-0.11.2.
94812         * m4/gettext.m4: Likewise.
94813
94814         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
94815         From Alfred M. Szmidt.
94816
94817 2002-06-18  Paul Eggert  <eggert@twinsun.com>
94818
94819         * lib/file-type.h: Report an error if neither S_ISREG nor
94820         S_IFREG is defined, instead of using a test specific to glibc
94821         2.2.  This should be safe, since POSIX requires S_ISREG and
94822         Unix Version 7 had S_IFREG.  We don't need to check for
94823         <sys/types.h> since we don't use any symbols that it defines.
94824
94825 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
94826
94827         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
94828         $@-t, so that each temporary file name is unique and valid in the first
94829         8 characters, for operation under DOS.
94830
94831 2002-06-15  Paul Eggert  <eggert@twinsun.com>
94832
94833         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
94834
94835 2002-06-15  Jim Meyering  <meyering@lucent.com>
94836
94837         Work even with DJGPP 2.03, which lacks support for symlinks.
94838         From Richard Dawe.
94839         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
94840         is defined.
94841         * lib/lchown.c (S_ISLNK): Likewise.
94842
94843 2002-06-15  Jim Meyering  <meyering@lucent.com>
94844
94845         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
94846         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
94847         have been included before this file.
94848
94849 2002-06-14  Jim Meyering  <meyering@lucent.com>
94850
94851         * lib/file-type.h: Use the version from diffutils-2.8.2.
94852         * lib/file-type.c: Likewise.
94853
94854 2002-06-07  Jim Meyering  <meyering@lucent.com>
94855
94856         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
94857         They're needed at least for NetBSD 1.5.2.
94858         ($statxfs_includes): Include those same headers.
94859         ($statxfs_includes): Include sys/vfs.h if available.
94860         ($statxfs_includes): Likewise for sys/statvfs.h.
94861         Check for the following members in both structs statfs and statvfs:
94862         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
94863
94864 2002-06-01  Jim Meyering  <meyering@lucent.com>
94865
94866         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
94867         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
94868
94869 2002-05-28  Jim Meyering  <meyering@lucent.com>
94870
94871         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
94872         Reported by Volker Borchert.
94873
94874 2002-05-27  Jim Meyering  <meyering@lucent.com>
94875
94876         Fix a problem seen only on nonconforming systems whereby ls.c's
94877         use of localtime, and then of gettimeofday would cause trouble:
94878         the localtime call used to initialize rpl_gettimeofday's save
94879         mechanism would clobber ls's current local time information so
94880         that in any long listing the first file would always be listed
94881         with date 1970-01-01.  Analysis by Volker Borchert.
94882
94883         * lib/gettimeofday.c (localtime): Undefine.
94884         (rpl_localtime): New function.
94885
94886 2002-05-27  Jim Meyering  <meyering@lucent.com>
94887
94888         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
94889         localtime.
94890
94891         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
94892         use the replacement function; it wouldn't resolve at link time.
94893         Reported by Volker Borchert.
94894
94895 2002-05-22  Jim Meyering  <meyering@lucent.com>
94896
94897         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
94898         file-type.h.
94899         * lib/file-type.h: New file.
94900         * lib/file-type.c (file_type): New file/function.  Extracted from
94901         diffutils.
94902
94903 2002-04-30  Jim Meyering  <meyering@lucent.com>
94904
94905         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
94906
94907 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94908
94909         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
94910
94911 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94912
94913         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
94914         Do not check for alloca.h (no longer used) or stdbool.h (was never
94915         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
94916
94917 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94918
94919         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
94920
94921 2002-04-29  Jim Meyering  <meyering@lucent.com>
94922
94923         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
94924         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
94925         Use AC_FUNC_STRNLEN here instead.
94926
94927         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
94928         With autoconf-2.53a, it's part of AC_PROG_CC.
94929
94930 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94931
94932         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
94933         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
94934
94935 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94936
94937         * lib/sig2str.h, lib/sig2str.c: New files.
94938         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
94939
94940 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94941
94942         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
94943         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
94944         of 127, since 64 is the largest conceivable number for ancient
94945         nonstandard hosts.
94946         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
94947
94948 2002-04-28  Jim Meyering  <meyering@lucent.com>
94949
94950         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
94951
94952 2002-04-24  Jim Meyering  <meyering@lucent.com>
94953
94954         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
94955         (jm_PREREQ): Use it.
94956
94957         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
94958         mach/mach.h fcntl.h.
94959         Check for this function: setlocale.
94960
94961 2002-04-24  Jim Meyering  <meyering@lucent.com>
94962
94963         * lib/gettext.h: New file, from Gettext.
94964         * lib/Makefile.am (INCLUDES): Remove -I../intl.
94965         (libfetish_a_SOURCES): Add gettext.h.
94966
94967 2002-04-16  Jim Meyering  <meyering@lucent.com>
94968
94969         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
94970         ut_pid, ut_id, ut_exit.
94971
94972 2002-04-16  Jim Meyering  <meyering@lucent.com>
94973
94974         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
94975         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
94976         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
94977
94978 2002-04-12  Jim Meyering  <meyering@lucent.com>
94979
94980         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
94981         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
94982         existence of the getmntinfo function.  Needed for Darwin 5.3.
94983
94984         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
94985         This is necessary at least on Darwin 5.3.
94986
94987         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
94988         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
94989         strnlen.o in the library, and that makes some versions of ranlib
94990         object.
94991
94992 2002-04-12  Jim Meyering  <meyering@lucent.com>
94993
94994         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
94995
94996 2002-04-09  Jim Meyering  <meyering@lucent.com>
94997
94998         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
94999         to be more precise.  Rather than saying we're checking whether the
95000         function `works', say what we're testing.
95001         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
95002         Reported by Bruno Haible.
95003
95004 2002-03-10  Jim Meyering  <meyering@lucent.com>
95005
95006         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
95007         Suggestion from Santiago Vila.
95008
95009 2002-03-08  Jim Meyering  <meyering@lucent.com>
95010
95011         * lib/rename.c: Mention that this wrapper is needed also on
95012         mips-dec-ultrix4.4 systems.
95013
95014 2002-03-02  Jim Meyering  <meyering@lucent.com>
95015
95016         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
95017         not HAVE_CLOCK_SETTIME.
95018
95019 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95020
95021         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
95022         Check for clock_settime.
95023
95024 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95025
95026         * lib/nanosleep.h: Rename to....
95027         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
95028
95029         * lib/gettime.c: New file.
95030         * lib/settime.c: New file.
95031         * lib/stime.c: Remove.
95032
95033         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
95034         timespec.h.  Remove nanosleep.h.
95035
95036 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95037
95038         * m4/acl.m4: New file.
95039         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
95040         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
95041
95042 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95043
95044         * lib/acl.c, lib/acl.h: New files.
95045         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
95046
95047 2002-02-24  Jim Meyering  <meyering@lucent.com>
95048
95049         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
95050         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
95051         cause trouble.  Reported by Nelson Beebe.
95052
95053 2002-02-23  Paul Eggert  <eggert@twinsun.com>
95054
95055         * lib/path-concat.c (xpath_concat): Reorder code to pacify
95056         compilers that don't know that xalloc_die never returns.
95057
95058 2002-02-20  Jim Meyering  <meyering@lucent.com>
95059
95060         * lib/getdate.c: Regenerate using bison-1.33.
95061
95062 2002-02-17  Jim Meyering  <meyering@lucent.com>
95063
95064         * config/config.guess (main): Don't use `head -1'; it's no longer
95065         portable. Use `sed 1q' instead.
95066
95067 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
95068
95069         * m4/codeset.m4: Upgrade to gettext-0.11.
95070         * m4/gettext.m4: Upgrade to gettext-0.11.
95071         * m4/glibc21.m4: Upgrade to gettext-0.11.
95072         * m4/iconv.m4: Upgrade to gettext-0.11.
95073         * m4/isc-posix.m4: Upgrade to gettext-0.11.
95074         * m4/lcmessage.m4: Upgrade to gettext-0.11.
95075         * m4/lib-ld.m4: New file, from gettext-0.11.
95076         * m4/lib-link.m4: New file, from gettext-0.11.
95077         * m4/lib-prefix.m4: New file, from gettext-0.11.
95078         * m4/progtest.m4: Upgrade to gettext-0.11.
95079
95080 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95081
95082         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
95083         (jm_PREREQ): Use it.
95084
95085 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95086
95087         * lib/posixver.c, lib/posixver.h: New files.
95088         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95089
95090 2002-02-02  Paul Eggert  <eggert@twinsun.com>
95091             Bruno Haible  <bruno@clisp.org>
95092
95093         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
95094         (fwrite_success_callback): New declaration.
95095         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
95096         print_unicode_char. Call failure callback instead of error.
95097         (fwrite_success_callback): New function.
95098         (exit_failure_callback): New function.
95099         (fallback_failure_callback): New function.
95100         (print_unicode_char): Call unicode_to_mb.
95101
95102 2002-01-26  Jim Meyering  <meyering@lucent.com>
95103
95104         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
95105         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
95106
95107 2002-01-26  Jim Meyering  <meyering@lucent.com>
95108
95109         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
95110
95111 2002-01-22  Paul Eggert  <eggert@twinsun.com>
95112
95113         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
95114
95115 2002-01-22  Jim Meyering  <meyering@lucent.com>
95116
95117         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
95118         Otherwise, some versions of automake would omit the rule that makes
95119         Makefile from Makefile.in.
95120
95121 2002-01-21  Paul Eggert  <eggert@twinsun.com>
95122
95123         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
95124         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95125         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
95126         (memcoll): Set errno to zero if there is no error.
95127
95128         * lib/quotearg.c (quotearg_buffer_restyled):
95129         Fix bug with quoting buffers containing NUL when backslashing escapes.
95130         This bug was exposed by the other changes in this patch.
95131         (quotearg_n_options): New arg ARGSIZE.
95132         All callers changed.
95133         (quoting_options_from_style): New function.
95134         (quotearg_n_style): Use it.
95135         (quotearg_n_style_mem): New function.
95136
95137         * lib/quotearg.h (quotearg_n_style_mem): New function.
95138
95139 2002-01-19  Jim Meyering  <meyering@lucent.com>
95140
95141         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
95142         Remove useless quotes: DF_PROG="df".
95143         * m4/strnlen.m4: New file.
95144
95145 2002-01-16  Paul Eggert  <eggert@twinsun.com>
95146
95147         * lib/backupfile.c (ISDIGIT): Comment fix.
95148         * lib/getdate.y (ISDIGIT): Likewise.
95149         * lib/posixtm.c (ISDIGIT, year): Likewise.
95150         * lib/strverscmp.c (ISDIGIT): Likewise.
95151         * lib/userspec.c (ISDIGIT): Likewise.
95152
95153 2002-01-16  Jim Meyering  <meyering@lucent.com>
95154
95155         * lib/getdate.y: Add three semicolons, each just before a closing
95156         brace. Bison (as of version 1.31) no longer papers over that mistake.
95157
95158 2002-01-05  Jim Meyering  <meyering@lucent.com>
95159
95160         * lib/version-etc.c (version_etc_copyright): Update copyright year.
95161
95162 2001-12-19  Paul Eggert  <eggert@twinsun.com>
95163
95164         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
95165         not silently exit merely because the output buffer happens to
95166         have nothing pending.
95167
95168 2001-12-18  Paul Eggert  <eggert@twinsun.com>
95169
95170         See the big note in ../ChangeLog.
95171         * lib/human.c (suffixes): Prefer K to k for 1024.
95172         (generate_suffix_backwards): New function.
95173         (human_readable_inexact): Use it.
95174         * lib/xstrtol.c (__xstrtol): If there is no number but there
95175         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
95176         Accept 'K' as well as 'k'.
95177
95178 2001-12-15  Jim Meyering  <meyering@lucent.com>
95179
95180         * lib/regex.h (__restrict_arr): Update from libc.
95181
95182         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
95183         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
95184         (STREQ): Define.
95185
95186 2001-12-14  Jim Meyering  <meyering@lucent.com>
95187
95188         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
95189         Suggestion from Bruno Haible.
95190
95191 2001-12-10  Jim Meyering  <meyering@lucent.com>
95192
95193         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
95194         xrealloc, Instead, include "xalloc.h".
95195         (initbuffer): Don't cast xmalloc return value to char*.
95196         (readline): Reword comment.
95197         Don't cast xrealloc return value to char*
95198         Return NULL, not 0.
95199
95200 2001-12-09  Jim Meyering  <meyering@lucent.com>
95201
95202         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
95203         about `signed and unsigned type in conditional expression'.
95204         * lib/posixtm.c (posix_time_parse): Likewise.
95205
95206         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
95207
95208         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
95209         to avoid a pedantic warning.
95210
95211         * lib/getstr.c: Don't include assert.h.
95212         (getstr): Remove warning-evoking assertions.
95213         Return -1 if offset parameter is out of bounds.
95214         Change the type of a local from int to size_t.
95215
95216         * lib/strftime.c (my_strftime_localtime_r): Include this function
95217         definition in the `#if ! HAVE_TM_GMTOFF' block.
95218
95219         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
95220         Include xalloc.h instead.
95221
95222 2001-12-02  Jim Meyering  <meyering@lucent.com>
95223
95224         * lib/tempname.c: Don't declare getenv, thus reverting the change of
95225         2001-11-18.  It's no longer necessary, now that stdlib.h is always
95226         included.
95227
95228         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
95229         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
95230
95231 2001-11-30  Akim Demaille  <akim@epita.fr>
95232
95233         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
95234         before being defined.
95235
95236 2001-11-27  Paul Eggert  <eggert@twinsun.com>
95237
95238         * lib/quotearg.h (quotearg_n, quotearg_n_style):
95239         First arg is int, not unsigned.
95240         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
95241         (SIZE_MAX, UINT_MAX): New macros.
95242         (quotearg_n_options): Abort if N is negative.
95243         Avoid overflow check on hosts where size_t is 64 bits and int
95244         is 32 bits, as overflow is impossible there.
95245         Fix off-by-one typo that caused unnecessary reallocation.
95246
95247 2001-11-27  Jim Meyering  <meyering@lucent.com>
95248
95249         * lib/tempname.c: Merge with version from libc.
95250         * lib/regex.c: Likewise.
95251
95252         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
95253         systems for which STDC_HEADERS is 0, it was not included, resulting in
95254         a warning about an integer-to-pointer conversion problem with getenv.
95255         Reported by Volker Borchert.
95256
95257 2001-11-26  Jim Meyering  <meyering@lucent.com>
95258
95259         * lib/gtod.h: Remove file.
95260         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
95261         * lib/gettimeofday.c: Don't include gtod.h.
95262         (GTOD_init): Remove function.
95263         (rpl_gettimeofday): Do its job here instead, rather than aborting.
95264         Suggestion from Volker Borchert.
95265
95266 2001-11-23  Jim Meyering  <meyering@lucent.com>
95267
95268         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
95269         it.
95270         * lib/hash.c (struct hash_table): Define it here instead.
95271
95272 2001-11-22  Jim Meyering  <meyering@lucent.com>
95273
95274         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
95275
95276 2001-11-20  Jim Meyering  <meyering@lucent.com>
95277
95278         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
95279         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
95280
95281 2001-11-19  Jim Meyering  <meyering@lucent.com>
95282
95283         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
95284         directory.  Use "conftestXXXXXX" as the template.
95285         Suggestion from Paul Eggert.
95286
95287         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
95288         immediately, so the test doesn't mistakenly hit the max-open-files
95289         limit.
95290
95291 2001-11-18  Paul Eggert  <eggert@twinsun.com>
95292
95293         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
95294         (TEMPORARIES): New macro.
95295         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
95296         removes an artificial limitation (e.g. HP-UX 10.20, where
95297         TMP_MAX is 17576).
95298
95299 2001-11-18  Jim Meyering  <meyering@lucent.com>
95300
95301         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
95302
95303 2001-11-18  Jim Meyering  <meyering@lucent.com>
95304
95305         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
95306         on SunOS 4.
95307
95308         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
95309         files will be created before anything else.
95310
95311 2001-11-17  Paul Eggert  <eggert@twinsun.com>
95312
95313         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
95314         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
95315
95316 2001-11-17  Jim Meyering  <meyering@lucent.com>
95317
95318         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
95319         Prompted by a report from Bob Proulx.
95320
95321         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
95322         Instead, require UTILS_FUNC_MKSTEMP.
95323
95324 2001-11-17  Jim Meyering  <meyering@lucent.com>
95325
95326         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
95327         Now, that's done as part of AC_FUNC_STRTOD.
95328
95329 2001-11-17  Jim Meyering  <meyering@lucent.com>
95330
95331         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
95332         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
95333         rather than group writable.  Patch by Juan F. Codagnone.
95334
95335         * lib/readtokens.c: Remove explicit declarations of xmalloc and
95336         xrealloc, Instead, include "xalloc.h".
95337
95338         * lib/mountlist.c: Include unlocked-io.h after all system headers.
95339         Remove explicit declarations of xmalloc, xrealloc,
95340         and xstrdup.  Instead, include "xalloc.h".
95341
95342         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
95343         unlocked-io.h.
95344         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
95345         Likewise.
95346         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
95347
95348         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
95349         Reported by Padraig Brady.
95350
95351         * lib/mkstemp.c: #undef mkstemp.
95352         Include config.h.
95353         (rpl_mkstemp): Rename from mkstemp.
95354         Protoize.
95355
95356 2001-11-16  Jim Meyering  <meyering@lucent.com>
95357
95358         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
95359         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
95360         determine the amount of total physical memory, use pstat_getstatic.
95361         HPUX-11 doesn't define _SC_PHYS_PAGES.
95362         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
95363         If sysconf couldn't be used to determine the amount of available
95364         physical memory, use both pstat_getstatic and pstat_getdynamic.
95365         Based on a patch from Bob Proulx.
95366
95367 2001-11-10  Jim Meyering  <meyering@lucent.com>
95368
95369         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
95370         (jm_PREREQ): Use it.
95371
95372 2001-11-09  Jim Meyering  <meyering@lucent.com>
95373
95374         * m4/jm-macros.m4: Require autoconf-2.52f.
95375         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
95376         Use these AC_-prefixed names, not the AM_-prefixed ones.
95377
95378         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
95379
95380 2001-11-05  Jim Meyering  <meyering@lucent.com>
95381
95382         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
95383
95384 2001-11-04  Jim Meyering  <meyering@lucent.com>
95385
95386         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
95387         $DEFS.
95388
95389 2001-11-03  Jim Meyering  <meyering@lucent.com>
95390
95391         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
95392         of AC_DEFUN.
95393
95394         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
95395         know the name of the variable in the macro definition.
95396
95397 2001-11-03  Jim Meyering  <meyering@lucent.com>
95398
95399         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
95400         in argmatch_to_argument call.
95401
95402         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
95403         argument.
95404
95405         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
95406         e.g., a fault due to an attempt to free a NULL pointer.
95407
95408 2001-11-01  Jim Meyering  <meyering@lucent.com>
95409
95410         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
95411         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
95412
95413 2001-11-01  Jim Meyering  <meyering@lucent.com>
95414
95415         * lib/dirfd.c, lib/dirfd.h: New files.
95416         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
95417
95418         * lib/hash.c (hash_print) [TESTING]: Clean up.
95419
95420 2001-10-22  Paul Eggert  <eggert@twinsun.com>
95421
95422         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
95423         to avoid a warning if -Wall.
95424
95425 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
95426
95427         * README: New file
95428         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
95429         (per RMS's instructions, this is now the canonical source)
95430         * lgpl/, gpl/: New directories.
95431
95432 2001-10-21  Paul Eggert  <eggert@twinsun.com>
95433
95434         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
95435
95436 2001-10-21  Jim Meyering  <meyering@lucent.com>
95437
95438         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
95439         this code would end up calling gettext even in packages built
95440         with --disable-nls.
95441         * lib/getopt.c (_): Likewise.
95442         * lib/regex.c (_): Likewise.
95443
95444 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95445
95446         * m4/error.m4 (jm_PREREQ_ERROR):
95447         Do not invoke AC_CHECK_FUNCS with strerror_r, as
95448         AC_FUNC_STRERROR_R does that.
95449         Check for strerror declaration.
95450
95451         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
95452         are supposed to have them these days.
95453         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
95454         Merge changes from latest Autoconf CVS.
95455         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
95456         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
95457         POSIX decided to standardize on the int flavor of strerror_r.
95458
95459 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95460
95461         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
95462         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
95463         Use strerror_r that is only a macro, even if it is not a function.
95464         (strerror): Check for HAVE_DECL_STRERROR before declaring.
95465         (private_strerror): Use prototypes, not old-style function definition.
95466         (print_errno_message): New function.
95467         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
95468         char*-flavored one.
95469         (error_tail, error, error_at_line): Use it.
95470
95471 2001-10-11  Jim Meyering  <meyering@lucent.com>
95472
95473         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
95474         and quote_n (1, ... to avoid clobbering a buffer.
95475
95476 2001-10-05  Jim Meyering  <meyering@lucent.com>
95477
95478         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
95479         hash-pjw.h.
95480         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
95481         * lib/hash-pjw.h: New file.
95482
95483 2001-09-30  Jim Meyering  <meyering@lucent.com>
95484
95485         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
95486         `struct fsstat' has the `f_fstypename' member.
95487         Use that to define FS_TYPE, which is now used to make
95488         the getfsstat link test tighter.
95489
95490 2001-09-30  Jim Meyering  <meyering@lucent.com>
95491
95492         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
95493         Include <sys/ucred.h>, for Apple Darwin.
95494         Include sys/mount.h and sys/fs_types.h only if available.
95495         (FS_TYPE): Define.
95496         (read_filesystem_list): Use FS_TYPE.
95497
95498 2001-09-29  Paul Eggert  <eggert@twinsun.com>
95499
95500         * lib/exclude.c (excluded_filename): 0 -> false, since it's
95501         a boolean context.
95502
95503 2001-09-29  Jim Meyering  <meyering@lucent.com>
95504
95505         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95506         [one-argument getmntent function]): Include stdio.h before mntent.h.
95507         SunOS 4.1.x needs it for the declaration of `FILE'.
95508         Patch by Volker Borchert.
95509
95510         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95511         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
95512         sys/fs_types.h, and make the link-test for getfsstat guard #include
95513         directives with appropriate #if HAVE_*_H tests so that we can
95514         detect getfsstat on Apple Darwin1.3.7 systems.
95515         Reported by Nelson Beebe.
95516         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
95517
95518 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95519
95520         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95521         #defines strtoimax.  Also treat the other strto* functions
95522         like strtoimax.
95523
95524         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95525         Check for strtoul and strtoumax,
95526         as those declarations are made even in the signed case.
95527         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
95528         Likewise, for strtol and strtoimax.
95529
95530 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95531
95532         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95533         #defines strtoimax.  Also treat the other strto* functions
95534         like strtoimax.
95535
95536         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
95537         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
95538         (strtoimax, strtoumax): Do not declare if already defined as a macro.
95539
95540 2001-09-26  Jim Meyering  <meyering@lucent.com>
95541
95542         Most macros in unlocked-io.h had the wrong number of arguments.
95543         * lib/gen-uio: New script.
95544         (USE_UNLOCKED_IO): Define to 1 if not already defined.
95545         * lib/unlocked-io.hin: Remove file.
95546         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
95547         rather than trying to embed it here.
95548         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
95549         Reported by Padraig Brady.
95550
95551 2001-09-25  Volker Borchert  <bt@teknon.de>
95552
95553         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
95554         `result'.
95555
95556 2001-09-24  Jim Meyering  <meyering@lucent.com>
95557
95558         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
95559
95560 2001-09-23  Jim Meyering  <meyering@lucent.com>
95561
95562         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
95563         instead of the mere test for existence of mntent.h.  The latter
95564         would get a false-positive on AIX 3.4 systems.
95565         In the outer getmntent if-block, don't die if neither of the getmntent
95566         tests succeeds.  Instead, just fall through and continue with the
95567         remaining tests.
95568
95569 2001-09-23  Jim Meyering  <meyering@lucent.com>
95570
95571         * lib/mountlist.c: Remove useless parentheses in #if directives.
95572         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
95573         the deprecated MOUNTED symbol is no longer defined in mntent.h.
95574
95575 2001-09-22  Jim Meyering  <meyering@lucent.com>
95576
95577         * m4/gettext.m4: New file.  From gettext.
95578         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
95579         * m4/progtest.m4: Likewise
95580         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
95581         * m4/glibc21.m4: Likewise.
95582
95583         * m4/libintl.m4: Remove.  No longer used.
95584
95585 2001-09-22  Jim Meyering  <meyering@lucent.com>
95586
95587         * lib/localcharset.c: Update from latest gettext.
95588         * lib/config.charset: Likewise.
95589
95590 2001-09-20  Jim Meyering  <meyering@lucent.com>
95591
95592         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
95593         strtoimax.
95594         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
95595         strtoumax.
95596
95597 2001-09-20  Jim Meyering  <meyering@lucent.com>
95598
95599         * lib/xstrtol.c (strtoimax): Guard declaration with
95600         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
95601         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
95602         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
95603         (strtoumax): Likewise, for completeness (it wasn't necessary).
95604
95605 2001-09-17  Paul Eggert  <eggert@twinsun.com>
95606
95607         * lib/strtoimax.c (HAVE_LONG_LONG):
95608         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
95609         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
95610         to work around bug in IBM C compiler.
95611
95612 2001-09-17  Jim Meyering  <meyering@lucent.com>
95613
95614         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
95615         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
95616         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
95617         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
95618         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
95619         whenever the right hand side need not be expanded by the shell.
95620
95621 2001-09-16  Paul Eggert  <eggert@twinsun.com>
95622
95623         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
95624         library.  It's not correct, as some older glibcs are buggy.
95625         fnmatch wasn't fixed until glibc 2.2.
95626
95627         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
95628         special shell magic here.
95629
95630 2001-09-16  Jim Meyering  <meyering@lucent.com>
95631
95632         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
95633         * m4/jm-macros.m4: Require it.
95634
95635 2001-09-16  Jim Meyering  <meyering@lucent.com>
95636
95637         * lib/mkdir.c: New file.
95638
95639 2001-09-15  Jim Meyering  <meyering@lucent.com>
95640
95641         * m4/jm-macros.m4: Check for help2man.
95642
95643 2001-09-11  Jim Meyering  <meyering@lucent.com>
95644
95645         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
95646         The body, by Paul Eggert, was moved here from configure.in.
95647         * m4/jm-macros.m4: Require UTILS_HOST_OS.
95648
95649 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95650
95651         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
95652         (jm_PREREQ): Use it.
95653
95654 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95655
95656         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
95657         Use ssize_t, not int, to store result of readlink.
95658         Check for ssize_t overflow as well as size_t overflow,
95659         as POSIX says the result of readlink is implementation-defined
95660         when ssize_t overflows.
95661         Remove unnecessary cast to char*.
95662         Use free+malloc instead of realloc, as the storage doesn't need
95663         to be preserved and it's clearer and can be more efficient that way.
95664         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
95665         * lib/xreadlink.h (xreadlink): Update prototype.
95666
95667 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95668
95669         * lib/xgetcwd.c: Revert some of the previous change; intead,
95670         fix the HAVE_GETCWD_NULL code to behave more like the
95671         !HAVE_GETCWD_NULL code used to.
95672
95673         Include "xalloc.h".
95674         (xgetcwd): Do not return NULL when memory is exhausted; instead,
95675         invoke xalloc_die.
95676
95677 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95678
95679         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
95680         sys/param.h, as pathmax.h includes them.
95681
95682 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95683
95684         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
95685         (jm_PREREQ_XGETCWD): New macro.
95686
95687         * m4/getcwd.m4: New file.
95688
95689 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95690
95691         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
95692         like the HAVE_GETCWD_NULL code.
95693         Include pathmax.h if not HAVE_GETCWD.
95694         Do not include xalloc.h.
95695         (INITIAL_BUFFER_SIZE): New symbol.
95696         Do not use xmalloc / xrealloc, since the caller is responsible for
95697         handling errors.  Preserve errno around `free' during failure.
95698         Do not overrun buffer when using getwd.
95699
95700 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95701
95702         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
95703         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
95704         getcwd (NULL, 0).
95705
95706 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95707
95708         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
95709         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
95710         spotted by Jim Meyering.
95711
95712 2001-09-03  Jim Meyering  <meyering@lucent.com>
95713
95714         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
95715         failure.
95716
95717 2001-09-02  Jim Meyering  <meyering@lucent.com>
95718
95719         * lib/error.c: Update from GNU libc.
95720
95721 2001-09-01  Jim Meyering  <meyering@lucent.com>
95722
95723         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
95724         Used by df.
95725
95726 2001-09-01  Jim Meyering  <meyering@lucent.com>
95727
95728         * lib/xreadlink.c: New file.
95729         * lib/xreadlink.h: New file.
95730         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
95731         xreadlink.h.
95732
95733         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
95734         doesn't conflict with sparc Solaris 7's definition in
95735         /usr/include/sys/int_types.h.
95736
95737         * lib/exclude.c: Use `""', not `<>' to #include non-system header
95738         files.
95739         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
95740         and strncasecmp as r-values.  Unixware didn't have declarations.
95741
95742 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95743
95744         * lib/xstrtol.h: Add copyright notice.
95745         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
95746         LONGINT_INVALID_SUFFIX_CHAR.
95747
95748 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95749
95750         * lib/xstrtol.c (strtoimax): New decl.
95751
95752 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95753
95754         * lib/xgetcwd.c: Don't include pathmax.h.
95755         Include stdlib.h and unistd.h if available.
95756         Include xalloc.h.
95757         (xmalloc, xstrdup, free): Remove decls.
95758         (xgetcwd): Don't assume sizes fit in unsigned.
95759         Check for overflow when computing sizes.
95760         Simplify reallocation code.
95761
95762 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95763
95764         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
95765         a directory's st_size can have an arbitrary value, so the old
95766         usage could waste an arbitrary amount of memory.  All uses
95767         changed.
95768         * lib/savedir.h: Update prototype.
95769
95770 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95771
95772         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
95773
95774         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
95775         old strtoimax.c.
95776
95777         Also, make the following further changes to make this file's
95778         configuration more similar to that of strtol.c:
95779         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
95780         (strtoumax, uintmax_t, strtoull, strtol): Remove.
95781         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
95782         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
95783         changed to signed values.
95784
95785         And make the following changes as well:
95786         Fix copyright notice, as 1999 was missing.
95787         (verify): New macro.
95788         (strtoimax): Check sizes at compile-time, not run-time.
95789         Prefer strtol to strtoll if both work.
95790         (main): Remove; it was not that useful and was a pain to maintain.
95791
95792         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
95793
95794 2001-08-31  Jim Meyering  <meyering@lucent.com>
95795
95796         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
95797         Use an initial, malloc'd, buffer of length 128 rather than
95798         a statically allocated one of length 1024.
95799
95800 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95801
95802         Simplify code, partly by assuming autoconf 2.52 semantics.
95803
95804         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
95805
95806         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
95807         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
95808         All uses removed.
95809         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
95810         Move AC_REQUIRE to next-to-top level, to avoid confusion.
95811         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
95812         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
95813         jm_AC_HEADER_INTTYPES_H.
95814         * m4/jm-macros.m4 (jm_MACROS): Likewise.
95815
95816         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
95817
95818         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95819         Quote first arg of AC_DEFUN.
95820         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
95821         since they are needed to parse the include file even if we need
95822         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
95823         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
95824         but with opposite signedness.
95825
95826 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95827
95828         Merge 'exclude' changes from tar 1.13.22.
95829         This fixes one or two unlikely storage allocation overflow bugs,
95830         but doesn't change user-visible behavior otherwise.
95831
95832 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95833
95834         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
95835         (jm_PREREQ_EXCLUDE): New macro.
95836
95837 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95838
95839         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
95840         tm to be declared.
95841
95842 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95843
95844         * lib/hash.c: Remove '2001' from copyright notice.
95845
95846 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95847
95848         * lib/full-write.h: New file.
95849         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
95850         * lib/full-write.c: Correct credits, as cccp.c no longer
95851         exists and anyway it was so heavily changed from the old cccp
95852         code as to be unrecognizable.  Include full-write.h.
95853         (full_write): Return size_t, with short writes meaning failure.
95854         All callers changed.  This fixes a bug with large buffers
95855         on 64-bit hosts.
95856         * lib/utime.c: Include full-write.h.
95857
95858 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95859
95860         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
95861         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
95862         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
95863         Include if available.
95864         (<xalloc.h>): Include
95865         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
95866         (verify): New macro.  Use it to verify that EXCLUDE macros do not
95867         collide with FNM macros.
95868         (struct patopts): New struct.
95869         (struct exclude): Use it, as exclude patterns now come with options.
95870         (new_exclude): Support above changes.
95871         (new_exclude, add_exclude_file):
95872         Initial size must now be a power of two to simplify overflow checking.
95873         (free_exclude, fnmatch_no_wildcards): New function.
95874         (excluded_filename): No longer requires options arg, as the options
95875         are determined by add_exclude.  Now returns bool, not int.
95876         (excluded_filename, add_exclude):
95877         Add support for the fancy new exclusion options.
95878         (add_exclude, add_exclude_file): Now takes int options arg.
95879         Check for arithmetic overflow when computing sizes.
95880         (add_exclude_file): xrealloc might modify errno, so don't
95881         realloc until after errno might be used.
95882
95883         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
95884         New macros.
95885         (free_exclude): New decl.
95886         (add_exclude, add_exclude_file): Now takes int options arg.
95887         (excluded_filename): No longer requires options arg, as the options
95888         are determined by add_exclude.  Now returns bool, not int.
95889
95890 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95891
95892         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
95893
95894 2001-08-27  Jim Meyering  <meyering@lucent.com>
95895
95896         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
95897
95898         * lib/version-etc.c (N_): Remove definition.
95899         Revert most of last change.
95900         Instead, simply don't mark the `Copyright...' string for translation.
95901         Based on advice from Paul Eggert.
95902
95903         * lib/strtoxmax.c: Tweak comment.
95904
95905 2001-08-26  Jim Meyering  <meyering@lucent.com>
95906
95907         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
95908
95909         * m4/xstrtoimax.m4: New file.
95910         * m4/xstrtoumax.m4: Add comments explaining why we
95911         AC_REPLACE_FUNCS(strtol).
95912
95913 2001-08-26  Jim Meyering  <meyering@lucent.com>
95914
95915         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
95916         of copyright with `%s' so translators don't get an untranslated
95917         message in 2002.
95918         (COPYRIGHT_YEAR): Define.
95919         (version_etc): Use fprintf rather than fputs.
95920         Suggestion from Ulrich Drepper.
95921
95922         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
95923
95924         * lib/strtoll.c: New file, from GNU libc.
95925         * lib/xstrtoimax.c: New file.
95926
95927         * lib/xstrtol.h: Add xstrtoimax.
95928         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
95929         * lib/strtoimax.c: New file.  Likewise, but first define
95930         STRTOUXMAX_SIGNED.
95931
95932         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
95933         ...
95934         * lib/strtoxmax.c: ... then renamed to this.
95935
95936 2001-08-18  Paul Eggert  <eggert@twinsun.com>
95937
95938         * m4/inttypes.m4: Add AC_PREREQ(2.13).
95939         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
95940         (jm_AC_TYPE_INTMAX_T): New macro.
95941         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
95942
95943         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
95944
95945         * m4/longlong.m4: Renamed from ulonglong.m4.
95946         * m4/inttypes.m4: Renamed from inttypes_h.m4.
95947         * m4/uintmax_t.m4: Removed.
95948
95949 2001-08-13  Paul Eggert  <eggert@twinsun.com>
95950
95951         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
95952         Port to Solaris 8, where 'sed' requires a space after the 'r'
95953         command, and where sh dislikes "$/".  Clean up the spacing a bit.
95954         Redirect output to $tmp just once.
95955
95956 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
95957
95958         * lib/addext.c (<errno.h>): Include.
95959         (errno): Declare if not defined.
95960         (addext): Work correctly when pathconf returns -1 and leaves
95961         errno alone because there is no limit.  Also, work even if
95962         pathconf returns a value greater than SIZE_MAX.
95963
95964 2001-08-12  Jim Meyering  <meyering@lucent.com>
95965
95966         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
95967         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
95968         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
95969         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
95970         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
95971         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
95972         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
95973         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
95974         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
95975         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
95976         utime.m4, utimes.m4, xstrtoumax.m4:
95977         Quote the first argument in each use of AC_DEFUN.
95978
95979 2001-08-12  Jim Meyering  <meyering@lucent.com>
95980
95981         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
95982         Simply `return getcwd (NULL, 0);'.
95983         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
95984         Use 1300 as initial value for length, not PATH_MAX.
95985
95986         * lib/pathmax.h: Clean up cpp syntax.
95987
95988 2001-08-12  Jim Meyering  <meyering@lucent.com>
95989
95990         * lib/gettimeofday.c: New file.
95991         * lib/gtod.h: New file.
95992         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
95993
95994 2001-08-05  Jim Meyering  <meyering@lucent.com>
95995
95996         * m4/jm-macros.m4: Require autoconf-2.52.
95997
95998 2001-08-04  Jim Meyering  <meyering@lucent.com>
95999
96000         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
96001         stmt, to get in sync with glibc.
96002
96003 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96004
96005         The following changes are from gettext 0.10.39 as maintained by
96006         Bruno Haible.
96007
96008         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
96009         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
96010         with inverted sense.  All uses changed.
96011
96012         * lib/mbswidth.c: Don't include <limits.h>.
96013         Include <stdlib.h> and <string.h> unconditionally.
96014         (iswcntrl, mbsinit, ISCNTRL): New macros.
96015         (mbsnwidth): Use K&R style function declarations.
96016         Don't bother checking for MB_LEN_MAX == 1, since the compiler
96017         can optimize it when MB_CUR_MAX == 1.
96018         The width of control characters is zero, not 1.
96019
96020 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96021
96022         The following changes are from gettext 0.10.39 as maintained by
96023         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
96024
96025         * m4/codeset.m4: Upgrade to serial AM1.
96026         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
96027         all uses changed.  Quote first arg of AC_DEFUN.
96028         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
96029
96030         * m4/iconv.m4: Upgrade to serial AM2.
96031         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
96032         Add --with-libconv-prefix.
96033         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
96034         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
96035         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
96036         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
96037         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
96038
96039         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
96040         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
96041         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
96042         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
96043         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
96044         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
96045         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
96046         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
96047         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
96048
96049         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
96050         string.h any more.
96051
96052         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
96053         not the default value.
96054
96055         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
96056         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
96057         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
96058         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
96059         Also check for iswcntrl, used for wcwidth fallback.
96060         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
96061         to Autoconf 2.13.
96062
96063 2001-08-03  Jim Meyering  <meyering@lucent.com>
96064
96065         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
96066         as it was in the original.  Reported by Paul Eggert.
96067
96068 2001-07-16  Jim Meyering  <meyering@lucent.com>
96069
96070         * m4/gettimeofday.m4: New file.
96071         Prompted by a report from Bernhard Baehr.
96072
96073 2001-07-15  Jim Meyering  <meyering@lucent.com>
96074
96075         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
96076         stuff. Now it's in ../Makefile.cfg.
96077
96078 2001-07-15  Jim Meyering  <meyering@lucent.com>
96079
96080         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
96081         (BUILT_SOURCES): Add unlocked-io.h.
96082         (io_functions): Define.
96083         (unlocked-io.h): New rule.
96084         (DISTCLEANFILES): Add unlocked-io.h.
96085         (all-local): Depend on unlocked-io.h, to ensure it is created.
96086
96087         * lib/unlocked-io.hin: New file
96088
96089         * lib/regex.c: Update from glibc.
96090
96091 2001-07-05  Jim Meyering  <meyering@lucent.com>
96092
96093         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
96094         recommendation.
96095         (libfetish_a_SOURCES): Put all .h files here instead.
96096         Remove a thus-exposed (better checks in automake) duplicate and
96097         two unnecessary .h files.
96098
96099 2001-07-04  Jim Meyering  <meyering@lucent.com>
96100
96101         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
96102         that generates jm-glibc-io.m4 so that it doesn't trigger any make
96103         distcheck failure.
96104
96105 2001-07-02  Jim Meyering  <meyering@lucent.com>
96106
96107         The following changes were prompted by suggestions from Bruno Haible.
96108
96109         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
96110         is now generated.
96111         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
96112         definition of EXTRA_DIST.
96113         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
96114         ensure that the generated file is created/updated whenever the list
96115         of $(unlocked_functions) is changed.
96116         (jm-glibc-io.m4): New rule.
96117         (unlocked-io.h): New rule -- currently unused.
96118
96119 2001-06-24  Jim Meyering  <meyering@lucent.com>
96120
96121         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
96122         unmatched right bracket, rather than kludging it with an extra,
96123         falsely-matching quote in a comment.  Patch by Akim Demaille.
96124
96125 2001-06-11  Jim Meyering  <meyering@lucent.com>
96126
96127         * lib/regex.c: Update from GNU libc.
96128
96129 2001-05-27  Jim Meyering  <meyering@lucent.com>
96130
96131         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
96132         Check for ut_type in struct utmp.
96133
96134 2001-05-27  Jim Meyering  <meyering@lucent.com>
96135
96136         * lib/readutmp.h (UT_TYPE): Define.
96137
96138 2001-05-24  Jim Meyering  <meyering@lucent.com>
96139
96140         * lib/argmatch.c: Include "quote.h".
96141         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
96142         quote function.  Reported by Göran Uddeborg.
96143
96144 2001-05-22  Jim Meyering  <meyering@lucent.com>
96145
96146         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
96147         now that we use the package-supplied version unconditionally.
96148         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
96149
96150 2001-05-21  Jim Meyering  <meyering@lucent.com>
96151
96152         * m4/regex.m4: Change a couple backticks to single quotes to avoid
96153         shell syntax errors.
96154
96155 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96156
96157         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
96158
96159 2001-05-20  Paul Eggert  <eggert@twinsun.com>
96160
96161         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
96162         Don't bother to check library strftime, since
96163         we'll be using our own my_strftime function anyway.
96164         Define my_strftime instead of strftime.
96165
96166 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
96167
96168         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
96169         which is not yet declared.
96170
96171 2001-05-15  Jim Meyering  <meyering@lucent.com>
96172
96173         * m4/regex.m4: Use proper quoting so brackets appear in the test
96174         program.
96175         Reported by, and with help from, Bruno Haible.
96176
96177 2001-05-13  Jim Meyering  <meyering@lucent.com>
96178
96179         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
96180         undefined.
96181
96182 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96183
96184         dirname code cleanup.  base_name now behaves more compatibly
96185         with POSIX basename when given file names that have trailing
96186         slashes, and similarly for dir_name.  Add new primitives
96187         base_len and dir_len.  Put the directory-name-related decls
96188         into dirname.h.
96189
96190         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
96191         * lib/backupfile.c (base_name): Likewise.
96192         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
96193         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
96194         * lib/makepath.c (strip_trailing_slashes): Likewise.
96195         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
96196         ISSLASH): Likewise.
96197         * lib/rename.c (strip_trailing_slashes): Likewise.
96198         * lib/same.c (base_name): Likewise.
96199         * lib/stripslash.c (ISSLASH): Likewise.
96200
96201         * lib/addext.c: Include <dirname.h> after size_t is defined.
96202         * lib/backupfile.c: Likewise.
96203
96204         * lib/addext.c (addext): Use base_len to trim redundant
96205         trailing slashes instead of doing it ourselves.
96206         But do not trim the last slash if it is not redundant.
96207
96208         * lib/backupfile.c (find_backup_file_name,
96209         max_backup_version): Use base_len instead of rolling it ourselves.
96210         Handle the case of "" and (on DOS) "C:" correctly.
96211
96212         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
96213         needed. Include <string.h>, <dirname.h>.
96214         (base_name): Allow file names ending in slashes, other than names
96215         that are all slashes.  In this case, return the basename followed
96216         by the slashes.  This is more general, and can be used in places
96217         where the original base_name purposely had an assertion failure.
96218         (base_len): New function.
96219
96220         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
96221         Do not include <assert.h>; no longer needed.
96222         Include xalloc.h.
96223         (memrchr): Remove decl.
96224         (dir_name_r): Remove.
96225         (dir_len): Renamed from dirlen.  All callers changed.
96226         Rewrite in terms of base_name, for simplicity and consistency.
96227         (dir_name): Never return NULL.  All callers changed.
96228         Do not include <stdlib.h> in test program; no longer needed.
96229         return 0; is fine for test program.
96230
96231         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
96232         New macros.
96233         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
96234
96235         * lib/path-concat.c (path_concat): Use base_len to compute
96236         base length, not strlen; this means we cannot rely on memcpy
96237         to null-terminate.
96238
96239         * lib/same.c (STREQ): Remove.
96240         (same_name): Handle the case where the basename ends in trailing '/'.
96241
96242         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
96243         a slash was stripped.  Do not strip the last slash after a
96244         file system prefix.
96245
96246 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96247
96248         * lib/Makefile.am (libfetish_a_SOURCES):
96249         Add strftime.c, since we now compile it on all hosts.
96250
96251         * lib/strftime.c (my_strftime):
96252         Define to nstrftime if emacs, but only if my_strftime is not defined.
96253         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
96254         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
96255         Add one more extra argument: a nanoseconds value.
96256         All uses changed.
96257         (ns): New macro.
96258         (my_strftime function): Add %N format.
96259         (emacs_strftimeu): Renamed from emacs_strftime,
96260         with extra ut argument.
96261
96262 2001-05-09  Paul Eggert  <eggert@twinsun.com>
96263
96264         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
96265
96266 2001-04-21  Jim Meyering  <meyering@lucent.com>
96267
96268         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
96269         doesn't interfere.
96270
96271 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96272
96273         * m4/ftruncate.m4: Check for chsize.
96274         Link with ftruncate.o unconditionally if ftruncate is missing.
96275         This was required when cross-compiling to i586-mingw32msvc.
96276
96277 2001-04-08  Jim Meyering  <meyering@lucent.com>
96278
96279         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
96280         recomputed; that's necessary when the offset spans a DST transition.
96281         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
96282
96283 2001-04-02  Jim Meyering  <meyering@lucent.com>
96284
96285         * lib/regex.h, regex.c: Update from GNU libc.
96286
96287 2001-03-24  Jim Meyering  <meyering@lucent.com>
96288
96289         * m4/jm-macros.m4: Require autoconf-2.49d.
96290
96291 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
96292
96293         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
96294
96295 2001-03-19  Paul Eggert  <eggert@twinsun.com>
96296
96297         * lib/version-etc.c (version_etc_copyright): Update to 2001.
96298
96299 2001-03-17  Jim Meyering  <meyering@lucent.com>
96300
96301         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
96302         now that the version in autoconf is equivalent.
96303         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
96304
96305         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
96306         Suggestion from Akim Demaille.
96307
96308         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
96309         (jm_PREREQ_TEMPNAME): New function.
96310
96311 2001-03-16  Paul Eggert  <eggert@twinsun.com>
96312
96313         * lib/tempname.c (uint64_t): Define to uintmax_t if
96314         not defined, and if UINT64_MAX is not defined.
96315         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
96316         Reported by John David Anglin.
96317
96318 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
96319
96320         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
96321         resolve alias if codeset is empty.
96322         * lib/config.charset (BeOS): Use wildcard syntax.
96323
96324 2001-03-13  Jim Meyering  <meyering@lucent.com>
96325
96326         * lib/path-concat.c (path_concat)
96327         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
96328         concatenating e.g., `C:' and `foo'.
96329         From Bruno Haible.
96330
96331 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96332
96333         * lib/localcharset.c (locale_charset): Don't use
96334         setlocale(LC_CTYPE,NULL). Don't return NULL.
96335         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
96336
96337 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96338
96339         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
96340         support for DOS/DJGPP.
96341
96342 2001-03-01  Paul Eggert  <eggert@twinsun.com>
96343
96344         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
96345         lacks mkstemp.  Compile our own tempname.c if we compile our own
96346         mkstemp.c, as mkstemp relies on tempname.
96347
96348 2001-03-01  Jim Meyering  <meyering@lucent.com>
96349
96350         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
96351         AH_VERBATIM really does output its argument verbatim.
96352
96353 2001-02-28  Paul Eggert  <eggert@twinsun.com>
96354
96355         * lib/Makefile.am (libfetish_a_SOURCES):
96356         Add dup-safer.c, fopen-safer.c.
96357         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
96358
96359         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
96360         * lib/unistd-safer.h: New files.
96361
96362 2001-02-25  Paul Eggert  <eggert@twinsun.com>
96363
96364         The mkstemp replacement is taken from glibc 2.2.2, with some
96365         portability fixes for use outside glibc, as follows:
96366
96367         * lib/tempname.c (struct_stat64): New macro.
96368         (direxists, __gen_tempname): Use it.
96369         This avoids a portability problem with Solaris 8.
96370
96371         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
96372         (<stddef.h>, <stdint.h>, <string.h>):
96373         Include only if STDC_HEADERS || _LIBC.
96374         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
96375         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
96376         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
96377         (__set_errno): Define this macro if <errno.h> doesn't.
96378         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
96379         Define these macros if <stdio.h> doesn't.
96380         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
96381         Define these macros if <sys/stat.h>
96382         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
96383         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
96384         __xstat64): Define if not _LIBC.
96385         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
96386         (__gen_tempname): Invoke gettimeofday only if
96387         HAVE_GETTIMEOFDAY || _LIBC;
96388         otherwise, fall back on plain "time".
96389         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
96390
96391         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
96392
96393         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
96394
96395 2001-02-18  Paul Eggert  <eggert@twinsun.com>
96396
96397         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
96398
96399 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96400
96401         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
96402         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
96403         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
96404         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96405
96406 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96407
96408         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
96409         Remove workaround macros for hosts that have mbrtowc but not
96410         mbstate_t, as we now insist on proper declarations for both
96411         before using mbrtowc.
96412
96413 2001-02-17  Jim Meyering  <meyering@lucent.com>
96414
96415         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
96416         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
96417         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
96418         UnixWare 7.1.1.
96419
96420         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
96421         rather than AC_CACHE_VAL.
96422
96423 2001-02-17  Jim Meyering  <meyering@lucent.com>
96424
96425         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
96426         around included file name.
96427
96428         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
96429
96430         * lib/strftime.c: Update from GNU libc (the only changes were to
96431         comments).
96432
96433 2001-02-17  Jim Meyering  <meyering@lucent.com>
96434
96435         * lib/regex.c: Update from libc.
96436
96437 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
96438
96439         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
96440         clash.
96441
96442 2001-02-16  Paul Eggert  <eggert@twinsun.com>
96443
96444         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
96445         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
96446         Reported by Mark Hounschell via Paul Eggert.
96447
96448 2001-02-07  Jim Meyering  <meyering@lucent.com>
96449
96450         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
96451
96452 2001-02-05  Jim Meyering  <meyering@lucent.com>
96453
96454         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
96455         it includes the patch required for `large file' support with at least
96456         HP-UX's 10.20 /bin/cc.
96457
96458 2001-02-03  Jim Meyering  <meyering@lucent.com>
96459
96460         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
96461         AS_IF, now that it works once again (mysteriously).
96462         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96463
96464 2001-01-30  Jim Meyering  <meyering@lucent.com>
96465
96466         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
96467         * m4/chown.m4: Rename conftestchown to conftest.chown.
96468         * m4/rename.m4: s/conftestdir/conftest.d1/ and
96469         s/conftestdir2/conftest.d2/.
96470         * m4/utimes.m4: s/conftestdata/conftest.data/
96471         Inspired by Pavel Roskin's change in autoconf.
96472
96473 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
96474
96475         * lib/config.charset: Update for FreeBSD 4.2.
96476
96477 2001-01-27  Jim Meyering  <meyering@lucent.com>
96478
96479         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
96480         a use of AS_IF.
96481         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96482
96483 2001-01-26  Jim Meyering  <meyering@lucent.com>
96484
96485         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
96486         quotearg.c includes it.
96487
96488 2001-01-26  Jim Meyering  <meyering@lucent.com>
96489
96490         * lib/quotearg.c: Include stddef.h.
96491         * lib/quote.c: Include stddef.h.
96492         Reported by Axel Kittenberger.
96493
96494         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
96495         line in double quotes so that it evokes a better diagnostic.
96496         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
96497         Reported by Axel Kittenberger.
96498
96499 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
96500
96501         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
96502         as if it was a `charset'.
96503
96504 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96505
96506         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
96507         has const.
96508
96509 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96510
96511         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
96512         to avoid a warning.  Add back 'const' to inptr.
96513
96514 2001-01-20  Jim Meyering  <meyering@lucent.com>
96515
96516         Be sure that headers are checked before used in code compiled
96517         for the type checks.
96518         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
96519         In place of that, invoke jm_CHECK_ALL_TYPES.
96520         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
96521         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
96522         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
96523         The check for ssize_t was mistakenly run before the test for unistd.h.
96524
96525         The configure-time check for stdbool.h was missing.
96526         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
96527         (jm_PREREQ_HASH): New function.
96528
96529 2001-01-17  Jim Meyering  <meyering@lucent.com>
96530
96531         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
96532         for autoconf-2.49c.
96533         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
96534
96535 2001-01-16  Jim Meyering  <meyering@lucent.com>
96536
96537         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
96538         From Bruno Haible.
96539
96540 2001-01-14  Jim Meyering  <meyering@lucent.com>
96541
96542         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
96543         foo and bar.  Create conftestdir/ in the script, not in the C code.
96544         Remove directories in the script, not in the C code.
96545         Remove conftestdir{,2} before trying to create the directory.
96546         Make the entire configure script fail if the mkdir fails.
96547
96548 2001-01-14  Jim Meyering  <meyering@lucent.com>
96549
96550         * lib/rename.c: New file.  From Volker Borchert.
96551         Include stdlib.h, string.h or strings.h, and xalloc.h.
96552         Use strip_trailing_slashes rather than open-coding it.
96553
96554 2001-01-03  Paul Eggert  <eggert@twinsun.com>
96555
96556         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
96557
96558 2001-01-03  Jim Meyering  <meyering@lucent.com>
96559
96560         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
96561         of local `inptr' to avoid warning with some system declarations of
96562         iconv.
96563
96564 2001-01-02  Volker Borchert  <bt@teknon.de>
96565
96566         * m4/rename.m4: New file.
96567         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
96568
96569 2001-01-01  Jim Meyering  <meyering@lucent.com>
96570
96571         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
96572         even on systems with utmpx.h.  It's necessary for the declaration of
96573         utmp's ut_user member.  Reported by Andreas Jaeger.
96574
96575         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
96576         available. They are required for the declarations of getgrgid and
96577         getpwuid resp.
96578         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
96579         Reported by Andreas Jaeger.
96580
96581 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
96582
96583         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
96584         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
96585         so `make install' also works in VPATH builds.
96586
96587 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
96588
96589         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
96590         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
96591         can be used in subdirectories.
96592
96593 2000-12-29  Paul Eggert  <eggert@twinsun.com>
96594
96595         * lib/modechange.c: Do not assume that mode_t uses the
96596         traditional octal encoding.  E.g. "chmod 1 FOO" should set
96597         the other-execute bit of FOO even if S_IXOTH != 1.
96598
96599         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
96600         WOTH, XOTH, ALLM): New macros.
96601         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
96602          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
96603         Use them.
96604         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
96605         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
96606         (mode_compile):
96607         No need to use uintmax_t; unsigned long is long enough.
96608         Don't bother to get suffix since we don't use it.
96609
96610 2000-12-26  Jim Meyering  <meyering@lucent.com>
96611
96612         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
96613         better with autoheader.
96614
96615 2000-12-24  Jim Meyering  <meyering@lucent.com>
96616
96617         * lib/hash.c (is_prime): Return explicit boolean values.
96618         (hash_get_first): Return NULL to appease Irix5.6's 89.
96619         Reported by Nelson Beebe.
96620
96621 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
96622
96623         * lib/localcharset.c (locale_charset): Add support for Win32.
96624
96625 2000-12-18  Paul Eggert  <eggert@twinsun.com>
96626
96627         * lib/physmem.h, lib/physmem.c: New files.
96628
96629         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
96630         (noinst_HEADERS): Add physmem.h.
96631
96632         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
96633         't' for compatibility with Solaris 8 sort.
96634
96635 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
96636
96637         * lib/config.charset: Add support for BeOS.
96638
96639 2000-12-17  Jim Meyering  <meyering@lucent.com>
96640
96641         * m4/dos.m4 (jm_AC_DOS): New file and macro.
96642         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
96643
96644 2000-12-16  Jim Meyering  <meyering@lucent.com>
96645
96646         This bug had a serious impact on chown: `chown N:M FILE' (for integer
96647         N and M) would have treated it like `chown N:N FILE'.
96648
96649         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
96650
96651 2000-12-16  Jim Meyering  <meyering@lucent.com>
96652
96653         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
96654         SHELLS_FILE to a file name that's useful on djgpp systems.
96655         Include stdlib.h.
96656         (ADDITIONAL_DEFAULT_SHELLS): Define.
96657         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
96658         Based mostly on a patch from Prashant TR.
96659
96660 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
96661
96662         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
96663         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
96664         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
96665
96666 2000-12-08  Andreas Schwab  <schwab@suse.de>
96667
96668         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
96669         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
96670
96671 2000-12-07  Jim Meyering  <meyering@lucent.com>
96672
96673         * lib/stripslash.c (ISSLASH): Define.
96674         (strip_trailing_slashes): Use ISSLASH rather than comparing against
96675         `/'.
96676         From Prashant TR.
96677
96678         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
96679         (dir_name_r): Declare this function as static.
96680         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
96681         manifest itself on a name containing a mix of slashes and
96682         backslashes.
96683         Make this function work with names starting with a DOS-style
96684         drive letter and colon prefix.
96685         (dir_name): Append `.' if necessary.
96686         Based mostly on patches from Prashant TR and Eli Zaretskii.
96687
96688         * lib/dirname.h (dir_name_r): Remove prototype.
96689
96690 2000-12-06  Paul Eggert  <eggert@twinsun.com>
96691
96692         * m4/off_t-format.m4: Remove this file.
96693         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
96694
96695 2000-12-06  Jim Meyering  <meyering@lucent.com>
96696
96697         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
96698         replacement strtoull, we may well need the replacement strtoul, too.
96699         Check for declarations of strtoul and strtoull.
96700         Check for strtol.  Mainly as a cue to cause automake to include
96701         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
96702         Check for limits.h -- strtol.c needs it.
96703
96704 2000-12-05  Jim Meyering  <meyering@lucent.com>
96705
96706         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
96707
96708 2000-12-04  Jim Meyering  <meyering@lucent.com>
96709
96710         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
96711         Also include memory.h, stdlib.h, unistd.h if appropriate.
96712         Reported by Andreas Jaeger (conflicting declaration of malloc).
96713
96714 2000-12-02  Jim Meyering  <meyering@lucent.com>
96715
96716         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
96717         * m4/jm-macros.m4 (jm_MACROS): require it.
96718
96719 2000-12-02  Jim Meyering  <meyering@lucent.com>
96720
96721         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
96722
96723 2000-12-01  Paul Eggert  <eggert@twinsun.com>
96724
96725         * lib/memrchr.c: Include <config.h> before any system include file.
96726
96727 2000-11-30  Jim Meyering  <meyering@lucent.com>
96728
96729         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
96730
96731 2000-11-30  Jim Meyering  <meyering@lucent.com>
96732
96733         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
96734
96735 2000-11-29  Paul Eggert  <eggert@twinsun.com>
96736
96737         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
96738
96739 2000-11-26  Jim Meyering  <meyering@lucent.com>
96740
96741         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
96742
96743 2000-11-22  Paul Eggert  <eggert@twinsun.com>
96744
96745         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
96746         size of (size_t) -1; it's not portable.
96747
96748 2000-11-17  Jim Meyering  <meyering@lucent.com>
96749
96750         * lib/strstr.c: Update from GNU libc.
96751
96752 2000-11-17  Akim Demaille  <akim@epita.fr>
96753
96754         * lib/obstack.h: Formatting changes.
96755         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
96756         prevent type checking.
96757         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
96758         cast the value to (void *): assigning a `foo *' to a `void *'
96759         variable is valid.
96760         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
96761
96762 2000-11-16  Jim Meyering  <meyering@lucent.com>
96763
96764         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
96765
96766 2000-11-11  Jim Meyering  <meyering@lucent.com>
96767
96768         * lib/error.c: Add a couple #includes, merging from GNU libc version.
96769
96770 2000-11-10  Jim Meyering  <meyering@lucent.com>
96771
96772         * lib/obstack.h: Update from GNU libc.
96773         * lib/obstack.c: Likewise.
96774
96775 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
96776
96777         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
96778
96779 2000-11-06  Paul Eggert  <eggert@twinsun.com>
96780
96781         * lib/getusershell.c (setusershell): Use rewind rather than
96782         fseek/fseeko, to avoid configuration hassles with fseeko.
96783         Don't bother opening SHELLS_FILE if shellstream is NULL;
96784         it's not necessary.
96785
96786 2000-11-05  Jim Meyering  <meyering@lucent.com>
96787
96788         * lib/makepath.h (make_dir): Declare.
96789         * lib/makepath.c (make_dir): Remove `static' attribute.
96790         Tweak a comment.
96791
96792 2000-11-04  Jim Meyering  <meyering@lucent.com>
96793
96794         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
96795
96796 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
96797
96798         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
96799         last one in a bucket, advance to the next bucket.
96800
96801 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
96802
96803         * lib/fnmatch.c: Do not comment out all the code if we are using
96804         the GNU C library, because in some cases we are replacing buggy
96805         code in the GNU C library itself.
96806
96807 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
96808
96809         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
96810         (regex_compile): Catch bogus \(\1\).
96811
96812 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96813
96814         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
96815         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
96816         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
96817
96818 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96819
96820         * lib/error.h, getline.h, modechange.h:
96821         Remove "2000" from Copyright line, as the file hasn't been
96822         changed this year other than in the copyright notice.
96823
96824         * lib/xalloc.h: Add "2000" to Copyright line, as this file
96825         was changed this year.
96826
96827 2000-10-29  Jim Meyering  <meyering@lucent.com>
96828
96829         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
96830         renaming.
96831         * m4/ls-mntd-fs.m4: Likewise
96832
96833 2000-10-29  Jim Meyering  <meyering@lucent.com>
96834
96835         * lib/xstat.in: Fix grammar in comment.
96836
96837 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
96838
96839         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
96840         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
96841         doesn't define __restrict_arr.
96842
96843 2000-10-28  Jim Meyering  <meyering@lucent.com>
96844
96845         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
96846         (jm_PREREQ_MEMCHR): New function.
96847
96848 2000-10-28  Jim Meyering  <meyering@lucent.com>
96849
96850         * lib/memchr.c: Update from libc.
96851         Adjust for portability:
96852         [HAVE_STDLIB_H]: Include stdlib.h.
96853         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
96854         Undef __memchr, too.
96855         [!weak_alias]: Define __memchr to memchr.
96856
96857         * lib/regex.c: Update from libc.
96858         * lib/regex.h: Likewise.
96859         * lib/getopt1.c: Likewise.
96860         * lib/memcmp.c: Likewise.
96861
96862         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
96863         Avoid using fseek, when possible -- it's broken by design.
96864         Patch by Ulrich Drepper.
96865
96866 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
96867
96868         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
96869         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
96870         Giving in to popular pressure to shut up the compiler with casts.
96871
96872 2000-10-26  Jim Meyering  <meyering@lucent.com>
96873
96874         * lib/strftime.c: Update from libc.
96875
96876 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
96877
96878         * regex.c: More `unsigned char' -> `re_char' changes.
96879         Also change several `int' into `re_wchar_t'.
96880         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
96881         (PUSH_FAILURE_POINTER): Don't cast any more.
96882         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
96883         We want GCC to complain, since this piece of code makes
96884         re_match non-reentrant, which *should* be fixed.
96885         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
96886         (EXTEND_BUFFER): Use RETALLOC.
96887         (SET_LIST_BIT): Don't cast.
96888         (re_wchar_t): New type.
96889         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
96890         that those two functions will always properly return.
96891         (IMMEDIATE_QUIT_CHECK): Cast to void.
96892         (analyse_first): Use recursion rather than an explicit stack.
96893         (re_compile_fastmap): Can't fail anymore.
96894         (re_search_2): Don't check re_compile_fastmap for failure.
96895         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
96896         Now also sets the new value (passed in a new argument).
96897         (re_match_2_internal): Use it.
96898         Also, use a new var `reg' of type size_t when looping through regs
96899         rather than reuse the inappropriate `mcnt'.
96900
96901 2000-10-25  Jim Meyering  <meyering@lucent.com>
96902
96903         * lib/obstack.c: Update from libc.
96904
96905 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
96906
96907         * regex.c (regex_compile): Change the way of handling a range from
96908         a char less than 256 to a char not less than 256.
96909
96910 2000-10-24  Andrew Innes  <andrewi@gnu.org>
96911
96912         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
96913         NT-Emacs only.
96914         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
96915         so that re_search functions only quit when callers expect them to.
96916
96917 2000-10-23  Jim Meyering  <meyering@lucent.com>
96918
96919         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
96920         wrong.  That set_locale call must not have any side effects.
96921         From Paul Eggert.
96922
96923 2000-10-22  Jim Meyering  <meyering@lucent.com>
96924
96925         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
96926         [CYCLIC]: Remove now-unused definition.
96927
96928         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
96929         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
96930         Suggestion from Ulrich Drepper.
96931
96932 2000-10-21  Jim Meyering  <meyering@lucent.com>
96933
96934         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
96935         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
96936         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
96937
96938 2000-10-21  Jim Meyering  <meyering@lucent.com>
96939
96940         * lib/dirname.c (memrchr): Declare if necessary.
96941         (dir_name): Remove the restriction that there be no
96942         trailing slashes.  Now, this code skips past them, effectively
96943         ignoring them.
96944         [TEST_DIRNAME] (main): New unit tests.
96945
96946         * lib/memrchr.c: New file from GNU libc.
96947         Undef __memrchr, too.
96948         [!weak_alias]: Define __memrchr to memrchr.
96949         Guard weak_alias use with `#ifdef weak_alias'.
96950
96951 2000-10-21  Jim Meyering  <meyering@lucent.com>
96952
96953         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
96954         (dir_name): Use dir_name_r.
96955         * lib/dirname.h (dir_name_r): Declare it.
96956
96957 2000-10-17  Jim Meyering  <meyering@lucent.com>
96958
96959         * lib/quote.h (PARAMS): Define and use.
96960         Reported by Akim Demaille.
96961
96962         * lib/getopt.c: Update from libc.
96963
96964 2000-10-16  Jim Meyering  <meyering@lucent.com>
96965
96966         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
96967         setlocale.
96968         From Jan Fedak.
96969
96970 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
96971
96972         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
96973
96974 2000-09-25  Jim Meyering  <meyering@lucent.com>
96975
96976         * lib/md5.h (rol): Define (from GnuPG).
96977
96978         * lib/sha.c: Give credit (GnuPG) where due.
96979         (M): Use rol rather than open-coding it.
96980         Add a FIXME comment.
96981
96982 2000-09-21  Jim Meyering  <meyering@lucent.com>
96983
96984         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
96985         Reported by Michael Stone.
96986
96987 2000-09-20  Jim Meyering  <meyering@lucent.com>
96988
96989         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
96990         (noinst_HEADERS): Add sha.h.
96991         Based on code from Scott G. Miller and from GnuPG.
96992
96993 2000-09-18  Jim Meyering  <meyering@lucent.com>
96994
96995         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
96996         LIBS. Otherwise, everyone ends up linking with -lelf for some
96997         configurations.
96998         Reported by Mike Stone.
96999
97000 2000-09-15  Jim Meyering  <meyering@lucent.com>
97001
97002         * lib/regex.c: Update from libc.
97003
97004 2000-09-10  Jim Meyering  <meyering@lucent.com>
97005
97006         * lib/getopt.c (_getopt_internal): Update from glibc.
97007
97008 2000-09-09  Jim Meyering  <meyering@lucent.com>
97009
97010         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
97011         think it should be used as a general replacement for isascii.
97012         * lib/fnmatch.c: Likewise.
97013         * lib/mbswidth.c: Likewise
97014         * lib/regex.c: Likewise.
97015
97016         Don't use atoi.
97017         * lib/userspec.c: Include sys/param.h and limits.h.
97018         Include xstrtol.h.
97019         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
97020         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
97021         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
97022         UID, GID.  Check range.
97023
97024 2000-09-06  Jim Meyering  <meyering@lucent.com>
97025
97026         * lib/getopt.c (_getopt_internal): Update from glibc.
97027
97028 2000-08-30  Jim Meyering  <meyering@lucent.com>
97029
97030         * lib/strftime.c: Merge in changes from GNU libc.
97031
97032 2000-08-26  Jim Meyering  <meyering@lucent.com>
97033
97034         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
97035         * m4/fpending.m4: New file.
97036
97037 2000-08-26  Jim Meyering  <meyering@lucent.com>
97038
97039         * lib/closeout.c: Include "__fpending.h".
97040         (close_stdout_status): Return right away if there's nothing to flush.
97041
97042         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
97043         * lib/__fpending.c: New file.
97044         * lib/__fpending.h: New file.
97045
97046 2000-08-20  Jim Meyering  <meyering@lucent.com>
97047
97048         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
97049         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
97050         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
97051
97052 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
97053
97054         Improve fileutils installation on systems where running
97055         programs (like install) can't be unlinked.
97056         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
97057         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
97058
97059 2000-08-07  Paul Eggert  <eggert@twinsun.com>
97060
97061         Standardize on "memory exhausted" instead of "Memory exhausted"
97062         or "virtual memory exhausted".
97063         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
97064         "virtual memory exhausted".
97065         * lib/same.c (same_name): Invoke xalloc_die instead of printing
97066         our own message.
97067         * lib/userspec.c (parse_user_spec): Likewise.
97068         * lib/bumpalloc.h: comment fix
97069         * lib/same.c, userspec.c: Include xalloc.h.
97070
97071         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
97072         not char *const and pointing to a constant array.
97073         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
97074         (xrealloc): Comment fix.
97075
97076         * lib/userspec.c (parse_user_spec):
97077         Don't translate a message until just before returning,
97078         to avoid unnecessary translation.
97079
97080 2000-08-07  Jim Meyering  <meyering@lucent.com>
97081
97082         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
97083         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
97084         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
97085         getgroups.c, gethostname.c, getopt.h, group-member.c,
97086         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
97087         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
97088         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
97089         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
97090         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
97091         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
97092         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
97093         yesno.c: Back out Copyright date changes for each file with no change
97094         this year.  This eases coordination with other programs using the same
97095         source code modules.  From Paul Eggert.
97096
97097 2000-08-06  Paul Eggert  <eggert@twinsun.com>
97098
97099         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
97100         not char, for compatibility with glibc 2.1.3 strftime.c.
97101
97102 2000-08-03  Greg McGary  <greg@mcgary.org>
97103
97104         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
97105         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
97106         (EXTEND_BUFFER): Use them.
97107
97108 2000-08-01  Jim Meyering  <meyering@lucent.com>
97109
97110         * lib/dirname.c (ISSLASH): Define.
97111         (BACKSLASH_IS_PATH_SEPARATOR): Define.
97112         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
97113         both `\' and `/' may be use as path separators.
97114         Based on a patch from Prashant TR.
97115
97116 2000-07-31  Paul Eggert  <eggert@twinsun.com>
97117
97118         * lib/quotearg.c (quotearg_n_options): Don't make the initial
97119         slot vector a constant, since it might get modified.
97120
97121 2000-07-31  Jim Meyering  <meyering@lucent.com>
97122
97123         * lib/xmalloc.c: Use `virtual memory exhausted', not
97124         `Memory exhausted'.
97125         * lib/obstack.c (print_and_abort): Likewise.
97126
97127 2000-07-30  Paul Eggert  <eggert@twinsun.com>
97128
97129         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
97130         buffer, so that the caller can always quote one small
97131         component of a "memory exhausted" message in slot 0.
97132         From a suggestion by Jim Meyering.
97133
97134 2000-07-30  Jim Meyering  <meyering@lucent.com>
97135
97136         * lib/makepath.c (make_path): Quote the other instance, too.
97137
97138         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
97139         (STATIC_BUF_SIZE): Define.
97140         (quotearg_n_options): Use only statically allocated storage when
97141         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
97142         than STATIC_BUF_SIZE.
97143
97144 2000-07-29  Jim Meyering  <meyering@lucent.com>
97145
97146         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
97147         * lib/dirname.c (dir_name): Likewise.
97148
97149         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
97150         `/'.
97151
97152         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
97153         (dir_name): Assert that there are no trailing slashes.
97154
97155 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
97156
97157         * lib/mbswidth.h (mbswidth): Add a flags argument.
97158         (mbswidth): New declaration.
97159         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
97160         * lib/mbswidth.c (mbswidth): Add a flags argument.
97161         (mbsnwidth): New function.
97162
97163 2000-07-24  Jim Meyering  <meyering@lucent.com>
97164
97165         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
97166
97167 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97168
97169         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
97170
97171 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97172
97173         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
97174         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
97175         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
97176         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
97177         invoke multibyte primitives.
97178
97179 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97180
97181         * lib/quotearg.c:
97182         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
97183         so that mbstate_t is always defined.
97184
97185         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
97186         be 1 in at least one GCC installation, and this configuration
97187         error is likely to be common.  Ignoring MB_LEN_MAX hurts
97188         performance on hosts that have mbrtowc but have only unibyte
97189         locales, but I assume these hosts are rare.
97190
97191 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97192
97193         * lib/mbswidth.c (_XOPEN_SOURCE):
97194         Don't define; this causes problems on Solaris 7.
97195         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
97196
97197 2000-07-23  Jim Meyering  <meyering@lucent.com>
97198
97199         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
97200         too: getgrgid, getpwuid, getuid.
97201
97202 2000-07-23  Jim Meyering  <meyering@lucent.com>
97203
97204         * lib/basename.c (base_name): Add an assertion.
97205
97206 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
97207
97208         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
97209         shadow its mbsinit function.
97210
97211 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97212
97213         * lib/mbswidth.h: New file.
97214         * lib/mbswidth.c: New file.
97215         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
97216         (noinst_HEADERS): Add mbswidth.h.
97217
97218 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97219
97220         * lib/config.charset: Add support for FreeBSD. Improve support for
97221         HP-UX and IRIX 6.
97222
97223 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
97224
97225         * m4/mbswidth.m4: New file.
97226         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
97227
97228 2000-07-15  Jim Meyering  <meyering@lucent.com>
97229
97230         * lib/makepath.c: Include quote.h.
97231         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
97232         corresponding argument in a `quote (...)' call.
97233         Give better diagnostics.
97234
97235         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
97236         (noinst_HEADERS): Add quote.h.
97237
97238         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
97239         from tar's src/misc.c.
97240         * lib/quote.h: New file.  Prototypes for same.
97241
97242 2000-07-14  Paul Eggert  <eggert@twinsun.com>
97243
97244         From a suggestion by Bruno Haible.
97245         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
97246         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
97247         to decide whether to define the BeOS workaround macro;
97248         this adjusts to the change to AC_MBSTATE_T.
97249
97250 2000-07-14  Jim Meyering  <meyering@lucent.com>
97251
97252         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
97253         jm_AC_TYPE_UINTMAX_T.
97254
97255 2000-07-13  Paul Eggert  <eggert@twinsun.com>
97256
97257         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
97258
97259         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
97260         quotearg_buffer_restyled): Add support for
97261         clocale_quoting_style.  Undo previous change to
97262         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
97263         and "{RIGHT QUOTATION MARK}" msgids.
97264
97265 2000-07-10  Paul Eggert  <eggert@twinsun.com>
97266
97267         From a suggestion by Bruno Haible.
97268         * m4/mbstate_t.m4 (AC_MBSTATE_T):
97269         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
97270         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
97271         and mbstate_t, to a single-part test that simply defines mbstate_t.
97272         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
97273         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
97274
97275 2000-07-10  Jim Meyering  <meyering@lucent.com>
97276
97277         * m4/strerror_r.m4: Mirror the correction made in autoconf.
97278
97279         * m4/gnu-source.m4: Output to confdefs.h directly.
97280         Suggestion from Akim Demaille.
97281
97282 2000-07-09  Paul Eggert  <eggert@twinsun.com>
97283
97284         The old behavior of quoting `like this' doesn't look good with
97285         newer, ISO-style fonts.  See:
97286         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
97287
97288         Instead, quote "like this" by default.  Let the translator
97289         tailor the locale-specific quoting behavior by providing
97290         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
97291
97292         * lib/quotearg.c (N_): New macro.
97293         (gettext_default): New function.
97294         (quotearg_buffer_restyled): Use
97295         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
97296         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
97297
97298 2000-07-09  Jim Meyering  <meyering@lucent.com>
97299
97300         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
97301         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
97302
97303         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
97304         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
97305
97306 2000-07-09  Jim Meyering  <meyering@lucent.com>
97307
97308         * lib/Most files: Update copyright dates to include 2000.
97309
97310 2000-07-08  Jim Meyering  <meyering@lucent.com>
97311
97312         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
97313         if not defined.
97314         (xgethostname): Remove now-unnecessary #ifdef.
97315         Move declaration of `err' into loop where it's used.
97316
97317 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97318         and Bruno Haible  <haible@clisp.cons.org>
97319
97320         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
97321         only if the test for an object-type mbstate_t fails.  This
97322         prevents us from mistakenly reporting that mbstate_t is a
97323         system object type after we "#define mbstate_t int" to work
97324         around its lack.
97325
97326 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97327         and Bruno Haible  <haible@clisp.cons.org>
97328
97329         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
97330
97331 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97332
97333         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
97334         to strerror_r.
97335         Include <ctype.h> for use of isalpha.
97336
97337 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97338
97339         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
97340         by allocating a larger buffer. Test the gethostname return value for
97341         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
97342         returns an error and ENAMETOOLONG isn't defined.
97343
97344 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97345
97346         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
97347         dimension.
97348
97349 2000-07-04  Jim Meyering  <meyering@lucent.com>
97350
97351         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
97352         of the deprecated AC_CHECKING.
97353
97354 2000-07-04  Jim Meyering  <meyering@lucent.com>
97355
97356         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
97357         Reported by Bruno Haible.
97358
97359 2000-07-04  Jim Meyering  <meyering@lucent.com>
97360
97361         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
97362         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
97363         lacks mbrtowc.
97364
97365 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97366
97367         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
97368         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
97369
97370 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97371         and Bruno Haible  <haible@clisp.cons.org>
97372
97373         * lib/quotearg.c (mbrtowc):
97374         Assign to *pwc, and return 1 only if result is nonzero.
97375         (iswprint): Use ISPRINT when substituting our own mbrtowc.
97376
97377 2000-07-03  Jim Meyering  <meyering@lucent.com>
97378
97379         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
97380
97381 2000-07-03  Jim Meyering  <meyering@lucent.com>
97382
97383         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
97384         This is necessary to get a definition of e.g., UTMP_FILE on
97385         HP-UX 10.20.
97386         From Bob Proulx.
97387
97388 2000-07-02  Jim Meyering  <meyering@lucent.com>
97389
97390         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
97391
97392         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
97393         AC_LIBOBJ(function_name).
97394         * m4/chown.m4: Likewise.
97395         * m4/fnmatch.m4: Likewise.
97396         * m4/ftruncate.m4: Likewise.
97397         * m4/getgroups.m4: Likewise.
97398         * m4/getline.m4: Likewise.
97399         * m4/group-member.m4: Likewise.
97400         * m4/jm-macros.m4: Likewise.
97401         * m4/lstat.m4: Likewise.
97402         * m4/malloc.m4: Likewise.
97403         * m4/memcmp.m4: Likewise.
97404         * m4/nanosleep.m4: Likewise.
97405         * m4/putenv.m4: Likewise.
97406         * m4/realloc.m4: Likewise.
97407         * m4/regex.m4: Likewise.
97408         * m4/stat.m4: Likewise.
97409         * m4/strftime.m4: Likewise.
97410
97411 2000-07-02  Jim Meyering  <meyering@lucent.com>
97412
97413         * lib/quotearg.c (mbstate_t): Don't define here.
97414
97415 2000-07-02  Jim Meyering  <meyering@lucent.com>
97416
97417         * lib/nanosleep.c (SIGCONT): Define if not already defined.
97418
97419 2000-07-01  Jim Meyering  <meyering@lucent.com>
97420
97421         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
97422
97423 2000-07-01  Jim Meyering  <meyering@lucent.com>
97424
97425         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
97426         problem.
97427
97428 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97429
97430         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
97431         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
97432
97433 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97434
97435         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
97436         per change in ../m4/ls-mntd-fs.m4.
97437         (read_filesystem_list): Ignore symbolic links.
97438
97439 2000-06-29  Jim Meyering  <meyering@lucent.com>
97440
97441         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
97442         for declaration of strcmp.
97443
97444         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
97445
97446         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
97447         Avoid warning by casting result to `char *' to remove `const'.
97448
97449 2000-06-28  Jim Meyering  <meyering@lucent.com>
97450
97451         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
97452         included by quotearg.c, for which we perform this test.  From
97453         Bruno Haible.
97454
97455 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97456
97457         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
97458         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
97459         <utmpx.h> exists, put readutmp.o into LIBOBJS.
97460
97461 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97462
97463         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
97464
97465 2000-06-26  Paul Eggert  <eggert@twinsun.com>
97466
97467         savedir now sets errno on failure and invokes xmalloc to get memory.
97468         Fix a couple of other minor bugs while we're at it.
97469
97470         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
97471         (NAMLEN): Remove macro.
97472         (malloc, realloc): Remove decls.
97473         (stpcpy): Likewise.
97474         ("xalloc.h"): Include.
97475         (NAME_SIZE_DEFAULT): New macro.
97476         (savedir): Use xmalloc / xrealloc to allocate memory.
97477         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
97478         Skip "" directory entries.
97479         Use strlen to calculate directory entry length, since the old method
97480         is rarely used these days and isn't worth supporting.
97481         Don't use a pointer after freeing it.
97482         Check for integer overflow when calculating allocation size.
97483         Use memcpy to copy entries, instead of stpcpy.
97484         Set errno properly when returning NULL.
97485         Check for readdir error.
97486
97487 2000-06-26  Jim Meyering  <meyering@lucent.com>
97488
97489         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
97490
97491 2000-06-25  Jim Meyering  <meyering@lucent.com>
97492
97493         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
97494         Linux header bug when _XOPEN_SOURCE is defined to 500.
97495
97496 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97497
97498         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
97499         deficiency.
97500
97501 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97502
97503         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
97504         Include xalloc.h.
97505         Don't include <stdlib.h>.  Don't declare malloc, realloc.
97506
97507 2000-06-24  Jim Meyering  <meyering@lucent.com>
97508
97509         * m4/strerror_r.m4: Revive this file -- to try out an experimental
97510         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
97511         for which strerror does return char*, but which lacks a conveniently
97512         accessible declaration of the function.  If the compile-test says
97513         strerror_r doesn't work, then resort to a `run'-test that works on
97514         BeOS and segfaults on DEC Unix.
97515
97516 2000-06-24  Jim Meyering  <meyering@lucent.com>
97517
97518         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
97519
97520 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97521
97522         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
97523         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
97524
97525 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97526
97527         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
97528         (mbrtowc, mbstate_t): Define substitutes if
97529         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
97530         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
97531         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
97532
97533 2000-06-23  Jim Meyering  <meyering@lucent.com>
97534
97535         * m4/afs.m4: Add missing AC_MSG_RESULT.
97536         Reported by Bruno Haible.
97537
97538         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
97539         Suggestion from Bruno Haible.
97540
97541 2000-06-23  Jim Meyering  <meyering@lucent.com>
97542
97543         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
97544
97545 2000-06-21  Jim Meyering  <meyering@lucent.com>
97546
97547         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
97548
97549 2000-06-21  Jim Meyering  <meyering@lucent.com>
97550
97551         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
97552         (noinst_HEADERS): Add getstr.h.
97553
97554         * lib/getline.c (getstr): Move into a separate file.
97555         * lib/getstr.c (getstr): New file, extracted from getline.c, with
97556         the following changes: new parameter, delim2; both delim[12]
97557         parameters have type `int', not `char'.  The latter would lose
97558         with 8-bit delimiters.
97559         * lib/getstr.h: New file.
97560
97561 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97562
97563         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
97564         than 1024, return a memory chunk of least possible size, instead
97565         of size PATH_MAX + 2. In the loop, increment the size proportionally.
97566         Use free/xmalloc instead of xrealloc to avoid copying for very long
97567         paths.
97568
97569 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97570
97571         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
97572         the empty string.
97573
97574 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97575
97576         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
97577         address, not strdup.  Include <stdlib.h> and don't declare free().
97578
97579 2000-06-19  Jim Meyering  <meyering@lucent.com>
97580
97581         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
97582
97583 2000-06-18  Jim Meyering  <meyering@lucent.com>
97584
97585         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
97586
97587         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
97588         `checking whether...' message to be consistent with that of the
97589         lstat test.
97590
97591 2000-06-18  Jim Meyering  <meyering@lucent.com>
97592
97593         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
97594         Besides, these days every porting target provides a mkdir function.
97595
97596         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
97597         needed. (this snippet comes from src/system.h).
97598
97599 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
97600
97601         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
97602
97603 2000-06-15  Paul Eggert  <eggert@twinsun.com>
97604
97605         * lib/human.c (adjust_value): New function.
97606         (human_readable_inexact): Apply rounding style even when
97607         printing approximate values.
97608
97609 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97610
97611         * lib/human.c (human_readable_inexact): Allow an input block
97612         size that is not a multiple of the output block size, and vice versa.
97613         Reported by Piergiorgio Sartor.
97614
97615 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97616
97617         * lib/getdate.y (get_date): Apply relative times after time
97618         zone indicator, not before.  Reported by Todd A. Jacobs.
97619
97620 2000-06-13  Jim Meyering  <meyering@lucent.com>
97621
97622         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
97623
97624         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
97625
97626 2000-06-12  Paul Eggert  <eggert@twinsun.com>
97627
97628         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
97629
97630 2000-06-12  Jim Meyering  <meyering@lucent.com>
97631
97632         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
97633         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
97634         optional argument.
97635         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
97636         the optional argument, `lib'.
97637
97638 2000-06-08  Jim Meyering  <meyering@lucent.com>
97639
97640         * m4/largefile.m4: Remove file (now that it's part of autoconf).
97641
97642 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97643
97644         Rewrite largefile configuration so that we don't need to run
97645         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
97646         AC_CANONICAL_HOST in configure.in -- jmm]
97647
97648         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
97649         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
97650         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
97651         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
97652         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
97653         All uses changed.
97654         Instead of inspecting the output of getconf, try to compile the
97655         test program without and with the macro definition.
97656         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
97657         for getconf.  Instead, check for the needed flags by compiling
97658         test programs.
97659
97660 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97661
97662         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
97663
97664 2000-06-04  Jim Meyering  <meyering@lucent.com>
97665
97666         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
97667         SunOS 4.1.4 for which gid_t is an unsigned type.
97668
97669 2000-06-03  Jim Meyering  <meyering@lucent.com>
97670
97671         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
97672         now that autoconf requires that.
97673
97674         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
97675         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
97676         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
97677
97678 2000-06-03  Jim Meyering  <meyering@lucent.com>
97679
97680         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
97681
97682 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97683
97684         * m4/glibc21.m4: New file.
97685         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
97686
97687 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97688
97689         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
97690         newer, don't install charset.alias.
97691         * lib/config.charset: Change the Linux/glibc rules so they become empty
97692         on glibc-2.1 or newer.
97693
97694 2000-06-02  Jim Meyering  <meyering@lucent.com>
97695
97696         * lib/mountlist.c: Back out last change.  Instead, do this...
97697         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
97698         me_dummy member using the same `ignore'-testing code.
97699         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
97700         fs_type strings.
97701         From Mark D. Roth.
97702
97703 2000-05-29  Jim Meyering  <meyering@lucent.com>
97704
97705         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
97706         mounts with the `ignore' attribute.  Based on a patch from
97707         Mark D. Roth.
97708
97709 2000-05-28  Jim Meyering  <meyering@lucent.com>
97710
97711         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
97712         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97713         * m4/stat.m4: Likewise.
97714         * m4/lstat.m4: Likewise.
97715         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
97716
97717         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
97718         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
97719
97720 2000-05-26  Jim Meyering  <meyering@lucent.com>
97721
97722         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
97723
97724 2000-05-24  Jim Meyering  <meyering@lucent.com>
97725
97726         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
97727         autoconf requires that.
97728         * m4/lib-check.m4: Likewise.
97729         * m4/jm-macros.m4: Likewise.
97730         * m4/strftime.m4: Likewise.
97731
97732         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
97733         AC_CHECK_DECLS, now that autoconf requires that.
97734
97735 2000-05-22  Jim Meyering  <meyering@lucent.com>
97736
97737         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97738         * m4/lstat.m4: Likewise.
97739
97740 2000-05-22  Jim Meyering  <meyering@lucent.com>
97741
97742         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
97743
97744 2000-05-20  Jim Meyering  <meyering@lucent.com>
97745
97746         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
97747         (jm_PREREQ): Use it.
97748
97749 2000-05-18  Jim Meyering  <meyering@lucent.com>
97750
97751         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
97752         back, too, since it may have been modified by allocate_entry.
97753         (hash_delete): Rewrite to use neither the assignment operator
97754         nor the comma operator in an if-expression.
97755
97756 2000-05-15  Paul Eggert  <eggert@twinsun.com>
97757
97758         * lib/closeout.c:
97759         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
97760         Remove; no longer needed.
97761         "quotearg.h": Add include.
97762         (file_name): Do not bother to explicitly initialize to NULL; it's less
97763         efficient on some hosts.
97764         (close_stdout_status): Remove test as to whether stdout was already
97765         closed; it breaks for the case "echo x | sort >&-".
97766         Quote file name colons.
97767         Do not assume that _("write error") lacks format strings.
97768
97769 2000-05-15  Jim Meyering  <meyering@lucent.com>
97770
97771         * lib/version-etc.c (version_etc_copyright): Update the copyright
97772         string used in all --version output.
97773
97774 2000-05-14  Jim Meyering  <meyering@lucent.com>
97775
97776         * lib/closeout.c (close_stdout_set_file_name): New function.
97777         (close_stdout_status): Use new file-scoped global.
97778         Return right away if fstat says the stdout file descriptor is invalid.
97779         * lib/closeout.h (close_stdout_set_file_name): Declare.
97780
97781 2000-05-10  Jim Meyering  <meyering@lucent.com>
97782
97783         * lib/closeout.c [default_exit_status]: New file-scoped variable.
97784         (close_stdout_set_status): New function.
97785         * lib/closeout.h (close_stdout_set_status): Declare.
97786
97787 2000-05-09  Jim Meyering  <meyering@lucent.com>
97788
97789         * m4/gettext.m4: Rename this...
97790         * m4/libintl.m4: ...to this.
97791
97792 2000-05-08  Jim Meyering  <meyering@lucent.com>
97793
97794         * lib/long-options.c: Don't include closeout.h.
97795         (parse_long_options): Don't call close_stdout for --version.
97796
97797 2000-05-06  Paul Eggert  <eggert@twinsun.com>
97798
97799         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
97800         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
97801         2.1.3 bug.  This avoids a clash when files like regex.c define
97802         _GNU_SOURCE.
97803
97804 2000-05-06  Jim Meyering  <meyering@lucent.com>
97805
97806         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
97807         (AC_REPLACE_FUNCS): Add strnlen.
97808
97809         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
97810         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
97811
97812         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
97813         AC_SEARCH_LIBS call for nanosleep.
97814         (LIB_NANOSLEEP): Set and AC_SUBST.
97815
97816 2000-05-06  Jim Meyering  <meyering@lucent.com>
97817
97818         * lib/strnlen.c: Undefine __strnlen and strnlen.
97819         [!weak_alias]: Define __strnlen to strnlen.
97820
97821         * lib/atexit.c: New file, from libiberty.
97822
97823 2000-05-06  Jim Meyering  <meyering@lucent.com>
97824
97825         * lib/closeout.c (close_stdout_status): Also check for errors on the
97826         stderr stream.
97827
97828 2000-05-05  Jim Meyering  <meyering@lucent.com>
97829
97830         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
97831         AC_SEARCH_LIBS call for clock_gettime.
97832         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
97833
97834         * m4/search-libs.m4: Update from autoconf.
97835
97836         su doesn't work on Solaris 2.6.
97837         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
97838         <shadow.h>.  Reported by Dragos Harabor.
97839
97840 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
97841
97842         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
97843         memcpy instead of xmalloc, xrealloc, path_concat.
97844         (locale_charset): Treat empty environment variables as absent.
97845         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
97846
97847 2000-05-04  Jim Meyering  <meyering@lucent.com>
97848
97849         * lib/getopt.c: Update from glibc.
97850         * lib/obstack.c: Likewise.
97851         * lib/obstack.h: Likewise.
97852         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
97853         file
97854
97855         * lib/regex.h: Likewise.
97856         * lib/strndup.c: Likewise.
97857         * lib/strnlen.c: New file, from glibc.
97858
97859 2000-05-03  Jim Meyering  <meyering@lucent.com>
97860
97861         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
97862
97863 2000-05-02  Paul Eggert  <eggert@twinsun.com>
97864
97865         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
97866         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
97867         compile-time test, rather than inspecting host and OS, to
97868         decide whether to define _LARGEFILE_SOURCE.
97869
97870 2000-05-01  Jim Meyering  <meyering@lucent.com>
97871
97872         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
97873
97874         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
97875         Based on a patch from Bruno Haible.
97876
97877 2000-05-01  Jim Meyering  <meyering@lucent.com>
97878
97879         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
97880
97881 2000-04-29  Jim Meyering  <meyering@lucent.com>
97882
97883         * lib/path-concat.c: Declare strdup only if it's not defined.
97884         * lib/canon-host.c: Likewise.
97885
97886 2000-04-28  Jim Meyering  <meyering@lucent.com>
97887
97888         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
97889         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
97890         is included first, then limits.h is included by locale.h by libintl.h.
97891         From John David Anglin.
97892
97893 2000-04-25  Jim Meyering  <meyering@lucent.com>
97894
97895         * lib/makepath.c (S_IRWXUGO): Define.
97896         (make_path): Always perform explicit chmod if MODE specifies any
97897         of the `special' permission bits.  Prompted by a bug report against
97898         install from Mate Wierdl and Joost van Baal.
97899
97900 2000-04-18  Jim Meyering  <meyering@lucent.com>
97901
97902         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
97903         (jm_PREREQ): Use it.
97904
97905 2000-04-18  Jim Meyering  <meyering@lucent.com>
97906
97907         * lib/README: New file.
97908
97909         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
97910         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
97911
97912 2000-04-17  Jim Meyering  <meyering@lucent.com>
97913
97914         Get it right :-)
97915         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
97916         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
97917         Suggestion from Akim Demaille.
97918
97919 2000-04-17  Jim Meyering  <meyering@lucent.com>
97920
97921         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
97922         the definition of it to rpl_strftime also defined-away the system's
97923         declaration.
97924
97925 2000-04-15  Jim Meyering  <meyering@lucent.com>
97926
97927         Use `C' to denote so-called `contiguous' files, the same way
97928         that tar does.
97929         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
97930         (ftypelet): Use S_ISCTG.
97931         From Michael Deutschmann.
97932
97933 2000-04-14  Jim Meyering  <meyering@lucent.com>
97934
97935         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
97936         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
97937         clobbered.
97938
97939 2000-04-14  Jim Meyering  <meyering@lucent.com>
97940
97941         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
97942
97943 2000-04-13  Jim Meyering  <meyering@lucent.com>
97944
97945         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
97946         AH_VERBATIM to insert required #ifndef into config.h.in.
97947         Suggestion from Akim Demaille.
97948
97949 2000-04-12  Jim Meyering  <meyering@lucent.com>
97950
97951         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
97952         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
97953         Christian Krackowizer.
97954
97955         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
97956         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
97957         (AC_SYS_LARGEFILE): Require.
97958         (AM_C_PROTOTYPES): Require.
97959
97960 2000-04-08  Jim Meyering  <meyering@lucent.com>
97961
97962         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
97963         names don't conflict.  Reported by Eli Zaretskii.
97964
97965 2000-04-07  Jim Meyering  <meyering@lucent.com>
97966
97967         * lib/putenv.c: Move inclusion of errno.h so it follows that of
97968         sys/types.h, to work around system header problems on AIX 3.2.5.
97969         From Bruno Haible.
97970
97971 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
97972
97973         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
97974         bug.  Deal with the different error behavior of Irix iconv.
97975
97976 2000-04-05  Paul Eggert  <eggert@twinsun.com>
97977
97978         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
97979         IRIX if the installer said otherwise.
97980
97981 2000-04-05  Jim Meyering  <meyering@lucent.com>
97982
97983         Portability tweaks required for ultrix4.3.
97984         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
97985         (jm_CHECK_DECLS): Add getutent to the list of functions.
97986         (_jm_DECL_HEADERS): Add utmpx.h.
97987         From John David Anglin.
97988
97989         * m4/strftime.m4: Back out the 2000-04-02 change.
97990         Instead of that change, simply undefine putenv in the test program.
97991
97992 2000-04-05  Jim Meyering  <meyering@lucent.com>
97993
97994         Portability tweaks required for ultrix4.3.
97995         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
97996         getutent.
97997         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
97998         * lib/canon-host.c: Declare strdup.
97999         * lib/path-concat.c: Likewise.
98000         From John David Anglin.
98001
98002 2000-04-04  Jim Meyering  <meyering@lucent.com>
98003
98004         Be more DOS 8.3-friendly.
98005         * lib/ref-add.sin: Renamed from ref-add.sed.in.
98006         * lib/ref-del.sin: Renamed from ref-del.sed.in.
98007         * lib/Makefile.am: Reflect renaming.
98008         Reported by Eli Zaretskii.
98009
98010         Use a temporary file name that won't clash with `charset.alias'
98011         in the DOS 8.3 name space.
98012         * lib/Makefile.am (charset_tmp): Define.
98013         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
98014         (uninstall-local): Likewise.
98015         Reported by Eli Zaretskii.
98016
98017 2000-04-03  Jim Meyering  <meyering@lucent.com>
98018
98019         * m4/gettext.m4: Fix typo in comment.
98020
98021         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
98022         textutils/configure.in).  Suggestion from Paul Eggert.
98023         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
98024
98025 2000-04-02  Paul Eggert  <eggert@twinsun.com>
98026
98027         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
98028         variable in the shell rather than using putenv, which isn't
98029         portable.  This avoids the configure-time inter-test dependency
98030         on the potentially-renamed putenv function.
98031
98032 2000-03-30  Paul Eggert  <eggert@twinsun.com>
98033
98034         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
98035         before checking struct stat.st_blksize, so that
98036         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
98037
98038 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98039
98040         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
98041         since strftime.c uses HAVE_STRFTIME to decide whether to use
98042         the underlying strftime.
98043
98044 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98045
98046         * lib/time/strftime.c (my_strftime): Make sure we call the system
98047         strftime, not ourselves, when invoking the underlying strftime.
98048
98049 2000-03-24  Jim Meyering  <meyering@lucent.com>
98050
98051         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
98052         (charset_alias): Define.
98053         (install-exec-local): Factor out common code.
98054         (uninstall-local): Split lines longer than 80.
98055         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
98056         (SUFFIXES): Define.
98057         (.sed.in.sed): New rule.  Don't redirect directly to $@.
98058         (CLEANFILES): Add ref-add.sed and ref-del.sed.
98059
98060 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
98061
98062         * lib/config.charset: Output a line containing "Packages using this
98063         file".
98064         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
98065         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
98066         ref-del.sed): New rules.
98067
98068 2000-03-17  Jim Meyering  <meyering@lucent.com>
98069
98070         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
98071         Otherwise, include <strings.h>
98072
98073 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
98074
98075         * lib/unicodeio.c (utf8_wctomb): New function.
98076         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
98077         format instead of in UCS-4 with platform dependent endianness.
98078
98079 2000-03-10  Jim Meyering  <meyering@lucent.com>
98080
98081         * m4/lib-check.m4: Look for getspnam in -lgen, too.
98082         From Marco Franzen.
98083
98084 2000-03-07  Paul Eggert  <eggert@twinsun.com>
98085
98086         * lib/savedir.c (savedir): Work even if directory size is
98087         negative; this can happen with some screwy NFS configurations.
98088
98089 2000-03-06  Jim Meyering  <meyering@lucent.com>
98090
98091         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
98092         if it's NULL (because we ran out of memory).  From Bruno Haible.
98093
98094 2000-03-05  Jim Meyering  <meyering@lucent.com>
98095
98096         * lib/localcharset.c ("path-concat.h"): Include.
98097         (get_charset_aliases): Use path_concat instead of ANSI string
98098         concatenation.
98099
98100         * lib/unicodeio.h (PARAMS): Define.
98101         Use it to guard prototype.
98102
98103 2000-03-04  Jim Meyering  <meyering@lucent.com>
98104
98105         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
98106         for lib/localcharset.c.
98107
98108 2000-03-04  Jim Meyering  <meyering@lucent.com>
98109
98110         * lib/Makefile.am (install-exec-local): Create $(libdir) before
98111         installing into it.
98112         (uninstall-local): Uncomment this rule so `make distcheck' works
98113         once again.
98114
98115         * lib/unicodeio.c (<errno.h>): Include it.
98116         (errno): Declare if not defined.
98117
98118         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
98119
98120         * lib/config.charset: New version, incorporating remarks from a linux
98121         i18n mailing list.  From Bruno Haible.
98122
98123 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
98124
98125         * m4/codeset.m4: New file.
98126         * m4/iconv.m4: New file.
98127         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
98128
98129 2000-03-03  Jim Meyering  <meyering@lucent.com>
98130
98131         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
98132
98133 2000-03-02  Jim Meyering  <meyering@lucent.com>
98134
98135         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
98136         the messages come out on separate lines.
98137
98138         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
98139         rather than jm_CHECK_DECLARATIONS.
98140         * m4/decl.m4: Remove now-unused file.
98141
98142         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
98143         geteuid.
98144
98145 2000-03-02  Jim Meyering  <meyering@lucent.com>
98146
98147         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
98148
98149 2000-03-01  Jim Meyering  <meyering@lucent.com>
98150
98151         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
98152         * lib/unicodeio.c: Likewise.
98153
98154 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
98155
98156         * lib/config.charset: New file.
98157         * lib/localcharset.c: New file.
98158         * lib/unicodeio.h, lib/unicodeio.c: New files.
98159         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
98160         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
98161         (noinst_HEADERS): Add unicodeio.h.
98162         (all-local, install-exec-local, charset.alias): New targets.
98163
98164 2000-02-28  Paul Eggert  <eggert@twinsun.com>
98165
98166         * lib/quotearg.c (ALERT_CHAR): New macro.
98167         (quotearg_buffer_restyled): Use it.
98168
98169 2000-02-27  Jim Meyering  <meyering@lucent.com>
98170
98171         * m4/check-decl.m4: Add getenv to the list.
98172
98173 2000-02-27  Jim Meyering  <meyering@lucent.com>
98174
98175         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
98176         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
98177
98178         * lib/backupfile.c: Guard inclusion of stdlib.h with
98179         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
98180         Declare malloc if needed.
98181
98182         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
98183         `#ifndef HAVE_DECL..'
98184         now that autoconf always defines the HAVE_DECL_ symbols.
98185         * lib/human.c: Likewise.
98186         * lib/same.c: Likewise.
98187         * lib/strtoumax.c: Likewise.
98188
98189         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
98190         declaration check was not run.
98191         * lib/hash.c: Likewise.
98192         * lib/human.c: Likewise.
98193         * lib/same.c: Likewise.
98194         * lib/strtoumax.c: Likewise.
98195
98196         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
98197         `.', then first look up the entire `.'-containing string as a login
98198         name.
98199
98200 2000-02-23  Jim Meyering  <meyering@lucent.com>
98201
98202         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
98203         in place of my hack.
98204
98205 2000-02-18  Paul Eggert  <eggert@twinsun.com>
98206
98207         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
98208         (textint): New typedef.
98209         (parser_control): Member year changed from int to textint.
98210         All uses changed.
98211         (YYSTYPE): Removed; replaced by %union with int and textint members.
98212         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
98213         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
98214         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
98215         (tSNUMBER, tUNUMBER): Now of type <textintval>.
98216         (date, number, to_year): Use width of number in digits, not its value,
98217         to determine whether it's a 2-digit year, or a 2-digit time.
98218         (yylex): Store number of digits of numeric tokens.
98219         Reported by John Kendall.
98220
98221         (parser_control): Changed from struct parser_control to typedef (for
98222         consistency).  All uses changed.
98223
98224         (tID): Removed; not used.
98225         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
98226
98227 2000-02-14  Paul Eggert  <eggert@twinsun.com>
98228
98229         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
98230         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
98231
98232 2000-02-12  Jim Meyering  <meyering@lucent.com>
98233
98234         * lib/userspec.c (ISDIGIT): Define it.
98235         (isdigit): Remove definition.
98236         (is_number): Use ISDIGIT, not isdigit.
98237         <libintl.h>: Include.
98238         (_ and N_): Define.
98239         (parse_user_spec): Mark translatable strings.
98240
98241 2000-02-10  Jim Meyering  <meyering@lucent.com>
98242
98243         With these changes, nanosleep.[ch] are finally enough like the other
98244         lib/* replacement files to compile on a few more losing systems.
98245
98246         * lib/nanosleep.h: Don't include config.h.
98247         Remove prototype from declaration of nanosleep.
98248         (PARAMS): Remove now-unneeded definition.
98249         * lib/nanosleep.c: #undef nanosleep.
98250         (rpl_nanosleep): Rename from nanosleep.
98251
98252 2000-02-10  Jim Meyering  <meyering@lucent.com>
98253
98254         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
98255         gnu_nanosleep to rpl_nanosleep.
98256
98257 2000-02-09  Jim Meyering  <meyering@lucent.com>
98258
98259         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
98260         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
98261
98262 2000-02-08  Akim Demaille  <akim@epita.fr>
98263
98264         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
98265         `[' and `]' and remove uses of `changequote'.
98266         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
98267         (AC_SYS_LARGEFILE): Likewise.
98268         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
98269         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
98270         of changequote.
98271         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
98272         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
98273         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
98274         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
98275
98276 2000-02-05  Jim Meyering  <meyering@lucent.com>
98277
98278         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
98279         Remove explicit use of AC_HEADER_TIME.  It is required by
98280         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
98281         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
98282         in autoconf whereby the expansion of the latter ended up preceding
98283         the expansion of its prerequisite, AC_HEADER_TIME.
98284         Reported by Volker Borchert.
98285
98286 2000-02-03  Jim Meyering  <meyering@lucent.com>
98287
98288         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
98289
98290 2000-02-03  Jim Meyering  <meyering@lucent.com>
98291
98292         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
98293         rather than with `#if HAVE_UTMPNAME'.
98294
98295 2000-02-02  Jim Meyering  <meyering@lucent.com>
98296
98297         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
98298         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
98299         Reported by Eli Zaretskii.
98300
98301 2000-02-01  Jim Meyering  <meyering@lucent.com>
98302
98303         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
98304
98305 2000-01-31  Jim Meyering  <meyering@lucent.com>
98306
98307         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
98308         functions.  Add the time.h and sys/time.h headers along with the
98309         AC_REQUIRE'ment of AC_HEADER_TIME.
98310
98311 2000-01-31  Jim Meyering  <meyering@lucent.com>
98312
98313         * lib/nanosleep.h (nanosleep): Guard declaration with
98314         `#if ! HAVE_DECL_NANOSLEEP'.
98315         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
98316         the declaration in that vendor's sys/timers.h.
98317         Reported by Christian Krackowizer.
98318
98319         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
98320         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
98321         (ISPRINT): Likewise.
98322         Reported by Tom Tromey.
98323
98324 2000-01-30  Jim Meyering  <meyering@lucent.com>
98325
98326         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
98327
98328         * m4/prereq.m4 (utmp_includes): Define.
98329         Check for ut_user and ut_name members in both struct utmpx
98330         and struct utmp.
98331
98332 2000-01-30  Jim Meyering  <meyering@lucent.com>
98333
98334         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
98335         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
98336         header files where only utmpx.ut_user is declared.
98337
98338         * lib/readutmp.h (UT_USER): Define.
98339
98340 2000-01-29  Jim Meyering  <meyering@lucent.com>
98341
98342         * m4/lib-check.m4: New file containing library-related checks from
98343         fileutils and sh-utils (textutils had none).
98344
98345 2000-01-28  Jim Meyering  <meyering@lucent.com>
98346
98347         * m4/perl.m4: Change format of warning message to look more like that
98348         from the missing script.  Suggestion from François Pinard.
98349
98350 2000-01-25  Jim Meyering  <meyering@lucent.com>
98351
98352         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
98353         well as time.h in the compile check.
98354         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
98355         Fix typo in cross-compiling case: s/yes/no/.
98356
98357 2000-01-23  Jim Meyering  <meyering@lucent.com>
98358
98359         * m4/jm-macros.m4: Move df-related tests here from
98360         fileutils/configure.in
98361
98362         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
98363         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
98364
98365         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
98366         s/space/ac_fsusage_space/.
98367         (jm_FILE_SYSTEM_USAGE): Take two parameters.
98368
98369         * m4/ftruncate.m4: New file (derived from part of
98370         fileutils/configure.in).
98371         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
98372         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
98373
98374         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
98375         AC_SUBST these here, rather than just in sh-util/configure.in, so
98376         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
98377         all the same.
98378         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
98379         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
98380         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
98381         (AC_SUBST(POW_LIBM)): Likewise.
98382         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
98383
98384 2000-01-23  Jim Meyering  <meyering@lucent.com>
98385
98386         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
98387         obstack.c.
98388
98389 2000-01-22  Jim Meyering  <meyering@lucent.com>
98390
98391         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
98392
98393         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
98394
98395         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
98396         configure.in
98397         (AC_CHECK_HEADERS): Likewise for sh-utils.
98398         (AC_CHECK_HEADERS): Likewise for textutils.
98399         Merge the three lists of headers.
98400
98401         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
98402         from fileutils' configure.in.
98403
98404         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
98405         code. Moved tests into their own function (_jm_DECL_HEADERS) in
98406         check-decl.m4.
98407
98408         * m4/check-decl.m4: Use #if rather than #ifdef.
98409         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
98410         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
98411         (_jm_DECL_HEADERS): Define new function.
98412         (jm_CHECK_DECLARATIONS): Require it.
98413
98414 2000-01-22  Jim Meyering  <meyering@lucent.com>
98415
98416         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
98417         [! HAVE_DECL_STRTOULL]: Declare strtoull.
98418         Required for some AIX systems.  Reported by Christian Krackowizer.
98419         [TESTING] (main): New function.
98420
98421         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
98422         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
98423         letters.
98424
98425         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
98426         iswprint.
98427
98428         * lib/strverscmp.c (ISDIGIT): Define.
98429         (strverscmp): Use ISDIGIT, not isdigit.
98430
98431 2000-01-19  Jim Meyering  <meyering@lucent.com>
98432
98433         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
98434         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
98435         defines `struct timespec' in <sys/time.h>
98436
98437         * m4/c-bs-a.m4: Remove uses of changequote altogether.
98438         Thanks to Akim for explaining.
98439
98440 2000-01-17  Paul Eggert  <eggert@twinsun.com>
98441
98442         * lib/nanosleep.c (nanosleep):
98443         Don't use SA_INTERRUPT to decide whether to call sigaction, as
98444         POSIX.1 doesn't require SA_INTERRUPT and some systems
98445         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
98446         it's been part of POSIX.1 since day 1 (in 1988).
98447
98448 2000-01-17  Jim Meyering  <meyering@lucent.com>
98449
98450         * lib/interlock: Remove unused file.  Reported by François Pinard.
98451
98452 2000-01-16  Paul Eggert  <eggert@twinsun.com>
98453
98454         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
98455         alert, backslash, formfeed, and vertical tab unnecessarily in
98456         shell quoting style.
98457
98458 2000-01-16  Jim Meyering  <meyering@lucent.com>
98459
98460         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
98461         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
98462         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
98463         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
98464
98465 2000-01-16  Jim Meyering  <meyering@lucent.com>
98466
98467         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
98468         because the latter didn't work.
98469
98470 2000-01-15  Jim Meyering  <meyering@lucent.com>
98471
98472         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
98473         (AC_REPLACE_FUNCS): Add memcpy and memset.
98474         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
98475         Add strpbrk.
98476         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
98477
98478 2000-01-12  Jim Meyering  <meyering@lucent.com>
98479
98480         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
98481         (jm_PREREQ): Use it.
98482         (jm_PREREQ_READUTMP): New macro.
98483         (jm_PREREQ): Use it.
98484
98485 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98486
98487         Quote multibyte characters correctly.
98488         * m4/c-bs-a.m4: New file.
98489         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
98490         (jm_PREREQ): Use it.
98491
98492 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98493
98494         * m4/uintmax_t.m4: Port to autoconf 2.13.
98495
98496 2000-01-08  Jim Meyering  <meyering@ascend.com>
98497
98498         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
98499         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
98500
98501 2000-01-04  Jim Meyering  <meyering@ascend.com>
98502
98503         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
98504         jm_STRUCT_DIRENT_D_TYPE.
98505         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
98506         jm_STRUCT_DIRENT_D_INO.
98507         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
98508         jm_STRUCT_UTIMBUF.
98509         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
98510         renamings.
98511         * m4/utime.m4: Likewise.
98512
98513         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
98514         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
98515
98516 2000-01-03  Paul Eggert  <eggert@twinsun.com>
98517
98518         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
98519         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
98520
98521 2000-01-02  Jim Meyering  <meyering@ascend.com>
98522
98523         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
98524         remember if this is necessary.
98525
98526 1999-12-26  Jim Meyering  <meyering@ascend.com>
98527
98528         * m4/jm-macros.m4: Use it here.
98529         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
98530
98531 1999-12-23  Jim Meyering  <meyering@ascend.com>
98532
98533         * m4/jm-macros.m4: Check for clock_gettime (moved from
98534         fileutils/configure.in)
98535         Check for gettimeofday.
98536
98537 1999-12-20  Jim Meyering  <meyering@ascend.com>
98538
98539         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
98540         autoconf-2.14a-1999-12-20.
98541
98542 1999-12-19  Jim Meyering  <meyering@ascend.com>
98543
98544         * m4/lstat-slash.m4: New file.
98545         * m4/jm-macros.m4: Use the new macro:
98546         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98547
98548 1999-12-07  Jim Meyering  <meyering@ascend.com>
98549
98550         * m4/perl.m4: Require that File::Compare be available, too.
98551         Too many systems seem to lack it.
98552
98553         * m4/strftime.m4: Add checks for most of the cpp macros tested in
98554         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
98555
98556 1999-11-18  Paul Eggert  <eggert@twinsun.com>
98557
98558         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
98559         problem with the QNX 4.25 shell, which doesn't propagate exit
98560         status of failed commands inside shell assignments.
98561
98562 1999-11-17  Jim Meyering  <meyering@ascend.com>
98563
98564         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
98565
98566 1999-11-07  Jim Meyering  <meyering@ascend.com>
98567
98568         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
98569
98570 1999-11-06  Jim Meyering  <meyering@ascend.com>
98571
98572         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
98573         * m4/jm-macros.m4 (jm_MACROS): Use it here.
98574
98575 1999-11-05  Jim Meyering  <meyering@ascend.com>
98576
98577         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
98578         configure.in of textutils, fileutils, and sh-utils into this one
98579         (shared between those packages) file.
98580         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
98581         AC_STRUCT_ST_BLKSIZE.
98582
98583 1999-11-03  Jim Meyering  <meyering@ascend.com>
98584
98585         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
98586         of AC_CHECK_TYPE checks includes unistd.h.
98587         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
98588         Suggestion from Akim Demaille.
98589
98590 1999-10-30  Jim Meyering  <meyering@ascend.com>
98591
98592         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
98593         m4-quoted string.
98594         * m4/ls-mntd-fs.m4: Likewise.
98595         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
98596         * m4/jm-winsz1.m4: Likewise.
98597
98598         * m4/const.m4: Remove file, since the fix made it into the experimental
98599         version of autoconf.
98600         * m4/mktime.m4: Likewise.
98601
98602         * m4/check-type.m4: Remove file, now that the latest version of
98603         AC_CHECK_TYPE takes a third arg to specify additional #includes.
98604
98605         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
98606         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
98607         AC_CHECK_TYPE.
98608
98609 1999-10-04  Jim Meyering  <meyering@ascend.com>
98610
98611         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
98612
98613 1999-09-22  Paul Eggert  <eggert@twinsun.com>
98614
98615         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
98616         2.95.1 bug with HP-UX 10.20.
98617
98618 1999-09-17  Jim Meyering  <meyering@ascend.com>
98619
98620         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
98621         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
98622         due to missing strdup (against sh-utils-2.0).
98623
98624 1999-08-29  Jim Meyering  <meyering@ascend.com>
98625
98626         * m4/jm-macros.m4: Require jm_BISON.
98627         * m4/bison.m4: New file.
98628
98629 1999-08-17  Paul Eggert  <eggert@twinsun.com>
98630
98631         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
98632         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
98633
98634 1999-08-05  Jim Meyering  <meyering@ascend.com>
98635
98636         * m4/getline.m4: Rename test file from conftestdata to conftest.data
98637         to avoid conflicts with `conftest' on 8+3 filesystems.
98638         Suggestion from Eli Zaretskii.
98639
98640 1999-08-04  Jim Meyering  <meyering@ascend.com>
98641
98642         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
98643         fileutils and sh-utils (textutils's getline test was inadequate).
98644         (AM_FUNC_GETLINE): Run this test.
98645         (AC_CHECK_FUNCS): Check for getdelim.
98646         Reported by Bob Proulx.
98647
98648 1999-08-02  Jim Meyering  <meyering@ascend.com>
98649
98650         * m4/jm-macros.m4: Add a comment.
98651
98652 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98653
98654         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
98655         <inttypes.h> defines strtoumax as a macro (and not as a
98656         function).
98657
98658 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98659
98660         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
98661         that we can shift, multiply and divide unsigned long long
98662         values; Ultrix cc can't do it.
98663
98664 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98665
98666         * m4/mktime.m4: New file, which is a preview of what should appear
98667         in the next public autoconf release.
98668
98669 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98670
98671         * m4/lfs.m4: Remove this file.
98672         * m4/largefile.m4: New file.  It contains the old contents of
98673         lfs.m4, except that all names with prefix AC_LFS have been
98674         changed to use the prefix AC_SYS_LARGEFILE instead, to be
98675         compatible with future autoconf versions.  Also, some minor m4
98676         quoting problems have been fixed.
98677
98678 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98679
98680         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
98681         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
98682         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
98683         and simplify the shell code.
98684
98685 1999-08-01  Jim Meyering  <meyering@ascend.com>
98686
98687         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
98688         m4.
98689
98690 1999-07-20  Jim Meyering  <meyering@ascend.com>
98691
98692         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
98693
98694 1999-07-15  Jim Meyering  <meyering@ascend.com>
98695
98696         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
98697
98698 1999-05-22  Jim Meyering  <meyering@ascend.com>
98699
98700         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
98701
98702 1999-05-20  Jim Meyering  <meyering@ascend.com>
98703
98704         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
98705         Add a colon after each `then' in case $4 is empty.
98706
98707 1999-05-16  Jim Meyering  <meyering@ascend.com>
98708
98709         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
98710
98711 1999-05-10  Jim Meyering  <meyering@ascend.com>
98712
98713         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
98714
98715         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
98716         AC_FUNC_MKTIME.
98717
98718 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
98719
98720         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
98721
98722 1999-05-04  Paul Eggert  <eggert@twinsun.com>
98723
98724         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
98725         not CPPFLAGS, so that linking works correctly in IRIX.
98726
98727 1999-04-30  Paul Eggert  <eggert@twinsun.com>
98728
98729         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
98730
98731 1999-04-20  Paul Eggert  <eggert@twinsun.com>
98732
98733         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
98734         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
98735         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
98736         jm_AC_TYPE_UNSIGNED_LONG_LONG.
98737         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
98738
98739         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
98740
98741 1999-04-20  Jim Meyering  <meyering@ascend.com>
98742
98743         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
98744         AC_REPLACE xstroull if necessary.  From Paul Eggert.
98745         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
98746
98747 1999-04-18  Jim Meyering  <meyering@ascend.com>
98748
98749         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
98750         * m4/jm-macros.m4: Use it.
98751
98752 1999-04-06  Jim Meyering  <meyering@ascend.com>
98753
98754         * m4/strftime.m4: Remove test for %f.
98755
98756 1999-03-29  Jim Meyering  <meyering@ascend.com>
98757
98758         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
98759         superset of the AC_TYPE_* checks in the textutils, fileutils,
98760         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
98761         AC_TYPE_PID_T.
98762
98763 1999-03-28  Jim Meyering  <meyering@ascend.com>
98764
98765         * m4/jm-macros.m4: Define GNU_PACKAGE here.
98766         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
98767         replaced e.g., in the *.sh files of the sh-utils.
98768
98769 1999-03-20  Jim Meyering  <meyering@ascend.com>
98770
98771         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
98772         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
98773         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
98774
98775 1999-03-19  Jim Meyering  <meyering@ascend.com>
98776
98777         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
98778
98779 1999-03-12  Jim Meyering  <meyering@ascend.com>
98780
98781         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
98782
98783 1999-03-07  Jim Meyering  <meyering@ascend.com>
98784
98785         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
98786         declared.
98787
98788 1999-02-17  Jim Meyering  <meyering@ascend.com>
98789
98790         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
98791         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
98792
98793 1999-02-07  Jim Meyering  <meyering@ascend.com>
98794
98795         * m4/group-member.m4: New file -- extracted from sh-utils'
98796         configure.in.
98797
98798         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
98799         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
98800
98801 1999-02-06  Jim Meyering  <meyering@ascend.com>
98802
98803         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
98804         * m4/fnmatch.m4: Likewise.
98805         * m4/getgroups.m4: Likewise.
98806         * m4/lstat.m4: Likewise.
98807         * m4/malloc.m4: Likewise.
98808         * m4/putenv.m4: Likewise.
98809         * m4/realloc.m4: Likewise.
98810         * m4/regex.m4: Likewise.
98811         * m4/stat.m4: Likewise.
98812         * m4/strftime.m4: Likewise.
98813         Suggestion from Alain Magloire.
98814
98815         * m4/chown.m4: Use `.$ac_objext', not `.o'.
98816         * m4/fnmatch.m4: Likewise.
98817         * m4/getgroups.m4: Likewise.
98818         * m4/getline.m4: Likewise.
98819         * m4/lstat.m4: Likewise.
98820         * m4/malloc.m4: Likewise.
98821         * m4/memcmp.m4: Likewise.
98822         * m4/putenv.m4: Likewise.
98823         * m4/realloc.m4: Likewise.
98824         * m4/regex.m4: Likewise.
98825         * m4/stat.m4: Likewise.
98826         * m4/strftime.m4: Likewise.
98827         Suggestion from Alain Magloire.
98828
98829         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
98830         an argument.
98831
98832         * m4/regex.m4: Add a run-time Test for proper operation of
98833         re_compile_pattern.
98834
98835 1999-01-31  Jim Meyering  <meyering@ascend.com>
98836
98837         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
98838
98839 1999-01-30  Jim Meyering  <meyering@ascend.com>
98840
98841         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
98842
98843         * m4/jm-mktime.m4: Make this a wrapper around the official
98844         AM_FUNC_MKTIME rather than my private copy, now that the official one
98845         is up to date.
98846         * m4/mktime.m4: Remove file.
98847
98848         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
98849         * m4/uptime.m4: Likewise.
98850         * m4/uintmax_t.m4: Likewise.
98851
98852 1999-01-28  Jim Meyering  <meyering@ascend.com>
98853
98854         * m4/jm-macros.m4: Use jm_AFS.
98855         * m4/afs.m4: New file (from fileutils' configure.in).
98856
98857         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
98858         * m4/chown.m4: Likewise.
98859         * m4/d-ino.m4: Likewise.
98860         * m4/d-type.m4: Likewise.
98861         * m4/fnmatch.m4: Likewise.
98862         * m4/getgroups.m4: Likewise.
98863         * m4/gettext.m4: Likewise.
98864         * m4/jm-mktime.m4: Likewise.
98865         * m4/jm-winsz2.m4: Likewise.
98866         * m4/lcmessage.m4: Likewise.
98867         * m4/ls-mntd-fs.m4: Likewise.
98868         * m4/malloc.m4: Likewise.
98869         * m4/memcmp.m4: Likewise.
98870         * m4/putenv.m4: Likewise.
98871         * m4/realloc.m4: Likewise.
98872         * m4/st_mtim.m4: Likewise.
98873         * m4/strftime.m4: Likewise.
98874
98875 1999-01-16  Jim Meyering  <meyering@ascend.com>
98876
98877         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
98878         (ARGMATCH_DIE_DECL): Define.
98879
98880 1999-01-12  Jim Meyering  <meyering@ascend.com>
98881
98882         * m4/Makefile.am.in: Rewrite to avoid using fmt.
98883         Reported by Lars Hecking.
98884
98885 1999-01-10  Jim Meyering  <meyering@ascend.com>
98886
98887         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
98888         gross kludge.
98889         * m4/inttypes_h.m4: Likewise.
98890         * m4/lstat.m4: Likewise.
98891         * m4/malloc.m4: Likewise.
98892         * m4/readdir.m4: Likewise.
98893         * m4/realloc.m4: Likewise.
98894         * m4/st_dm_mode.m4: Likewise.
98895         * m4/stat.m4: Likewise.
98896         * m4/utimbuf.m4: Likewise.
98897         * m4/utimes.m4: Likewise.
98898
98899         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
98900         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
98901         comments in config.h.in are meaningful.
98902
98903         * m4/jm-macros.m4: Require autoconf-2.13 here.
98904
98905         * m4/regex.m4: By default, don't use the included regex.c on systems
98906         with glibc 2.  Suggestion from Uli Drepper.
98907
98908 1999-01-02  Jim Meyering  <meyering@ascend.com>
98909
98910         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
98911
98912 1998-12-18  Jim Meyering  <meyering@ascend.com>
98913
98914         * m4/Makefile.am.in (Makefile.am): Simplify rule.
98915         Based on a suggestion from Lars Hecking.
98916
98917 1998-11-16  Paul Eggert  <eggert@twinsun.com>
98918
98919         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
98920
98921 1998-11-16  Jim Meyering  <meyering@ascend.com>
98922
98923         * m4/lfs.m4: Double-quote the `uname...` expression.
98924
98925 1998-11-14  Jim Meyering  <meyering@ascend.com>
98926
98927         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
98928         * m4/stat.m4: Likewise.
98929
98930 1998-11-03  Jim Meyering  <meyering@ascend.com>
98931
98932         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
98933         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
98934
98935 1998-10-18  Jim Meyering  <meyering@ascend.com>
98936
98937         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
98938
98939 1998-10-17  Jim Meyering  <meyering@ascend.com>
98940
98941         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
98942         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
98943         calls for those previously hard-coded headers.  Instead, take a new
98944         parameter.
98945         (jm_CHECK_DECLARATIONS): Reflect interface change.
98946         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
98947         (jm_CHECK_DECL_LOCALTIME_R): New macro.
98948
98949         * m4/mktime.m4: Test for spring-forward gap before long-running test.
98950
98951 1998-10-14  Jim Meyering  <meyering@ascend.com>
98952
98953         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
98954         instead of "TZ=America/Vancouver".  From Paul Eggert.
98955
98956 1998-10-11  Jim Meyering  <meyering@ascend.com>
98957
98958         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
98959         This adds a test for a recently added compatibility fix for mktime.c.
98960         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
98961
98962 1998-09-27  Jim Meyering  <meyering@ascend.com>
98963
98964         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
98965
98966         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
98967         ../configure.in, including a change from Gordon Matzigkeit to allow
98968         cross-compiling for the Hurd.
98969
98970         * m4/glibc.m4: New file/macro to test for the GNU C Library
98971         versions 1 and 2.  From Gordon Matzigkeit.
98972         Indent.
98973
98974 1998-09-21  Jim Meyering  <meyering@ascend.com>
98975
98976         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
98977
98978 1998-08-18  Paul Eggert  <eggert@twinsun.com>
98979
98980         Port nanosecond-resolution times to UnixWare 2.1.2 and
98981         pedantic Solaris 2.6.
98982
98983         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
98984         AC_STRUCT_ST_MTIM.
98985         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
98986         Generate name of ns member, instead of just 1 or undef.
98987         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
98988
98989 1998-08-15  Jim Meyering  <meyering@ascend.com>
98990
98991         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
98992         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
98993         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
98994         instead of jm_TYPE_SSIZE_T.
98995
98996 1998-08-12  Jim Meyering  <meyering@ascend.com>
98997
98998         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
98999
99000 1998-08-02  Jim Meyering  <meyering@ascend.com>
99001
99002         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
99003         in acconfig.h manually.
99004
99005 1998-07-31  Paul Eggert  <eggert@twinsun.com>
99006
99007         * m4/st_mtim.m4: New file.
99008
99009 1998-07-28  Jim Meyering  <meyering@ascend.com>
99010
99011         * m4/utimes.m4: Undef stat.
99012
99013 1998-07-25  Jim Meyering  <meyering@ascend.com>
99014
99015         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
99016         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
99017
99018 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
99019
99020         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
99021         uid and gid actually remain unchanged.
99022
99023 1998-07-07  Jim Meyering  <meyering@ascend.com>
99024
99025         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
99026
99027 1998-07-04  Jim Meyering  <meyering@ascend.com>
99028
99029         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
99030         to prove that this macro can be used in packages without regex.c.
99031
99032 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
99033
99034         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
99035         is to be used.
99036
99037 1998-07-03  Jim Meyering  <meyering@ascend.com>
99038
99039         * m4/gettext.m4: Add -lintl if it's found to be necessary.
99040
99041         * m4/gettext.m4: New file -- from gettext-0.10.35.
99042         * m4/lcmessage.m4: Likewise.
99043         * m4/progtest.m4: Likewise.
99044
99045         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
99046         * m4/jm-macros.m4: Require the new macro.
99047
99048 1998-06-29  Jim Meyering  <meyering@ascend.com>
99049
99050         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
99051         for the definition of NGROUPS (used in a system header included
99052         by sys/mount.h).
99053
99054 1998-06-28  Jim Meyering  <meyering@ascend.com>
99055
99056         * m4/ls-mntd-fs.m4: New file.
99057         * m4/fstypename.m4: New file.
99058
99059         * m4/jm-macros.m4: Require the new macro.
99060         * m4/jm-glibc-io.m4: New file.
99061
99062 1998-05-19  Jim Meyering  <meyering@ascend.com>
99063
99064         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
99065         * m4/lchown.m4: New file.
99066
99067         * m4/Makefile.am.in: New file.
99068         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
99069
99070 1998-05-14  Jim Meyering  <meyering@ascend.com>
99071
99072         * m4/Makefile.am (EXTRA_DIST): Add them.
99073         * m4/jm-macros.m4: New file.
99074         * m4/utimbuf.m4: New file.
99075
99076 1998-05-12  Jim Meyering  <meyering@ascend.com>
99077
99078         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
99079
99080 1998-05-11  Jim Meyering  <meyering@ascend.com>
99081
99082         * m4/isc-posix.m4: New file.
99083
99084 1998-05-10  Jim Meyering  <meyering@ascend.com>
99085
99086         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
99087
99088 1998-05-09  Jim Meyering  <meyering@ascend.com>
99089
99090         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
99091         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
99092         with automake.
99093
99094         * m4/ssize_t.m4: New file.
99095         * m4/mktime.m4: Remove file -- the new automake has this now.
99096
99097 1998-04-26  Jim Meyering  <meyering@ascend.com>
99098
99099         * m4/assert.m4: New file.
99100         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
99101
99102 1998-04-05  Jim Meyering  <meyering@ascend.com>
99103
99104         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
99105         (jm_PREREQ): Use it here.
99106
99107 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
99108
99109         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
99110         in acconfig.h.
99111
99112 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
99113
99114         * m4/prereq.m4: New file.
99115         * m4/error.m4: New file.
99116         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
99117
99118 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
99119
99120         * m4/getline.m4: Don't set am_cv_func_working_getline before the
99121         cache-check for the same variable -- that defeated the purpose of
99122         the test; the test program was never run.  This was a problem only
99123         on systems with losing getline functions -- HP-UX 10.20 is one.
99124         Reported by Bjorn Helgaas.
99125
99126 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
99127
99128         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
99129
99130 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
99131
99132         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
99133
99134         * m4/const.m4: New file.  Use an initializer in this declaration
99135         typedef int charset[2]; const charset x;
99136         Reported by Bob Glickstein.
99137
99138 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
99139
99140         * m4/chown.m4: Fix reversed types on -1 args to chown.
99141         From Kaveh Ghazi.
99142
99143 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
99144
99145         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
99146         Add lseek and memchr.
99147
99148         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
99149         T.E.Dickey <dickey@clark.net> said that some older preprocessors
99150         have a 20-character limit on names.
99151
99152 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
99153
99154         * m4/inttypes_h.m4: New file.
99155         * m4/uintmax_t.m4: New file.
99156         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
99157
99158
99159         -----
99160
99161         Local Variables:
99162         coding: utf-8
99163         End:
99164
99165         Copyright (C) 1997-2013 Free Software Foundation, Inc.
99166
99167         Copying and distribution of this file, with or without
99168         modification, are permitted provided the copyright notice
99169         and this notice are preserved.